From b62019d0f8e5db0f1809ef1d24c156d988e3aec8 Mon Sep 17 00:00:00 2001 From: robocanic Date: Sun, 11 Jan 2026 12:28:34 +0800 Subject: [PATCH 1/5] fix: create tag rule bug --- pkg/console/handler/tag_rule.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/console/handler/tag_rule.go b/pkg/console/handler/tag_rule.go index c624faa42..a6fe3637c 100644 --- a/pkg/console/handler/tag_rule.go +++ b/pkg/console/handler/tag_rule.go @@ -114,7 +114,6 @@ func PutTagRuleWithRuleName(ctx consolectx.Context) gin.HandlerFunc { func PostTagRuleWithRuleName(ctx consolectx.Context) gin.HandlerFunc { return func(c *gin.Context) { - var name string ruleName := c.Param("ruleName") mesh := c.Query("mesh") if !strings.HasSuffix(ruleName, constants.TagRuleDotSuffix) { @@ -122,7 +121,7 @@ func PostTagRuleWithRuleName(ctx consolectx.Context) gin.HandlerFunc { c.JSON(http.StatusBadRequest, model.NewBizErrorResp(err)) return } - res := meshresource.NewTagRouteResourceWithAttributes(name, mesh) + res := meshresource.NewTagRouteResourceWithAttributes(ruleName, mesh) err := c.Bind(res.Spec) if err != nil { c.JSON(http.StatusOK, model.NewErrorResp(err.Error())) From 214299a98655588134b325dc01f44a285cceae07 Mon Sep 17 00:00:00 2001 From: robocanic Date: Sat, 17 Jan 2026 22:21:30 +0800 Subject: [PATCH 2/5] refactor: config refactor; fix: fix console bugs --- Dockerfile | 41 +++++++ app/dubbo-admin/cmd/root.go | 46 +------ app/dubbo-admin/cmd/run.go | 41 +++++-- app/dubbo-admin/dubbo-admin-legacy.yaml | 61 ---------- app/dubbo-admin/dubbo-admin.yaml | 110 ++++++++++++----- .../dist/admin/assets/ConfigModel-yjTa7EW2.js | 4 + .../dist/admin/assets/ConfigPage-HbXln963.js | 4 + .../dist/admin/assets/DateUtil-ed3saMVp.js | 1 + .../dist/admin/assets/GrafanaPage-Ib81UiBl.js | 1 + .../admin/assets/GrafanaPage-Ox7zYy20.css | 4 + .../dist/admin/assets/Login-WDB2yLVB.js | 4 + .../admin/assets/PromQueryUtil-mqYJCdcK.js | 4 + .../dist/admin/assets/SearchUtil-FCBI7ppE.js | 4 + .../dist/admin/assets/YAMLView-l1kqynjo.js | 4 + .../dist/admin/assets/YAMLView-qj8iQria.js | 4 + .../admin/assets/addByYAMLView-BmRR26Fc.js | 4 + .../dist/admin/assets/app-4lFIb2G-.js | 4 + .../dist/admin/assets/config-L4QhBo2Y.js | 4 + .../admin/assets/configuration-mnhVbFFZ.js | 4 + .../dist/admin/assets/cssMode-WATe-J7K.js | 4 + .../dist/admin/assets/detail-tPSvFGFf.js | 4 + .../admin/assets/distribution-UiS_TbBu.js | 4 + .../dist/admin/assets/event-7tgH6sxi.js | 4 + .../dist/admin/assets/event-H3QxA0ip.js | 4 + .../dist/admin/assets/event-U8rWPJ_o.js | 4 + .../dist/admin/assets/formView-6c6ubrMh.js | 4 + .../dist/admin/assets/formView-e13inb3H.js | 4 + .../dist/admin/assets/formView-vI7S-3Yw.js | 4 + .../dist/admin/assets/freemarker2-GKVO7p5q.js | 4 + .../admin/assets/globalSearch-_m3MXXfo.js | 4 + .../dist/admin/assets/handlebars-LJs_OsPl.js | 4 + .../dist/admin/assets/html-5vla4NC_.js | 4 + .../dist/admin/assets/htmlMode-PobRrH1O.js | 4 + .../dist/admin/assets/index-3XSU6ywD.js | 4 + .../dist/admin/assets/index-f3klQpXz.js | 4 + .../dist/admin/assets/index-iEpzgnm5.js | 4 + .../dist/admin/assets/index-nvCr9_iI.js | 4 + .../dist/admin/assets/index-rD-ZU8dN.js | 4 + .../dist/admin/assets/index-rt1yTeew.js | 8 ++ .../dist/admin/assets/index-vRAqZ0qU.js | 4 + .../dist/admin/assets/index-vfibNA7v.js | 5 + .../dist/admin/assets/instance-ChxJL4oQ.js | 4 + .../dist/admin/assets/instance-jbHVDGq-.js | 4 + .../dist/admin/assets/javascript-Pd2mCcrq.js | 4 + .../dist/admin/assets/js-yaml-A63HP8_m.js | 28 +++++ .../dist/admin/assets/jsonMode-S2Y1HX7r.js | 4 + .../admin/assets/linkTracking-wjZ-ycSv.js | 1 + .../dist/admin/assets/liquid-eKUo_tln.js | 4 + .../dist/admin/assets/mdx-j-hpKbwY.js | 4 + .../dist/admin/assets/monitor-4MZElxdr.js | 1 + .../dist/admin/assets/monitor-LGJ7b0-x.js | 1 + .../dist/admin/assets/monitor-fKqC9Q7u.js | 1 + .../dist/admin/assets/notFound-U6T768yw.js | 4 + .../dist/admin/assets/python-dLDs41C4.js | 4 + .../dist/admin/assets/razor-FwGgO_k1.js | 4 + .../dist/admin/assets/request-vlI2kaaR.js | 4 + .../dist/admin/assets/search-HhXTRztG.js | 4 + .../dist/admin/assets/serverInfo-T8wz3JrY.js | 4 + .../dist/admin/assets/service-RF66g7V7.js | 4 + .../dist/admin/assets/tab1-krCLsB5L.js | 4 + .../dist/admin/assets/tab2-pkEoLefQ.js | 4 + .../dist/admin/assets/tracing-0saJ0bye.js | 1 + .../dist/admin/assets/tracing-cZerXPwx.js | 1 + .../dist/admin/assets/traffic-nmA_BhEL.js | 4 + .../dist/admin/assets/tsMode-8u_HsZum.js | 4 + .../dist/admin/assets/typescript-RCkR-T-T.js | 4 + .../dist/admin/assets/xml-lU0j0SNM.js | 4 + .../dist/admin/assets/yaml-m0OSq1I5.js | 4 + pkg/config/app/admin.go | 74 ++++++++---- pkg/config/{config.go => base.go} | 0 pkg/config/console/config.go | 114 +++++++++++++----- pkg/config/console/observability/config.go | 72 ----------- pkg/config/diagnostics/config.go | 8 +- pkg/config/discovery/config.go | 21 ++-- pkg/config/engine/config.go | 93 ++++++++++---- pkg/config/loader.go | 11 +- pkg/config/log/config.go | 72 +++++++++++ pkg/config/mode/config.go | 12 -- pkg/config/observability/config.go | 63 ++++++++++ pkg/config/store/config.go | 18 ++- pkg/console/component.go | 5 +- pkg/console/handler/grafana.go | 45 ------- pkg/console/handler/observability.go | 91 +++++++------- pkg/console/handler/overview.go | 12 +- pkg/console/handler/prometheus.go | 2 +- pkg/console/handler/service.go | 8 ++ pkg/console/model/observability.go | 31 ++--- pkg/console/model/service.go | 1 + pkg/console/router/router.go | 17 +-- pkg/console/service/observability.go | 96 +++++++++++++++ pkg/console/service/service.go | 2 +- pkg/core/alias.go | 65 ---------- pkg/core/cmd/helpers.go | 31 ----- pkg/core/cmd/util.go | 35 ------ pkg/core/logger/log.go | 94 +++++++-------- pkg/core/runtime/builder.go | 5 +- pkg/discovery/nacos2/factory.go | 1 - .../nacos2/listerwatcher/nacos_config.go | 1 + .../nacos2/listerwatcher/nacos_service.go | 1 + .../listerwatcher/runtime_instance.go | 13 +- pkg/governor/nacos2/governor.go | 7 +- pkg/version/cobra.go | 26 ---- pkg/version/compatibility.go | 76 ------------ pkg/version/version.go | 72 ++++------- .../dubbo-samples-shop-all.yaml | 12 ++ 105 files changed, 1064 insertions(+), 799 deletions(-) create mode 100644 Dockerfile delete mode 100644 app/dubbo-admin/dubbo-admin-legacy.yaml create mode 100644 app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js create mode 100644 app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js create mode 100644 app/dubbo-ui/dist/admin/assets/linkTracking-wjZ-ycSv.js create mode 100644 app/dubbo-ui/dist/admin/assets/monitor-4MZElxdr.js create mode 100644 app/dubbo-ui/dist/admin/assets/monitor-LGJ7b0-x.js create mode 100644 app/dubbo-ui/dist/admin/assets/monitor-fKqC9Q7u.js create mode 100644 app/dubbo-ui/dist/admin/assets/tracing-0saJ0bye.js create mode 100644 app/dubbo-ui/dist/admin/assets/tracing-cZerXPwx.js rename pkg/config/{config.go => base.go} (100%) delete mode 100644 pkg/config/console/observability/config.go create mode 100644 pkg/config/log/config.go create mode 100644 pkg/config/observability/config.go delete mode 100644 pkg/console/handler/grafana.go create mode 100644 pkg/console/service/observability.go delete mode 100644 pkg/core/alias.go delete mode 100644 pkg/core/cmd/helpers.go delete mode 100644 pkg/core/cmd/util.go delete mode 100644 pkg/version/cobra.go delete mode 100644 pkg/version/compatibility.go diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..9394ba31d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Build the manager binary +FROM docker.io/golang:1.24 AS builder +ARG TARGETOS +ARG TARGETARCH + +WORKDIR /app + +COPY go.mod go.mod +COPY go.sum go.sum + +ENV GOPROXY=https://goproxy.cn,direct + +# cache deps before building and copying source so that we don't need to re-download as much +# and so that source changes don't invalidate our downloaded layer +RUN go env && go mod download + +RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o dubbo-admin ./app/dubbo-admin/main.go + +# Use distroless as minimal base image to package the manager binary +# Refer to https://github.com/GoogleContainerTools/distroless for more details +FROM gcr.io/distroless/static:nonroot +WORKDIR / +COPY --from=builder /app/dubbo-admin . +USER 65532:65532 + +ENTRYPOINT ["./dubbo-admin","run"] \ No newline at end of file diff --git a/app/dubbo-admin/cmd/root.go b/app/dubbo-admin/cmd/root.go index e49deda3a..0a88ffd35 100644 --- a/app/dubbo-admin/cmd/root.go +++ b/app/dubbo-admin/cmd/root.go @@ -18,68 +18,24 @@ package cmd import ( - "fmt" "os" - "path/filepath" "github.com/spf13/cobra" - dubbolog "github.com/apache/dubbo-admin/pkg/common/log" - "github.com/apache/dubbo-admin/pkg/core" - cmd2 "github.com/apache/dubbo-admin/pkg/core/cmd" "github.com/apache/dubbo-admin/pkg/core/cmd/version" ) // newRootCmd represents the base command when called without any subcommands. func newRootCmd() *cobra.Command { - args := struct { - logLevel string - outputPath string - maxSize int - maxBackups int - maxAge int - }{} cmd := &cobra.Command{ Use: "dubbo-admin", Short: "Universal Admin for Dubbo Application", Long: `Universal Admin for Dubbo Application`, - PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { - level, err := dubbolog.ParseLogLevel(args.logLevel) - if err != nil { - return err - } - - if args.outputPath != "" { - output, err := filepath.Abs(args.outputPath) - if err != nil { - return err - } - - fmt.Printf("%s: logs will be stored in %q\n", "dubbo-cp", output) - core.SetLogger(core.NewLoggerWithRotation(level, output, args.maxSize, args.maxBackups, args.maxAge)) - } else { - core.SetLogger(core.NewLogger(level)) - } - - // once command line flags have been parsed, - // avoid printing usage instructions - cmd.SilenceUsage = true - - return nil - }, } cmd.SetOut(os.Stdout) - - // root flags - cmd.PersistentFlags().StringVar(&args.logLevel, "log-level", dubbolog.InfoLevel.String(), cmd2.UsageOptions("log level", dubbolog.OffLevel, dubbolog.InfoLevel, dubbolog.DebugLevel)) - cmd.PersistentFlags().StringVar(&args.outputPath, "log-output-path", args.outputPath, "path to the file that will be filled with logs. Example: if we set it to /tmp/dubbo.log then after the file is rotated we will have /tmp/dubbo-2021-06-07T09-15-18.265.log") - cmd.PersistentFlags().IntVar(&args.maxBackups, "log-max-retained-files", 1000, "maximum number of the old log files to retain") - cmd.PersistentFlags().IntVar(&args.maxSize, "log-max-size", 100, "maximum size in megabytes of a log file before it gets rotated") - cmd.PersistentFlags().IntVar(&args.maxAge, "log-max-age", 30, "maximum number of days to retain old log files based on the timestamp encoded in their filename") - // sub-commands - cmd.AddCommand(newRunCmdWithOpts(cmd2.DefaultRunCmdOpts)) + cmd.AddCommand(newRunCmdWithOpts()) cmd.AddCommand(version.NewVersionCmd()) return cmd diff --git a/app/dubbo-admin/cmd/run.go b/app/dubbo-admin/cmd/run.go index ac5c17204..23ac9c50d 100644 --- a/app/dubbo-admin/cmd/run.go +++ b/app/dubbo-admin/cmd/run.go @@ -18,6 +18,10 @@ package cmd import ( + "context" + "os" + "os/signal" + "syscall" "time" "github.com/spf13/cobra" @@ -25,18 +29,13 @@ import ( "github.com/apache/dubbo-admin/pkg/config" "github.com/apache/dubbo-admin/pkg/config/app" "github.com/apache/dubbo-admin/pkg/core/bootstrap" - dubbocmd "github.com/apache/dubbo-admin/pkg/core/cmd" "github.com/apache/dubbo-admin/pkg/core/logger" dubboversion "github.com/apache/dubbo-admin/pkg/version" ) const gracefullyShutdownDuration = 3 * time.Second -// This is the open file limit below which the control plane may not -// reasonably have enough descriptors to accept all its clients. -const minOpenFileLimit = 4096 - -func newRunCmdWithOpts(opts dubbocmd.RunCmdOpts) *cobra.Command { +func newRunCmdWithOpts() *cobra.Command { args := struct { configPath string }{} @@ -49,10 +48,10 @@ func newRunCmdWithOpts(opts dubbocmd.RunCmdOpts) *cobra.Command { cfg := app.DefaultAdminConfig() err := config.Load(args.configPath, &cfg) if err != nil { - logger.Errorf("could not load the configuration, cause: %s", err.Error()) return err - } + // 2. configure logger + logger.Init(cfg.Log) cfgForDisplay, err := config.ConfigForDisplay(&cfg) if err != nil { logger.Errorf("unable to prepare config for display, cause: %s", err.Error()) @@ -63,11 +62,10 @@ func newRunCmdWithOpts(opts dubbocmd.RunCmdOpts) *cobra.Command { logger.Errorf("unable to convert config to json, cause: %s", err.Error()) return err } - logger.Infof("Current config %s", cfgBytes) - logger.Infof("Running in mode `%s`", cfg.Mode) + logger.Infof("current config:\n %s", cfgBytes) // 2. build components - gracefulCtx, ctx := opts.SetupSignalHandler() + gracefulCtx, ctx := setupSignalHandler() rt, err := bootstrap.Bootstrap(gracefulCtx, cfg) if err != nil { logger.Errorf("unable to bootstrap, cause: %s", err.Error()) @@ -91,6 +89,25 @@ func newRunCmdWithOpts(opts dubbocmd.RunCmdOpts) *cobra.Command { }, } // flags - cmd.PersistentFlags().StringVarP(&args.configPath, "config-file", "c", "", "configuration file") + cmd.PersistentFlags().StringVarP(&args.configPath, "config-file", "c", "./dubbo-admin.yaml", "configuration file") return cmd } + +func setupSignalHandler() (context.Context, context.Context) { + gracefulCtx, gracefulCancel := context.WithCancel(context.Background()) + ctx, cancel := context.WithCancel(context.Background()) + c := make(chan os.Signal, 3) + signal.Notify(c, syscall.SIGINT, syscall.SIGTERM) + go func() { + s := <-c + logger.Warnf("received signal %s, stopping instance gracefully", s.String()) + gracefulCancel() + s = <-c + logger.Warnf("received second signal %s, stopping instance", s.String()) + cancel() + s = <-c + logger.Warnf("received third signal %s, force exit", s.String()) + os.Exit(1) + }() + return gracefulCtx, ctx +} diff --git a/app/dubbo-admin/dubbo-admin-legacy.yaml b/app/dubbo-admin/dubbo-admin-legacy.yaml deleted file mode 100644 index 5123ea4b4..000000000 --- a/app/dubbo-admin/dubbo-admin-legacy.yaml +++ /dev/null @@ -1,61 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Support multi deploy status, see https://github.com/apache/dubbo-kubernetes/blob/master/README.md -# Available options: k8s(not supported yet), half, universal -deployMode: half -# Support multi-cluster -# Available options: zone, global(not supported yet) -mode: zone -store: - # Traditional Store support nacos and zookeeper - traditional: - registry: - address: nacos://47.76.94.134:8848?username=nacos&password=nacos - configCenter: - address: nacos://47.76.94.134:8848?username=nacos&password=nacos - metadataReport: - address: nacos://47.76.94.134:8848?username=nacos&password=nacos -admin: - # metric and trace grafana dashboards - metricDashboards: - application: - baseURL: http://47.76.81.123:3000/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed/application - instance: - baseURL: http://47.76.81.123:3000/d/dcf5defe-d198-4704-9edf-6520838880e9/instance - service: - baseURL: http://47.76.81.123:3000/d/ec689613-b4a1-45b1-b8bd-9d557059f970/service/ - traceDashboards: - application: - baseURL: http://47.76.81.123:3000/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f/application - instance: - baseURL: http://47.76.81.123:3000/d/f5f48f75-13ec-489b-88ae-635ae38d8618/instance - service: - baseURL: http://47.76.81.123:3000/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662/service - prometheus: http://8.218.148.84:9090 - # grafana should custom configs below: - # [server] - # root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana - # allowed_origins = * - # serve_from_sub_path = true - # [security] - # allow_embedding = true - # [auth.anonymous] - # enabled = true - grafana: http://47.76.81.123:3000/ - auth: - user: admin - password: Dubbo@2025 - expirationTime: 7200 diff --git a/app/dubbo-admin/dubbo-admin.yaml b/app/dubbo-admin/dubbo-admin.yaml index aa3f8e8ee..4da411d8a 100644 --- a/app/dubbo-admin/dubbo-admin.yaml +++ b/app/dubbo-admin/dubbo-admin.yaml @@ -13,53 +13,93 @@ # See the License for the specific language governing permissions and # limitations under the License. -mode: zone -console: - grafana: http://101.34.253.152:30300/ +# [Optional] Config for log. +log: + # [Optional] log level, options are debug, info, warn, error. Optional, default is info. + level: info + # [Optional] log file output path, default is ./logs/dubbo-admin.log. + outputPath: logs/dubbo-admin.log + # [Optional] max size for a single log file, default is 100, unit is `M`. [Optional] + maxSize: 100 + # [Optional] max number of old log files to retain, default is 5. [Optional] + maxBackups: 5 + # [Optional] max age for a log file, default is 3, unit is `day`. [Optional] + maxAge: 3 + +# [Optional] config for observability. +observability: + # [Optional] config for grafana and prometheus. + grafana: http://101.34.253.152:30300 + # [Optional] config for prometheus. prometheus: http://101.34.253.152:30900/ + +# [Optional] config for console. +console: + # [Optional] port of http server, default is 8888. + port: 8888 + # [Optional] running mode of Gin, options are debug, release, test, default is release. + ginMode: release + # [Optional] dashboard for metrics. metricDashboards: - application: http://101.34.253.152:30300/grafana/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed - instance: http://101.34.253.152:30300/grafana/d/dcf5defe-d198-4704-9edf-6520838880e9 - service: http://101.34.253.152:30300/grafana/d/ec689613-b4a1-45b1-b8bd-9d557059f970 + application: http://101.34.253.152:30300/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed?kiosk=1&theme=light + instance: http://101.34.253.152:30300/d/dcf5defe-d198-4704-9edf-6520838880e9 + service: http://101.34.253.152:30300/d/ec689613-b4a1-45b1-b8bd-9d557059f970 + # [Optional] dashboard for traces. traceDashboards: - application: http://101.34.253.152:30300/grafana/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f - instance: http://101.34.253.152:30300/grafana/d/f5f48f75-13ec-489b-88ae-635ae38d8618 - service: http://101.34.253.152:30300/grafana/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662 + application: http://101.34.253.152:30300/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f + instance: http://101.34.253.152:30300/d/f5f48f75-13ec-489b-88ae-635ae38d8618 + service: http://101.34.253.152:30300/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662 + # [Optional] typical user-pwd authentication, default user-pwd is admin-admin. auth: user: admin password: dubbo@2025 expirationTime: 3600 + +# [Optional] config for data storage, default is memory store: + # [Optional] store data in memory type: memory + # [Optional, Beta] store data in mysql # type: mysql # address: root:123456@tcp(127.0.0.1:23306)/dubbo-admin?charset=utf8mb4&parseTime=True&loc=Asia%2FShanghai + +# [Necessary] configs for service discovery discovery: + # [Necessary] discovery type, options are nacos2, zookeeper, mock(only for dev) - type: nacos2 - name: localhost-nacos - id: localhost-nacos + # [Necessary] discovery name, will be displayed in the web ui + name: nacos2.5-standalone + # [Necessary] a unique id for this discovery + id: nacos2.5 + # [Necessary] address config address: + # [Necessary] registry address registry: nacos://101.34.253.152:30848?username=nacos&password=nacos + # [Optional] config center address, if not set, will use registry address configCenter: nacos://101.34.253.152:30848?username=nacos&password=nacos + # [Optional] metadata report address, if not set, will use registry address metadataReport: nacos://101.34.253.152:30848?username=nacos&password=nacos + # [Optional] extra properties properties: - # [Nacos2] Adjust the interval(time unit is `s`) to adjust the frequency of list-all configs in nacos. + # [Nacos2, Optional] Adjust the interval(time unit is `s`) to adjust the frequency of list-all configs in nacos. # Default period is 30s - configWatchPeriod: 20 - # [Nacos2] Adjust the interval(time unit is `s`) to adjust the frequency of list-all services in nacos. + configWatchPeriod: 30 + # [Nacos2, Optional] Adjust the interval(time unit is `s`) to adjust the frequency of list-all services in nacos. # Default period is 30s - serviceWatchPeriod: 20 + serviceWatchPeriod: 30 # - type: zookeeper -# name: 本地zookeeper +# name: localhost-zookeeper # id: zk3.6 # address: # registry: zookeeper://127.0.0.1:2181 # configCenter: zookeeper://127.0.0.1:2181 # metadataReport: zookeeper://127.0.0.1:2181 - - # mock discovery is only for development +# mock discovery is only for development # - type: mock # id: mock # name: mockRegistry + +# [Optional] config for runtime engine, default is mock, as well as no engine. engine: # id: mock # name: mock @@ -68,43 +108,54 @@ engine: name: k8s1.28.6 type: kubernetes properties: -# [Kubernetes] Path to kubernetes config file, if not set, will use in cluster config + # [Kubernetes, Optional] kubeConfigPath: Path to kubernetes config file, if not set, will use in cluster config + # e.g. kubeConfigPath: /root/.kube/config - # [Kubernetes] Watch pods with specified labels, if not set, will watch all pods + + # [Kubernetes, Optional] podWatchSelector: Watch pods with specified labels, if not set, will watch all pods + # e.g. # podWatchSelector: org.apache.dubbo/dubbo-apps=true - # [Kubernetes] Identify which Dubbo app the pod belongs to, if not set, pod will not be seen as a dubbo instance at first + + # [Kubernetes, Optional] dubboAppIdentifier: Identify which Dubbo app the pod belongs to, if not set, pod will not be seen as a dubbo instance at first # 1. ByLabels: Use the label value corresponding to the labelKey as the dubbo app name # e.g. + # dubboAppIdentifier: # type: ByLabel # labelKey: org.apache.dubbo/dubbo-app-name # 2. ByAnnotation: Use the annotation value corresponding to the annotationKey as the dubbo app name # e.g. + # dubboAppIdentifier: # type: ByAnnotation # annotationKey: org.apache.dubbo/dubbo-app-name -# dubboAppIdentifier: -# type: ByLabel -# labelKey: org.apache.dubbo/dubbo-app-name - # [Kubernetes] Identify the rpc port of a dubbo application, if not set, pod will not be seen as a dubbo instance at first + + # [Kubernetes, Optional] dubboRPCPortIdentifier: Identify the rpc port of a dubbo application, if not set, pod will not be seen as a dubbo instance at first # 1. ByLabels: Use the label value corresponding to the labelKey as the dubbo rpc port # e.g. + # dubboRPCPortIdentifier: # type: ByLabel # labelKey: org.apache.dubbo/dubbo-rpc-port # 2. ByAnnotation: Use the annotation value corresponding to the annotationKey as the dubbo rpc port # e.g. + # dubboRPCPortIdentifier: # type: ByAnnotation # annotationKey: org.apache.dubbo/dubbo-rpc-port - # [Kubernetes] Identify the registry(discovery) which the dubbo instance belongs to, if not set, pod will not be seen as a dubbo instance at first + + # [Kubernetes, Optional] dubboDiscoveryIdentifier: Identify the registry(discovery) which the dubbo instance belongs to, if not set, pod will not be seen as a dubbo instance at first # 1. ByLabels: Use the label value corresponding to the labelKey as the dubbo registry name # e.g. + # dubboDiscoveryIdentifier: # type: ByLabel # labelKey: org.apache.dubbo/registry # 2. ByAnnotation: Use the annotation value corresponding to the annotationKey as the dubbo registry name # e.g. + # dubboDiscoveryIdentifier: # type: ByAnnotation # annotationKey: org.apache.dubbo/registry - # [Kubernetes] Strategy of choosing the main container, if not set, [type = ByIndex] and [index = 0] will be used + + # [Kubernetes, Optional] mainContainerChooseStrategy: Strategy of choosing the main container, if not set, [type = ByIndex] and [index = 0] will be used # 1. ByLast: choose the last container as the main container # e.g. + # mainContainerChooseStrategy: # type: ByLast # 2. ByIndex(default): choose the container at the specified index location as the main container # e.g. @@ -112,12 +163,11 @@ engine: # index: 0 # 3. ByName: choose the container with the specified name # e.g. + # mainContainerChooseStrategy: # type: ByName # name: main # 4. ByAnnotation: choose the container with the annotation key, specified annotation value will be used as the container name # e.g. + # mainContainerChooseStrategy: # type: ByAnnotation # annotationKey: org.apache.dubbo/main-container-name=${app-name} -# mainContainerChooseStrategy: -# type: ByIndex -# index: 0 diff --git a/app/dubbo-ui/dist/admin/assets/ConfigModel-yjTa7EW2.js b/app/dubbo-ui/dist/admin/assets/ConfigModel-yjTa7EW2.js index c996ce35b..ab2812edb 100644 --- a/app/dubbo-ui/dist/admin/assets/ConfigModel-yjTa7EW2.js +++ b/app/dubbo-ui/dist/admin/assets/ConfigModel-yjTa7EW2.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/ConfigModel-yjTa7EW2.js var h=Object.defineProperty;var p=(f,e,s)=>e in f?h(f,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[e]=s;var n=(f,e,s)=>(p(f,typeof e!="symbol"?e+"":e,s),s);import{i as u}from"./index-rt1yTeew.js";class m{constructor(e){n(this,"enabled",!0);n(this,"hasMatch",!1);n(this,"side","provider");n(this,"matches",[]);n(this,"parameters",[]);n(this,"matchesKeys",[]);n(this,"parametersKeys",[]);n(this,"parametersValue",{retries:{type:"obj",relation:"=",value:""},timeout:{type:"obj",relation:"=",value:""},accesslog:{type:"obj",relation:"=",value:""},weight:{type:"obj",relation:"=",value:""},other:{type:"free",arr:[{key:"",relation:"=",value:""}]}});n(this,"matchesValue",{address:{type:"obj",relation:"",value:""},providerAddress:{type:"obj",relation:"",value:""},service:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},application:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},param:{type:"free",arr:[{key:"",relation:"",value:""}]}});if(e){for(const s of Object.keys(this))e[s]&&(this[s]=e[s]);this.hasMatch=this.matchesKeys.length>0}}descMatches(){const e=[];for(const s in this.matchesValue){const a=this.matchesValue[s];if(this.matchesKeys.includes(s))if(a.type==="obj")e.push(`${s} ${a.relation} ${a.value}`);else if(a.type==="arr"){const o=a.arr.map(t=>`${t.relation} ${t.value}`).join(", ");e.push(`${s} oneof [${o}]`)}else{const o=a.arr.map(t=>`${t.key} ${t.relation} ${t.value}`).join(", ");e.push(`${s} allof [${o}]`)}}return e}descParameters(){const e=[];for(const s in this.parametersValue){const a=this.parametersValue[s];this.parametersKeys.includes(s)&&(a.type==="obj"?e.push(`${s} = ${a.value}`):e.push(...a.arr.map(o=>`${o.key} ${o.relation} ${o.value}`)))}return e}delArrConfig(e,s,a){e[s].arr.splice(a,1)}addArrConfig(e,s,a,o){e[s].arr.splice(a+1,0,{key:"",relation:(o==null?void 0:o.relation)||"",value:""})}parseMatches(e){const s=this.matchesValue;for(const a in e){this.matchesKeys.push(a),this.hasMatch=!0;const o=e[a];if(s[a])if(s[a].type==="obj")for(const t in o)s[a].relation=t,s[a].value=o[t];else if(s[a].type==="arr"){s[a].arr=[];for(const t in o)for(const i of o[t])for(const r in i)s[a].arr.push({key:t,relation:r,value:i[r]})}else{s[a].arr=[];for(const t of o)for(const i in t.value)s[a].arr.push({key:t.key,relation:i,value:t.value[i]})}}}parseParameters(e){const s=this.parametersValue;for(const a in e){const o=e[a];if(this.parametersValue[a])this.parametersKeys.push(a),s[a].relation="=",s[a].value=o;else{const t="other";this.parametersKeys.push(t),s[t].arr=[],s[t].arr.push({key:a,relation:"=",value:o})}}}checkArrConfig(e,s,a,o){for(const t of s){const i=a[t];if(i.type==="obj"){if(i.relation===null||i.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(i.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}if(i.type==="arr")for(const r of i.arr){if(r.relation===null||r.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(r.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}else{let r=1;if(!i.arr)continue;for(const l of i.arr){if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录key为空`),console.log(`${e}: ${t} 下第${r}条记录key为空`),!1;if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录条件为空`),console.log(`${e}: ${t} 下第${r}条记录条件为空`),!1;if(l.value===null)return o.push(`${e}: ${t} 第${r}条记录值为空`),console.log(`${e}: ${t} 第${r}条记录值为空`),!1;r++}}}return!0}}class y{constructor(){n(this,"ruleName");n(this,"scope");n(this,"configVersion");n(this,"key");n(this,"effectTime");n(this,"enabled")}}class g{constructor(){n(this,"basicInfo",new y);n(this,"config",[]);n(this,"errorMsg",[]);n(this,"isAdd",!1)}fromData(e){this.basicInfo=e.basicInfo,this.config=e.config,this.isAdd=e.isAdd}fromApiOutput(e){this.basicInfo.configVerison=e.configVerison||"v3.0",this.basicInfo.scope=e.scope,this.basicInfo.key=e.key,this.basicInfo.enabled=e.enabled||!1,this.config=e.configs.map(s=>{const a=new m({enabled:s.enabled,side:s.side});return a.parseMatches(s.match),a.parseParameters(s.parameters),a})}toApiInput(e=!1){return this.errorMsg=[],{ruleName:this.basicInfo.ruleName==="_tmp"?this.basicInfo.key+".configurators":this.basicInfo.ruleName,scope:this.basicInfo.scope,key:this.basicInfo.key,enabled:this.basicInfo.enabled,configVersion:this.basicInfo.configVerison||"v3.0",configs:this.config.map((a,o)=>{const t={},i={};if(e){if(a.parametersKeys.length===0)throw this.errorMsg.push(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 不能为空`),loading.value=!1,new Error("数据检查失败");if(!(a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.matchType")} 检查失败`,a.matchesKeys,a.matchesValue,this.errorMsg)&&a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 检查失败`,a.parametersKeys,a.parametersValue,this.errorMsg)))throw new Error("数据检查失败")}for(const r of a.matchesKeys){const l=a.matchesValue[r];if(l)if(l.type==="obj")t[r]={[l.relation]:l.value};else if(l.type==="arr")t[r]={oneof:l.arr.map(c=>({[c.relation]:c.value}))};else{t[r]=[];for(const c of l.arr)t[r].push({key:c.key,value:{[c.relation]:c.value}})}}for(const r of a.parametersKeys){const l=a.parametersValue[r];if(l)if(l.type==="obj")i[r]=l.value;else{t[r]={};for(const c of l.arr)i[c.key]=c.value}}return{match:t,parameters:i,enabled:a.enabled,side:a.side}})}}}export{m as C,g as V}; +======== +var h=Object.defineProperty;var p=(f,e,s)=>e in f?h(f,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[e]=s;var n=(f,e,s)=>(p(f,typeof e!="symbol"?e+"":e,s),s);import{i as u}from"./index-JtaswhjV.js";class m{constructor(e){n(this,"enabled",!0);n(this,"hasMatch",!1);n(this,"side","provider");n(this,"matches",[]);n(this,"parameters",[]);n(this,"matchesKeys",[]);n(this,"parametersKeys",[]);n(this,"parametersValue",{retries:{type:"obj",relation:"=",value:""},timeout:{type:"obj",relation:"=",value:""},accesslog:{type:"obj",relation:"=",value:""},weight:{type:"obj",relation:"=",value:""},other:{type:"free",arr:[{key:"",relation:"=",value:""}]}});n(this,"matchesValue",{address:{type:"obj",relation:"",value:""},providerAddress:{type:"obj",relation:"",value:""},service:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},application:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},param:{type:"free",arr:[{key:"",relation:"",value:""}]}});if(e){for(const s of Object.keys(this))e[s]&&(this[s]=e[s]);this.hasMatch=this.matchesKeys.length>0}}descMatches(){const e=[];for(const s in this.matchesValue){const a=this.matchesValue[s];if(this.matchesKeys.includes(s))if(a.type==="obj")e.push(`${s} ${a.relation} ${a.value}`);else if(a.type==="arr"){const o=a.arr.map(t=>`${t.relation} ${t.value}`).join(", ");e.push(`${s} oneof [${o}]`)}else{const o=a.arr.map(t=>`${t.key} ${t.relation} ${t.value}`).join(", ");e.push(`${s} allof [${o}]`)}}return e}descParameters(){const e=[];for(const s in this.parametersValue){const a=this.parametersValue[s];this.parametersKeys.includes(s)&&(a.type==="obj"?e.push(`${s} = ${a.value}`):e.push(...a.arr.map(o=>`${o.key} ${o.relation} ${o.value}`)))}return e}delArrConfig(e,s,a){e[s].arr.splice(a,1)}addArrConfig(e,s,a,o){e[s].arr.splice(a+1,0,{key:"",relation:(o==null?void 0:o.relation)||"",value:""})}parseMatches(e){const s=this.matchesValue;for(const a in e){this.matchesKeys.push(a),this.hasMatch=!0;const o=e[a];if(s[a])if(s[a].type==="obj")for(const t in o)s[a].relation=t,s[a].value=o[t];else if(s[a].type==="arr"){s[a].arr=[];for(const t in o)for(const i of o[t])for(const r in i)s[a].arr.push({key:t,relation:r,value:i[r]})}else{s[a].arr=[];for(const t of o)for(const i in t.value)s[a].arr.push({key:t.key,relation:i,value:t.value[i]})}}}parseParameters(e){const s=this.parametersValue;for(const a in e){const o=e[a];if(this.parametersValue[a])this.parametersKeys.push(a),s[a].relation="=",s[a].value=o;else{const t="other";this.parametersKeys.push(t),s[t].arr=[],s[t].arr.push({key:a,relation:"=",value:o})}}}checkArrConfig(e,s,a,o){for(const t of s){const i=a[t];if(i.type==="obj"){if(i.relation===null||i.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(i.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}if(i.type==="arr")for(const r of i.arr){if(r.relation===null||r.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(r.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}else{let r=1;if(!i.arr)continue;for(const l of i.arr){if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录key为空`),console.log(`${e}: ${t} 下第${r}条记录key为空`),!1;if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录条件为空`),console.log(`${e}: ${t} 下第${r}条记录条件为空`),!1;if(l.value===null)return o.push(`${e}: ${t} 第${r}条记录值为空`),console.log(`${e}: ${t} 第${r}条记录值为空`),!1;r++}}}return!0}}class y{constructor(){n(this,"ruleName");n(this,"scope");n(this,"configVersion");n(this,"key");n(this,"effectTime");n(this,"enabled")}}class g{constructor(){n(this,"basicInfo",new y);n(this,"config",[]);n(this,"errorMsg",[]);n(this,"isAdd",!1)}fromData(e){this.basicInfo=e.basicInfo,this.config=e.config,this.isAdd=e.isAdd}fromApiOutput(e){this.basicInfo.configVerison=e.configVerison||"v3.0",this.basicInfo.scope=e.scope,this.basicInfo.key=e.key,this.basicInfo.enabled=e.enabled||!1,this.config=e.configs.map(s=>{const a=new m({enabled:s.enabled,side:s.side});return a.parseMatches(s.match),a.parseParameters(s.parameters),a})}toApiInput(e=!1){return this.errorMsg=[],{ruleName:this.basicInfo.ruleName==="_tmp"?this.basicInfo.key+".configurators":this.basicInfo.ruleName,scope:this.basicInfo.scope,key:this.basicInfo.key,enabled:this.basicInfo.enabled,configVersion:this.basicInfo.configVerison||"v3.0",configs:this.config.map((a,o)=>{const t={},i={};if(e){if(a.parametersKeys.length===0)throw this.errorMsg.push(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 不能为空`),loading.value=!1,new Error("数据检查失败");if(!(a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.matchType")} 检查失败`,a.matchesKeys,a.matchesValue,this.errorMsg)&&a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 检查失败`,a.parametersKeys,a.parametersValue,this.errorMsg)))throw new Error("数据检查失败")}for(const r of a.matchesKeys){const l=a.matchesValue[r];if(l)if(l.type==="obj")t[r]={[l.relation]:l.value};else if(l.type==="arr")t[r]={oneof:l.arr.map(c=>({[c.relation]:c.value}))};else{t[r]=[];for(const c of l.arr)t[r].push({key:c.key,value:{[c.relation]:c.value}})}}for(const r of a.parametersKeys){const l=a.parametersValue[r];if(l)if(l.type==="obj")i[r]=l.value;else{t[r]={};for(const c of l.arr)i[c.key]=c.value}}return{match:t,parameters:i,enabled:a.enabled,side:a.side}})}}}export{m as C,g as V}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/ConfigModel-t29mQMqm.js diff --git a/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js b/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js index af2adc252..ca34fe479 100644 --- a/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js +++ b/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js import{d as F,l as J,B as V,a as M,c as k,b as n,w as t,e as r,o as l,j as C,n as e,I as h,f as _,t as u,L as O,M as U,J as m,T as b,aa as q,m as w,p as A,h as G,_ as H}from"./index-rt1yTeew.js";const Q=d=>(A("data-v-4c314c51"),d=d(),G(),d),W={class:"__container_common_config"},X={class:"title"},Y=Q(()=>C("div",{class:"bg"},null,-1)),Z={class:"truncate-text"},ee={key:0,style:{float:"right"}},te=F({__name:"ConfigPage",props:{options:{}},setup(d){let y=d,s=J(()=>y.options.list[y.options.current[0]]),x=V(null),g=V(!1),I=M();async function z(){g.value=!0,await x.value.validate().catch(c=>{w.error("submit failed [form check]: "+c),g.value=!1});let a=y.options.list[y.options.current[0]];await a.submit(a.form).catch(c=>{w.error("submit failed [server error]: "+c)}),g.value=!1,w.success("submit success")}function K(){s.value.reset(s.value.form)}return(a,c)=>{const L=r("a-tooltip"),P=r("a-menu-item"),R=r("a-menu"),$=r("a-card"),B=r("a-col"),v=r("a-button"),T=r("a-form"),j=r("a-form-item"),D=r("a-spin"),E=r("a-row");return l(),k("div",W,[n(E,{gutter:20},{default:t(()=>[n(B,{span:6},{default:t(()=>[n($,{class:"__opt"},{title:t(()=>[C("div",X,[Y,n(e(h),{class:"title-icon",icon:"icon-park-twotone:application-one"}),n(L,{placement:"topLeft"},{title:t(()=>{var o;return[_(u((o=e(I).params)==null?void 0:o.pathId),1)]}),default:t(()=>{var o;return[C("span",Z,u((o=e(I).params)==null?void 0:o.pathId),1)]}),_:1})])]),default:t(()=>[n(R,{selectedKeys:a.options.current,"onUpdate:selectedKeys":c[0]||(c[0]=o=>a.options.current=o)},{default:t(()=>[(l(!0),k(O,null,U(a.options.list,(o,i)=>(l(),m(P,{key:i},{default:t(()=>[i===a.options.current[0]?(l(),m(e(h),{key:0,style:{"margin-bottom":"-5px","font-size":"20px"},icon:"material-symbols:settings-b-roll-rounded"})):(l(),m(e(h),{key:1,style:{"margin-bottom":"-5px","font-size":"20px",color:"grey"},icon:"material-symbols:settings-b-roll-outline-rounded"})),_(" "+u(a.$t(o.title)),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys"])]),_:1})]),_:1}),n(B,{span:18},{default:t(()=>[n($,null,{title:t(()=>{var o;return[_(u(a.$t(e(s).title))+" ",1),(o=e(s))!=null&&o.ext?(l(),k("div",ee,[n(v,{type:"primary",onClick:c[1]||(c[1]=i=>{var p,f,S,N;return(N=(p=e(s))==null?void 0:p.ext)==null?void 0:N.fun((S=(f=e(s))==null?void 0:f.form)==null?void 0:S.rules)})},{default:t(()=>{var i,p;return[_(u((p=(i=e(s))==null?void 0:i.ext)==null?void 0:p.title),1)]}),_:1})])):b("",!0)]}),default:t(()=>[n(D,{spinning:e(g)},{default:t(()=>{var o,i;return[(l(),m(T,{style:{overflow:"auto","max-height":"calc(100vh - 450px)"},ref_key:"__config_form",ref:x,key:a.options.current,"wrapper-col":{span:14},model:e(s).form,"label-col":{style:{width:"100px"}},layout:"horizontal"},{default:t(()=>[q(a.$slots,"form_"+e(s).key,{current:e(s)},void 0,!0)]),_:3},8,["model"])),(o=e(s))!=null&&o.submit||(i=e(s))!=null&&i.reset?(l(),m(j,{key:0,style:{margin:"20px 0 0 100px"}},{default:t(()=>{var p,f;return[(p=e(s))!=null&&p.submit?(l(),m(v,{key:0,type:"primary",onClick:z},{default:t(()=>[_(u(a.$t("submit")),1)]),_:1})):b("",!0),(f=e(s))!=null&&f.reset?(l(),m(v,{key:1,style:{"margin-left":"10px"},onClick:K},{default:t(()=>[_(u(a.$t("reset")),1)]),_:1})):b("",!0)]}),_:1})):b("",!0)]}),_:3},8,["spinning"])]),_:3})]),_:3})]),_:3})])}}}),se=H(te,[["__scopeId","data-v-4c314c51"]]);export{se as C}; +======== +import{d as F,l as J,B as V,a as M,c as k,b as a,w as t,e as r,o as l,j as C,n as e,I as h,f as _,t as u,L as O,M as U,J as m,T as b,a9 as q,m as w,p as A,h as G,_ as H}from"./index-JtaswhjV.js";const Q=d=>(A("data-v-4c314c51"),d=d(),G(),d),W={class:"__container_common_config"},X={class:"title"},Y=Q(()=>C("div",{class:"bg"},null,-1)),Z={class:"truncate-text"},ee={key:0,style:{float:"right"}},te=F({__name:"ConfigPage",props:{options:{}},setup(d){let y=d,s=J(()=>y.options.list[y.options.current[0]]),x=V(null),g=V(!1),I=M();async function z(){g.value=!0,await x.value.validate().catch(c=>{w.error("submit failed [form check]: "+c),g.value=!1});let n=y.options.list[y.options.current[0]];await n.submit(n.form).catch(c=>{w.error("submit failed [server error]: "+c)}),g.value=!1,w.success("submit success")}function K(){s.value.reset(s.value.form)}return(n,c)=>{const L=r("a-tooltip"),P=r("a-menu-item"),R=r("a-menu"),$=r("a-card"),B=r("a-col"),v=r("a-button"),T=r("a-form"),j=r("a-form-item"),D=r("a-spin"),E=r("a-row");return l(),k("div",W,[a(E,{gutter:20},{default:t(()=>[a(B,{span:6},{default:t(()=>[a($,{class:"__opt"},{title:t(()=>[C("div",X,[Y,a(e(h),{class:"title-icon",icon:"icon-park-twotone:application-one"}),a(L,{placement:"topLeft"},{title:t(()=>{var o;return[_(u((o=e(I).params)==null?void 0:o.pathId),1)]}),default:t(()=>{var o;return[C("span",Z,u((o=e(I).params)==null?void 0:o.pathId),1)]}),_:1})])]),default:t(()=>[a(R,{selectedKeys:n.options.current,"onUpdate:selectedKeys":c[0]||(c[0]=o=>n.options.current=o)},{default:t(()=>[(l(!0),k(O,null,U(n.options.list,(o,i)=>(l(),m(P,{key:i},{default:t(()=>[i===n.options.current[0]?(l(),m(e(h),{key:0,style:{"margin-bottom":"-5px","font-size":"20px"},icon:"material-symbols:settings-b-roll-rounded"})):(l(),m(e(h),{key:1,style:{"margin-bottom":"-5px","font-size":"20px",color:"grey"},icon:"material-symbols:settings-b-roll-outline-rounded"})),_(" "+u(n.$t(o.title)),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys"])]),_:1})]),_:1}),a(B,{span:18},{default:t(()=>[a($,null,{title:t(()=>{var o;return[_(u(n.$t(e(s).title))+" ",1),(o=e(s))!=null&&o.ext?(l(),k("div",ee,[a(v,{type:"primary",onClick:c[1]||(c[1]=i=>{var p,f,S,N;return(N=(p=e(s))==null?void 0:p.ext)==null?void 0:N.fun((S=(f=e(s))==null?void 0:f.form)==null?void 0:S.rules)})},{default:t(()=>{var i,p;return[_(u((p=(i=e(s))==null?void 0:i.ext)==null?void 0:p.title),1)]}),_:1})])):b("",!0)]}),default:t(()=>[a(D,{spinning:e(g)},{default:t(()=>{var o,i;return[(l(),m(T,{style:{overflow:"auto","max-height":"calc(100vh - 450px)"},ref_key:"__config_form",ref:x,key:n.options.current,"wrapper-col":{span:14},model:e(s).form,"label-col":{style:{width:"100px"}},layout:"horizontal"},{default:t(()=>[q(n.$slots,"form_"+e(s).key,{current:e(s)},void 0,!0)]),_:3},8,["model"])),(o=e(s))!=null&&o.submit||(i=e(s))!=null&&i.reset?(l(),m(j,{key:0,style:{margin:"20px 0 0 100px"}},{default:t(()=>{var p,f;return[(p=e(s))!=null&&p.submit?(l(),m(v,{key:0,type:"primary",onClick:z},{default:t(()=>[_(u(n.$t("submit")),1)]),_:1})):b("",!0),(f=e(s))!=null&&f.reset?(l(),m(v,{key:1,style:{"margin-left":"10px"},onClick:K},{default:t(()=>[_(u(n.$t("reset")),1)]),_:1})):b("",!0)]}),_:1})):b("",!0)]}),_:3},8,["spinning"])]),_:3})]),_:3})]),_:3})])}}}),se=H(te,[["__scopeId","data-v-4c314c51"]]);export{se as C}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/ConfigPage-bt_br5PT.js diff --git a/app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js b/app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js new file mode 100644 index 000000000..b5e1fc829 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js @@ -0,0 +1 @@ +import{ac as t}from"./index-JtaswhjV.js";const m=r=>r&&t(r).format("YYYY-MM-DD HH:mm:ss");export{m as f}; diff --git a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js b/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js new file mode 100644 index 000000000..70da7d31d --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js @@ -0,0 +1 @@ +import{d as m,y as l,z as _,B as d,a as f,D as u,e as p,o as r,c as s,b as h,w as y,j as g,n,T as v,_ as I}from"./index-JtaswhjV.js";const w={class:"__container_tabDemo3"},b={class:"__container_iframe_container"},q=["src"],D=m({__name:"GrafanaPage",setup(S){const a=l(_.GRAFANA);d(""),f(),u(async()=>{var t;let e=await a.api({});a.url=`${(t=e.data)==null?void 0:t.baseURL}?var-${a.type}=${a.name}&kiosk=1&theme=light`,a.showIframe=!0});function o(e){try{e()}catch(t){console.log(t)}}function c(){console.log("The iframe has been loaded."),setTimeout(()=>{try{let e=document.querySelector("#grafanaIframe").contentDocument;o(()=>{e.querySelector("header").remove()}),o(()=>{e.querySelector("[data-testid*='controls']").remove()}),setTimeout(()=>{o(()=>{e.querySelector("[data-testid*='navigation mega-menu']").remove()}),o(()=>{for(let t of e.querySelectorAll("[data-testid*='Panel menu']"))t.remove()})},2e3)}catch{}a.showIframe=!0},1e3)}return(e,t)=>{const i=p("a-spin");return r(),s("div",w,[h(i,{class:"spin",spinning:!n(a).showIframe},{default:y(()=>[g("div",b,[n(a).showIframe?(r(),s("iframe",{key:0,onload:c,id:"grafanaIframe",style:{"padding-top":"60px"},src:n(a).url,frameborder:"0"},null,8,q)):v("",!0)])]),_:1},8,["spinning"])])}}}),x=I(D,[["__scopeId","data-v-b1f28c38"]]);export{x as G}; diff --git a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css b/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css index 7a0fa4fbb..7d298c006 100644 --- a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css +++ b/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css .__container_iframe_container[data-v-64faf1f0]{z-index:1;position:relative;width:calc(100vw - 332px);height:calc(100vh - 200px);clip-path:inset(0px 0px)}.__container_iframe_container #grafanaIframe[data-v-64faf1f0]{z-index:0;top:-112px;position:absolute;width:calc(100vw - 332px);height:calc(100vh - 200px)} +======== +.__container_iframe_container[data-v-b1f28c38]{z-index:1;position:relative;width:calc(100vw - 332px);height:calc(100vh - 200px);clip-path:inset(0px 0px)}.__container_iframe_container #grafanaIframe[data-v-b1f28c38]{z-index:0;top:-112px;position:absolute;width:calc(100vw - 332px);height:calc(100vh - 200px)} +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/GrafanaPage-kjWXhr_m.css diff --git a/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js b/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js index 2d7261e4c..7567a68ea 100644 --- a/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js +++ b/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js import{l as h,m as v}from"./globalSearch-_m3MXXfo.js";import{d as b,r as y,u as S,a as D,c as k,b as e,w as t,e as n,o as C,f as I,t as q,g as B,m as N,i as V,p as $,h as x,j as F,_ as L}from"./index-rt1yTeew.js";import{u as R}from"./request-vlI2kaaR.js";const U=l=>($("data-v-4610376f"),l=l(),x(),l),j={class:"background"},z=U(()=>F("div",null,"用户登录",-1)),A=b({__name:"Login",setup(l){const a=y({username:"",password:""}),c=S(),p=D().query.redirect||"/",i=R();function _(){let s=new FormData;s.append("user",a.username),s.append("password",a.password),h(s).then(async()=>{var r;B(!0,a.username);const{data:o}=await v();(!i.mesh||!o.some(u=>u.id===i.mesh))&&(i.mesh=(r=o[0])==null?void 0:r.id),c.replace(p)}).catch(o=>{N.error(V.global.t("loginDomain.authFail"))})}return(s,o)=>{const r=n("a-row"),u=n("a-input"),m=n("a-form-item"),f=n("a-button"),g=n("a-form"),w=n("a-card");return C(),k("div",j,[e(w,{class:"login"},{default:t(()=>[e(r,{class:"title"},{default:t(()=>[z]),_:1}),e(r,null,{default:t(()=>[e(g,{layout:"vertical",model:a,ref:"login-form-ref"},{default:t(()=>[e(m,{class:"item",label:s.$t("loginDomain.username"),name:"username",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"",value:a.username,"onUpdate:value":o[0]||(o[0]=d=>a.username=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:s.$t("loginDomain.password"),name:"password",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"password",value:a.password,"onUpdate:value":o[1]||(o[1]=d=>a.password=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:""},{default:t(()=>[e(f,{onClick:_,size:"large",type:"primary",class:"login-btn"},{default:t(()=>[I(q(s.$t("loginDomain.login")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})])}}}),G=L(A,[["__scopeId","data-v-4610376f"]]);export{G as default}; +======== +import{l as h,m as v}from"./globalSearch-tZ8VrkZD.js";import{d as b,r as y,u as S,a as D,c as k,b as e,w as t,e as n,o as C,f as I,t as q,g as B,m as N,i as V,p as $,h as x,j as F,_ as L}from"./index-JtaswhjV.js";import{u as R}from"./request--dYXBGM5.js";const U=l=>($("data-v-4610376f"),l=l(),x(),l),j={class:"background"},z=U(()=>F("div",null,"用户登录",-1)),A=b({__name:"Login",setup(l){const a=y({username:"",password:""}),c=S(),p=D().query.redirect||"/",i=R();function _(){let s=new FormData;s.append("user",a.username),s.append("password",a.password),h(s).then(async()=>{var r;B(!0,a.username);const{data:o}=await v();(!i.mesh||!o.some(u=>u.id===i.mesh))&&(i.mesh=(r=o[0])==null?void 0:r.id),c.replace(p)}).catch(o=>{N.error(V.global.t("loginDomain.authFail"))})}return(s,o)=>{const r=n("a-row"),u=n("a-input"),m=n("a-form-item"),f=n("a-button"),g=n("a-form"),w=n("a-card");return C(),k("div",j,[e(w,{class:"login"},{default:t(()=>[e(r,{class:"title"},{default:t(()=>[z]),_:1}),e(r,null,{default:t(()=>[e(g,{layout:"vertical",model:a,ref:"login-form-ref"},{default:t(()=>[e(m,{class:"item",label:s.$t("loginDomain.username"),name:"username",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"",value:a.username,"onUpdate:value":o[0]||(o[0]=d=>a.username=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:s.$t("loginDomain.password"),name:"password",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"password",value:a.password,"onUpdate:value":o[1]||(o[1]=d=>a.password=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:""},{default:t(()=>[e(f,{onClick:_,size:"large",type:"primary",class:"login-btn"},{default:t(()=>[I(q(s.$t("loginDomain.login")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})])}}}),G=L(A,[["__scopeId","data-v-4610376f"]]);export{G as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/Login-y1uh0mPf.js diff --git a/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js b/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js index b418ed595..9a3fb4152 100644 --- a/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js +++ b/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js import{r as u}from"./request-vlI2kaaR.js";import{r as i,a4 as l}from"./index-rt1yTeew.js";const f=async t=>u({url:"promQL/query",method:"get",params:t});async function q(t){var e,n;try{const r=(n=(e=await f({query:t}))==null?void 0:e.data)==null?void 0:n.result[0];return r!=null&&r.value&&r.value.length>0?Number(r.value[1]):"NA"}catch(r){console.error("fetch from prom error: ",r)}return"NA"}function p(t,e,n){var s;const r=i(t);for(const a of e){const o=(s=t==null?void 0:t.data)==null?void 0:s.list;for(const c of o)c[a]="skeleton-loading"}return l(async()=>{var a;try{const o=((a=r==null?void 0:r.data)==null?void 0:a.list)||[];for(const c of o)n(c)}catch(o){console.error(o)}}),r}export{p,q}; +======== +import{r as u}from"./request--dYXBGM5.js";import{r as i,a4 as l}from"./index-JtaswhjV.js";const f=async t=>u({url:"promQL/query",method:"get",params:t});async function q(t){var e,n;try{const r=(n=(e=await f({query:t}))==null?void 0:e.data)==null?void 0:n.result[0];return r!=null&&r.value&&r.value.length>0?Number(r.value[1]):"NA"}catch(r){console.error("fetch from prom error: ",r)}return"NA"}function p(t,e,n){var s;const r=i(t);for(const a of e){const o=(s=t==null?void 0:t.data)==null?void 0:s.list;for(const c of o)c[a]="skeleton-loading"}return l(async()=>{var a;try{const o=((a=r==null?void 0:r.data)==null?void 0:a.list)||[];for(const c of o)n(c)}catch(o){console.error(o)}}),r}export{p,q}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/PromQueryUtil-xm9pTL4M.js diff --git a/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js b/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js index 99d48e1b8..a1e03dec7 100644 --- a/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js +++ b/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js var G=Object.defineProperty;var Q=(m,o,u)=>o in m?G(m,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[o]=u;var _=(m,o,u)=>(Q(m,typeof o!="symbol"?o+"":o,u),u);import{d as W,v as Z,r as A,k as q,y as ee,z as te,l as I,c as p,j as g,b as i,w as n,n as s,e as c,P as ae,o as r,K as oe,L as b,M as C,J as y,f as P,t as S,ah as N,I as $,aa as U,$ as se,a1 as le,ai as ne,T as re,m as ie,_ as ce}from"./index-rt1yTeew.js";const ue={class:"__container_search_table"},de={class:"search-query-container"},_e={class:"custom-column button"},pe={class:"dropdown"},me={class:"body"},he=["onClick"],fe={class:"search-table-container"},ge={key:0},ye={key:1},be=W({__name:"SearchTable",setup(m){Z(a=>({"3d09cf76":s(ae)}));const o=A({customColumns:!1}),{appContext:{config:{globalProperties:u}}}=q(),e=ee(te.SEARCH_DOMAIN);e.table.columns.forEach(a=>{if(a.title){const d=a.title;a.title=I(()=>u.$t(d))}});const h=I(()=>e.noPaged?!1:{pageSize:e.paged.pageSize,current:e.paged.curPage,total:e.paged.total,showTotal:a=>u.$t("searchDomain.total")+": "+a+" "+u.$t("searchDomain.unit")}),f=(a,d,v)=>{e.paged.pageSize=a.pageSize,e.paged.curPage=a.current,e.onSearch()};function k(a){let d=e==null?void 0:e.table.columns.filter(v=>!v.__hide);if(!a.__hide&&d.length<=1){ie.warn("must show at least one column");return}a.__hide=!a.__hide}return(a,d)=>{var O,E,V,D;const v=c("a-radio-button"),R=c("a-radio-group"),B=c("a-select-option"),K=c("a-select"),M=c("a-input"),T=c("a-form-item"),j=c("a-button"),F=c("a-flex"),L=c("a-form"),x=c("a-col"),Y=c("a-card"),J=c("a-row"),H=c("a-skeleton-button"),X=c("a-table");return r(),p("div",ue,[g("div",de,[i(J,null,{default:n(()=>[i(x,{span:18},{default:n(()=>[i(L,{onKeyup:d[1]||(d[1]=oe(t=>s(e).onSearch(),["enter"]))},{default:n(()=>[i(F,{wrap:"wrap",gap:"large"},{default:n(()=>[(r(!0),p(b,null,C(s(e).params,t=>(r(),y(T,{label:a.$t(t.label)},{default:n(()=>[t.dict&&t.dict.length>0?(r(),p(b,{key:0},[t.dictType==="BUTTON"?(r(),y(R,{key:0,"button-style":"solid",value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C(t.dict,l=>(r(),y(v,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):(r(),y(K,{key:1,class:"select-type",style:N(t.style),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C([...t.dict,{label:"none",value:""}],l=>(r(),y(B,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["style","value","onUpdate:value"]))],64)):(r(),y(M,{key:1,style:N(t.style),placeholder:a.$t("placeholder."+(t.placeholder||"typeDefault")),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},null,8,["style","placeholder","value","onUpdate:value"]))]),_:2},1032,["label"]))),256)),i(T,{label:""},{default:n(()=>[i(j,{type:"primary",onClick:d[0]||(d[0]=t=>s(e).onSearch())},{default:n(()=>[i(s($),{style:{"margin-bottom":"-2px","font-size":"1.3rem"},icon:"ic:outline-manage-search"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{span:6},{default:n(()=>[i(F,{style:{"justify-content":"flex-end"}},{default:n(()=>[U(a.$slots,"customOperation",{},void 0,!0),g("div",{class:"common-tool",onClick:d[2]||(d[2]=t=>o.customColumns=!o.customColumns)},[g("div",_e,[i(s($),{icon:"material-symbols-light:format-list-bulleted-rounded"})]),se(g("div",pe,[i(Y,{style:{"max-width":"300px"},title:"Custom Column"},{default:n(()=>{var t;return[g("div",me,[(r(!0),p(b,null,C((t=s(e))==null?void 0:t.table.columns,(l,w)=>(r(),p("div",{class:"item",onClick:ne(z=>k(l),["stop"])},[i(s($),{style:{"margin-bottom":"-4px","font-size":"1rem","margin-right":"2px"},icon:l.__hide?"zondicons:view-hide":"zondicons:view-show"},null,8,["icon"]),P(" "+S(l.title),1)],8,he))),256))])]}),_:1})],512),[[le,o.customColumns]])])]),_:3})]),_:3})]),_:3})]),g("div",fe,[i(X,{loading:s(e).table.loading,pagination:h.value,scroll:{scrollToFirstRowOnChange:!0,y:((O=s(e).tableStyle)==null?void 0:O.scrollY)||"",x:((E=s(e).tableStyle)==null?void 0:E.scrollX)||""},columns:(V=s(e))==null?void 0:V.table.columns.filter(t=>!t.__hide),"data-source":(D=s(e))==null?void 0:D.result,onChange:f},{bodyCell:n(({text:t,record:l,index:w,column:z})=>[z.key==="idx"?(r(),p("span",ge,S(w+1),1)):re("",!0),t==="skeleton-loading"?(r(),p("span",ye,[i(H,{active:"",size:"small"})])):U(a.$slots,"bodyCell",{key:2,text:t,record:l,index:w,column:z},void 0,!0)]),_:3},8,["loading","pagination","scroll","columns","data-source"])])])}}}),Se=ce(be,[["__scopeId","data-v-e2b01919"]]);class ke{constructor(o,u,e,h,f,k){_(this,"noPaged");_(this,"queryForm");_(this,"params");_(this,"searchApi");_(this,"result");_(this,"handleResult");_(this,"tableStyle");_(this,"table",{columns:[]});_(this,"paged",{curPage:1,pageOffset:"0",total:0,pageSize:10});this.params=o,this.noPaged=f,this.queryForm=A({}),this.table.columns=e,o.forEach(a=>{a.defaultValue&&(this.queryForm[a.param]=a.defaultValue)}),h&&(this.paged={...this.paged,...h}),this.searchApi=u,this.handleResult=k}async onSearch(o){o&&(this.handleResult=o),this.table.loading=!0,setTimeout(()=>{this.table.loading=!1},1e4);const u={...this.queryForm,...this.noPaged?{}:{pageSize:this.paged.pageSize,pageOffset:(this.paged.curPage-1)*this.paged.pageSize}};this.searchApi(u).then(e=>{const{data:{list:h=[],pageInfo:f}}=e||{};this.result=o?o(h):h,this.noPaged||(this.paged.total=(f==null?void 0:f.total)||0)}).catch(e=>{console.error("Error fetching data:",e)}).finally(()=>{this.table.loading=!1})}}export{ke as S,Se as a}; +======== +var G=Object.defineProperty;var Q=(m,o,u)=>o in m?G(m,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[o]=u;var _=(m,o,u)=>(Q(m,typeof o!="symbol"?o+"":o,u),u);import{d as W,v as Z,r as A,k as q,y as ee,z as te,l as I,c as p,j as g,b as i,w as n,n as s,e as c,P as ae,o as r,K as oe,L as b,M as C,J as y,f as P,t as S,af as N,I as $,a9 as U,$ as se,a1 as le,ag as ne,T as re,m as ie,_ as ce}from"./index-JtaswhjV.js";const ue={class:"__container_search_table"},de={class:"search-query-container"},_e={class:"custom-column button"},pe={class:"dropdown"},me={class:"body"},he=["onClick"],fe={class:"search-table-container"},ge={key:0},ye={key:1},be=W({__name:"SearchTable",setup(m){Z(a=>({"3d09cf76":s(ae)}));const o=A({customColumns:!1}),{appContext:{config:{globalProperties:u}}}=q(),e=ee(te.SEARCH_DOMAIN);e.table.columns.forEach(a=>{if(a.title){const d=a.title;a.title=I(()=>u.$t(d))}});const h=I(()=>e.noPaged?!1:{pageSize:e.paged.pageSize,current:e.paged.curPage,total:e.paged.total,showTotal:a=>u.$t("searchDomain.total")+": "+a+" "+u.$t("searchDomain.unit")}),f=(a,d,v)=>{e.paged.pageSize=a.pageSize,e.paged.curPage=a.current,e.onSearch()};function k(a){let d=e==null?void 0:e.table.columns.filter(v=>!v.__hide);if(!a.__hide&&d.length<=1){ie.warn("must show at least one column");return}a.__hide=!a.__hide}return(a,d)=>{var O,E,V,D;const v=c("a-radio-button"),R=c("a-radio-group"),B=c("a-select-option"),K=c("a-select"),M=c("a-input"),T=c("a-form-item"),j=c("a-button"),F=c("a-flex"),L=c("a-form"),x=c("a-col"),Y=c("a-card"),J=c("a-row"),H=c("a-skeleton-button"),X=c("a-table");return r(),p("div",ue,[g("div",de,[i(J,null,{default:n(()=>[i(x,{span:18},{default:n(()=>[i(L,{onKeyup:d[1]||(d[1]=oe(t=>s(e).onSearch(),["enter"]))},{default:n(()=>[i(F,{wrap:"wrap",gap:"large"},{default:n(()=>[(r(!0),p(b,null,C(s(e).params,t=>(r(),y(T,{label:a.$t(t.label)},{default:n(()=>[t.dict&&t.dict.length>0?(r(),p(b,{key:0},[t.dictType==="BUTTON"?(r(),y(R,{key:0,"button-style":"solid",value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C(t.dict,l=>(r(),y(v,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):(r(),y(K,{key:1,class:"select-type",style:N(t.style),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C([...t.dict,{label:"none",value:""}],l=>(r(),y(B,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["style","value","onUpdate:value"]))],64)):(r(),y(M,{key:1,style:N(t.style),placeholder:a.$t("placeholder."+(t.placeholder||"typeDefault")),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},null,8,["style","placeholder","value","onUpdate:value"]))]),_:2},1032,["label"]))),256)),i(T,{label:""},{default:n(()=>[i(j,{type:"primary",onClick:d[0]||(d[0]=t=>s(e).onSearch())},{default:n(()=>[i(s($),{style:{"margin-bottom":"-2px","font-size":"1.3rem"},icon:"ic:outline-manage-search"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{span:6},{default:n(()=>[i(F,{style:{"justify-content":"flex-end"}},{default:n(()=>[U(a.$slots,"customOperation",{},void 0,!0),g("div",{class:"common-tool",onClick:d[2]||(d[2]=t=>o.customColumns=!o.customColumns)},[g("div",_e,[i(s($),{icon:"material-symbols-light:format-list-bulleted-rounded"})]),se(g("div",pe,[i(Y,{style:{"max-width":"300px"},title:"Custom Column"},{default:n(()=>{var t;return[g("div",me,[(r(!0),p(b,null,C((t=s(e))==null?void 0:t.table.columns,(l,w)=>(r(),p("div",{class:"item",onClick:ne(z=>k(l),["stop"])},[i(s($),{style:{"margin-bottom":"-4px","font-size":"1rem","margin-right":"2px"},icon:l.__hide?"zondicons:view-hide":"zondicons:view-show"},null,8,["icon"]),P(" "+S(l.title),1)],8,he))),256))])]}),_:1})],512),[[le,o.customColumns]])])]),_:3})]),_:3})]),_:3})]),g("div",fe,[i(X,{loading:s(e).table.loading,pagination:h.value,scroll:{scrollToFirstRowOnChange:!0,y:((O=s(e).tableStyle)==null?void 0:O.scrollY)||"",x:((E=s(e).tableStyle)==null?void 0:E.scrollX)||""},columns:(V=s(e))==null?void 0:V.table.columns.filter(t=>!t.__hide),"data-source":(D=s(e))==null?void 0:D.result,onChange:f},{bodyCell:n(({text:t,record:l,index:w,column:z})=>[z.key==="idx"?(r(),p("span",ge,S(w+1),1)):re("",!0),t==="skeleton-loading"?(r(),p("span",ye,[i(H,{active:"",size:"small"})])):U(a.$slots,"bodyCell",{key:2,text:t,record:l,index:w,column:z},void 0,!0)]),_:3},8,["loading","pagination","scroll","columns","data-source"])])])}}}),Se=ce(be,[["__scopeId","data-v-e2b01919"]]);class ke{constructor(o,u,e,h,f,k){_(this,"noPaged");_(this,"queryForm");_(this,"params");_(this,"searchApi");_(this,"result");_(this,"handleResult");_(this,"tableStyle");_(this,"table",{columns:[]});_(this,"paged",{curPage:1,pageOffset:"0",total:0,pageSize:10});this.params=o,this.noPaged=f,this.queryForm=A({}),this.table.columns=e,o.forEach(a=>{a.defaultValue&&(this.queryForm[a.param]=a.defaultValue)}),h&&(this.paged={...this.paged,...h}),this.searchApi=u,this.handleResult=k}async onSearch(o){o&&(this.handleResult=o),this.table.loading=!0,setTimeout(()=>{this.table.loading=!1},1e4);const u={...this.queryForm,...this.noPaged?{}:{pageSize:this.paged.pageSize,pageOffset:(this.paged.curPage-1)*this.paged.pageSize}};this.searchApi(u).then(e=>{const{data:{list:h=[],pageInfo:f}}=e||{};this.result=o?o(h):h,this.noPaged||(this.paged.total=(f==null?void 0:f.total)||0)}).catch(e=>{console.error("Error fetching data:",e)}).finally(()=>{this.table.loading=!1})}}export{ke as S,Se as a}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/SearchUtil-euy68KhE.js diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js b/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js index f447535a1..1fe921d58 100644 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js +++ b/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js import{y as k,_ as w}from"./js-yaml-A63HP8_m.js";import{e as T}from"./traffic-nmA_BhEL.js";import{d as B,a as b,B as s,D as C,J as y,w as e,e as n,o as u,b as a,j as _,c as A,M as I,f as v,L,T as M,p as N,h as D,_ as R}from"./index-rt1yTeew.js";import{H as Y}from"./request-vlI2kaaR.js";const x=o=>(N("data-v-cdabac6c"),o=o(),D(),o),j={class:"editorBox"},E=x(()=>_("p",null,"修改时间: 2024/3/20 15:20:31",-1)),H=x(()=>_("p",null,"版本号: xo842xqpx834",-1)),P=B({__name:"YAMLView",setup(o){const h=b(),g=s(!0),l=s(!1),p=s(8),i=s(`configVersion: v3.0 +======== +import{y as k,_ as w}from"./js-yaml-F_PXjql-.js";import{e as T}from"./traffic-BsDR0F4K.js";import{d as B,a as b,B as s,D as C,J as y,w as e,e as n,o as u,b as a,j as _,c as A,M as I,f as v,L,T as M,p as N,h as D,_ as R}from"./index-JtaswhjV.js";import{H as Y}from"./request--dYXBGM5.js";const x=o=>(N("data-v-cdabac6c"),o=o(),D(),o),j={class:"editorBox"},E=x(()=>_("p",null,"修改时间: 2024/3/20 15:20:31",-1)),H=x(()=>_("p",null,"版本号: xo842xqpx834",-1)),P=B({__name:"YAMLView",setup(o){const h=b(),g=s(!0),l=s(!1),p=s(8),i=s(`configVersion: v3.0 +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/YAMLView-ket2Aor6.js force: true enabled: true key: shop-detail diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js b/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js index 71f94a230..c20a35555 100644 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js +++ b/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js import{y as S,_ as w}from"./js-yaml-A63HP8_m.js";import{g as B}from"./traffic-nmA_BhEL.js";import{d as C,a as k,B as s,D as T,J as x,w as e,e as n,o as p,b as a,j as i,c as A,M as I,f as y,L,T as M,p as N,h as R,_ as D}from"./index-rt1yTeew.js";import{H as U}from"./request-vlI2kaaR.js";const h=l=>(N("data-v-b4beb481"),l=l(),R(),l),Y={class:"editorBox"},j=h(()=>i("p",null,"修改时间: 2024/3/20 15:20:31",-1)),E=h(()=>i("p",null,"版本号: xo842xqpx834",-1)),H=C({__name:"YAMLView",setup(l){const g=k(),V=s(!0),d=s(!1),m=s(8),u=s("");async function b(){var o;let t=await B((o=g.params)==null?void 0:o.ruleName);(t==null?void 0:t.code)===U.SUCCESS&&t.data&&(u.value=S.dump(t==null?void 0:t.data))}return T(()=>{b()}),(t,o)=>{const c=n("a-flex"),f=n("a-col"),v=n("a-button"),r=n("a-card");return p(),x(r,null,{default:e(()=>[a(c,{style:{width:"100%"}},{default:e(()=>[a(f,{span:d.value?24-m.value:24,class:"left"},{default:e(()=>[a(c,{vertical:"",align:"end"},{default:e(()=>[i("div",Y,[a(w,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=_=>u.value=_),theme:"vs-dark",height:500,language:"yaml",readonly:V.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(f,{span:d.value?m.value:0,class:"right"},{default:e(()=>[d.value?(p(),x(r,{key:0,class:"sliderBox"},{default:e(()=>[(p(),A(L,null,I(2,_=>a(r,{key:_},{default:e(()=>[j,E,a(c,{justify:"flex-end"},{default:e(()=>[a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("查看")]),_:1}),a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):M("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),O=D(H,[["__scopeId","data-v-b4beb481"]]);export{O as default}; +======== +import{y as S,_ as w}from"./js-yaml-F_PXjql-.js";import{g as B}from"./traffic-BsDR0F4K.js";import{d as C,a as k,B as s,D as T,J as x,w as e,e as n,o as p,b as a,j as i,c as A,M as I,f as y,L,T as M,p as N,h as R,_ as D}from"./index-JtaswhjV.js";import{H as U}from"./request--dYXBGM5.js";const h=l=>(N("data-v-b4beb481"),l=l(),R(),l),Y={class:"editorBox"},j=h(()=>i("p",null,"修改时间: 2024/3/20 15:20:31",-1)),E=h(()=>i("p",null,"版本号: xo842xqpx834",-1)),H=C({__name:"YAMLView",setup(l){const g=k(),V=s(!0),d=s(!1),m=s(8),u=s("");async function b(){var o;let t=await B((o=g.params)==null?void 0:o.ruleName);(t==null?void 0:t.code)===U.SUCCESS&&t.data&&(u.value=S.dump(t==null?void 0:t.data))}return T(()=>{b()}),(t,o)=>{const c=n("a-flex"),f=n("a-col"),v=n("a-button"),r=n("a-card");return p(),x(r,null,{default:e(()=>[a(c,{style:{width:"100%"}},{default:e(()=>[a(f,{span:d.value?24-m.value:24,class:"left"},{default:e(()=>[a(c,{vertical:"",align:"end"},{default:e(()=>[i("div",Y,[a(w,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=_=>u.value=_),theme:"vs-dark",height:500,language:"yaml",readonly:V.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(f,{span:d.value?m.value:0,class:"right"},{default:e(()=>[d.value?(p(),x(r,{key:0,class:"sliderBox"},{default:e(()=>[(p(),A(L,null,I(2,_=>a(r,{key:_},{default:e(()=>[j,E,a(c,{justify:"flex-end"},{default:e(()=>[a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("查看")]),_:1}),a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):M("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),O=D(H,[["__scopeId","data-v-b4beb481"]]);export{O as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/YAMLView-Eh-9j974.js diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js b/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js index 9fab2039d..e87ff8e11 100644 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js +++ b/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js import{y as C,_ as I}from"./js-yaml-A63HP8_m.js";import{d as D,y as $,z as L,u as O,B as h,D as Y,H as x,J as v,w as e,e as s,o as b,b as t,f as a,n as k,ac as M,ad as P,j as o,T as U,m as w,p as H,h as j,_ as z}from"./index-rt1yTeew.js";import{a as J}from"./traffic-nmA_BhEL.js";import{H as K}from"./request-vlI2kaaR.js";const d=p=>(H("data-v-93e60661"),p=p(),j(),p),q={class:"editorBox"},F={class:"bottom-action-footer"},G=d(()=>o("br",null,null,-1)),Q=d(()=>o("br",null,null,-1)),W=d(()=>o("br",null,null,-1)),X=d(()=>o("br",null,null,-1)),Z=d(()=>o("br",null,null,-1)),ee=d(()=>o("br",null,null,-1)),te=D({__name:"addByYAMLView",setup(p){const c=$(L.TAB_LAYOUT_STATE),A=O(),B=h(!1),r=h(!1),R=h(8),i=h(`conditions: +======== +import{y as C,_ as A}from"./js-yaml-F_PXjql-.js";import{d as D,y as $,z as O,u as P,B as h,D as Y,H as k,J as v,w as e,e as s,o as b,b as t,f as a,n as w,aa as L,ab as M,j as o,T as H,m as T,p as J,h as U,_ as j}from"./index-JtaswhjV.js";import{a as z}from"./traffic-BsDR0F4K.js";import{H as K}from"./request--dYXBGM5.js";const c=p=>(J("data-v-06ec3f5e"),p=p(),U(),p),q={class:"editorBox"},F={class:"bottom-action-footer"},G=c(()=>o("br",null,null,-1)),Q=c(()=>o("br",null,null,-1)),W=c(()=>o("br",null,null,-1)),X=c(()=>o("br",null,null,-1)),Z=c(()=>o("br",null,null,-1)),ee=c(()=>o("br",null,null,-1)),te=D({__name:"addByYAMLView",setup(p){const d=$(O.PROVIDE_INJECT_KEY),E=P(),B=h(!1),r=h(!1),R=h(8),i=h(`conditions: +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/addByYAMLView-dNFM9Bbo.js - from: match: >- method=string & arguments[method]=string & diff --git a/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js b/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js index 8d4d9a839..09edae434 100644 --- a/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js +++ b/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js import{r as a}from"./request-vlI2kaaR.js";const r=t=>a({url:"/application/search",method:"get",params:t}),p=t=>a({url:"/application/detail",method:"get",params:t}),i=t=>a({url:"/application/instance/info",method:"get",params:t}),n=t=>a({url:"/application/service/form",method:"get",params:t}),c=t=>a({url:"/application/metric-dashboard",method:"get",params:t}),s=t=>a({url:"/application/trace-dashboard",method:"get",params:t}),l=t=>a({url:"/application/event",method:"get",params:t}),g=t=>a({url:"/application/config/operatorLog",method:"get",params:{appName:t}}),u=(t,o)=>a({url:"/application/config/operatorLog",method:"put",params:{appName:t,operatorLog:o}}),d=t=>a({url:"/application/config/flowWeight",method:"get",params:{appName:t}}),h=(t,o)=>a({url:"/application/config/flowWeight",method:"put",params:{appName:t},data:{flowWeightSets:o}}),m=t=>a({url:"/application/config/gray",method:"get",params:{appName:t}}),f=(t,o)=>a({url:"/application/config/gray",method:"put",params:{appName:t},data:{graySets:o}});export{i as a,n as b,c,s as d,d as e,h as f,p as g,m as h,f as i,g as j,l,r as s,u}; +======== +import{r as a}from"./request--dYXBGM5.js";const r=t=>a({url:"/application/search",method:"get",params:t}),p=t=>a({url:"/application/detail",method:"get",params:t}),i=t=>a({url:"/application/instance/info",method:"get",params:t}),n=t=>a({url:"/application/service/form",method:"get",params:t}),c=t=>a({url:"/application/metric-dashboard",method:"get",params:t}),s=t=>a({url:"/application/trace-dashboard",method:"get",params:t}),l=t=>a({url:"/application/event",method:"get",params:t}),g=t=>a({url:"/application/config/operatorLog",method:"get",params:{appName:t}}),u=(t,o)=>a({url:"/application/config/operatorLog",method:"put",params:{appName:t,operatorLog:o}}),d=t=>a({url:"/application/config/flowWeight",method:"get",params:{appName:t}}),h=(t,o)=>a({url:"/application/config/flowWeight",method:"put",params:{appName:t},data:{flowWeightSets:o}}),m=t=>a({url:"/application/config/gray",method:"get",params:{appName:t}}),f=(t,o)=>a({url:"/application/config/gray",method:"put",params:{appName:t},data:{graySets:o}});export{i as a,n as b,c,s as d,d as e,h as f,p as g,m as h,f as i,g as j,l,r as s,u}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/app-PIImRajL.js diff --git a/app/dubbo-ui/dist/admin/assets/config-L4QhBo2Y.js b/app/dubbo-ui/dist/admin/assets/config-L4QhBo2Y.js index de35d9833..d83368def 100644 --- a/app/dubbo-ui/dist/admin/assets/config-L4QhBo2Y.js +++ b/app/dubbo-ui/dist/admin/assets/config-L4QhBo2Y.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/config-L4QhBo2Y.js import{C as Z}from"./ConfigPage-HbXln963.js";import{d as I,a as ee,r as ae,a4 as te,D as le,c as D,b as o,w as l,n as L,e as w,o as p,J as g,T as h,L as j,M as N,f as E,t as F,j as O,I as V,_ as oe}from"./index-rt1yTeew.js";import{u as ne,e as se,f as ie,h as re,i as ue,j as ce}from"./app-4lFIb2G-.js";import{H as U}from"./request-vlI2kaaR.js";const de=G=>{var _;(_=document.getElementById(G))==null||_.scrollIntoView({behavior:"smooth"})},fe={class:"__container_app_config"},pe={style:{float:"right"}},ye={style:{float:"right"}},ge=I({__name:"config",setup(G){const _=ee(),z=[{key:"key",title:"label"},{key:"condition",title:"condition"},{key:"value",title:"value"},{key:"operation",title:"操作"}];let f=ae({list:[{title:"applicationDomain.operatorLog",key:"log",form:{logFlag:!1},submit:e=>new Promise(a=>{a(B(e==null?void 0:e.logFlag))}),reset(e){e.logFlag=!1}},{title:"applicationDomain.flowWeight",key:"flow",ext:{title:"添加权重配置",fun(e){J(),te(()=>{var t;const a=((t=f.list.find(n=>n.key==="flow"))==null?void 0:t.form.rules.length)-1;a>=0&&de("flowWeight"+a)})}},form:{rules:[]},submit(e){return new Promise(a=>{a(P())})},reset(){T()}},{title:"applicationDomain.gray",key:"gray",ext:{title:"添加灰度环境",fun(){K()}},form:{rules:[]},submit(e){return new Promise(a=>{a(x())})},reset(){W()}}],current:[0]});const A=async()=>{var a;const e=await ce((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=e.data.operatorLog;return}})},B=async e=>{var t;const a=await ne((t=_.params)==null?void 0:t.pathId,e);(a==null?void 0:a.code)==U.SUCCESS&&await A()},T=async()=>{var a;const e=await se((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{t.key==="flow"&&(t.form.rules=JSON.parse(JSON.stringify(e.data.flowWeightSets)),t.form.rules.forEach(n=>{n.scope.forEach(r=>{r.label=r.key,r.condition=r.value?Object.keys(r.value)[0]:"",r.value=r.value?Object.values(r.value)[0]:""})}))})},P=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="flow"&&n.form.rules.forEach(r=>{let i={weight:r.weight,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label||$,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ie((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await T()},J=()=>{f.list.forEach(e=>{e.key==="flow"&&e.form.rules.push({weight:10,scope:[{key:"",condition:"",value:""}]})})},H=e=>{f.list.forEach(a=>{a.key==="flow"&&a.form.rules.splice(e,1)})},M=e=>{f.list.forEach(a=>{if(a.key==="flow"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},R=(e,a)=>{f.list.forEach(t=>{t.key==="flow"&&t.form.rules[e].scope.splice(a,1)})},q=[{key:"label",title:"label",dataIndex:"label"},{key:"condition",title:"condition",dataIndex:"condition"},{key:"value",title:"value",dataIndex:"value"},{key:"operation",title:"operation",dataIndex:"operation"}],W=async()=>{var a;const e=await re((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="gray"){const n=e.data.graySets;n.length>0&&n.forEach(r=>{r.scope.forEach(i=>{i.label=i.key,i.condition=i.value?Object.keys(i.value)[0]:"",i.value=i.value?Object.values(i.value)[0]:""})}),t.form.rules=n}})},x=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="gray"&&n.form.rules.forEach(r=>{let i={name:r.name,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ue((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await W()},K=()=>{f.list.forEach(e=>{e.key==="gray"&&e.form.rules.push({name:"",scope:[{key:"",condition:"",value:""}]})})},Q=e=>{f.list.forEach(a=>{if(a.key==="gray"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},X=(e,a)=>{f.list.forEach(t=>{t.key==="gray"&&t.form.rules[e].scope.splice(a,1)})},Y=e=>{f.list.forEach(a=>{a.key==="gray"&&a.form.rules.splice(e,1)})};return le(()=>{A(),T(),W()}),(e,a)=>{const t=w("a-switch"),n=w("a-form-item"),r=w("a-empty"),i=w("a-button"),k=w("a-space"),$=w("a-input-number"),v=w("a-input"),b=w("a-table"),C=w("a-card");return p(),D("div",fe,[o(Z,{options:L(f)},{form_log:l(({current:S})=>[o(n,{label:e.$t("applicationDomain.operatorLog"),name:"logFlag"},{default:l(()=>[o(t,{checked:S.form.logFlag,"onUpdate:checked":m=>S.form.logFlag=m},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flow:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",class:"flowWeight-box",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无流量权重配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,{id:"flowWeight"+s},{title:l(()=>[E(F(e.$t("applicationDomain.flowWeight"))+" "+F(s+1)+" ",1),O("div",pe,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>H(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].weight",label:"权重"},{default:l(()=>[o($,{min:"1",value:m.weight,"onUpdate:value":u=>m.weight=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(i,{type:"primary",onClick:u=>M(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:z,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="key"?(p(),g(n,{name:["rules",s,"scope",d,"key"],key:`key-${s}-${d}`},{default:l(()=>[o(v,{value:c.key,"onUpdate:value":y=>c.key=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>R(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1032,["id"]))),256))]),_:2},1024)]),form_gray:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无灰度环境配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,null,{title:l(()=>[E(F(e.$t("applicationDomain.gray"))+" "+F(s+1)+" ",1),O("div",ye,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>Y(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].name",label:"环境名称"},{default:l(()=>[o(v,{value:m.name,"onUpdate:value":u=>m.name=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(k,{direction:"vertical",size:"middle"},{default:l(()=>[o(i,{type:"primary",onClick:u=>Q(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:q,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="label"?(p(),g(n,{name:["rules",s,"scope",d,"label"],key:`label-${s}-${d}`},{default:l(()=>[o(v,{value:c.label,"onUpdate:value":y=>c.label=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`gray-condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`gray-value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`gray-operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>X(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:2},1024)]),_:1},8,["options"])])}}}),me=oe(ge,[["__scopeId","data-v-0ea8fab1"]]);export{me as default}; +======== +import{C as Z}from"./ConfigPage-bt_br5PT.js";import{d as I,a as ee,r as ae,a4 as te,D as le,c as D,b as o,w as l,n as L,e as w,o as p,J as g,T as h,L as j,M as N,f as E,t as F,j as O,I as V,_ as oe}from"./index-JtaswhjV.js";import{u as ne,e as se,f as ie,h as re,i as ue,j as ce}from"./app-PIImRajL.js";import{H as U}from"./request--dYXBGM5.js";const de=G=>{var _;(_=document.getElementById(G))==null||_.scrollIntoView({behavior:"smooth"})},fe={class:"__container_app_config"},pe={style:{float:"right"}},ye={style:{float:"right"}},ge=I({__name:"config",setup(G){const _=ee(),z=[{key:"key",title:"label"},{key:"condition",title:"condition"},{key:"value",title:"value"},{key:"operation",title:"操作"}];let f=ae({list:[{title:"applicationDomain.operatorLog",key:"log",form:{logFlag:!1},submit:e=>new Promise(a=>{a(B(e==null?void 0:e.logFlag))}),reset(e){e.logFlag=!1}},{title:"applicationDomain.flowWeight",key:"flow",ext:{title:"添加权重配置",fun(e){J(),te(()=>{var t;const a=((t=f.list.find(n=>n.key==="flow"))==null?void 0:t.form.rules.length)-1;a>=0&&de("flowWeight"+a)})}},form:{rules:[]},submit(e){return new Promise(a=>{a(P())})},reset(){T()}},{title:"applicationDomain.gray",key:"gray",ext:{title:"添加灰度环境",fun(){K()}},form:{rules:[]},submit(e){return new Promise(a=>{a(x())})},reset(){W()}}],current:[0]});const A=async()=>{var a;const e=await ce((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=e.data.operatorLog;return}})},B=async e=>{var t;const a=await ne((t=_.params)==null?void 0:t.pathId,e);(a==null?void 0:a.code)==U.SUCCESS&&await A()},T=async()=>{var a;const e=await se((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{t.key==="flow"&&(t.form.rules=JSON.parse(JSON.stringify(e.data.flowWeightSets)),t.form.rules.forEach(n=>{n.scope.forEach(r=>{r.label=r.key,r.condition=r.value?Object.keys(r.value)[0]:"",r.value=r.value?Object.values(r.value)[0]:""})}))})},P=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="flow"&&n.form.rules.forEach(r=>{let i={weight:r.weight,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label||$,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ie((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await T()},J=()=>{f.list.forEach(e=>{e.key==="flow"&&e.form.rules.push({weight:10,scope:[{key:"",condition:"",value:""}]})})},H=e=>{f.list.forEach(a=>{a.key==="flow"&&a.form.rules.splice(e,1)})},M=e=>{f.list.forEach(a=>{if(a.key==="flow"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},R=(e,a)=>{f.list.forEach(t=>{t.key==="flow"&&t.form.rules[e].scope.splice(a,1)})},q=[{key:"label",title:"label",dataIndex:"label"},{key:"condition",title:"condition",dataIndex:"condition"},{key:"value",title:"value",dataIndex:"value"},{key:"operation",title:"operation",dataIndex:"operation"}],W=async()=>{var a;const e=await re((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="gray"){const n=e.data.graySets;n.length>0&&n.forEach(r=>{r.scope.forEach(i=>{i.label=i.key,i.condition=i.value?Object.keys(i.value)[0]:"",i.value=i.value?Object.values(i.value)[0]:""})}),t.form.rules=n}})},x=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="gray"&&n.form.rules.forEach(r=>{let i={name:r.name,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ue((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await W()},K=()=>{f.list.forEach(e=>{e.key==="gray"&&e.form.rules.push({name:"",scope:[{key:"",condition:"",value:""}]})})},Q=e=>{f.list.forEach(a=>{if(a.key==="gray"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},X=(e,a)=>{f.list.forEach(t=>{t.key==="gray"&&t.form.rules[e].scope.splice(a,1)})},Y=e=>{f.list.forEach(a=>{a.key==="gray"&&a.form.rules.splice(e,1)})};return le(()=>{A(),T(),W()}),(e,a)=>{const t=w("a-switch"),n=w("a-form-item"),r=w("a-empty"),i=w("a-button"),k=w("a-space"),$=w("a-input-number"),v=w("a-input"),b=w("a-table"),C=w("a-card");return p(),D("div",fe,[o(Z,{options:L(f)},{form_log:l(({current:S})=>[o(n,{label:e.$t("applicationDomain.operatorLog"),name:"logFlag"},{default:l(()=>[o(t,{checked:S.form.logFlag,"onUpdate:checked":m=>S.form.logFlag=m},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flow:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",class:"flowWeight-box",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无流量权重配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,{id:"flowWeight"+s},{title:l(()=>[E(F(e.$t("applicationDomain.flowWeight"))+" "+F(s+1)+" ",1),O("div",pe,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>H(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].weight",label:"权重"},{default:l(()=>[o($,{min:"1",value:m.weight,"onUpdate:value":u=>m.weight=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(i,{type:"primary",onClick:u=>M(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:z,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="key"?(p(),g(n,{name:["rules",s,"scope",d,"key"],key:`key-${s}-${d}`},{default:l(()=>[o(v,{value:c.key,"onUpdate:value":y=>c.key=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>R(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1032,["id"]))),256))]),_:2},1024)]),form_gray:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无灰度环境配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,null,{title:l(()=>[E(F(e.$t("applicationDomain.gray"))+" "+F(s+1)+" ",1),O("div",ye,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>Y(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].name",label:"环境名称"},{default:l(()=>[o(v,{value:m.name,"onUpdate:value":u=>m.name=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(k,{direction:"vertical",size:"middle"},{default:l(()=>[o(i,{type:"primary",onClick:u=>Q(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:q,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="label"?(p(),g(n,{name:["rules",s,"scope",d,"label"],key:`label-${s}-${d}`},{default:l(()=>[o(v,{value:c.label,"onUpdate:value":y=>c.label=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`gray-condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`gray-value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`gray-operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>X(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:2},1024)]),_:1},8,["options"])])}}}),me=oe(ge,[["__scopeId","data-v-0ea8fab1"]]);export{me as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/config-IKkzv5Nb.js diff --git a/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js b/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js index 2a053eb35..2e96e1bbd 100644 --- a/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js +++ b/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js import{C as _}from"./ConfigPage-HbXln963.js";import{d as h,a as u,r as S,D as b,c as D,b as c,w as l,n as I,e as g,o as k,_ as F}from"./index-rt1yTeew.js";import{u as C,c as U,d as y,e as P}from"./instance-ChxJL4oQ.js";import{H as i}from"./request-vlI2kaaR.js";const T={class:"__container_ins_config"},E=h({__name:"configuration",setup(L){const s=u();let r=S({list:[{title:"instanceDomain.operatorLog",key:"log",form:{logFlag:!1},submit:a=>new Promise(e=>{e(m(a==null?void 0:a.logFlag))}),reset(a){a.logFlag=!1}},{title:"instanceDomain.flowDisabled",form:{flowDisabledFlag:!1},key:"flowDisabled",submit:a=>new Promise(e=>{e(w(a==null?void 0:a.flowDisabledFlag))}),reset(a){a.logFlag=!1}}],current:[0]});const d=async()=>{var e,o;const a=await y((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=a.data.operatorLog;return}})},m=async a=>{var o,t;const e=await C((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await d()},p=async()=>{var e,o;const a=await P((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{t.key==="flowDisabled"&&(t.form.flowDisabledFlag=a.data.trafficDisable)})},w=async a=>{var o,t;const e=await U((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await p()};return b(()=>{d(),p()}),(a,e)=>{const o=g("a-switch"),t=g("a-form-item");return k(),D("div",T,[c(_,{options:I(r)},{form_log:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.operatorLog"),name:"logFlag"},{default:l(()=>[c(o,{checked:n.form.logFlag,"onUpdate:checked":f=>n.form.logFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flowDisabled:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.flowDisabled"),name:"flowDisabledFlag"},{default:l(()=>[c(o,{checked:n.form.flowDisabledFlag,"onUpdate:checked":f=>n.form.flowDisabledFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),_:1},8,["options"])])}}}),B=F(E,[["__scopeId","data-v-e97c3730"]]);export{B as default}; +======== +import{C as _}from"./ConfigPage-bt_br5PT.js";import{d as h,a as u,r as S,D as b,c as D,b as c,w as l,n as I,e as g,o as k,_ as F}from"./index-JtaswhjV.js";import{u as C,c as U,d as y,e as P}from"./instance-sa6ohjCn.js";import{H as i}from"./request--dYXBGM5.js";const T={class:"__container_ins_config"},E=h({__name:"configuration",setup(L){const s=u();let r=S({list:[{title:"instanceDomain.operatorLog",key:"log",form:{logFlag:!1},submit:a=>new Promise(e=>{e(m(a==null?void 0:a.logFlag))}),reset(a){a.logFlag=!1}},{title:"instanceDomain.flowDisabled",form:{flowDisabledFlag:!1},key:"flowDisabled",submit:a=>new Promise(e=>{e(w(a==null?void 0:a.flowDisabledFlag))}),reset(a){a.logFlag=!1}}],current:[0]});const d=async()=>{var e,o;const a=await y((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=a.data.operatorLog;return}})},m=async a=>{var o,t;const e=await C((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await d()},p=async()=>{var e,o;const a=await P((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{t.key==="flowDisabled"&&(t.form.flowDisabledFlag=a.data.trafficDisable)})},w=async a=>{var o,t;const e=await U((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await p()};return b(()=>{console.log(333),d(),p()}),(a,e)=>{const o=g("a-switch"),t=g("a-form-item");return k(),D("div",T,[c(_,{options:I(r)},{form_log:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.operatorLog"),name:"logFlag"},{default:l(()=>[c(o,{checked:n.form.logFlag,"onUpdate:checked":f=>n.form.logFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flowDisabled:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.flowDisabled"),name:"flowDisabledFlag"},{default:l(()=>[c(o,{checked:n.form.flowDisabledFlag,"onUpdate:checked":f=>n.form.flowDisabledFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),_:1},8,["options"])])}}}),B=F(E,[["__scopeId","data-v-28b52f55"]]);export{B as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/configuration-0U4sObwn.js diff --git a/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js b/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js index 84f8739f2..a50f084b2 100644 --- a/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js +++ b/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js import{m as tt}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as tt}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/cssMode-SOEcaa9z.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js b/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js index 462b3a2da..f086f1d3a 100644 --- a/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js +++ b/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js import{d as L,a as O,r as I,k as T,Z as V,D as W,c as s,b as a,w as e,e as c,o,L as u,M as m,$ as P,J as b,f as S,t as h,n as y,a0 as A,m as j,a1 as $,_ as E}from"./index-rt1yTeew.js";import{g as F}from"./app-4lFIb2G-.js";import{u as J}from"./index-nvCr9_iI.js";import"./request-vlI2kaaR.js";const Y={class:"__container_app_detail"},Z={class:"description-item-content no-card"},q=["onClick"],z=L({__name:"detail",setup(G){const M=O(),C=I({}),{appContext:{config:{globalProperties:N}}}=T();V("20");let r=I({left:{},right:{},bottom:{}});W(async()=>{var i;let l=(i=M.params)==null?void 0:i.pathId;C.detail=await F({appName:l}),console.log(C.detail);let{appName:w,rpcProtocols:p,dubboVersions:_,dubboPorts:d,serialProtocols:f,appTypes:x,images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g}=C.detail.data;r.left={appName:w,appTypes:x,serialProtocols:f},r.right={rpcProtocols:p,dubboPorts:d,dubboVersions:_},r.bottom={images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g},console.log(w)});const R=J().toClipboard;function B(l){j.success(N.$t("messageDomain.success.copy")),R(l)}return(l,w)=>{const p=c("a-descriptions-item"),_=c("a-descriptions"),d=c("a-card"),f=c("a-col"),x=c("a-row"),k=c("a-card-grid"),D=c("a-flex");return o(),s("div",Y,[a(D,null,{default:e(()=>[a(k,null,{default:e(()=>[a(x,{gutter:10},{default:e(()=>[a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).left,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(typeof t=="object"?t[0]:t),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1}),a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).right,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(t[0]),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1}),a(d,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).bottom,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold"},label:l.$t("applicationDomain."+n)},{default:e(()=>[(t==null?void 0:t.length)<3?(o(!0),s(u,{key:0},m(t,i=>(o(),s("p",Z,h(i),1))),256)):(o(),b(d,{key:1,class:"description-item-card"},{default:e(()=>[(o(!0),s(u,null,m(t,i=>(o(),s("p",{onClick:H=>B(i.toString()),class:"description-item-content with-card"},[S(h(i)+" ",1),a(y(A))],8,q))),256))]),_:2},1024))]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),v=E(z,[["__scopeId","data-v-2ded24e2"]]);export{v as default}; +======== +import{d as L,a as O,r as I,k as T,Z as V,D as W,c as s,b as a,w as e,e as c,o,L as u,M as m,$ as P,J as b,f as S,t as h,n as y,a0 as A,m as j,a1 as $,_ as E}from"./index-JtaswhjV.js";import{g as F}from"./app-PIImRajL.js";import{u as J}from"./index-mXj9VWUy.js";import"./request--dYXBGM5.js";const Y={class:"__container_app_detail"},Z={class:"description-item-content no-card"},q=["onClick"],z=L({__name:"detail",setup(G){const M=O(),C=I({}),{appContext:{config:{globalProperties:N}}}=T();V("20");let r=I({left:{},right:{},bottom:{}});W(async()=>{var i;let l=(i=M.params)==null?void 0:i.pathId;C.detail=await F({appName:l}),console.log(C.detail);let{appName:w,rpcProtocols:p,dubboVersions:_,dubboPorts:d,serialProtocols:f,appTypes:x,images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g}=C.detail.data;r.left={appName:w,appTypes:x,serialProtocols:f},r.right={rpcProtocols:p,dubboPorts:d,dubboVersions:_},r.bottom={images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g},console.log(w)});const R=J().toClipboard;function B(l){j.success(N.$t("messageDomain.success.copy")),R(l)}return(l,w)=>{const p=c("a-descriptions-item"),_=c("a-descriptions"),d=c("a-card"),f=c("a-col"),x=c("a-row"),k=c("a-card-grid"),D=c("a-flex");return o(),s("div",Y,[a(D,null,{default:e(()=>[a(k,null,{default:e(()=>[a(x,{gutter:10},{default:e(()=>[a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).left,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(typeof t=="object"?t[0]:t),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1}),a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).right,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(t[0]),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1}),a(d,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).bottom,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold"},label:l.$t("applicationDomain."+n)},{default:e(()=>[(t==null?void 0:t.length)<3?(o(!0),s(u,{key:0},m(t,i=>(o(),s("p",Z,h(i),1))),256)):(o(),b(d,{key:1,class:"description-item-card"},{default:e(()=>[(o(!0),s(u,null,m(t,i=>(o(),s("p",{onClick:H=>B(i.toString()),class:"description-item-content with-card"},[S(h(i)+" ",1),a(y(A))],8,q))),256))]),_:2},1024))]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),v=E(z,[["__scopeId","data-v-2ded24e2"]]);export{v as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/detail-Sj1Uzu8p.js diff --git a/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js b/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js index 3921d06e1..fbac4e994 100644 --- a/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js +++ b/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js import{d as x,v as D,u as w,a as S,r as A,c as n,b as _,w as y,n as t,P as C,U as R,e as V,o as r,j as b,I as k,f as l,t as d,T as p,L as v,M as I,J as N,z as E,_ as B}from"./index-rt1yTeew.js";import{g as O}from"./service-RF66g7V7.js";import{S as T,a as L}from"./SearchUtil-FCBI7ppE.js";import"./request-vlI2kaaR.js";const M={class:"__container_services_tabs_distribution"},P=["onClick"],Y=["onClick"],J=x({__name:"distribution",setup($){D(u=>({"49ace5b1":t(C)}));const h=w(),i=S(),f=[{title:"servicesDomain.appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"servicesDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"servicesDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"servicesDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];function g(u){var m,o,s,e;return O({serviceName:(m=i.params)==null?void 0:m.pathId,side:"consumer",version:((o=i.params)==null?void 0:o.version)||"",group:((s=i.params)==null?void 0:s.group)||"",providerAppName:((e=i.query)==null?void 0:e.providerAppName)||"",...u})}const c=A(new T([{label:"servicesDomain.consumerAppName",param:"keywords",placeholder:"consumerAppName",style:{width:"300px"}}],g,f));return c.onSearch(),c.tableStyle={scrollX:"100",scrollY:"367px"},R(E.SEARCH_DOMAIN,c),(u,m)=>{const o=V("a-tag");return r(),n("div",M,[_(L,{"search-domain":c},{bodyCell:y(({column:s,text:e})=>[s.dataIndex==="appName"?(r(),n("span",{key:0,class:"link",onClick:a=>t(h).push("/resources/applications/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,P)):p("",!0),s.dataIndex==="instanceName"?(r(),n("span",{key:1,class:"link",onClick:a=>t(h).push("/resources/instances/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,Y)):p("",!0),s.dataIndex==="deployClusters"?(r(!0),n(v,{key:2},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0),s.dataIndex==="registryClusters"?(r(!0),n(v,{key:3},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0)]),_:1},8,["search-domain"])])}}}),H=B(J,[["__scopeId","data-v-73c33bbf"]]);export{H as default}; +======== +import{d as x,v as D,u as w,a as S,r as A,c as n,b as _,w as y,n as t,P as C,U as R,e as V,o as r,j as b,I as k,f as l,t as d,T as p,L as v,M as I,J as N,z as E,_ as B}from"./index-JtaswhjV.js";import{g as O}from"./service-1UmnLUvi.js";import{S as T,a as L}from"./SearchUtil-euy68KhE.js";import"./request--dYXBGM5.js";const M={class:"__container_services_tabs_distribution"},P=["onClick"],Y=["onClick"],J=x({__name:"distribution",setup($){D(u=>({"49ace5b1":t(C)}));const h=w(),i=S(),f=[{title:"servicesDomain.appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"servicesDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"servicesDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"servicesDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];function g(u){var m,o,s,e;return O({serviceName:(m=i.params)==null?void 0:m.pathId,side:"consumer",version:((o=i.params)==null?void 0:o.version)||"",group:((s=i.params)==null?void 0:s.group)||"",providerAppName:((e=i.query)==null?void 0:e.providerAppName)||"",...u})}const c=A(new T([{label:"servicesDomain.consumerAppName",param:"keywords",placeholder:"consumerAppName",style:{width:"300px"}}],g,f));return c.onSearch(),c.tableStyle={scrollX:"100",scrollY:"367px"},R(E.SEARCH_DOMAIN,c),(u,m)=>{const o=V("a-tag");return r(),n("div",M,[_(L,{"search-domain":c},{bodyCell:y(({column:s,text:e})=>[s.dataIndex==="appName"?(r(),n("span",{key:0,class:"link",onClick:a=>t(h).push("/resources/applications/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,P)):p("",!0),s.dataIndex==="instanceName"?(r(),n("span",{key:1,class:"link",onClick:a=>t(h).push("/resources/instances/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,Y)):p("",!0),s.dataIndex==="deployClusters"?(r(!0),n(v,{key:2},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0),s.dataIndex==="registryClusters"?(r(!0),n(v,{key:3},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0)]),_:1},8,["search-domain"])])}}}),H=B(J,[["__scopeId","data-v-73c33bbf"]]);export{H as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/distribution-iEzIExlH.js diff --git a/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js b/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js index 88a6c3d1e..75836f11d 100644 --- a/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js +++ b/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js import{d as e,c as t,o as n}from"./index-rt1yTeew.js";const s=e({__name:"event",setup(o){return(a,c)=>(n(),t("div",null,"event todo"))}});export{s as default}; +======== +import{d as e,c as t,o as n}from"./index-JtaswhjV.js";const s=e({__name:"event",setup(o){return(a,c)=>(n(),t("div",null,"event todo"))}});export{s as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/event-hTbHcw_b.js diff --git a/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js b/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js index c8748659e..93afce7ae 100644 --- a/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js +++ b/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js import{b as s,A as b,d as C,c as d,w as a,e as r,o as p,n as u,L as M,M as S,P as y,f as x,t as _,j as f,p as P,h as w,_ as I}from"./index-rt1yTeew.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const z=j;function m(e){for(var t=1;t(P("data-v-9245080e"),e=e(),w(),e),D={class:"__container_services_tabs_event"},L={class:"description"},R=N(()=>f("span",null,"过期事件不会存储",-1)),V=C({__name:"event",setup(e){const t=[{time:"2022-01-01",description:"description"},{time:"2022-01-02",description:"description"},{time:"2022-01-03",description:"description"},{time:"2022-01-04",description:"description"},{time:"2022-01-05",description:"description"}];return(n,c)=>{const i=r("a-timeline-item"),v=r("a-tag"),O=r("a-timeline"),g=r("a-card");return p(),d("div",D,[s(g,{class:"timeline-container"},{default:a(()=>[s(O,{class:"timeline"},{default:a(()=>[s(i,null,{dot:a(()=>[s(u(B),{style:{"font-size":"18px"}})]),_:1}),(p(),d(M,null,S(t,(l,h)=>s(i,{key:h},{default:a(()=>[s(v,{class:"time",color:u(y)},{default:a(()=>[x(_(l.time),1)]),_:2},1032,["color"]),f("span",L,_(l.description),1)]),_:2},1024)),64)),s(i,null,{dot:a(()=>[]),default:a(()=>[R]),_:1})]),_:1})]),_:1})])}}}),$=I(V,[["__scopeId","data-v-9245080e"]]);export{$ as default}; +======== +import{b as s,A as b,d as C,c as d,w as a,e as r,o as p,n as u,L as M,M as S,P as y,f as x,t as _,j as f,p as P,h as w,_ as I}from"./index-JtaswhjV.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const z=j;function m(e){for(var t=1;t(P("data-v-9245080e"),e=e(),w(),e),D={class:"__container_services_tabs_event"},L={class:"description"},R=N(()=>f("span",null,"过期事件不会存储",-1)),V=C({__name:"event",setup(e){const t=[{time:"2022-01-01",description:"description"},{time:"2022-01-02",description:"description"},{time:"2022-01-03",description:"description"},{time:"2022-01-04",description:"description"},{time:"2022-01-05",description:"description"}];return(n,c)=>{const i=r("a-timeline-item"),v=r("a-tag"),O=r("a-timeline"),g=r("a-card");return p(),d("div",D,[s(g,{class:"timeline-container"},{default:a(()=>[s(O,{class:"timeline"},{default:a(()=>[s(i,null,{dot:a(()=>[s(u(B),{style:{"font-size":"18px"}})]),_:1}),(p(),d(M,null,S(t,(l,h)=>s(i,{key:h},{default:a(()=>[s(v,{class:"time",color:u(y)},{default:a(()=>[x(_(l.time),1)]),_:2},1032,["color"]),f("span",L,_(l.description),1)]),_:2},1024)),64)),s(i,null,{dot:a(()=>[]),default:a(()=>[R]),_:1})]),_:1})]),_:1})])}}}),$=I(V,[["__scopeId","data-v-9245080e"]]);export{$ as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/event-LYJunMDL.js diff --git a/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js b/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js index 4a208e088..a93827a68 100644 --- a/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js +++ b/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js import{d as v,v as f,r as h,D as y,c as d,b as r,w as n,e as p,n as l,P as C,o as c,L as x,M as b,J as k,a5 as w,a6 as I,j as e,a7 as S,t as i,p as B,h as R,_ as g}from"./index-rt1yTeew.js";import{l as L}from"./app-4lFIb2G-.js";import"./request-vlI2kaaR.js";const M=t=>(B("data-v-e2aef936"),t=t(),R(),t),O={class:"__container_app_event"},V={class:"box"},z=M(()=>e("div",{class:"type"},null,-1)),A={class:"body"},D={class:"title"},E={class:"time"},N=v({__name:"event",setup(t){f(a=>({f166166e:l(C)}));let s=h({list:[]});return y(async()=>{let a=await L({});s.list=a.data.list,console.log(s)}),(a,P)=>{const m=p("a-timeline-item"),u=p("a-timeline");return c(),d("div",O,[r(u,{mode:"left"},{default:n(()=>[(c(!0),d(x,null,b(l(s).list,(o,_)=>(c(),k(m,null,w({default:n(()=>[e("div",V,[e("div",{class:S(["label",{yellow:_===0}])},[z,e("div",A,[e("b",D,i(o.type),1),e("p",null,i(o.desc),1)])],2),e("span",E,i(o.time),1)])]),_:2},[_===0?{name:"dot",fn:n(()=>[r(l(I),{style:{"font-size":"16px",color:"red"}})]),key:"0"}:void 0]),1024))),256))]),_:1})])}}}),Y=g(N,[["__scopeId","data-v-e2aef936"]]);export{Y as default}; +======== +import{d as v,v as f,r as h,D as y,c as d,b as r,w as n,e as p,n as l,P as C,o as c,L as x,M as b,J as k,a5 as w,a6 as I,j as e,a7 as S,t as i,p as B,h as R,_ as g}from"./index-JtaswhjV.js";import{l as L}from"./app-PIImRajL.js";import"./request--dYXBGM5.js";const M=t=>(B("data-v-e2aef936"),t=t(),R(),t),O={class:"__container_app_event"},V={class:"box"},z=M(()=>e("div",{class:"type"},null,-1)),A={class:"body"},D={class:"title"},E={class:"time"},N=v({__name:"event",setup(t){f(a=>({f166166e:l(C)}));let s=h({list:[]});return y(async()=>{let a=await L({});s.list=a.data.list,console.log(s)}),(a,P)=>{const m=p("a-timeline-item"),u=p("a-timeline");return c(),d("div",O,[r(u,{mode:"left"},{default:n(()=>[(c(!0),d(x,null,b(l(s).list,(o,_)=>(c(),k(m,null,w({default:n(()=>[e("div",V,[e("div",{class:S(["label",{yellow:_===0}])},[z,e("div",A,[e("b",D,i(o.type),1),e("p",null,i(o.desc),1)])],2),e("span",E,i(o.time),1)])]),_:2},[_===0?{name:"dot",fn:n(()=>[r(l(I),{style:{"font-size":"16px",color:"red"}})]),key:"0"}:void 0]),1024))),256))]),_:1})])}}}),Y=g(N,[["__scopeId","data-v-e2aef936"]]);export{Y as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/event-d_wQc3g_.js diff --git a/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js b/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js index a9952de3a..d181d99ff 100644 --- a/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js +++ b/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js import{u as H}from"./index-nvCr9_iI.js";import{d as L,k as U,a as F,B as h,r as J,l as K,D as Q,c as C,b as o,w as e,e as i,o as c,f as n,j as m,t as s,n as D,a0 as S,J as f,T as b,L as V,M as j,m as X,p as Y,h as Z,_ as ee}from"./index-rt1yTeew.js";import{g as te}from"./traffic-nmA_BhEL.js";import{H as oe}from"./request-vlI2kaaR.js";const q=y=>(Y("data-v-f3c3c57f"),y=y(),Z(),y),ae={class:"__container_routingRule_detail"},le=q(()=>m("p",null,"修改时间: 2024/3/20 15:20:31",-1)),ne=q(()=>m("p",null,"版本号: xo842xqpx834",-1)),se=L({__name:"formView",setup(y){const{appContext:{config:{globalProperties:E}}}=U(),B=F(),k=h(!1),N=h(8),x=H().toClipboard;function g(t){X.success(E.$t("messageDomain.success.copy")),x(t)}const a=J({}),P=K(()=>{const t=a.key||"",l=typeof t=="string"?t.split(":"):[];return a.version=l[1]||"",a.group=l[2]||"",l[0]||""}),$=h([]),T=h([]);async function z(){var l;let t=await te((l=B.params)==null?void 0:l.ruleName);(t==null?void 0:t.code)===oe.SUCCESS&&(Object.assign(a,(t==null?void 0:t.data)||{}),a.conditions.forEach((u,v)=>{var p,w;const r=u.split(" => "),_=(p=r[1])==null?void 0:p.split(" & "),W=(w=r[0])==null?void 0:w.split(" & ");$.value=$.value.concat(W),T.value=T.value.concat(_)}))}const G=()=>{var l;const t=(l=B.params)==null?void 0:l.ruleName;if(t&&a.scope==="service"){const u=t==null?void 0:t.split(":");a.version=u[1],a.group=u[2].split(".")[0]}};return Q(async()=>{await z(),G()}),(t,l)=>{const u=i("a-typography-title"),v=i("a-flex"),r=i("a-descriptions-item"),_=i("a-typography-paragraph"),W=i("a-descriptions"),p=i("a-card"),w=i("a-row"),R=i("a-tag"),I=i("a-space"),A=i("a-col"),O=i("a-button");return c(),C("div",ae,[o(v,{style:{width:"100%"}},{default:e(()=>[o(A,{span:k.value?24-N.value:24,class:"left"},{default:e(()=>[o(w,null,{default:e(()=>[o(v,{justify:"space-between",style:{width:"100%"}},{default:e(()=>[o(u,{level:3},{default:e(()=>[n(" 基础信息")]),_:1})]),_:1}),o(p,{class:"_detail"},{default:e(()=>[o(W,{column:2,layout:"vertical",title:""},{default:e(()=>[o(r,{label:t.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[0]||(l[0]=d=>g(a.key))},[n(s(a.key)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.scope),1)]),_:1})]),_:1},8,["label"]),a.scope=="service"?(c(),f(r,{key:0,label:"版本",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[1]||(l[1]=d=>g(a.version))},[n(s(a.version)+" ",1),a.version.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),a.scope=="service"?(c(),f(r,{key:1,label:"分组",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[2]||(l[2]=d=>g(a.group))},[n(s(a.group)+" ",1),a.group.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),o(r,{label:t.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[3]||(l[3]=d=>g(P.value))},[n(s(P.value)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.faultTolerantProtection"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.force?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.enabled?t.$t("flowControlDomain.enabled"):t.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.runtime?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(p,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[o(I,{align:"start",style:{width:"100%"}},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.requestParameterMatching"))+": ",1)]),_:1}),o(I,{align:"center",direction:"horizontal",size:"middle",wrap:""},{default:e(()=>[(c(!0),C(V,null,j($.value,(d,M)=>(c(),f(R,{key:M,color:"#2db7f5"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(I,{align:"start",style:{width:"100%"},wrap:""},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.addressSubsetMatching"))+": ",1)]),_:1}),(c(!0),C(V,null,j(T.value,(d,M)=>(c(),f(R,{key:M,color:"#87d068"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["span"]),o(A,{span:k.value?N.value:0,class:"right"},{default:e(()=>[k.value?(c(),f(p,{key:0,class:"sliderBox"},{default:e(()=>[(c(),C(V,null,j(2,d=>o(p,{key:d},{default:e(()=>[le,ne,o(v,{justify:"flex-end"},{default:e(()=>[o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("查看")]),_:1}),o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):b("",!0)]),_:1},8,["span"])]),_:1})])}}}),ue=ee(se,[["__scopeId","data-v-f3c3c57f"]]);export{ue as default}; +======== +import{u as H}from"./index-mXj9VWUy.js";import{d as L,k as U,a as F,B as h,r as J,l as K,D as Q,c as C,b as o,w as e,e as i,o as c,f as n,j as m,t as s,n as D,a0 as S,J as f,T as b,L as V,M as j,m as X,p as Y,h as Z,_ as ee}from"./index-JtaswhjV.js";import{g as te}from"./traffic-BsDR0F4K.js";import{H as oe}from"./request--dYXBGM5.js";const q=y=>(Y("data-v-f3c3c57f"),y=y(),Z(),y),ae={class:"__container_routingRule_detail"},le=q(()=>m("p",null,"修改时间: 2024/3/20 15:20:31",-1)),ne=q(()=>m("p",null,"版本号: xo842xqpx834",-1)),se=L({__name:"formView",setup(y){const{appContext:{config:{globalProperties:E}}}=U(),B=F(),k=h(!1),N=h(8),x=H().toClipboard;function g(t){X.success(E.$t("messageDomain.success.copy")),x(t)}const a=J({}),P=K(()=>{const t=a.key||"",l=typeof t=="string"?t.split(":"):[];return a.version=l[1]||"",a.group=l[2]||"",l[0]||""}),$=h([]),T=h([]);async function z(){var l;let t=await te((l=B.params)==null?void 0:l.ruleName);(t==null?void 0:t.code)===oe.SUCCESS&&(Object.assign(a,(t==null?void 0:t.data)||{}),a.conditions.forEach((u,v)=>{var p,w;const r=u.split(" => "),_=(p=r[1])==null?void 0:p.split(" & "),W=(w=r[0])==null?void 0:w.split(" & ");$.value=$.value.concat(W),T.value=T.value.concat(_)}))}const G=()=>{var l;const t=(l=B.params)==null?void 0:l.ruleName;if(t&&a.scope==="service"){const u=t==null?void 0:t.split(":");a.version=u[1],a.group=u[2].split(".")[0]}};return Q(async()=>{await z(),G()}),(t,l)=>{const u=i("a-typography-title"),v=i("a-flex"),r=i("a-descriptions-item"),_=i("a-typography-paragraph"),W=i("a-descriptions"),p=i("a-card"),w=i("a-row"),R=i("a-tag"),I=i("a-space"),A=i("a-col"),O=i("a-button");return c(),C("div",ae,[o(v,{style:{width:"100%"}},{default:e(()=>[o(A,{span:k.value?24-N.value:24,class:"left"},{default:e(()=>[o(w,null,{default:e(()=>[o(v,{justify:"space-between",style:{width:"100%"}},{default:e(()=>[o(u,{level:3},{default:e(()=>[n(" 基础信息")]),_:1})]),_:1}),o(p,{class:"_detail"},{default:e(()=>[o(W,{column:2,layout:"vertical",title:""},{default:e(()=>[o(r,{label:t.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[0]||(l[0]=d=>g(a.key))},[n(s(a.key)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.scope),1)]),_:1})]),_:1},8,["label"]),a.scope=="service"?(c(),f(r,{key:0,label:"版本",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[1]||(l[1]=d=>g(a.version))},[n(s(a.version)+" ",1),a.version.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),a.scope=="service"?(c(),f(r,{key:1,label:"分组",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[2]||(l[2]=d=>g(a.group))},[n(s(a.group)+" ",1),a.group.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),o(r,{label:t.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[3]||(l[3]=d=>g(P.value))},[n(s(P.value)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.faultTolerantProtection"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.force?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.enabled?t.$t("flowControlDomain.enabled"):t.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.runtime?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(p,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[o(I,{align:"start",style:{width:"100%"}},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.requestParameterMatching"))+": ",1)]),_:1}),o(I,{align:"center",direction:"horizontal",size:"middle",wrap:""},{default:e(()=>[(c(!0),C(V,null,j($.value,(d,M)=>(c(),f(R,{key:M,color:"#2db7f5"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(I,{align:"start",style:{width:"100%"},wrap:""},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.addressSubsetMatching"))+": ",1)]),_:1}),(c(!0),C(V,null,j(T.value,(d,M)=>(c(),f(R,{key:M,color:"#87d068"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["span"]),o(A,{span:k.value?N.value:0,class:"right"},{default:e(()=>[k.value?(c(),f(p,{key:0,class:"sliderBox"},{default:e(()=>[(c(),C(V,null,j(2,d=>o(p,{key:d},{default:e(()=>[le,ne,o(v,{justify:"flex-end"},{default:e(()=>[o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("查看")]),_:1}),o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):b("",!0)]),_:1},8,["span"])]),_:1})])}}}),ue=ee(se,[["__scopeId","data-v-f3c3c57f"]]);export{ue as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/formView-ULhh7EIP.js diff --git a/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js b/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js index 1d4b01ef1..8235fc28a 100644 --- a/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js +++ b/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js import{d as W,v as B,a as A,k as E,l as L,r as M,D as x,c as m,b as t,w as a,L as v,M as w,e as l,n as _,P as H,o as c,j as h,f as n,t as o,a0 as D,J as $,m as U,_ as F}from"./index-rt1yTeew.js";import{u as G}from"./index-nvCr9_iI.js";import{e as J}from"./traffic-nmA_BhEL.js";import{H as Y}from"./request-vlI2kaaR.js";const q={class:"__container_app_detail"},z=W({__name:"formView",setup(K){B(e=>({"5b433755":_(H)}));const k=A(),{appContext:{config:{globalProperties:S}}}=E(),O=G().toClipboard;function f(e){U.success(S.$t("messageDomain.success.copy")),O(e)}const b=L(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=M({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),R=async()=>{var r;const e=await J((r=k.params)==null?void 0:r.ruleName);e.code===Y.SUCCESS&&Object.assign(s,e.data||{})};return x(()=>{R()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),T=l("a-descriptions"),g=l("a-card"),N=l("a-flex"),V=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),j=l("a-tag");return c(),m("div",q,[t(N,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(T,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>f(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>f(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),m(v,null,w(s.tags,(p,I)=>(c(),$(g,{title:`标签【${I+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(V,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),m(v,null,w(p.match,(d,P)=>(c(),$(j,{key:P,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),te=F(z,[["__scopeId","data-v-4613afa3"]]);export{te as default}; +======== +import{d as W,v as B,a as A,k as E,l as L,r as M,D as x,c as m,b as t,w as a,L as v,M as w,e as l,n as _,P as H,o as c,j as h,f as n,t as o,a0 as D,J as $,m as U,_ as F}from"./index-JtaswhjV.js";import{u as G}from"./index-mXj9VWUy.js";import{e as J}from"./traffic-BsDR0F4K.js";import{H as Y}from"./request--dYXBGM5.js";const q={class:"__container_app_detail"},z=W({__name:"formView",setup(K){B(e=>({"5b433755":_(H)}));const k=A(),{appContext:{config:{globalProperties:S}}}=E(),O=G().toClipboard;function f(e){U.success(S.$t("messageDomain.success.copy")),O(e)}const b=L(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=M({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),R=async()=>{var r;const e=await J((r=k.params)==null?void 0:r.ruleName);e.code===Y.SUCCESS&&Object.assign(s,e.data||{})};return x(()=>{R()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),T=l("a-descriptions"),g=l("a-card"),N=l("a-flex"),V=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),j=l("a-tag");return c(),m("div",q,[t(N,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(T,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>f(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>f(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),m(v,null,w(s.tags,(p,I)=>(c(),$(g,{title:`标签【${I+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(V,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),m(v,null,w(p.match,(d,P)=>(c(),$(j,{key:P,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),te=F(z,[["__scopeId","data-v-4613afa3"]]);export{te as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/formView-lbEY3Kt0.js diff --git a/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js b/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js index 201ec6e07..12de9bb29 100644 --- a/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js +++ b/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js import{d as tn,v as en,y as rn,z as nn,k as sn,a as an,u as on,B as Ge,r as Ke,l as Fi,D as ln,c as Ct,b as D,w as P,J as $,T as zt,a4 as Ii,e as rt,n as G,P as Ft,o as E,j as Re,L as Wt,M as qt,f as nt,t as dt,ah as un,I as ne,ak as fn,m as ge,_ as hn}from"./index-rt1yTeew.js";import{u as _n}from"./index-nvCr9_iI.js";import{k as dn,l as cn,m as pn}from"./traffic-nmA_BhEL.js";import{V as mn,C as gn}from"./ConfigModel-yjTa7EW2.js";import"./request-vlI2kaaR.js";function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tr(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*! +======== +import{d as tn,v as en,y as rn,z as nn,k as sn,a as an,u as on,B as Ge,r as Ke,l as Fi,D as ln,c as Ct,b as D,w as S,J as $,T as zt,a4 as Ii,e as rt,n as G,P as Ft,o as E,j as Re,L as Wt,M as qt,f as nt,t as dt,af as un,I as ne,ai as fn,m as ge,_ as hn}from"./index-JtaswhjV.js";import{u as _n}from"./index-mXj9VWUy.js";import{k as dn,l as cn,m as pn}from"./traffic-BsDR0F4K.js";import{V as mn,C as gn}from"./ConfigModel-t29mQMqm.js";import"./request--dYXBGM5.js";function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tr(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*! +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/formView-IcrDVJjl.js * GSAP 3.12.7 * https://gsap.com * diff --git a/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js b/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js index eb9f99cb1..6cf1e1c38 100644 --- a/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js +++ b/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js import{m as F}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as F}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/freemarker2--tagdD0m.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js b/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js index 5e97a77c2..d3db41455 100644 --- a/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js +++ b/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js import{r as t}from"./request-vlI2kaaR.js";const r=e=>t({url:"/auth/login",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}}),s=()=>t({url:"/auth/logout",method:"post"}),a=()=>t({url:"/meshes",method:"get"});export{s as a,r as l,a as m}; +======== +import{r as t}from"./request--dYXBGM5.js";const r=e=>t({url:"/auth/login",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}}),s=()=>t({url:"/auth/logout",method:"post"}),a=()=>t({url:"/meshes",method:"get"});export{s as a,r as l,a as m}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/globalSearch-tZ8VrkZD.js diff --git a/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js b/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js index 4693e764b..affaed315 100644 --- a/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js +++ b/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js import{m as i}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as i}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/handlebars-tQKSlSHV.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js b/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js index dd8583050..95ae99401 100644 --- a/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js +++ b/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js import{m as p}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as p}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/html-p0SFTXEz.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js b/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js index 581daa9eb..d352fb746 100644 --- a/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js +++ b/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js import{m as ft}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as ft}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/htmlMode-AAgMy7ra.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js b/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js index 76616fa70..f893e8c60 100644 --- a/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js +++ b/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js import{d as b,u as d,c as u,f as o,b as s,w as r,n as _,j as t,e as c,o as i}from"./index-rt1yTeew.js";const h={class:"__container_tab_index"},p=t("br",null,null,-1),f=t("a",{href:"/admin/common/tab/tab1/pathId1"},"to tab1 by href",-1),m=t("br",null,null,-1),x=t("a",{href:"tab2/pathId1"},"to tab2 by href",-1),C=t("br",null,null,-1),k=t("br",null,null,-1),B=b({__name:"index",setup(v){const n=d();return(y,e)=>{const a=c("a-button");return i(),u("div",h,[o(" tab page "),p,f,m,x,C,s(a,{onClick:e[0]||(e[0]=l=>_(n).push("/common/tab/tab1/pathId1"))},{default:r(()=>[o("to tab1 by href")]),_:1}),k,s(a,{onClick:e[1]||(e[1]=l=>_(n).push("tab2/pathId1"))},{default:r(()=>[o("to tab2 by href")]),_:1})])}}});export{B as default}; +======== +import{d as b,u as d,c as u,f as o,b as s,w as r,n as _,j as t,e as c,o as i}from"./index-JtaswhjV.js";const h={class:"__container_tab_index"},p=t("br",null,null,-1),f=t("a",{href:"/admin/common/tab/tab1/pathId1"},"to tab1 by href",-1),m=t("br",null,null,-1),x=t("a",{href:"tab2/pathId1"},"to tab2 by href",-1),C=t("br",null,null,-1),k=t("br",null,null,-1),B=b({__name:"index",setup(v){const n=d();return(y,e)=>{const a=c("a-button");return i(),u("div",h,[o(" tab page "),p,f,m,x,C,s(a,{onClick:e[0]||(e[0]=l=>_(n).push("/common/tab/tab1/pathId1"))},{default:r(()=>[o("to tab1 by href")]),_:1}),k,s(a,{onClick:e[1]||(e[1]=l=>_(n).push("tab2/pathId1"))},{default:r(()=>[o("to tab2 by href")]),_:1})])}}});export{B as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-1IoRy9d1.js diff --git a/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js b/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js index 087c90e45..dc910184c 100644 --- a/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js +++ b/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js import{s as b}from"./app-4lFIb2G-.js";import{S as g,a as D}from"./SearchUtil-FCBI7ppE.js";import{d as S,a as q,r as v,D as V,F as E,c as l,b as _,w as r,U as A,e as m,o as a,L as y,M as h,J as i,f as c,t as p,j as C,n as f,I as B,Y as T,T as F,z as M,_ as R}from"./index-rt1yTeew.js";import"./request-vlI2kaaR.js";const Y={class:"__container_resources_application_index"},J=["onClick"],L=S({__name:"index",setup(O){let d=q(),k=d.query.query,x=[{title:"appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const e=v(new g([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],b,x));return V(()=>{e.onSearch(),e.tableStyle={scrollX:"100",scrollY:"367px"}}),A(M.SEARCH_DOMAIN,e),E(d,(n,I)=>{e.queryForm.keywords=n.query.query,e.onSearch(),console.log(n)}),(n,I)=>{const u=m("a-tag"),N=m("a-tooltip");return a(),l("div",Y,[_(D,{"search-domain":e},{bodyCell:r(({text:t,record:w,index:$,column:s})=>[s.dataIndex==="registryClusters"?(a(!0),l(y,{key:0},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="deployClusters"?(a(!0),l(y,{key:1},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="appName"?(a(),i(N,{key:2,title:t},{default:r(()=>[C("span",{class:"app-link",onClick:o=>f(T).push(`/resources/applications/detail/${w[s.key]}`)},[C("b",null,[_(f(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),c(" "+p(t),1)])],8,J)]),_:2},1032,["title"])):F("",!0)]),_:1},8,["search-domain"])])}}}),P=R(L,[["__scopeId","data-v-fcc0f0eb"]]);export{P as default}; +======== +import{s as b}from"./app-PIImRajL.js";import{S as g,a as D}from"./SearchUtil-euy68KhE.js";import{d as S,a as q,r as v,D as V,F as E,c as l,b as _,w as r,U as A,e as m,o as a,L as y,M as h,J as i,f as c,t as p,j as C,n as f,I as B,Y as T,T as F,z as M,_ as R}from"./index-JtaswhjV.js";import"./request--dYXBGM5.js";const Y={class:"__container_resources_application_index"},J=["onClick"],L=S({__name:"index",setup(O){let d=q(),k=d.query.query,x=[{title:"appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const e=v(new g([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],b,x));return V(()=>{e.onSearch(),e.tableStyle={scrollX:"100",scrollY:"367px"}}),A(M.SEARCH_DOMAIN,e),E(d,(n,I)=>{e.queryForm.keywords=n.query.query,e.onSearch(),console.log(n)}),(n,I)=>{const u=m("a-tag"),N=m("a-tooltip");return a(),l("div",Y,[_(D,{"search-domain":e},{bodyCell:r(({text:t,record:w,index:$,column:s})=>[s.dataIndex==="registryClusters"?(a(!0),l(y,{key:0},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="deployClusters"?(a(!0),l(y,{key:1},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="appName"?(a(),i(N,{key:2,title:t},{default:r(()=>[C("span",{class:"app-link",onClick:o=>f(T).push(`/resources/applications/detail/${w[s.key]}`)},[C("b",null,[_(f(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),c(" "+p(t),1)])],8,J)]),_:2},1032,["title"])):F("",!0)]),_:1},8,["search-domain"])])}}}),P=R(L,[["__scopeId","data-v-fcc0f0eb"]]);export{P as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-97iE2q1l.js diff --git a/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js b/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js index 4977eef3b..ea7c65541 100644 --- a/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js +++ b/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js import{b as n,A as I,d as V,k as ue,a as X,l as Y,r as G,u as k,e as u,o as g,c as B,n as i,q as we,s as ie,I as de,_ as Z,v as pe,P as C,x as ze,y as q,z as S,B as z,C as Ye,D as je,E as Be,F as ae,G as Re,H as Ke,w as s,J as j,K as Ue,L as J,M as me,f as U,t as Q,S as Le,N as Fe,j as L,O as oe,Q as Ce,R as Se,p as He,h as Ne,T as fe,U as se,V as Ee,W as Te}from"./index-rt1yTeew.js";import{s as Ge}from"./app-4lFIb2G-.js";import{s as Qe}from"./instance-ChxJL4oQ.js";import{s as Ve}from"./service-RF66g7V7.js";import{m as Xe,a as Ze}from"./globalSearch-_m3MXXfo.js";import{u as qe}from"./request-vlI2kaaR.js";var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ke=Ie;function ce(a){for(var e=1;e[v(c.meta)]),P=G([]);function v(l){var d;return l.tab||l.hidden?v((d=l.parent)==null?void 0:d.meta):l._router_key}function A(){var d,h;let l=c.meta.parent;for(;l;)P.push((d=l.meta)==null?void 0:d._router_key),l=(h=l.meta)==null?void 0:h.parent}A();function y(l){o[0]=l.key}function b(l,d,h,O,K,D){return O&&(O=ie(de,{icon:O})),{key:h,title:d,icon:O,children:K,label:Y(()=>e.$t(l)),type:D}}const R=G([]);function x(l,d,h="root"){var O,K,D,N,F,E,p,m,_;if(!(!l||l.length===0))for(let r of l){if((O=r.meta)!=null&&O.skip){x(r.children,d,r.name);continue}if(!((K=r.meta)!=null&&K.hidden))if(!r.children||r.children.length===0||(D=r.meta)!=null&&D.tab_parent)d.push(b(r.name,r.path,(N=r.meta)==null?void 0:N._router_key,(F=r.meta)==null?void 0:F.icon));else if(r.children.length===1)d.push(b(r.children[0].name,r.path,(E=r.meta)==null?void 0:E._router_key,(p=r.children[0].meta)==null?void 0:p.icon));else{const w=G([]);x(r.children,w,r.name),d.push(b(r.name,r.path,(m=r.meta)==null?void 0:m._router_key,(_=r.meta)==null?void 0:_.icon,w))}}}x(t,R);const M=k(),H=l=>{var d;M.push((d=l.item)==null?void 0:d.title)};return(l,d)=>{const h=u("a-menu");return g(),B("div",rt,[n(h,{mode:"inline",selectedKeys:i(o),"open-keys":i(P),onSelect:y,items:R,onClick:H},null,8,["selectedKeys","open-keys","items"])])}}}),ut=Z(lt,[["__scopeId","data-v-0c21c672"]]),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAAENCAYAAAAVEjAIAAAOg0lEQVR4Xu3dYXXjSBSE0YUwEAJhIQjCQDCEgSAIA8EQBoIhLARDWAa17mQzZ1KJbcVx8rq7vnuO/3eXyi+SLDt//XVHkhYB0r+n1+H/18/Taz29dnrqxzfvDYL9Xwrgmueh0gZKGyZ/e5cQQgwNfEwbJO2sZPFuYVLtYFsJgI9oQ+TH6fXgXcMkxNDA5znq6XKGS5mZiKGBr9EGSLuMefAOYjBiaODrtUuYnXcRgxBDA3XaJzLt8uXBe4mOiaGBPuzFJzBjaAfKjx5QqF26LN5TdKQdID9qQAcYHr1qB8aPFtCRNjz4yLYnYmhgDO2eB9+B6YEYGhhH+7Rl9Q7ji4mhgfEcxf2OOi18PyLAINozHlyyfDUxNDA2zjq+WgvcjwIwIM46vooYGpjHP+Lj2c8nhgbm88N7jjsSQwNz2ovLlc8hhgbmxeXKZxBDA3NrD4Qt3nt8QAvUUwYmtPPu40ZiaCDH3vuPG4ihgSx7fw/gncTQQJ52g5RPVm4lhgYyMThuJYYGcjE4biGGBrIxON5LDA2AwfEeYmgADYNjKzE0gGcMji3E0AD+tPf3CIwYGoDb+/sEfxBDA3gLv8lxjhgawDk7f7/gL4YGcEH7Wj2/x+HE0AAuOYpPVF4SQwO45uDvm2hiaABbrP7eiSWGxmdp18OHDl+43Xd//0QSQ+Me2oDYn16702vxjHti68b7tOPM/Q0xNG71PCiGurvum8C7HTzTOGJovFcbFqsG/Yvjm8FNsh/8EkNjq6GHxTPfFG421BnmXYmhscXh9Hrw7EbkG8PN/vFsY4ihcc3qmY3MN4cPWT3fCGJonDPlf+byTeLD8i5TxNB4y7TfOfCN4sMOnvH0xNBw0w6MxjeLu8j6NEUMjT9NPTAa3zDuIuuhLzE0/rTzfGbjG8bd7D3raYmh8eynZzMj3zTuauqz1N/E0GiOCjm99I3jrg6e95TE0GgWz2VWvnHc3eKZT6dt0ncdZu+ZzMw3j7s7eubTEUPjwTOZmW8en2LnuU9F2UNj73nMzgPApzh67lNR9tDIuNv9Bw8An2bn2U9DuUNjyG8pntb9t56O2a0vfI2jH7tpKLdIQzz6e1rnQ1urnv45Mcay8+M5BeUOja4vTU7r+6annxPEuI5+XKegzKHxr+fQk9P6vrc1+qIxpJ0f3+Epc2j88hx6oaefFMQ8Dn6Mh6fMobF6Dj3Q070LzGfxYz20tiHfYYDvnkO1tiZfJKax9+M9NGUOjcVzqKSnm57cw5jbPF+IFEOjnLiPkWD14z4sBQ4Nz6CSOMtIcfRjPywxNErp6f+/IsPix39IbSO+s9l5BpVOy/nl68O09n78hySGRilxaZKk64cKNxNDo5SvDdPr7uP+dxNDo4yevrGKLHvvwXDE0CijwOwxwSWKAovrGVRRYPZ4NPYligKL6xlUUWD2eLT3LgxFgcX1DKooMHs8OnoXhqLA4noGVRSYPX7r+kegLlJgcT2DKgrMHr+t3odhKLC4nkEVBWaP34b8YetHCiyuZ1BFgdnjhTG/Lq/A4noGVRSYPV4Y86NXBRbXM6iiwOzxwk/vxBAUWFzPoIoCs8cLY97XUGBxPYMqCswer4x3X0OBxfUMqigwe7wy3n0NBRbXM6iiwOzxynj3NRRYXM+gigKzxysH70X3FFhcz6CKArPHa96L7imwuJ5BFQVmjzct3o2utQX7DmbnGVRRYPZ40w/vRtcUWFzPoIoCs8eb9t6NrimwuJ5BFQVmjzeN9ZCXAovrGVRRYPZ4m3ejawosrmdQRYHZ46zF+9Gttlhf/ew8gyoKzB5n7bwf3VJgcT2DKgrMHmeN82SoAovrGVRRYPY46+D96JYCi+sZVFFg9jhrnH+ipMDiegZVFJg9zvN+dEuBxfUMqigwe1y0eEe61BbqK5+dZ1BFgdnjop13pEsKLK5nUEWB2eOi1TvSJQUW1zOoosDscdHeO9IlBRbXM6iiwOxx0cE70iUFFtczqKLA7HHRGB+7KrC4nkEVBWaPy7wjXVJgcT2DKgrMHlc9eE+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HFV//8HRYHF9QyqKDB7XLV6T7qjwOJ6BlUUmD2uWr0n3VFgcT2DKgrMHlf98p50R4HF9QyqKDB7XHXwnnRHgcX1DKooMHtcdfCedEeBxfUMqigwe1zV/1OhCiyuZ1BFgdnjOu9JdxRYXM+gigKzx3Xek+4osLieQRUFZo/rvCfdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00W70pX2gJ9xbPzDKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyard6UrCiyuZ1BFgdljk9W70hUFFtczqKLA7LHJ6l3pigKL6xlUUWD22GT1rnRFgcX1DKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyY/vCtdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00evCtdUWBxPYMqCswe13lPuqPA4noGVRSYPa7znnRHgcX1DKooMHtc5z3pjgKL6xlUUWD2uOroPemOAovrGVRRYPa46uA96Y4Ci+sZVFFg9rjq4D3pjgKL6xlUUWD2uGrvPemOAovrGVRRYPa4avWedEeBxfUMqigwe1y1ek+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HHV4j3pTlukr3p2nkEVBWaPq755T7qjwOJ6BlUUmD0u8450SYHF9QyqKDB7XPSPd6RLCiyuZ1BFgdnjooN3pEsKLK5nUEWB2eOin96RLimwuJ5BFQVmj4tW70iXFFhcz6CKArPHRYt3pEttob7y2XkGVRSYPS762zvSJQUW1zOoosDscZ73o1sKLK5nUEWB2eOsMT5ubRRYXM+gigKzx1m/vB/dUmBxPYMqCsweZ63ej24psLieQRUFZo+zvns/uqXA4noGVRSYPc4a45OTRoHF9QyqKDB7vM270TUFFtczqKLA7PGmg3ejawosrmdQRYHZ401jfOfkmQKL6xlUUWD2eNPOu9E1BRbXM6iiwOzxpgfvRtcUWFzPoIoCs8cr/3ovuqfA4noGVRSYPV4Z50nQZwosrmdQRYHZ45XVe9E9BRbXM6iiwOzxyuK96F5btO9idp5BFQVmj5e8E0NQYHE9gyoKzB4vHLwTQ1BgcT2DKgrMHi+s3okhKLC4nkEVBWaPFxbvxBDawn0ns/MMqigwe/w23vMZzxRYXM+gigKzx2/jPZ/xTIHF9QyqKDB7/LbzPgxDgcX1DKooMHv89uB9GIYCi+sZVFFg9ng0zi+Pv0WBxfUMqigwezwa6/cznAKL6xlUUWD2eDTO74G+RYHF9QyqKDB76Og9GI4Ci+sZVDkt5ZuvDdMb+9KkEUOjlK8N0xv70qQRQ6PUaTlHXx+mdfTjPyQxNEqdlrP39WFa41+aNGJolDot57uvD9N68OM/JAUOjZNvnkMlcYmSYNzvmjhlDo3Fc6h0Ws/OF4jpLH7ch9U247sLsHgO1U5rOvgiMY2jH++hKXNo7DyHaqc1PZxe//pCMYWdH++hKXNorJ5DD07r+lsMjtm049nVPbQPU+bQOHgOvRCDYzarH+PhKXNodPWxq9PT4+Xc4xjffGcZjUKHxsl3z6I3ejo2DI9xrX5Mp6DcobH3LHqlp0uWH6fXr9Prn5fbQKfmPMtolDs0xv016A/wEPBpVs9+GsodGs3O85idB4BPMe9ZRqPsoXHwPGbnAeBTrJ77VJQ9NJrFM5mZbx53N/dZRiOGxti/DP1Ovnnc3Q/PfDpiaDTzH+j/+cZxV0fPe0piaDTtlPLBs5mRbxx31f2zP3chhsaziMsU3zTu5uBZT0sMjT/tPZ/Z+IZxNw+e9bTE0HA7z2gmvlncxeo5T00MjbfsPKdZ+EbxYUfN/hGrE0PjnJ1nNQPfJD4s4+bnn8TQuGTveY3ON4gPmefHgt9DDI1r2rdKHzy3UfnmcLP5n/w8RwyNLVpBpngAzDeGm+VdljwTQ+M92lnH4hmOxDeEm2ReljwTQ+MWBw36l8Y3gnc7KvWy5JkYGh/RCvRTA/0ncN8A3m3xTOO0EDwV3KTd92hnIKue/j9ry7W7v0gvVoz3Wj3PSGJoAFsc/L0TSwwN4Jrcj1ffIoYGcM3i75toLRBPCMBvUzyfc1diaADn7P39gr8YGsAZET/KdBMxNADXnvzlxuc5YmgAf2qflAzzsF4JMTSAZwyMLcTQAJ4N+X2iLyeGBtDs/L2BM8TQAHb+vsAFYmgg287fE7hCDA3k2vn7ARuIoYFMO38vYCMxNJBn5+8DvIMYGsjBcxj3IIYGMjAw7kUMDcyP75LckxgamNteDIz7EkMD81q977gDMTQwn3b/gu+RfBYxNDCXqf73bpfE0MA8fnq/8QnE0MD4jqfX4t3GJ2lh+xEABvJLfDrytcTQwJg4u6jSgvejAXSu/dNtzi6qiKGBcRzEo+D1xNBA/9qlCM9d9EIMDfSrPaS1emdRTAwN9OdxWIj7Fn0SQwP9YFiMQAwN1Gv3LHZiWIxBDA3UaQ9mcYNzNGJo4Gu1s4p2CfLgXcQgxNDA52v3KvbiCc45tANpBxi4h3ZG0QYFlx+zEUMD93M4vX6IpzbnJoYGbtPOJNqNzHZ/YvFeYWLtgL/sAvBKO4NolxqPA0J8NJrt/xIgSxsC/moD4fnVOrF4VwAAAIDX/gMpuapHNnE8KQAAAABJRU5ErkJggg==",te=a=>(He("data-v-7db622e9"),a=a(),Ne(),a),dt={class:"__container_layout_header"},pt=te(()=>L("div",null,null,-1)),mt=te(()=>L("div",null,null,-1)),ft=te(()=>L("a",{href:"javascript:;"},"logout",-1)),gt={class:"username"},_t=V({__name:"layout_header",setup(a){pe(p=>({"4576ef0a":i(C),c3773ce4:i(ze)}));const{appContext:{config:{globalProperties:e}}}=ue(),t=q(S.COLLAPSED),c=q(S.LOCALE);let o=z(Ye.locale);function P(p){localStorage.setItem(oe,p),C.value=p}function v(p){localStorage.removeItem(oe),C.value=Ce}function A(){Se(),Ze().then(()=>{D.replace(`/login?redirect=${N.path}`)})}const y=z([]),b=qe(),R=q(S.LAYOUT_ROUTE_KEY),x=p=>{b.mesh=p,R()};je(async()=>{const{data:p}=await Xe();y.value=p});const M=Be();ae(o,p=>{Re(p)});const H=G([{label:Y(()=>e.$t("application")),value:"applications"},{label:Y(()=>e.$t("instance")),value:"instances"},{label:Y(()=>e.$t("service")),value:"services"}]),l=z(H[0].value),d=z(""),h=async()=>{const p={keywords:d.value},m=async(_,r)=>{const{data:{list:w}}=await _(p);O.value=w.map(T=>({label:T[r],value:T[r]}))};switch(l.value){case"ip":break;case"applications":await m(Ge,"appName");break;case"instances":await m(Qe,"name");break;case"services":await m(Ve,"serviceName");break}};ae(l,async p=>{await h()});const O=z([]),K=Ke.debounce(h,300),D=k(),N=X(),F=()=>{D.replace(`/resources/${l.value}/list?query=${d.value}`)},E=()=>{};return(p,m)=>{const _=u("a-flex"),r=u("a-select-option"),w=u("a-select"),T=u("a-auto-complete"),ge=u("a-button"),_e=u("a-input-group"),ve=u("a-form-item"),he=u("a-form"),Oe=u("a-segmented"),Pe=u("color-picker"),ye=u("a-popover"),be=u("a-avatar"),xe=u("a-menu-item"),Ae=u("a-menu"),Me=u("a-dropdown"),De=u("a-layout-header");return g(),B("div",dt,[n(De,{class:"header"},{default:s(()=>[n(_,{style:{height:"100%"},justify:"space-between",align:"center"},{default:s(()=>[n(_,null,{default:s(()=>[i(t)?(g(),j(i(nt),{key:0,class:"trigger",onClick:m[0]||(m[0]=()=>t.value=!i(t))})):(g(),j(i(We),{key:1,class:"trigger",onClick:m[1]||(m[1]=()=>t.value=!i(t))}))]),_:1}),pt,n(_,{gap:20},{default:s(()=>[n(_e,{onKeyup:Ue(F,["enter"]),class:"search-group",compact:""},{default:s(()=>[n(w,{value:l.value,"onUpdate:value":m[2]||(m[2]=f=>l.value=f),class:"select-type"},{default:s(()=>[(g(!0),B(J,null,me(H,f=>(g(),j(r,{value:f.value},{default:s(()=>[U(Q(f.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),n(T,{value:d.value,"onUpdate:value":m[3]||(m[3]=f=>d.value=f),class:"input-keywords",placeholder:p.$t("globalSearchTip"),options:O.value,onSelect:E,onSearch:i(K)},null,8,["value","placeholder","options","onSearch"]),n(ge,{icon:ie(i(Le)),class:"search-icon",onClick:F},null,8,["icon"])]),_:1}),n(he,{layout:"inline"},{default:s(()=>[n(ve,{class:"mesh-select-item",label:p.$t("registryCenter"),inline:""},{default:s(()=>[n(w,{class:"mesh-select",value:i(b).mesh,options:y.value.map(f=>({value:f.id,label:f.name})),onChange:x},null,8,["value","options"])]),_:1},8,["label"])]),_:1})]),_:1}),mt,n(_,{align:"center",gap:"middle"},{default:s(()=>[n(_,{align:"center"},{default:s(()=>[n(Oe,{value:i(o),"onUpdate:value":m[4]||(m[4]=f=>Fe(o)?o.value=f:o=f),options:i(c).opts},null,8,["value","options"])]),_:1}),n(_,{align:"center"},{default:s(()=>[n(Pe,{pureColor:i(C),onPureColorChange:P,format:"hex6",shape:"circle",useType:"pure"},null,8,["pureColor"]),n(ye,null,{content:s(()=>[U("reset the theme")]),default:s(()=>[n(i(de),{class:"reset-icon",icon:"material-symbols:reset-tv-outline",onClick:v})]),_:1})]),_:1}),n(_,{align:"center"},{default:s(()=>{var f,ne;return[n(Me,null,{overlay:s(()=>[n(Ae,null,{default:s(()=>[n(xe,{onClick:A},{default:s(()=>[ft]),_:1})]),_:1})]),default:s(()=>[n(be,{onClick:m[5]||(m[5]=()=>{})},{icon:s(()=>[n(i(ct))]),_:1})]),_:1}),L("span",gt,Q((ne=(f=i(M))==null?void 0:f.userinfo)==null?void 0:ne.username),1)]}),_:1})]),_:1})]),_:1})]),_:1})])}}}),vt=Z(_t,[["__scopeId","data-v-7db622e9"]]),ht={class:"__container_layout_bread"},Ot=V({__name:"layout_bread",setup(a){const e=X();k();let t=Y(()=>{var o;return(o=e.params)!=null&&o.pathId?e.params.pathId:""});const c=Y(()=>e.matched.slice(1).map((o,P)=>({name:o.name})));return(o,P)=>{const v=u("a-breadcrumb-item"),A=u("a-breadcrumb");return g(),B("div",ht,[n(A,null,{default:s(()=>[(g(!0),B(J,null,me(c.value,y=>(g(),j(v,null,{default:s(()=>[U(Q(o.$t(y.name)),1)]),_:2},1024))),256)),i(t)?(g(),j(v,{key:0},{default:s(()=>[U(Q(i(t)),1)]),_:1})):fe("",!0)]),_:1})])}}}),Pt=Z(Ot,[["__scopeId","data-v-97925c3f"]]),yt={class:"__container_layout_index"},bt={class:"logo"},xt=["src"],At=V({__name:"index",setup(a){pe(P=>({"1cdde0dc":i(C)}));const e=z(!1);se(S.COLLAPSED,e);const t=X(),c=z(t.fullPath),o=()=>{c.value=`${t.fullPath}-${Date.now()}`};return se(S.LAYOUT_ROUTE_KEY,o),(P,v)=>{const A=u("a-layout-sider"),y=u("router-view"),b=u("a-layout-content"),R=u("a-layout-footer"),x=u("a-layout");return g(),B("div",yt,[n(x,{style:{height:"100vh"}},{default:s(()=>[n(A,{width:"268",collapsed:e.value,"onUpdate:collapsed":v[0]||(v[0]=M=>e.value=M),theme:"light",trigger:null,collapsible:""},{default:s(()=>[L("div",bt,[L("img",{alt:"Dubbo Admin",src:i(it)},null,8,xt),e.value?fe("",!0):(g(),B(J,{key:0},[U("Dubbo Admin")],64))]),n(ut)]),_:1},8,["collapsed"]),n(x,null,{default:s(()=>[n(vt,{collapsed:e.value},null,8,["collapsed"]),n(Pt),n(b,{class:"layout-content"},{default:s(()=>[(g(),j(y,{key:c.value},{default:s(({Component:M})=>[n(Ee,{name:"slide-fade"},{default:s(()=>[(g(),j(Te(M)))]),_:2},1024)]),_:1}))]),_:1}),n(R,{class:"layout-footer"},{default:s(()=>[U("© 2024 The Apache Software Foundation. ")]),_:1})]),_:1})]),_:1})])}}}),Bt=Z(At,[["__scopeId","data-v-e6898f0d"]]);export{Bt as default}; +======== +import{b as n,A as I,d as V,k as ue,a as X,l as Y,r as G,u as k,e as u,o as g,c as B,n as i,q as we,s as ie,I as de,_ as Z,v as pe,P as C,x as ze,y as q,z as S,B as z,C as Ye,D as je,E as Be,F as ae,G as Re,H as Ke,w as s,J as j,K as Ue,L as J,M as me,f as U,t as Q,S as Le,N as Fe,j as L,O as oe,Q as Ce,R as Se,p as He,h as Ne,T as fe,U as se,V as Ee,W as Te}from"./index-JtaswhjV.js";import{s as Ge}from"./app-PIImRajL.js";import{s as Qe}from"./instance-sa6ohjCn.js";import{s as Ve}from"./service-1UmnLUvi.js";import{m as Xe,a as Ze}from"./globalSearch-tZ8VrkZD.js";import{u as qe}from"./request--dYXBGM5.js";var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ke=Ie;function ce(a){for(var e=1;e[v(c.meta)]),P=G([]);function v(l){var d;return l.tab||l.hidden?v((d=l.parent)==null?void 0:d.meta):l._router_key}function A(){var d,h;let l=c.meta.parent;for(;l;)P.push((d=l.meta)==null?void 0:d._router_key),l=(h=l.meta)==null?void 0:h.parent}A();function y(l){o[0]=l.key}function b(l,d,h,O,K,D){return O&&(O=ie(de,{icon:O})),{key:h,title:d,icon:O,children:K,label:Y(()=>e.$t(l)),type:D}}const R=G([]);function x(l,d,h="root"){var O,K,D,N,F,E,p,m,_;if(!(!l||l.length===0))for(let r of l){if((O=r.meta)!=null&&O.skip){x(r.children,d,r.name);continue}if(!((K=r.meta)!=null&&K.hidden))if(!r.children||r.children.length===0||(D=r.meta)!=null&&D.tab_parent)d.push(b(r.name,r.path,(N=r.meta)==null?void 0:N._router_key,(F=r.meta)==null?void 0:F.icon));else if(r.children.length===1)d.push(b(r.children[0].name,r.path,(E=r.meta)==null?void 0:E._router_key,(p=r.children[0].meta)==null?void 0:p.icon));else{const w=G([]);x(r.children,w,r.name),d.push(b(r.name,r.path,(m=r.meta)==null?void 0:m._router_key,(_=r.meta)==null?void 0:_.icon,w))}}}x(t,R);const M=k(),H=l=>{var d;M.push((d=l.item)==null?void 0:d.title)};return(l,d)=>{const h=u("a-menu");return g(),B("div",rt,[n(h,{mode:"inline",selectedKeys:i(o),"open-keys":i(P),onSelect:y,items:R,onClick:H},null,8,["selectedKeys","open-keys","items"])])}}}),ut=Z(lt,[["__scopeId","data-v-0c21c672"]]),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAAENCAYAAAAVEjAIAAAOg0lEQVR4Xu3dYXXjSBSE0YUwEAJhIQjCQDCEgSAIA8EQBoIhLARDWAa17mQzZ1KJbcVx8rq7vnuO/3eXyi+SLDt//XVHkhYB0r+n1+H/18/Taz29dnrqxzfvDYL9Xwrgmueh0gZKGyZ/e5cQQgwNfEwbJO2sZPFuYVLtYFsJgI9oQ+TH6fXgXcMkxNDA5znq6XKGS5mZiKGBr9EGSLuMefAOYjBiaODrtUuYnXcRgxBDA3XaJzLt8uXBe4mOiaGBPuzFJzBjaAfKjx5QqF26LN5TdKQdID9qQAcYHr1qB8aPFtCRNjz4yLYnYmhgDO2eB9+B6YEYGhhH+7Rl9Q7ji4mhgfEcxf2OOi18PyLAINozHlyyfDUxNDA2zjq+WgvcjwIwIM46vooYGpjHP+Lj2c8nhgbm88N7jjsSQwNz2ovLlc8hhgbmxeXKZxBDA3NrD4Qt3nt8QAvUUwYmtPPu40ZiaCDH3vuPG4ihgSx7fw/gncTQQJ52g5RPVm4lhgYyMThuJYYGcjE4biGGBrIxON5LDA2AwfEeYmgADYNjKzE0gGcMji3E0AD+tPf3CIwYGoDb+/sEfxBDA3gLv8lxjhgawDk7f7/gL4YGcEH7Wj2/x+HE0AAuOYpPVF4SQwO45uDvm2hiaABbrP7eiSWGxmdp18OHDl+43Xd//0QSQ+Me2oDYn16702vxjHti68b7tOPM/Q0xNG71PCiGurvum8C7HTzTOGJovFcbFqsG/Yvjm8FNsh/8EkNjq6GHxTPfFG421BnmXYmhscXh9Hrw7EbkG8PN/vFsY4ihcc3qmY3MN4cPWT3fCGJonDPlf+byTeLD8i5TxNB4y7TfOfCN4sMOnvH0xNBw0w6MxjeLu8j6NEUMjT9NPTAa3zDuIuuhLzE0/rTzfGbjG8bd7D3raYmh8eynZzMj3zTuauqz1N/E0GiOCjm99I3jrg6e95TE0GgWz2VWvnHc3eKZT6dt0ncdZu+ZzMw3j7s7eubTEUPjwTOZmW8en2LnuU9F2UNj73nMzgPApzh67lNR9tDIuNv9Bw8An2bn2U9DuUNjyG8pntb9t56O2a0vfI2jH7tpKLdIQzz6e1rnQ1urnv45Mcay8+M5BeUOja4vTU7r+6annxPEuI5+XKegzKHxr+fQk9P6vrc1+qIxpJ0f3+Epc2j88hx6oaefFMQ8Dn6Mh6fMobF6Dj3Q070LzGfxYz20tiHfYYDvnkO1tiZfJKax9+M9NGUOjcVzqKSnm57cw5jbPF+IFEOjnLiPkWD14z4sBQ4Nz6CSOMtIcfRjPywxNErp6f+/IsPix39IbSO+s9l5BpVOy/nl68O09n78hySGRilxaZKk64cKNxNDo5SvDdPr7uP+dxNDo4yevrGKLHvvwXDE0CijwOwxwSWKAovrGVRRYPZ4NPYligKL6xlUUWD2eLT3LgxFgcX1DKooMHs8OnoXhqLA4noGVRSYPX7r+kegLlJgcT2DKgrMHr+t3odhKLC4nkEVBWaP34b8YetHCiyuZ1BFgdnjhTG/Lq/A4noGVRSYPV4Y86NXBRbXM6iiwOzxwk/vxBAUWFzPoIoCs8cLY97XUGBxPYMqCswer4x3X0OBxfUMqigwe7wy3n0NBRbXM6iiwOzxynj3NRRYXM+gigKzxysH70X3FFhcz6CKArPHa96L7imwuJ5BFQVmjzct3o2utQX7DmbnGVRRYPZ40w/vRtcUWFzPoIoCs8eb9t6NrimwuJ5BFQVmjzeN9ZCXAovrGVRRYPZ4m3ejawosrmdQRYHZ46zF+9Gttlhf/ew8gyoKzB5n7bwf3VJgcT2DKgrMHmeN82SoAovrGVRRYPY46+D96JYCi+sZVFFg9jhrnH+ipMDiegZVFJg9zvN+dEuBxfUMqigwe1y0eEe61BbqK5+dZ1BFgdnjop13pEsKLK5nUEWB2eOi1TvSJQUW1zOoosDscdHeO9IlBRbXM6iiwOxx0cE70iUFFtczqKLA7HHRGB+7KrC4nkEVBWaPy7wjXVJgcT2DKgrMHlc9eE+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HFV//8HRYHF9QyqKDB7XLV6T7qjwOJ6BlUUmD2uWr0n3VFgcT2DKgrMHlf98p50R4HF9QyqKDB7XHXwnnRHgcX1DKooMHtcdfCedEeBxfUMqigwe1zV/1OhCiyuZ1BFgdnjOu9JdxRYXM+gigKzx3Xek+4osLieQRUFZo/rvCfdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00W70pX2gJ9xbPzDKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyard6UrCiyuZ1BFgdljk9W70hUFFtczqKLA7LHJ6l3pigKL6xlUUWD22GT1rnRFgcX1DKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyY/vCtdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00evCtdUWBxPYMqCswe13lPuqPA4noGVRSYPa7znnRHgcX1DKooMHtc5z3pjgKL6xlUUWD2uOroPemOAovrGVRRYPa46uA96Y4Ci+sZVFFg9rjq4D3pjgKL6xlUUWD2uGrvPemOAovrGVRRYPa4avWedEeBxfUMqigwe1y1ek+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HHV4j3pTlukr3p2nkEVBWaPq755T7qjwOJ6BlUUmD0u8450SYHF9QyqKDB7XPSPd6RLCiyuZ1BFgdnjooN3pEsKLK5nUEWB2eOin96RLimwuJ5BFQVmj4tW70iXFFhcz6CKArPHRYt3pEttob7y2XkGVRSYPS762zvSJQUW1zOoosDscZ73o1sKLK5nUEWB2eOsMT5ubRRYXM+gigKzx1m/vB/dUmBxPYMqCsweZ63ej24psLieQRUFZo+zvns/uqXA4noGVRSYPc4a45OTRoHF9QyqKDB7vM270TUFFtczqKLA7PGmg3ejawosrmdQRYHZ401jfOfkmQKL6xlUUWD2eNPOu9E1BRbXM6iiwOzxpgfvRtcUWFzPoIoCs8cr/3ovuqfA4noGVRSYPV4Z50nQZwosrmdQRYHZ45XVe9E9BRbXM6iiwOzxyuK96F5btO9idp5BFQVmj5e8E0NQYHE9gyoKzB4vHLwTQ1BgcT2DKgrMHi+s3okhKLC4nkEVBWaPFxbvxBDawn0ns/MMqigwe/w23vMZzxRYXM+gigKzx2/jPZ/xTIHF9QyqKDB7/LbzPgxDgcX1DKooMHv89uB9GIYCi+sZVFFg9ng0zi+Pv0WBxfUMqigwezwa6/cznAKL6xlUUWD2eDTO74G+RYHF9QyqKDB76Og9GI4Ci+sZVDkt5ZuvDdMb+9KkEUOjlK8N0xv70qQRQ6PUaTlHXx+mdfTjPyQxNEqdlrP39WFa41+aNGJolDot57uvD9N68OM/JAUOjZNvnkMlcYmSYNzvmjhlDo3Fc6h0Ws/OF4jpLH7ch9U247sLsHgO1U5rOvgiMY2jH++hKXNo7DyHaqc1PZxe//pCMYWdH++hKXNorJ5DD07r+lsMjtm049nVPbQPU+bQOHgOvRCDYzarH+PhKXNodPWxq9PT4+Xc4xjffGcZjUKHxsl3z6I3ejo2DI9xrX5Mp6DcobH3LHqlp0uWH6fXr9Prn5fbQKfmPMtolDs0xv016A/wEPBpVs9+GsodGs3O85idB4BPMe9ZRqPsoXHwPGbnAeBTrJ77VJQ9NJrFM5mZbx53N/dZRiOGxti/DP1Ovnnc3Q/PfDpiaDTzH+j/+cZxV0fPe0piaDTtlPLBs5mRbxx31f2zP3chhsaziMsU3zTu5uBZT0sMjT/tPZ/Z+IZxNw+e9bTE0HA7z2gmvlncxeo5T00MjbfsPKdZ+EbxYUfN/hGrE0PjnJ1nNQPfJD4s4+bnn8TQuGTveY3ON4gPmefHgt9DDI1r2rdKHzy3UfnmcLP5n/w8RwyNLVpBpngAzDeGm+VdljwTQ+M92lnH4hmOxDeEm2ReljwTQ+MWBw36l8Y3gnc7KvWy5JkYGh/RCvRTA/0ncN8A3m3xTOO0EDwV3KTd92hnIKue/j9ry7W7v0gvVoz3Wj3PSGJoAFsc/L0TSwwN4Jrcj1ffIoYGcM3i75toLRBPCMBvUzyfc1diaADn7P39gr8YGsAZET/KdBMxNADXnvzlxuc5YmgAf2qflAzzsF4JMTSAZwyMLcTQAJ4N+X2iLyeGBtDs/L2BM8TQAHb+vsAFYmgg287fE7hCDA3k2vn7ARuIoYFMO38vYCMxNJBn5+8DvIMYGsjBcxj3IIYGMjAw7kUMDcyP75LckxgamNteDIz7EkMD81q977gDMTQwn3b/gu+RfBYxNDCXqf73bpfE0MA8fnq/8QnE0MD4jqfX4t3GJ2lh+xEABvJLfDrytcTQwJg4u6jSgvejAXSu/dNtzi6qiKGBcRzEo+D1xNBA/9qlCM9d9EIMDfSrPaS1emdRTAwN9OdxWIj7Fn0SQwP9YFiMQAwN1Gv3LHZiWIxBDA3UaQ9mcYNzNGJo4Gu1s4p2CfLgXcQgxNDA52v3KvbiCc45tANpBxi4h3ZG0QYFlx+zEUMD93M4vX6IpzbnJoYGbtPOJNqNzHZ/YvFeYWLtgL/sAvBKO4NolxqPA0J8NJrt/xIgSxsC/moD4fnVOrF4VwAAAIDX/gMpuapHNnE8KQAAAABJRU5ErkJggg==",te=a=>(He("data-v-7db622e9"),a=a(),Ne(),a),dt={class:"__container_layout_header"},pt=te(()=>L("div",null,null,-1)),mt=te(()=>L("div",null,null,-1)),ft=te(()=>L("a",{href:"javascript:;"},"logout",-1)),gt={class:"username"},_t=V({__name:"layout_header",setup(a){pe(p=>({"4576ef0a":i(C),c3773ce4:i(ze)}));const{appContext:{config:{globalProperties:e}}}=ue(),t=q(S.COLLAPSED),c=q(S.LOCALE);let o=z(Ye.locale);function P(p){localStorage.setItem(oe,p),C.value=p}function v(p){localStorage.removeItem(oe),C.value=Ce}function A(){Se(),Ze().then(()=>{D.replace(`/login?redirect=${N.path}`)})}const y=z([]),b=qe(),R=q(S.LAYOUT_ROUTE_KEY),x=p=>{b.mesh=p,R()};je(async()=>{const{data:p}=await Xe();y.value=p});const M=Be();ae(o,p=>{Re(p)});const H=G([{label:Y(()=>e.$t("application")),value:"applications"},{label:Y(()=>e.$t("instance")),value:"instances"},{label:Y(()=>e.$t("service")),value:"services"}]),l=z(H[0].value),d=z(""),h=async()=>{const p={keywords:d.value},m=async(_,r)=>{const{data:{list:w}}=await _(p);O.value=w.map(T=>({label:T[r],value:T[r]}))};switch(l.value){case"ip":break;case"applications":await m(Ge,"appName");break;case"instances":await m(Qe,"name");break;case"services":await m(Ve,"serviceName");break}};ae(l,async p=>{await h()});const O=z([]),K=Ke.debounce(h,300),D=k(),N=X(),F=()=>{D.replace(`/resources/${l.value}/list?query=${d.value}`)},E=()=>{};return(p,m)=>{const _=u("a-flex"),r=u("a-select-option"),w=u("a-select"),T=u("a-auto-complete"),ge=u("a-button"),_e=u("a-input-group"),ve=u("a-form-item"),he=u("a-form"),Oe=u("a-segmented"),Pe=u("color-picker"),ye=u("a-popover"),be=u("a-avatar"),xe=u("a-menu-item"),Ae=u("a-menu"),Me=u("a-dropdown"),De=u("a-layout-header");return g(),B("div",dt,[n(De,{class:"header"},{default:s(()=>[n(_,{style:{height:"100%"},justify:"space-between",align:"center"},{default:s(()=>[n(_,null,{default:s(()=>[i(t)?(g(),j(i(nt),{key:0,class:"trigger",onClick:m[0]||(m[0]=()=>t.value=!i(t))})):(g(),j(i(We),{key:1,class:"trigger",onClick:m[1]||(m[1]=()=>t.value=!i(t))}))]),_:1}),pt,n(_,{gap:20},{default:s(()=>[n(_e,{onKeyup:Ue(F,["enter"]),class:"search-group",compact:""},{default:s(()=>[n(w,{value:l.value,"onUpdate:value":m[2]||(m[2]=f=>l.value=f),class:"select-type"},{default:s(()=>[(g(!0),B(J,null,me(H,f=>(g(),j(r,{value:f.value},{default:s(()=>[U(Q(f.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),n(T,{value:d.value,"onUpdate:value":m[3]||(m[3]=f=>d.value=f),class:"input-keywords",placeholder:p.$t("globalSearchTip"),options:O.value,onSelect:E,onSearch:i(K)},null,8,["value","placeholder","options","onSearch"]),n(ge,{icon:ie(i(Le)),class:"search-icon",onClick:F},null,8,["icon"])]),_:1}),n(he,{layout:"inline"},{default:s(()=>[n(ve,{class:"mesh-select-item",label:p.$t("registryCenter"),inline:""},{default:s(()=>[n(w,{class:"mesh-select",value:i(b).mesh,options:y.value.map(f=>({value:f.id,label:f.name})),onChange:x},null,8,["value","options"])]),_:1},8,["label"])]),_:1})]),_:1}),mt,n(_,{align:"center",gap:"middle"},{default:s(()=>[n(_,{align:"center"},{default:s(()=>[n(Oe,{value:i(o),"onUpdate:value":m[4]||(m[4]=f=>Fe(o)?o.value=f:o=f),options:i(c).opts},null,8,["value","options"])]),_:1}),n(_,{align:"center"},{default:s(()=>[n(Pe,{pureColor:i(C),onPureColorChange:P,format:"hex6",shape:"circle",useType:"pure"},null,8,["pureColor"]),n(ye,null,{content:s(()=>[U("reset the theme")]),default:s(()=>[n(i(de),{class:"reset-icon",icon:"material-symbols:reset-tv-outline",onClick:v})]),_:1})]),_:1}),n(_,{align:"center"},{default:s(()=>{var f,ne;return[n(Me,null,{overlay:s(()=>[n(Ae,null,{default:s(()=>[n(xe,{onClick:A},{default:s(()=>[ft]),_:1})]),_:1})]),default:s(()=>[n(be,{onClick:m[5]||(m[5]=()=>{})},{icon:s(()=>[n(i(ct))]),_:1})]),_:1}),L("span",gt,Q((ne=(f=i(M))==null?void 0:f.userinfo)==null?void 0:ne.username),1)]}),_:1})]),_:1})]),_:1})]),_:1})])}}}),vt=Z(_t,[["__scopeId","data-v-7db622e9"]]),ht={class:"__container_layout_bread"},Ot=V({__name:"layout_bread",setup(a){const e=X();k();let t=Y(()=>{var o;return(o=e.params)!=null&&o.pathId?e.params.pathId:""});const c=Y(()=>e.matched.slice(1).map((o,P)=>({name:o.name})));return(o,P)=>{const v=u("a-breadcrumb-item"),A=u("a-breadcrumb");return g(),B("div",ht,[n(A,null,{default:s(()=>[(g(!0),B(J,null,me(c.value,y=>(g(),j(v,null,{default:s(()=>[U(Q(o.$t(y.name)),1)]),_:2},1024))),256)),i(t)?(g(),j(v,{key:0},{default:s(()=>[U(Q(i(t)),1)]),_:1})):fe("",!0)]),_:1})])}}}),Pt=Z(Ot,[["__scopeId","data-v-97925c3f"]]),yt={class:"__container_layout_index"},bt={class:"logo"},xt=["src"],At=V({__name:"index",setup(a){pe(P=>({"1cdde0dc":i(C)}));const e=z(!1);se(S.COLLAPSED,e);const t=X(),c=z(t.fullPath),o=()=>{c.value=`${t.fullPath}-${Date.now()}`};return se(S.LAYOUT_ROUTE_KEY,o),(P,v)=>{const A=u("a-layout-sider"),y=u("router-view"),b=u("a-layout-content"),R=u("a-layout-footer"),x=u("a-layout");return g(),B("div",yt,[n(x,{style:{height:"100vh"}},{default:s(()=>[n(A,{width:"268",collapsed:e.value,"onUpdate:collapsed":v[0]||(v[0]=M=>e.value=M),theme:"light",trigger:null,collapsible:""},{default:s(()=>[L("div",bt,[L("img",{alt:"Dubbo Admin",src:i(it)},null,8,xt),e.value?fe("",!0):(g(),B(J,{key:0},[U("Dubbo Admin")],64))]),n(ut)]),_:1},8,["collapsed"]),n(x,null,{default:s(()=>[n(vt,{collapsed:e.value},null,8,["collapsed"]),n(Pt),n(b,{class:"layout-content"},{default:s(()=>[(g(),j(y,{key:c.value},{default:s(({Component:M})=>[n(Ee,{name:"slide-fade"},{default:s(()=>[(g(),j(Te(M)))]),_:2},1024)]),_:1}))]),_:1}),n(R,{class:"layout-footer"},{default:s(()=>[U("© 2024 The Apache Software Foundation. ")]),_:1})]),_:1})]),_:1})])}}}),Bt=Z(At,[["__scopeId","data-v-e6898f0d"]]);export{Bt as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-gIa2WffK.js diff --git a/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js b/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js index 215098c7c..89e2247b1 100644 --- a/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js +++ b/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js import{X as $,af as J}from"./index-rt1yTeew.js";var M={exports:{}};/*! +======== +import{X as $,ad as J}from"./index-JtaswhjV.js";var M={exports:{}};/*! +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-mXj9VWUy.js * clipboard.js v2.0.11 * https://clipboardjs.com/ * diff --git a/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js b/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js index 466e0a728..d79f4e84c 100644 --- a/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js +++ b/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js import{X as ip,d as vk,v as gk,a as yk,r as Bv,D as mk,c as bf,j as Qo,t as xf,n as yi,b as Fn,w as On,e as ho,P as Fv,o as po,L as zv,M as Gv,J as Yv,I as Wv,f as Hv,p as bk,h as xk,_ as wk}from"./index-rt1yTeew.js";import{g as Ok,a as Sk}from"./serverInfo-T8wz3JrY.js";import"./request-vlI2kaaR.js";const _b=()=>[["cartesian"]];_b.props={};function _k(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const Mb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),_k(n.startAngle,n.endAngle))},Cs=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mb(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};Cs.props={};const ap=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ap.props={transform:!0};const Mk=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},Eb=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mk(t);return[...ap(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};Eb.props={};const Pb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},op=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Pb(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};op.props={};const sp=()=>[["parallel",0,1,0,1]];sp.props={};const Ab=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];Ab.props={transform:!0};const kb=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...sp(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};kb.props={};const Tb=({value:t})=>e=>e.map(()=>t);Tb.props={};const Cb=({value:t})=>e=>e.map(t);Cb.props={};const Lb=({value:t})=>e=>e.map(n=>n[t]);Lb.props={};const Nb=({value:t})=>()=>t;Nb.props={};var fl=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const Ve=function(t){return typeof t=="function"};var nt=function(t){return t==null},Ek={}.toString,Ls=function(t,e){return Ek.call(t)==="[object "+e+"]"};const Le=function(t){return Array.isArray?Array.isArray(t):Ls(t,"Array")},ki=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function cp(t,e){if(t){var n;if(Le(t))for(var r=0,i=t.length;rn?n:t},de=function(t){return Ls(t,"Number")},Tk=1e-5;function Fo(t,e,n){return n===void 0&&(n=Tk),Math.abs(t-e)r&&(n=a,r=o)}return n}},Lk=function(t,e){if(Le(t)){for(var n,r=1/0,i=0;ii&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}const Ik=function(t,e,n){if(n===void 0&&(n=128),!Ve(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l},wf=function(){};function Uv(t){return nt(t)?0:fl(t)?t.length:Object.keys(t).length}var Zt=1e-6,he=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function Ja(){var t=new he(9);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Gk(t){var e=new he(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Yk(t,e,n,r,i,a,o,s,c){var l=new he(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Wk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*o-s*l,d=-u*a+s*c,h=l*a-o*c,p=n*f+r*d+i*h;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*a)*p,t[6]=h*p,t[7]=(-l*n+r*c)*p,t[8]=(o*n-r*a)*p,t):null}function Hk(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=d*r+h*o+p*l,t[1]=d*i+h*s+p*u,t[2]=d*a+h*c+p*f,t[3]=v*r+g*o+y*l,t[4]=v*i+g*s+y*u,t[5]=v*a+g*c+y*f,t[6]=m*r+b*o+x*l,t[7]=m*i+b*s+x*u,t[8]=m*a+b*c+x*f,t}function Vk(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Xk(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Uk(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}var qk=Hk;function Nt(){var t=new he(16);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function lp(t){var e=new he(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ri(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Kk(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v){var g=new he(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function Td(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Rs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function zb(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Wn(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*c-i*o,x=n*l-a*o,w=r*c-i*s,O=r*l-a*s,S=i*l-a*c,_=u*v-f*p,M=u*g-d*p,E=u*y-h*p,P=f*g-d*v,T=f*y-h*v,A=d*y-h*g,k=m*A-b*T+x*P+w*E-O*M+S*_;return k?(k=1/k,t[0]=(s*A-c*T+l*P)*k,t[1]=(i*T-r*A-a*P)*k,t[2]=(v*S-g*O+y*w)*k,t[3]=(d*O-f*S-h*w)*k,t[4]=(c*E-o*A-l*M)*k,t[5]=(n*A-i*E+a*M)*k,t[6]=(g*x-p*S-y*b)*k,t[7]=(u*S-d*x+h*b)*k,t[8]=(o*T-s*E+l*_)*k,t[9]=(r*E-n*T-a*_)*k,t[10]=(p*O-v*x+y*m)*k,t[11]=(f*x-u*O-h*m)*k,t[12]=(s*M-o*P-c*_)*k,t[13]=(n*P-r*M+i*_)*k,t[14]=(v*b-p*w-g*m)*k,t[15]=(u*w-f*b+d*m)*k,t):null}function Zk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(c*y-l*g)+v*(c*h-l*d),t[1]=-(r*(d*y-h*g)-f*(i*y-a*g)+v*(i*h-a*d)),t[2]=r*(c*y-l*g)-s*(i*y-a*g)+v*(i*l-a*c),t[3]=-(r*(c*h-l*d)-s*(i*h-a*d)+f*(i*l-a*c)),t[4]=-(o*(d*y-h*g)-u*(c*y-l*g)+p*(c*h-l*d)),t[5]=n*(d*y-h*g)-u*(i*y-a*g)+p*(i*h-a*d),t[6]=-(n*(c*y-l*g)-o*(i*y-a*g)+p*(i*l-a*c)),t[7]=n*(c*h-l*d)-o*(i*h-a*d)+u*(i*l-a*c),t[8]=o*(f*y-h*v)-u*(s*y-l*v)+p*(s*h-l*f),t[9]=-(n*(f*y-h*v)-u*(r*y-a*v)+p*(r*h-a*f)),t[10]=n*(s*y-l*v)-o*(r*y-a*v)+p*(r*l-a*s),t[11]=-(n*(s*h-l*f)-o*(r*h-a*f)+u*(r*l-a*s)),t[12]=-(o*(f*g-d*v)-u*(s*g-c*v)+p*(s*d-c*f)),t[13]=n*(f*g-d*v)-u*(r*g-i*v)+p*(r*d-i*f),t[14]=-(n*(s*g-c*v)-o*(r*g-i*v)+p*(r*c-i*s)),t[15]=n*(s*d-c*f)-o*(r*d-i*f)+u*(r*c-i*s),t}function Gb(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*a,m=e*s-r*a,b=e*c-i*a,x=n*s-r*o,w=n*c-i*o,O=r*c-i*s,S=l*p-u*h,_=l*v-f*h,M=l*g-d*h,E=u*v-f*p,P=u*g-d*p,T=f*g-d*v;return y*T-m*P+b*E+x*M-w*_+O*S}function $e(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],O=n[3];return t[0]=b*r+x*s+w*f+O*v,t[1]=b*i+x*c+w*d+O*g,t[2]=b*a+x*l+w*h+O*y,t[3]=b*o+x*u+w*p+O*m,b=n[4],x=n[5],w=n[6],O=n[7],t[4]=b*r+x*s+w*f+O*v,t[5]=b*i+x*c+w*d+O*g,t[6]=b*a+x*l+w*h+O*y,t[7]=b*o+x*u+w*p+O*m,b=n[8],x=n[9],w=n[10],O=n[11],t[8]=b*r+x*s+w*f+O*v,t[9]=b*i+x*c+w*d+O*g,t[10]=b*a+x*l+w*h+O*y,t[11]=b*o+x*u+w*p+O*m,b=n[12],x=n[13],w=n[14],O=n[15],t[12]=b*r+x*s+w*f+O*v,t[13]=b*i+x*c+w*d+O*g,t[14]=b*a+x*l+w*h+O*y,t[15]=b*o+x*u+w*p+O*m,t}function Ur(t,e,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15]):(o=e[0],s=e[1],c=e[2],l=e[3],u=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+u*i+p*a+e[12],t[13]=s*r+f*i+v*a+e[13],t[14]=c*r+d*i+g*a+e[14],t[15]=l*r+h*i+y*a+e[15]),t}function vl(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qk(t,e,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,f,d,h,p,v,g,y,m,b,x,w,O,S,_,M,E,P,T,A,k,C;return s0?(n[0]=(s*o+u*r+c*a-l*i)*2/f,n[1]=(c*o+u*i+l*r-s*a)*2/f,n[2]=(l*o+u*a+s*i-c*r)*2/f):(n[0]=(s*o+u*r+c*a-l*i)*2,n[1]=(c*o+u*i+l*r-s*a)*2,n[2]=(l*o+u*a+s*i-c*r)*2),Hb(t,e,n),t}function gl(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Aa(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,l,u),t}function yl(t,e){var n=new he(3);Aa(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,s=e[1]*i,c=e[2]*a,l=e[4]*r,u=e[5]*i,f=e[6]*a,d=e[8]*r,h=e[9]*i,p=e[10]*a,v=o+u+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-c)/g,t[2]=(s-l)/g):o>u&&o>p?(g=Math.sqrt(1+o-u-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+l)/g,t[2]=(d+c)/g):u>p?(g=Math.sqrt(1+u-o-p)*2,t[3]=(d-c)/g,t[0]=(s+l)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-u)*2,t[3]=(s-l)/g,t[0]=(d+c)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function aT(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,l=a+a,u=o+o,f=i*c,d=i*l,h=i*u,p=a*l,v=a*u,g=o*u,y=s*c,m=s*l,b=s*u,x=r[0],w=r[1],O=r[2];return t[0]=(1-(p+g))*x,t[1]=(d+b)*x,t[2]=(h-m)*x,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(h+m)*O,t[9]=(v-y)*O,t[10]=(1-(f+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function zo(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],l=a+a,u=o+o,f=s+s,d=a*l,h=a*u,p=a*f,v=o*u,g=o*f,y=s*f,m=c*l,b=c*u,x=c*f,w=r[0],O=r[1],S=r[2],_=i[0],M=i[1],E=i[2],P=(1-(v+y))*w,T=(h+x)*w,A=(p-b)*w,k=(h-x)*O,C=(1-(d+y))*O,L=(g+m)*O,I=(p+b)*S,R=(g-m)*S,j=(1-(d+v))*S;return t[0]=P,t[1]=T,t[2]=A,t[3]=0,t[4]=k,t[5]=C,t[6]=L,t[7]=0,t[8]=I,t[9]=R,t[10]=j,t[11]=0,t[12]=n[0]+_-(P*_+k*M+I*E),t[13]=n[1]+M-(T*_+C*M+R*E),t[14]=n[2]+E-(A*_+L*M+j*E),t[15]=1,t}function dp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*c,v=a*o,g=a*s,y=a*c;return t[0]=1-f-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oT(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),l=1/(a-o);return t[0]=a*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a*2*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function Vb(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var sT=Vb;function cT(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function lT(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),l=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-((o-s)*c*.5),t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function Xb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*l,t[15]=1,t}var Ub=Xb;function qb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=a*l,t[15]=1,t}function Kb(t,e,n,r){var i,a,o,s,c,l,u,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],x=n[0],w=n[1],O=n[2];return Math.abs(p-x)0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=c*d-l*f,v=l*u-s*d,g=s*f-c*u;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-u*g,t[6]=u*v-f*p,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function fT(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dT(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hT(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Zb(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vT(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gT(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function yT(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],x=e[2],w=e[3],O=e[4],S=e[5],_=e[6],M=e[7],E=e[8],P=e[9],T=e[10],A=e[11],k=e[12],C=e[13],L=e[14],I=e[15];return Math.abs(n-m)<=Zt*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=Zt*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=Zt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-w)<=Zt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(o-O)<=Zt*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-S)<=Zt*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-_)<=Zt*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-M)<=Zt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=Zt*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(f-P)<=Zt*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(d-T)<=Zt*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-A)<=Zt*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-k)<=Zt*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-C)<=Zt*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=Zt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-I)<=Zt*Math.max(1,Math.abs(y),Math.abs(I))}var Qb=$e,mT=Zb;const bT=Object.freeze(Object.defineProperty({__proto__:null,add:hT,adjoint:Zk,clone:lp,copy:Ri,create:Nt,determinant:Gb,equals:yT,exactEquals:gT,frob:dT,fromQuat:dp,fromQuat2:iT,fromRotation:tT,fromRotationTranslation:Hb,fromRotationTranslationScale:aT,fromRotationTranslationScaleOrigin:zo,fromScaling:fp,fromTranslation:up,fromValues:Kk,fromXRotation:eT,fromYRotation:nT,fromZRotation:rT,frustum:oT,getRotation:yl,getScaling:Aa,getTranslation:gl,identity:Rs,invert:Wn,lookAt:Kb,mul:Qb,multiply:$e,multiplyScalar:pT,multiplyScalarAndAdd:vT,ortho:Ub,orthoNO:Xb,orthoZO:qb,perspective:sT,perspectiveFromFieldOfView:lT,perspectiveNO:Vb,perspectiveZO:cT,rotate:Qk,rotateX:Yb,rotateY:Wb,rotateZ:Jk,scale:vl,set:Td,str:fT,sub:mT,subtract:Zb,targetTo:uT,translate:Ur,transpose:zb},Symbol.toStringTag,{value:"Module"}));function yt(){var t=new he(3);return he!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function br(t){var e=new he(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function wr(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function St(t,e,n){var r=new he(3);return r[0]=t,r[1]=e,r[2]=n,r}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gn(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ba(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qv(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function xT(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Cd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function wT(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function Ti(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function nr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Qc(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function Ld(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function Oe(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function Jb(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function OT(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=i*l-a*c,f=a*s-r*l,d=r*c-i*s,h=i*d-a*f,p=a*u-r*d,v=r*f-i*u,g=o*2;return u*=g,f*=g,d*=g,h*=2,p*=2,v*=2,t[0]=s+u+h,t[1]=c+f+p,t[2]=l+d+v,t}function vo(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=Zt*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=Zt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=Zt*Math.max(1,Math.abs(i),Math.abs(s))}var Kv=wT,tx=wr;(function(){var t=yt();return function(e,n,r,i,a,o){var s,c;for(n||(n=3),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function ha(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}(function(){var t=da();return function(e,n,r,i,a,o){var s,c;for(n||(n=4),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;sZt?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Sf(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function ET(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function oc(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}var _f=ST,sc=_T,Zv=qr,ml=MT;(function(){var t=yt(),e=St(1,0,0),n=St(0,1,0);return function(r,i,a){var o=nr(i,a);return o<-.999999?(Qc(t,e,i),tx(t)<1e-6&&Qc(t,n,i),Ti(t,t),Hr(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Qc(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ml(r,r))}})();(function(){var t=ve(),e=ve();return function(n,r,i,a,o,s){return Of(t,r,o,s),Of(e,i,a,s),Of(n,t,e,2*s*(1-s)),n}})();(function(){var t=Ja();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ml(e,ET(e,t))}})();function PT(){var t=new he(2);return he!=Float32Array&&(t[0]=0,t[1]=0),t}function AT(t,e){var n=new he(2);return n[0]=t,n[1]=e,n}function kT(t,e){return t[0]=e[0],t[1]=e[1],t}function TT(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function CT(t,e){return t[0]*e[0]+t[1]*e[1]}function LT(t,e){return t[0]===e[0]&&t[1]===e[1]}(function(){var t=PT();return function(e,n,r,i,a,o){var s,c;for(n||(n=2),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ex(){for(var t=0,e=0,n=arguments.length;e7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function rx(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Go[n]===e.length-1&&"achlmqstvz".includes(n)})}function ix(t){return rx(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function ax(t){return ix(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}function Qv(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Go[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Go[n]))),!!Go[n]););}function RT(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function IT(t){return t>=48&&t<=57||t===43||t===45||t===46}function ea(t){return t>=48&&t<=57}function jT(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!ea(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function Jc(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(BT(i)&&(o===3||o===4)?RT(t):jT(t),t.err.length)return;t.data.push(t.param),Jc(t),t.index=t.max||!IT(n.charCodeAt(t.index)))break}Qv(t)}var zT=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function GT(t){if(rx(t))return[].concat(t);var e=new zT(t);for(Jc(e);e.index1&&(E=Math.sqrt(E),d*=E,h*=E);var P=d*d,T=h*h,A=(a===o?-1:1)*Math.sqrt(Math.abs((P*T-P*M*M-T*_*_)/(P*M*M+T*_*_)));O=A*d*M/h+(u+p)/2,S=A*-h*_/d+(f+v)/2,x=Math.asin(((f-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((v-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),x=uw&&(x-=Math.PI*2),!o&&w>x&&(w-=Math.PI*2)}var k=w-x;if(Math.abs(k)>g){var C=w,L=p,I=v;w=x+g*(o&&w>x?1:-1),p=O+d*Math.cos(w),v=S+h*Math.sin(w),m=hp(p,v,d,h,i,0,o,L,I,[w,C,O,S])}k=w-x;var R=Math.cos(x),j=Math.sin(x),D=Math.cos(w),$=Math.sin(w),B=Math.tan(k/4),F=4/3*d*B,Y=4/3*h*B,U=[u,f],K=[u+F*j,f-Y*R],V=[p+F*$,v-Y*D],W=[p,v];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],l)return K.concat(V,W,m);m=K.concat(V,W,m);for(var J=[],et=0,it=m.length;et=a)o={x:n,y:r};else{var s=Fr([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function tg(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function KT(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Id(t,e,s,c,l).point;var b=(t-s)/2,x=(e-c)/2,w={x:d(m)*b+f(m)*x,y:-f(m)*b+d(m)*x},O=Math.pow(w.x,2)/Math.pow(v,2)+Math.pow(w.y,2)/Math.pow(g,2);O>1&&(v*=h(O),g*=h(O));var S=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(w.y,2)-Math.pow(g,2)*Math.pow(w.x,2),_=Math.pow(v,2)*Math.pow(w.y,2)+Math.pow(g,2)*Math.pow(w.x,2),M=S/_;M=M<0?0:M;var E=(a!==o?1:-1)*h(M),P={x:E*(v*w.y/g),y:E*(-(g*w.x)/v)},T={x:d(m)*P.x-f(m)*P.y+(t+s)/2,y:f(m)*P.x+d(m)*P.y+(e+c)/2},A={x:(w.x-P.x)/v,y:(w.y-P.y)/g},k=tg({x:1,y:0},A),C={x:(-w.x-P.x)/v,y:(-w.y-P.y)/g},L=tg(A,C);!o&&L>0?L-=2*p:o&&L<0&&(L+=2*p),L%=2*p;var I=k+L*l,R=v*d(I),j=g*f(I),D={x:d(m)*R-f(m)*j+T.x,y:f(m)*R+d(m)*j+T.y};return D}function ZT(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,x=e,w=0,O=[b,x,w],S=[b,x],_=0,M={x:0,y:0},E=[{x:b,y:x}];m&&l<=0&&(M={x:b,y:x});for(var P=0;P<=y;P+=1){if(_=P/y,f=KT(t,e,n,r,i,a,o,s,c,_),b=f.x,x=f.y,h&&E.push({x:b,y:x}),v&&(w+=nn(S,[b,x])),S=[b,x],m&&w>=l&&l>O[2]){var T=(w-l)/(w-O[2]);M={x:S[0]*(1-T)+O[0]*T,y:S[1]*(1-T)+O[1]*T}}O=[b,x,w]}return m&&l>=w&&(M={x:s,y:c}),{length:w,point:M,min:{x:Math.min.apply(null,E.map(function(A){return A.x})),y:Math.min.apply(null,E.map(function(A){return A.y}))},max:{x:Math.max.apply(null,E.map(function(A){return A.x})),y:Math.max.apply(null,E.map(function(A){return A.y}))}}}function QT(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function ox(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,x=0,w=[m,b,x],O=[m,b],S=0,_={x:0,y:0},M=[{x:m,y:b}];y&&c<=0&&(_={x:m,y:b});for(var E=0;E<=g;E+=1){if(S=E/g,u=QT(t,e,n,r,i,a,o,s,S),m=u.x,b=u.y,d&&M.push({x:m,y:b}),p&&(x+=nn(O,[m,b])),O=[m,b],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);_={x:O[0]*(1-P)+w[0]*P,y:O[1]*(1-P)+w[1]*P}}w=[m,b,x]}return y&&c>=x&&(_={x:o,y:s}),{length:x,point:_,min:{x:Math.min.apply(null,M.map(function(T){return T.x})),y:Math.min.apply(null,M.map(function(T){return T.y}))},max:{x:Math.max.apply(null,M.map(function(T){return T.x})),y:Math.max.apply(null,M.map(function(T){return T.y}))}}}function JT(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function t5(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],x=[g,y],w=0,O={x:0,y:0},S=[{x:g,y}];v&&o<=0&&(O={x:g,y});for(var _=0;_<=p;_+=1){if(w=_/p,c=JT(t,e,n,r,i,a,w),g=c.x,y=c.y,u&&S.push({x:g,y}),d&&(m+=nn(x,[g,y])),x=[g,y],v&&m>=o&&o>b[2]){var M=(m-o)/(m-b[2]);O={x:x[0]*(1-M)+b[0]*M,y:x[1]*(1-M)+b[1]*M}}b=[g,y,m]}return v&&o>=m&&(O={x:i,y:a}),{length:m,point:O,min:{x:Math.min.apply(null,S.map(function(E){return E.x})),y:Math.min.apply(null,S.map(function(E){return E.y}))},max:{x:Math.max.apply(null,S.map(function(E){return E.x})),y:Math.max.apply(null,S.map(function(E){return E.y}))}}}function sx(t,e,n){for(var r,i,a,o,s,c,l=bl(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],x=[],w=0,O={x:0,y:0},S=O,_=O,M=O,E=0,P=0,T=l.length;P=e&&(M=_),x.push(S),b.push(O),E+=w,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=E&&(M={x:p,y:v}),{length:E,point:M,min:{x:Math.min.apply(null,b.map(function(A){return A.x})),y:Math.min.apply(null,b.map(function(A){return A.y}))},max:{x:Math.max.apply(null,x.map(function(A){return A.x})),y:Math.max.apply(null,x.map(function(A){return A.y}))}}}function e5(t,e){return sx(t,void 0,z(z({},e),{bbox:!1,length:!0})).length}function n5(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function r5(t,e){var n=t.length-1,r=[],i=0,a=0,o=n5(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=nn(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function i5(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function a5(t){var e=0,n=0,r=0;return Rd(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=i5(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function eg(t){return a5(t)>=0}function o5(t,e,n){return sx(t,e,z(z({},n),{bbox:!1,length:!0})).point}function s5(t,e){e===void 0&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),o=Fr(n,r,e),s=Fr(r,i,e),c=Fr(i,a,e),l=Fr(o,s,e),u=Fr(s,c,e),f=Fr(l,u,e);return[["C"].concat(o,l,f),["C"].concat(u,c,a)]}function ng(t){return t.map(function(e,n,r){var i=n&&r[n-1].slice(-2).concat(e.slice(1)),a=n?ox(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?s5(i):[e,e]:o=[e],{s:e,ss:o,l:a}})}function cx(t,e,n){var r=ng(t),i=ng(e),a=r.length,o=i.length,s=r.filter(function(g){return g.l}).length,c=i.filter(function(g){return g.l}).length,l=r.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/s||0,u=i.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/c||0,f=n||Math.max(a,o),d=[l,u],h=[f-a,f-o],p=0,v=[r,i].map(function(g,y){return g.l===f?g.map(function(m){return m.s}):g.map(function(m,b){return p=b&&h[y]&&m.l>=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:cx(v[0],v[1],f)}function rg(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function Wt(t,e){if(t!==null)return{type:"column",value:t,field:e}}function yu(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function xl(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function c5(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function Kr(t,e){const n=[];for(const r of t)n[r]=e;return n}function Ot(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function ts(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=Ot(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Is(t){return t instanceof Date?!1:typeof t=="object"}const js=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y1:yu(Kr(t,0))}})]};js.props={};function oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function l5(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ca(t){let e,n,r;t.length!==2?(e=oe,n=(s,c)=>oe(t(s),c),r=(s,c)=>t(s)-c):(e=t===oe||t===l5?t:u5,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function u5(){return 0}function jd(t){return t===null?NaN:+t}function*f5(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const lx=Ca(oe),d5=lx.right,h5=lx.left,p5=Ca(jd).center;function ux(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function v5(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function fx(t,e){const n=v5(t,e);return n&&Math.sqrt(n)}function Mr(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let g5=class extends Map{constructor(e,n=b5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(ig(this,e))}has(e){return super.has(ig(this,e))}set(e,n){return super.set(y5(this,e),n)}delete(e){return super.delete(m5(this,e))}};function ig({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function y5({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m5({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function b5(t){return t!==null&&typeof t=="object"?t.valueOf():t}function es(t){return t}function te(t,...e){return mu(t,es,es,e)}function pp(t,...e){return mu(t,Array.from,es,e)}function vp(t,e,...n){return mu(t,es,e,n)}function dx(t,e,...n){return mu(t,Array.from,e,n)}function mu(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new g5,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}function x5(t,e){return Array.from(e,n=>t[n])}function Er(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=ns(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>ns(n[i],n[a]))),x5(t,r)}return t.sort(hx(n))}function hx(t=oe){if(t===oe)return ns;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function ns(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function w5(t,e,n){return(e.length!==2?Er(vp(t,e,n),([r,i],[a,o])=>oe(i,o)||oe(r,a)):Er(te(t,n),([r,i],[a,o])=>e(i,o)||oe(r,a))).map(([r])=>r)}var O5=Array.prototype,S5=O5.slice;function Ef(t){return()=>t}const _5=Math.sqrt(50),M5=Math.sqrt(10),E5=Math.sqrt(2);function wl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=_5?10:a>=M5?5:a>=E5?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function k5(t){return Math.max(1,Math.ceil(Math.log(ux(t))/Math.LN2)+1)}function T5(){var t=es,e=Mr,n=k5;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Mr){const w=Dd(f,d,x);isFinite(w)&&(w>0?d=(Math.floor(d/w)+1)*w:w<0&&(d=(Math.ceil(d*-w)+1)/-w))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;a=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function to(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bu(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function gp(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?ns:hx(i);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));gp(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(go(t,n,e),i(t[r],a)>0&&go(t,n,r);o0;)--s}i(t[n],a)===0?go(t,n,s):(++s,go(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function go(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function C5(t,e=oe){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?oe(o,i)>0:oe(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function xu(t,e,n){if(t=Float64Array.from(f5(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return bn(t);if(e>=1)return Ct(t);var r,i=(r-1)*e,a=Math.floor(i),o=Ct(gp(t,a).subarray(0,a+1)),s=bn(t.subarray(a+1));return o+(s-o)*(i-a)}}function L5(t,e,n=jd){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>jd(n(t[c],c,t))),e<=0)return bu(r);if(e>=1)return to(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return gp(i,o,0,a,(s,c)=>ns(r[s],r[c])),o=C5(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function N5(t,e,n){const r=ux(t),i=fx(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function rs(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function yp(t,e){return xu(t,.5,e)}function R5(t,e){return L5(t,.5,e)}function*I5(t){for(const e of t)yield*e}function px(t){return Array.from(I5(t))}function pa(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r(r,...i)=>n(e(r,...i),...i),ji)}function D5(t){return t.reduce((e,n)=>r=>j5(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),ji)}function bp(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function La(t=""){throw new Error(t)}function xp(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function zt(t){return t!=null&&!Number.isNaN(t)}function $5(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function B5(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function Q(t,e){return vx(t,e)||{}}function vx(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[Db(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function F5(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function Pf(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function ag(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function is(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function Lr(t){return t===null||t===!1}function gx(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!Cr(a)||!Cr(t[i])?t[i]=a:gx(t[i],a,n,r+1)}return t}}function ai(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Ui(t){return t.map((e,n)=>n)}function z5(t){return t[0]}function yx(t){return t[t.length-1]}function G5(t){return Array.from(new Set(t))}function mx(t,e){const n=[[],[]];return t.forEach(r=>{n[e(r)?0:1].push(r)}),n}function bx(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function Y5(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...bx(t,n));return e}function oi(t,e,n){const{encode:r}=n;if(t===null)return[e];const i=W5(t).map(o=>{var s;return[o,(s=Ot(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>zt(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(te(e,a).values())}function xx(t){return Array.isArray(t)?X5(t):typeof t=="function"?V5(t):t==="series"?H5:t==="value"?U5:t==="sum"?q5:t==="maxIndex"?K5:()=>null}function wx(t,e){for(const n of t)n.sort(e)}function Ox(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function W5(t){return Array.isArray(t)?t:[t]}function H5(t,e,n){return Ds(r=>n[r])}function V5(t){return(e,n,r)=>Ds(i=>t(e[i]))}function X5(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:oe(e[i][s],e[a][s]),0)}function U5(t,e,n){return Ds(r=>e[r])}function q5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return Ds(o=>a.get(n[o]))}function K5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,to(s,c=>e[c])]));return Ds(o=>a.get(n[o]))}function Ds(t){return(e,n)=>oe(t(e),t(n))}const Sx=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=Ot(u,"y"),[p,v]=Ot(u,"y1"),[g]=o?ts(u,"series","color"):Ot(u,"color"),y=oi(e,s,c),b=xx(n)(l,d,g);b&&wx(y,b);const x=new Array(s.length),w=new Array(s.length),O=new Array(s.length),S=[],_=[];for(const A of y){r&&A.reverse();const k=p?+p[A[0]]:0,C=[],L=[];for(const F of A){const Y=O[F]=+d[F]-k;Y<0?L.push(F):Y>=0&&C.push(F)}const I=C.length>0?C:L,R=L.length>0?L:C;let j=C.length-1,D=0;for(;j>0&&d[I[j]]===0;)j--;for(;D0?B=x[F]=(w[F]=B)+Y:x[F]=w[F]=B}}const M=new Set(S),E=new Set(_),P=i==="y"?x:w,T=a==="y"?x:w;return[s,X({},c,{encode:{y0:yu(d,h),y:Wt(P,h),y1:Wt(T,v)},style:Object.assign({first:(A,k)=>M.has(k),last:(A,k)=>E.has(k)},f)})]}};Sx.props={};function yo(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function Z5(t){const e=t.getFullYear(),n=yo(t.getMonth()+1),r=yo(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${yo(a)}:${yo(o)}:${yo(s)}`:i}const wu=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Lr(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>Ot(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?Z5(u[l]):u[l]).join(", ")};return[n,X({},r,{tooltip:{title:c}})]}};wu.props={};const qi=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{x:yu(Kr(t,0))},scale:{x:{guide:null}}})]};qi.props={};const Ou=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y:yu(Kr(t,0))},scale:{y:{guide:null}}})]};Ou.props={};const _x=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{size:xl(Kr(t,3))}})]};_x.props={};var Q5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=Q5(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,X({},e,{encode:{key:Wt(o)}})]};Mx.props={};const wp=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=Ot(n,"color");return[t,X({},e,{encode:{series:Wt(a,o)}})]};wp.props={};const Ex=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{y:Wt(n)}})]};Ex.props={};const Px=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{x:Wt(n)}})]};Px.props={};const Ax=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=Ot(n,"y");return[t,X({},e,{encode:{y1:Wt([...i])}})]};Ax.props={};const kx=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=Ot(n,"x");return[t,X({},e,{encode:{x1:Wt([...i])}})]};kx.props={};const Tx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{x:Wt(r(n,0)),x1:Wt(r(n,1))}})]}return[t,e]};Tx.props={};const Cx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{y:Wt(r(n,0)),y1:Wt(r(n,1))}})]}return[t,e]};Cx.props={};const Su=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Lr(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,X({},r,{tooltip:{items:c}})]}};Su.props={};const Op=()=>(t,e)=>[t,X({scale:{x:{padding:0},y:{padding:0}}},e)];Op.props={};var og=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=og(e,["data","style"]),{x:a,y:o}=r,s=og(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],X({},i,{data:[0],cartesian:!0,encode:{x:Wt([c]),y:Wt([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};_u.props={};const Lx=()=>(t,e)=>{const{style:n={}}=e;return[t,X({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};Lx.props={};const Mu=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Is))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,X({},e,{encode:{x:Wt(i),y:Wt(a)}})]};Mu.props={};const Nx=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,X({},e,{encode:{series:xl(Kr(t,void 0))}})]};Nx.props={};var J5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return J5(t,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:c,scale:l}=o,{series:u}=l,[f]=Ot(c,"y"),[d]=ts(c,"series","color"),h=Ox(d,u),p=oi(e,a,o),g=xx(r)(s,f,d);g&&wx(p,g);const y=new Array(a.length);for(const m of p){n&&m.reverse();for(let b=0;b{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,Ot(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(te(m,x=>g[x]).values());y.push(...b)}f=y}if(r){const[g]=Ot(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Kr(o,d)]:ts(c,"enterDuration",Kr(o,d)),[p]=ts(c,"enterDelay",Kr(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[x]);for(const x of m)v[x]=+p[x]+y;y+=b}return[o,X({},s,{encode:{enterDuration:xl(h),enterDelay:xl(v)}})]}};Ix.props={};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ibn(n,i=>r[+i]),max:(n,r)=>Ct(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>rs(n,i=>r[+i]),median:(n,r)=>yp(n,i=>r[+i]),sum:(n,r)=>Cn(n,i=>r[+i]),deviation:(n,r)=>fx(n,i=>r[+i])}[t]||Ct}const jx=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,s=t3(a,["x"]),c=Object.entries(s).filter(([p])=>p.startsWith("y")).map(([p])=>[p,Ot(a,p)[0]]),[,l]=c.find(([p])=>p==="y"),u=c.map(([p])=>[p,new Array(r.length)]),f=oi(e,r,i),d=e3(n);for(const p of f){const v=d(p,l);for(const g of p)for(let y=0;y[p,Wt(v,Ot(a,p)[1])]))},!h&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};jx.props={};function Na(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ol(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function n3(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}function Sp(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}const $d=Math.sqrt(50),Bd=Math.sqrt(10),Fd=Math.sqrt(2);function tl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=$d?10:a>=Bd?5:a>=Fd?2:1)*10**i:-(10**-i)/(a>=$d?10:a>=Bd?5:a>=Fd?2:1)}function sg(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=$d?i*=10:a>=Bd?i*=5:a>=Fd&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=tl(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=tl(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r},as=1e3,os=as*60,ss=os*60,Di=ss*24,Yo=Di*7,$x=Di*30,Bx=Di*365;function Fe(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i3=Fe(as,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getSeconds()),a3=Fe(os,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getMinutes()),o3=Fe(ss,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getHours()),s3=Fe(Di,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getDate()-1),Fx=Fe($x,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),c3=Fe(Yo,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Fx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),l3=Fe(Bx,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),zx={millisecond:r3,second:i3,minute:a3,hour:o3,day:s3,week:c3,month:Fx,year:l3},u3=Fe(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),f3=Fe(as,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getUTCSeconds()),d3=Fe(os,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getUTCMinutes()),h3=Fe(ss,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getUTCHours()),p3=Fe(Di,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getUTCDate()-1),Gx=Fe($x,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),v3=Fe(Yo,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Yo*e)},t=>{const e=Gx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),g3=Fe(Bx,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Yx={millisecond:u3,second:f3,minute:d3,hour:h3,day:p3,week:v3,month:Gx,year:g3};function y3(t){const e=t?Yx:zx,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function Wx(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=y3(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Sp(s,d,0,h,u);let v;if(p===h){const g=sg(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};var Hx=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},b3={}.toString,$s=function(t,e){return b3.call(t)==="[object "+e+"]"};const Vx=function(t){return $s(t,"Function")};var x3=function(t){return t==null};const Xx=function(t){return Array.isArray?Array.isArray(t):$s(t,"Array")},w3=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function O3(t,e){if(t){var n;if(Xx(t))for(var r=0,i=t.length;re=>-t(-e),_p=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?Zx(r):r},Mp=(t,e)=>{const n=t===Math.E?Math.exp:r=>t**r;return e?Zx(n):n},T3=(t,e,n,r)=>{const i=t<0,a=_p(r,i),o=Mp(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u},C3=t=>e=>{const n=t(e);return cs(n)?Math.round(n):n};function L3(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?C3(o):o;this.output=Na(l,c,i,r)},n.prototype.invert=void 0}}var Qx={exports:{}},N3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Jx={exports:{}},R3=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},I3=R3,j3=Array.prototype.concat,D3=Array.prototype.slice,ug=Jx.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};gn.to.keyword=function(t){return e2[t.slice(0,3)]};function Zr(t,e,n){return Math.min(Math.max(e,t),n)}function uc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var B3=Qx.exports;const F3=ip(B3);function kf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function z3(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=kf(o,a,e+1/3),c=kf(o,a,e),l=kf(o,a,e-1/3);return[s*255,c*255,l*255,i]}function fg(t){const e=F3.get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?z3(r):null}const Ra=(t,e)=>n=>t*(1-n)+e*n,G3=(t,e)=>{const n=fg(t),r=fg(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},Fs=(t,e)=>typeof t=="number"&&typeof e=="number"?Ra(t,e):typeof t=="string"&&typeof e=="string"?G3(t,e):()=>t,Y3=(t,e)=>{const n=Ra(t,e);return r=>Math.round(n(r))};function W3(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}let n2=class r2 extends zs{getDefaultOptions(){return{domain:[],range:[],unknown:Eu}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&pg(this.domainIndexMap,this.getDomain(),this.domainKey),vg({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&pg(this.rangeIndexMap,this.getRange(),this.rangeKey),vg({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=gg(n),this.rangeKey=gg(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new r2(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}};function U3(t){const e=Math.min(...t);return t.map(n=>n/e)}function q3(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function K3(t){return Math.round(t*1e12)/1e12}function Z3(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=q3(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=U3(l),m=y.reduce((T,A)=>T+A),b=g/m,x=new hg(e.map((T,A)=>{const k=y[A]*b;return[T,o?Math.floor(k):k]})),w=new hg(e.map((T,A)=>{const C=y[A]*b+v;return[T,o?Math.floor(C):C]})),O=Array.from(w.values()).reduce((T,A)=>T+A),_=(d-(O-O/c*i))*s,M=u+_;let E=o?Math.round(M):M;const P=new Array(c);for(let T=0;Td+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let Ia=class i2 extends n2{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Eu,flex:[]}}constructor(e){super(e)}clone(){return new i2(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=Q3({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}};const Bi=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=tl(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=0&&(c=1),1-s/(o-1)-n+c}function rC(t,e,n){const r=Kx(e);return 1-qx(e,t)/(r-1)-n+1}function iC(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function aC(t,e){return t>=e?2-(t-1)/(e-1):1}function oC(t,e,n,r){const i=e-t;return 1-.5*((e-r)**2+(t-n)**2)/(.1*i)**2}function sC(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function cC(){return 1}const Pp=(t,e,n=5,r=!0,i=J3,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||T<=t&&A>=e)&&(s.lmin=T,s.lmax=A,s.lstep=k,s.score=j)}}x+=1}y+=1}}c+=1}const l=mo(s.lmax),u=mo(s.lmin),f=mo(s.lstep),d=Math.floor(eC((l-u)/f))+1,h=new Array(d);h[0]=mo(u);for(let p=1;p{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Sp(t,l,1,r)-1,f=i[u],d=a[u];return Na(d,f)(l)}},mg=(t,e,n,r)=>(Math.min(t.length,e.length)>2?uC:lC)(t,e,r?Y3:n);let Pu=class extends zs{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Ra,tickCount:5}}map(e){return Sl(e)?this.output(e):this.options.unknown}invert(e){return Sl(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return Dx}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?n3(i[0],i[a-1]):$i}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=mg(r.map(e),i,o,a);this.output=Na(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=mg(a,i.map(e),Ra);this.input=Na(n,r,o)}},Yt=class c2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5}}chooseTransforms(){return[$i,$i]}clone(){return new c2(this.options)}},l2=class u2 extends Ia{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Eu,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new u2(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}};const fC=t=>e=>e<0?-((-e)**t):e**t,dC=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),hC=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);let f2=class d2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Fs,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[$i,$i];const n=e===.5?hC:fC(e),r=dC(e);return[n,r]}clone(){return new d2(this.options)}},pC=class h2 extends f2{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new h2(this.options)}},Au=class p2 extends zs{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!Sl(e))return this.options.unknown;const n=Sp(this.thresholds,e,0,this.n);return this.options.range[n]}invert(e){const{range:n}=this.options,r=n.indexOf(e),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new p2(this.options)}rescale(){const{domain:e,range:n}=this.options;this.n=Math.min(e.length,n.length-1),this.thresholds=e}};const vC=(t,e,n,r=10)=>{const i=t<0,a=Mp(r,i),o=_p(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2a-o);const i=[];for(let a=1;a3?0:(t-t%10!==10?1:0)*t%10]}},_C=zd({},SC),Qe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+Qe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Qe(Math.floor(Math.abs(e)/60),2)+":"+Qe(Math.abs(e)%60,2)}},bg={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},EC=function(t,e,n){if(e===void 0&&(e=bg.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=bg[e]||e;var r=[];e=e.replace(xC,function(a,o){return r.push(o),"@@@"});var i=zd(zd({},_C),n);return e=e.replace(bC,function(a){return MC[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};const PC=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u};function AC(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}let kC=class S2 extends Pu{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:PC,interpolate:Ra,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return m3}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?Yx:zx,i=n?AC:$i;return a=>EC(i(a),e||W3(a,r))}clone(){return new S2(this.options)}};var TC=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Gd;function CC(t){return[t(0),t(1)]}const LC=t=>{const[e,n]=t;return Na(Ra(0,1),Ol(e,n))};let Yd=Gd=class extends Yt{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:$i,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}clone(){return new Gd(this.options)}};Yd=Gd=TC([L3(CC,LC)],Yd);function _l(t,e,n){if(t===null)return[-.5,.5];const r=Ox(t,e),a=new Ia({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function Ml(t,e,n){return e*(1-t)+n*t}const _2=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=Ot(s,"x"),[d]=Ot(s,"y"),h=_l(f,l,n),p=_l(d,u,r),v=a.map(()=>Ml(i(),...p)),g=a.map(()=>Ml(i(),...h));return[a,X({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Wt(v),dx:Wt(g)}})]}};_2.props={};const M2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=Ot(a,"x"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{x:{padding:.5}}},i,{encode:{dx:Wt(u)}})]}};M2.props={};const E2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=Ot(a,"y"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{y:{padding:.5}}},i,{encode:{dy:Wt(u)}})]}};E2.props={};var NC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,a=NC(i,["x"]),o=Object.entries(a).filter(([f])=>f.startsWith("y")).map(([f])=>[f,Ot(i,f)[0]]),s=o.map(([f])=>[f,new Array(n.length)]),c=oi(e,n,r),l=new Array(c.length);for(let f=0;fo.map(([,y])=>+y[g])),[p,v]=Mr(h);l[f]=(p+v)/2}const u=Math.max(...l);for(let f=0;f[f,Wt(d,Ot(i,f)[1])]))})]}};P2.props={};const A2=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=Ot(a,"y"),[s,c]=Ot(a,"y1");n?ts(a,"series","color"):Ot(a,"color");const l=oi(e,r,i),u=new Array(r.length);for(const f of l){const d=f.map(h=>+o[h]);for(let h=0;hy!==h));u[p]=o[p]>v?v:o[p]}}return[r,X({},i,{encode:{y1:Wt(u,c)}})]}};A2.props={};function xg(t,e){return[t[0]]}function RC(t,e){const n=t.length-1;return[t[n]]}function IC(t,e){const n=to(t,r=>e[r]);return[t[n]]}function jC(t,e){const n=bu(t,r=>e[r]);return[t[n]]}function DC(t){return typeof t=="function"?t:{first:xg,last:RC,max:IC,min:jC}[t]||xg}const ku=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=oi(e,i,a),[c]=Ot(o,n),l=DC(r);return[s.flatMap(u=>l(u,c)),a]}};ku.props={};var $C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=$C(t,["selector"]);return ku(Object.assign({channel:"x",selector:e},n))};k2.props={};var BC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=BC(t,["selector"]);return ku(Object.assign({channel:"y",selector:e},n))};T2.props={};var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function zC(t){if(typeof t=="function")return[t,null];const n={mean:GC,max:WC,count:VC,first:UC,last:qC,sum:XC,min:HC,median:YC}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function GC(){const t=(n,r)=>rs(n,i=>+r[i]),e=si("mean");return[t,e]}function YC(){const t=(n,r)=>yp(n,i=>+r[i]),e=si("median");return[t,e]}function WC(){const t=(n,r)=>Ct(n,i=>+r[i]),e=si("max");return[t,e]}function HC(){const t=(n,r)=>bn(n,i=>+r[i]),e=si("min");return[t,e]}function VC(){const t=(n,r)=>n.length,e=si("count");return[t,e]}function XC(){const t=(n,r)=>Cn(n,i=>+r[i]),e=si("sum");return[t,e]}function UC(){const t=(n,r)=>r[n[0]],e=si("first");return[t,e]}function qC(){const t=(n,r)=>r[n[n.length-1]],e=si("last");return[t,e]}const Ap=(t={})=>{const{groupBy:e}=t,n=FC(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=Ot(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=zC(p),[y,m]=Ot(o,h),b=c(m,p),x=s.map(w=>v(w,y??a));return[h,Object.assign(Object.assign({},c5(x,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=Ot(o,h),g=s.map(y=>p[y[0]]);return[h,Wt(g,v)]}),f=s.map(h=>a[h[0]]);return[Ui(s),X({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};Ap.props={};var KC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=KC(t,["channels"]),r=(i,a)=>oi(e,i,a);return Ap(Object.assign(Object.assign({},n),{groupBy:r}))};Gs.props={};const C2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));C2.props={};const L2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));L2.props={};const N2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["color"]}));N2.props={};var R2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Ct(o,s=>+a[s]);if(i==="min")return o=>bn(o,s=>+a[s]);if(i==="sum")return o=>Cn(o,s=>+a[s]);if(i==="median")return o=>yp(o,s=>+a[s]);if(i==="mean")return o=>rs(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function QC(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=Ot(a,i),s=Er(t,c=>o[c]);return r&&s.reverse(),[s,e]}function JC(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function tL(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=R2(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=Ot(c,o),d=ZC(o,s,c),h=JC(t,f,u),p=w5(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,X(e,{scale:{[o]:{domain:g}}})]}const Tu=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=R2(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?tL(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):QC(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};Tu.props={};const I2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"x"}));I2.props={};const j2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"color"}));j2.props={};const D2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"y"}));D2.props={};function eL(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function nL(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Cn(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const $2=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=Ot(s,"x"),l=e?eL(o,e):Ot(s,n)[0],u=nL(r,l),f=dx(i,u,d=>c[d]).map(d=>d[1]);return[i,X({},a,{scale:{x:{flex:f}}})]}};$2.props={};function se([t,e],[n,r]){return[t-n,e-r]}function fc([t,e],[n,r]){return[t+n,e+r]}function Jt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Nn([t,e]){return Math.atan2(e,t)}function ja([t,e]){return Nn([t,e])+Math.PI/2}function B2(t,e){const n=Nn(t),r=Nn(e);return n{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[x,w,O,S]=kp(m),_=n==="col"?b%u:Math.floor(b/d),M=n==="col"?Math.floor(b/u):b%d,E=_*f,P=(d-M-1)*f+p,T=(f-e)/O,A=(f-e)/S,k=E-x+g*_+1/2*e,C=P-w-v*M-y+1/2*e;return`translate(${k}, ${C}) scale(${T}, ${A})`})}}const z2=t=>(e,n)=>[e,X({},n,{modifier:rL(t),axis:!1})];z2.props={};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=iL(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=Ot(c,p);return v}),u=Q(r,wg),f=o.filter(p=>l.every(v=>zt(v[p]))),d=[...e.map(p=>{const[v]=Ot(c,p);return v}).filter(zt).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||aL(g),m=T5().thresholds(y).value(x=>+g[x])(f),b=new Map(m.flatMap(x=>{const{x0:w,x1:O}=x,S=`${w},${O}`;return x.map(_=>[_,S])}));return i[p]=b,x=>b.get(x)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(te(f,h).values())};return Ap(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(wg)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Tp.props={};const G2=(t={})=>{const{thresholds:e}=t;return Tp(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};G2.props={};function oL(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function sL(t){if(typeof t=="function")return t;if(t==="lttb")return oL;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[bu(r,o=>a[o])]],max:(r,i,a)=>[r[to(r,o=>a[o])]],median:(r,i,a)=>[r[R5(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return cL(r,s).flatMap(l=>n(l,i,a))}}function cL(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=sL(e);return(a,o)=>{const{encode:s}=o,c=oi(r,a,o),[l]=Ot(s,"x"),[u]=Ot(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};Y2.props={};function lL(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const W2=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=Ot(r,u);if(!d)return null;const[h,p=!0]=lL(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(zt);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,X({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};W2.props={};function Ut(t){return function(){return t}}const Og=Math.abs,Re=Math.atan2,mi=Math.cos,uL=Math.max,Tf=Math.min,qn=Math.sin,va=Math.sqrt,Ie=1e-12,ls=Math.PI,El=ls/2,fL=2*ls;function dL(t){return t>1?0:t<-1?ls:Math.acos(t)}function Sg(t){return t>=1?El:t<=-1?-El:Math.asin(t)}const Wd=Math.PI,Hd=2*Wd,_i=1e-6,hL=Hd-_i;function H2(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return H2;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i_i)if(!(Math.abs(f*c-l*u)>_i)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Wd-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>_i&&this._append`L${e+x*u},${n+x*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+w*c},${this._y1=n+w*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>_i||Math.abs(this._y1-u)>_i)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Hd+Hd),d>hL?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>_i&&this._append`A${r},${r},0,${+(d>=Wd)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jn(){return new Cp}jn.prototype=Cp.prototype;function Lp(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Cp(e)}function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function yL(t){return t.startAngle}function mL(t){return t.endAngle}function bL(t){return t&&t.padAngle}function xL(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+C*C&&(_=E,M=P),{cx:_,cy:M,x01:-u,y01:-f,x11:_*(i/w-1),y11:M*(i/w-1)}}function Cu(){var t=vL,e=gL,n=Ut(0),r=null,i=yL,a=mL,o=bL,s=null,c=Lp(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-El,v=a.apply(this,arguments)-El,g=Og(v-p),y=v>p;if(s||(s=u=c()),hIe))s.moveTo(0,0);else if(g>fL-Ie)s.moveTo(h*mi(p),h*qn(p)),s.arc(0,0,h,p,v,!y),d>Ie&&(s.moveTo(d*mi(v),d*qn(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,x=p,w=v,O=g,S=g,_=o.apply(this,arguments)/2,M=_>Ie&&(r?+r.apply(this,arguments):va(d*d+h*h)),E=Tf(Og(h-d)/2,+n.apply(this,arguments)),P=E,T=E,A,k;if(M>Ie){var C=Sg(M/d*qn(_)),L=Sg(M/h*qn(_));(O-=C*2)>Ie?(C*=y?1:-1,x+=C,w-=C):(O=0,x=w=(p+v)/2),(S-=L*2)>Ie?(L*=y?1:-1,m+=L,b-=L):(S=0,m=b=(p+v)/2)}var I=h*mi(m),R=h*qn(m),j=d*mi(w),D=d*qn(w);if(E>Ie){var $=h*mi(b),B=h*qn(b),F=d*mi(x),Y=d*qn(x),U;if(gIe?T>Ie?(A=dc(F,Y,I,R,h,T,y),k=dc($,B,j,D,h,T,y),s.moveTo(A.cx+A.x01,A.cy+A.y01),TIe)||!(O>Ie)?s.lineTo(j,D):P>Ie?(A=dc(j,D,$,B,d,-P,y),k=dc(I,R,F,Y,d,-P,y),s.lineTo(A.cx+A.x01,A.cy+A.y01),P=h;--p)s.point(b[p],x[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),x[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):x[d]))}if(m)return s=null,m+""||null}function u(){return Jr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ut(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ut(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ut(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var K2=Np(Ys);function Z2(t){this._curve=t}Z2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Np(t){function e(n){return new Z2(t(n))}return e._curve=t,e}function Mo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Np(n)):e()._curve},t}function wL(){return Mo(Jr().curve(K2))}function OL(){var t=Vd().curve(K2),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mo(n())},delete t.lineX0,t.lineEndAngle=function(){return Mo(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mo(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mo(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Np(o)):e()._curve},t}function Da(){}function Xd(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rp(t,e){this._context=t,this._k=(1-e)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Rp(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ip(t,e){this._context=t,this._k=(1-e)/6}Ip.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Ip(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Q2(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ie){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ie){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function J2(t,e){this._context=t,this._alpha=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return e?new J2(r,e):new Rp(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function tw(t,e){this._context=t,this._alpha=e}tw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ew=function t(e){function n(r){return e?new tw(r,e):new Ip(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function nw(t){this._context=t}nw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function jp(t){return new nw(t)}function _g(t){return t<0?-1:1}function Mg(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(_g(a)+_g(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Eg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cf(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Pl(t){this._context=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cf(this,this._t0,Eg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cf(this,Eg(this,n=Mg(this,t,e)),n);break;default:Cf(this,this._t0,n=Mg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rw(t){this._context=new iw(t)}(rw.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)};function iw(t){this._context=t}iw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function aw(t){return new Pl(t)}function ow(t){return new rw(t)}function Lu(t,e){this._context=t,this._t=e}Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sw(t){return new Lu(t,.5)}function cw(t){return new Lu(t,0)}function lw(t){return new Lu(t,1)}function qt(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Ht(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function Nu(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function uw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function Ru(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function fw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function SL(t){return Ru(t)&&Ht(t)}function eo(t){return uw(t)||Ht(t)}function _L(t){return Ht(t)&&qt(t)}function ML(t){if(eo(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Iu(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function Dp(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function EL(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}var dw={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function a(c,l,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||c,d),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?hc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?hc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kL.exec(t))?new yn(e[1],e[2],e[3],1):(e=TL.exec(t))?new yn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=CL.exec(t))?hc(e[1],e[2],e[3],e[4]):(e=LL.exec(t))?hc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,1):(e=RL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,e[4]):Pg.hasOwnProperty(t)?Tg(Pg[t]):t==="transparent"?new yn(NaN,NaN,NaN,0):null}function Tg(t){return new yn(t>>16&255,t>>8&255,t&255,1)}function hc(t,e,n,r){return r<=0&&(t=e=n=NaN),new yn(t,e,n,r)}function jL(t){return t instanceof Ws||(t=ju(t)),t?(t=t.rgb(),new yn(t.r,t.g,t.b,t.opacity)):new yn}function DL(t,e,n,r){return arguments.length===1?jL(t):new yn(t,e,n,r??1)}function yn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Bp(yn,DL,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatRgb:Lg,toString:Lg}));function Cg(){return"#"+Lf(this.r)+Lf(this.g)+Lf(this.b)}function Lg(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Lf(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ng(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qn(t,e,n,r)}function pw(t){if(t instanceof Qn)return new Qn(t.h,t.s,t.l,t.opacity);if(t instanceof Ws||(t=ju(t)),!t)return new Qn;if(t instanceof Qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Qn(o,s,c,t.opacity)}function $L(t,e,n,r){return arguments.length===1?pw(t):new Qn(t,e,n,r??1)}function Qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Bp(Qn,$L,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new Qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new Qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yn(Nf(t>=240?t-240:t+120,i,r),Nf(t,i,r),Nf(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Nf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Pr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function vw(t,e){var n=Math.min.apply(Math,q([],N(t),!1)),r=Math.min.apply(Math,q([],N(e),!1)),i=Math.max.apply(Math,q([],N(t),!1)),a=Math.max.apply(Math,q([],N(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function BL(t,e,n){return Math.atan(-e/t*Math.tan(n))}function FL(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function zL(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function GL(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function YL(t,e,n,r,i,a,o){for(var s=BL(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=FL(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}var WL=1e-4;function gw(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,q([],N(t.concat([h])),!1)),i.apply(void 0,q([],N(e.concat([h])),!1))],v=Pr(c[0],c[1],p[0],p[1]);v=0&&v=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Fo(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function VL(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Rg(t,n,i,o),f=Rg(e,r,a,s),d=0;d=0?[i]:[]}function KL(t,e,n,r,i,a){var o=jg(t,n,i)[0],s=jg(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(qd(t,n,i,o)),s!==void 0&&l.push(qd(e,r,a,s)),vw(c,l)}function ZL(t,e,n,r,i,a,o,s){return gw([t,n,i],[e,r,a],o,s,qd)}function QL(t,e,n,r,i,a,o,s){var c=ZL(t,e,n,r,i,a,o,s);return Pr(c.x,c.y,o,s)}var JL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bw={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(JL,function(){function n(w,O,S,_,M){r(w,O,S||0,_||w.length-1,M||a)}function r(w,O,S,_,M){for(;_>S;){if(_-S>600){var E=_-S+1,P=O-S+1,T=Math.log(E),A=.5*Math.exp(2*T/3),k=.5*Math.sqrt(T*A*(E-A)/E)*(P-E/2<0?-1:1),C=Math.max(S,Math.floor(O-P*A/E+k)),L=Math.min(_,Math.floor(O+(E-P)*A/E+k));r(w,O,C,L,M)}var I=w[O],R=S,j=_;for(i(w,S,O),M(w[_],I)>0&&i(w,S,_);R0;)j--}M(w[S],I)===0?i(w,S,j):(j++,i(w,j,_)),j<=O&&(S=j+1),O<=j&&(_=j-1)}}function i(w,O,S){var _=w[O];w[O]=w[S],w[S]=_}function a(w,O){return wO?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var S=this.data,_=[];if(!m(O,S))return _;for(var M=this.toBBox,E=[];S;){for(var P=0;P=0&&E[S].children.length>this._maxEntries;)this._split(E,S),S--;this._adjustParentBBoxes(M,E,S)},o.prototype._split=function(O,S){var _=O[S],M=_.children.length,E=this._minEntries;this._chooseSplitAxis(_,E,M);var P=this._chooseSplitIndex(_,E,M),T=b(_.children.splice(P,_.children.length-P));T.height=_.height,T.leaf=_.leaf,c(_,this.toBBox),c(T,this.toBBox),S?O[S-1].children.push(T):this._splitRoot(_,T)},o.prototype._splitRoot=function(O,S){this.data=b([O,S]),this.data.height=O.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,S,_){for(var M,E=1/0,P=1/0,T=S;T<=_-S;T++){var A=l(O,0,T,this.toBBox),k=l(O,T,_,this.toBBox),C=g(A,k),L=h(A)+h(k);C=S;L--){var I=O.children[L];u(T,O.leaf?E(I):I),A+=p(T)}return A},o.prototype._adjustParentBBoxes=function(O,S,_){for(var M=_;M>=0;M--)u(S[M],O)},o.prototype._condense=function(O){for(var S=O.length-1,_=void 0;S>=0;S--)O[S].children.length===0?S>0?(_=O[S-1].children,_.splice(_.indexOf(O[S]),1)):this.clear():c(O[S],this.toBBox)};function s(w,O,S){if(!S)return O.indexOf(w);for(var _=0;_=w.minX&&O.maxY>=w.minY}function b(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(w,O,S,_,M){for(var E=[O,S];E.length;)if(S=E.pop(),O=E.pop(),!(S-O<=_)){var P=O+Math.ceil((S-O)/_/2)*_;n(w,P,O,S,M),E.push(O,P,P,S)}}return o})})(bw);var tN=bw.exports,G;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(G||(G={}));var wa;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(wa||(wa={}));var ci=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),eN=function(){function t(e){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.plugins=[],this.config=z({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function na(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Rf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function el(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Dg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function nN(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function rN(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Oa(t){return t===void 0?0:t>360||t<-360?t%360:t}function We(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?br(t):de(t)?St(t,e,n):St(t[0],t[1]||e,t[2]||n)}function re(t){return t*(Math.PI/180)}function Pn(t){return t*(180/Math.PI)}function iN(t){return 360*t}function aN(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function oN(t,e){var n,r,i=Math.PI*.5,a=N(Aa(yt(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function If(t,e){return e.length===16?oN(t,e):aN(t,e)}function sN(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return Yk(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function cN(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function $g(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eft[1][2]&&(a[0]=-a[0]),ft[0][2]>ft[2][0]&&(a[1]=-a[1]),ft[1][0]>ft[0][1]&&(a[2]=-a[2]),!0}function uN(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function fN(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function jf(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var be=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){na(this.center,e),na(this.halfExtents,n),Rf(this.min,this.center,this.halfExtents),el(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){el(this.center,n,e),Dg(this.center,this.center,.5),Rf(this.halfExtents,n,e),Dg(this.halfExtents,this.halfExtents,.5),na(this.min,e),na(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],x=e.halfExtents,w=x[0],O=x[1],S=x[2],_=y-w,M=y+w,E=m-O,P=m+O,T=b-S,A=b+S;_f&&(f=M),Eh&&(h=P),Tv&&(v=A),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),x=Math.abs(f),w=Math.abs(d),O=Math.abs(h),S=Math.abs(p),_=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+x*o[1]+w*o[2],i[2]=O*o[0]+S*o[1]+_*o[2],Rf(this.min,r,i),el(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=nN([0,0,0],this.getMin(),e.getMin()),i=rN([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),dN=function(){function t(e,n){this.distance=e||0,this.normal=n||St(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return nr(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/tx(this.normal);Cd(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&Ld(r,e,n,o),s},t}(),zr;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(zr||(zr={}));var hN=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new dN)}return t.prototype.extractFromVPMatrix=function(e){var n=N(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];Gn(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,Gn(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,Gn(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,Gn(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,Gn(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,Gn(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Ee=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Fi=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),It="Method not implemented.",ra="Use document.documentElement instead.",pN="Cannot append a destroyed element.",Tt;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(Tt||(Tt={}));var ds;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(ds||(ds={}));var tn;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(tn||(tn={}));var xw={UPDATED:"updated"},Fg=2e-4,ww=function(){function t(){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.eventEmitter=new $p,this.matrix=Nt(),this.right=St(1,0,0),this.up=St(0,1,0),this.forward=St(0,0,1),this.position=St(0,0,1),this.focalPoint=St(0,0,0),this.distanceVector=St(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Nt(),this.projectionMatrixInverse=Nt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=Tt.EXPLORING,this.trackingMode=ds.DEFAULT,this.projectionMode=tn.PERSPECTIVE,this.frustum=new hN,this.orthoMatrix=Nt()}return t.prototype.isOrtho=function(){return this.projectionMode===tn.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===Tt.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Tt.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==Tt.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Wn(Nt(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=up(Nt(),[e,n,0]);this.jitteredProjectionMatrix=$e(Nt(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===tn.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===tn.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=St(c-i,l-a,0),f=nr(u,this.right)/wr(this.right),d=nr(u,this.up)/wr(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=tn.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(re(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return cN(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===wa.ZERO),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=tn.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===wa.NEGATIVE_ONE?Ub(this.projectionMatrix,d,h,v,p,a,o):qb(this.projectionMatrix,d,h,v,p,a,o),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=We(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=St(0,1,0);if(this.focalPoint=We(e,n,r),this.trackingMode===ds.CINEMATIC){var a=qv(yt(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=wr(a),s=Pn(Math.asin(n/o)),c=90+Pn(Math.atan2(r,e)),l=Nt();Wb(l,l,re(c)),Yb(l,l,re(s)),i=Oe(yt(),[0,1,0],l)}return Wn(this.matrix,Kb(Nt(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=Z.kEms&&e=ti.kUnitType&&this.getType()<=ti.kClampType},t}(),xN=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return ti.kColorType},e.prototype.to=function(n){return this},e}(Du),rr;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(rr||(rr={}));var pc=function(t){rt(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return ti.kColorType},e}(Du),sn=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return ti.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(Du),wN=Ne(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Yg=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function ON(t){if(!t)throw new Error}function ga(t){return typeof t=="function"}function SN(t){return typeof t=="symbol"}var _N={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},Jd=Ne(function(t){var e=wN(t),n=_N[e];return e=(n==null?void 0:n.alias)||e,e}),MN=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(ON(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},th=function(t){return bN(mN(t))},jt=function(t){rt(e,t);function e(n,r){r===void 0&&(r=Z.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=yN(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return ti.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=th(this.unit);if(r!==th(n)||r===Z.kUnknown)return null;var i=Gg(this.unit)/Gg(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case Z.kUnknown:break;case Z.kInteger:a=Number(this.value).toFixed(0);break;case Z.kNumber:case Z.kPercentage:case Z.kEms:case Z.kRems:case Z.kPixels:case Z.kDegrees:case Z.kRadians:case Z.kGradians:case Z.kMilliseconds:case Z.kSeconds:case Z.kTurns:{var o=-999999,s=999999,c=this.value,l=Qd(this.unit);if(cs){var u=Qd(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=MN(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(Du),we=new jt(0,"px");new jt(1,"px");var Hn=new jt(0,"deg"),Fp=function(t){rt(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(xN),Gt=new sn("unset"),EN=new sn("initial"),PN=new sn("inherit"),Df={"":Gt,unset:Gt,initial:EN,inherit:PN},eh=function(t){return Df[t]||(Df[t]=new sn(t)),Df[t]},nh=new Fp(0,0,0,0,!0),Ow=new Fp(0,0,0,0),AN=Ne(function(t,e,n,r){return new Fp(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),Ft=function(t,e){return e===void 0&&(e=Z.kNumber),new jt(t,e)},kl=new jt(50,"%"),rh;(function(t){t[t.Standard=0]="Standard"})(rh||(rh={}));var $a;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})($a||($a={}));var Sw={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)},tt;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(tt||(tt={}));function kN(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var TN=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(I){throw new Error(e+": "+I)}function r(){var I=i();return e.length>0&&n("Invalid input not EOF"),I}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(I,R,j){return s(R,function(D){var $=j();return $&&(C(t.comma)||n("Missing comma before color stops")),{type:I,orientation:$,colorStops:b(x)}})}function s(I,R){var j=C(I);if(j){C(t.startCall)||n("Missing (");var D=R(j);return C(t.endCall)||n("Missing )"),D}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var I,R=d(),j;return R&&(I=[],I.push(R),j=e,C(t.comma)&&(R=d(),R?I.push(R):e=j)),I}function d(){var I=h()||p();if(I)I.at=g();else{var R=v();if(R){I=R;var j=g();j&&(I.at=j)}else{var D=y();D&&(I={type:"default-radial",at:D})}}return I}function h(){var I=k("shape",/^(circle)/i,0);return I&&(I.style=A()||v()),I}function p(){var I=k("shape",/^(ellipse)/i,0);return I&&(I.style=P()||v()),I}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=m();if(I.x||I.y)return{type:"position",value:I}}function m(){return{x:P(),y:P()}}function b(I){var R=I(),j=[];if(R)for(j.push(R);C(t.comma);)R=I(),R?j.push(R):n("One extra comma");return j}function x(){var I=w();return I||n("Expected color definition"),I.length=P(),I}function w(){return S()||M()||_()||O()}function O(){return k("literal",t.literalColor,0)}function S(){return k("hex",t.hexColor,1)}function _(){return s(t.rgbColor,function(){return{type:"rgb",value:b(E)}})}function M(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(E)}})}function E(){return C(t.number)[1]}function P(){return k("%",t.percentageValue,1)||T()||A()}function T(){return k("position-keyword",t.positionKeywords,1)}function A(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(I,R,j){var D=C(R);if(D)return{type:I,value:D[j]}}function C(I){var R=/^[\n\r\t\s]+/.exec(e);R&&L(R[0].length);var j=I.exec(e);return j&&L(j[0].length),j}function L(I){e=e.substring(I)}return function(I){return e=I,r()}}();function CN(t,e,n){var r=re(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function LN(t,e,n,r,i){var a=n.value,o=r.value;n.unit===Z.kPercentage&&(a=n.value/100*t),r.unit===Z.kPercentage&&(o=r.value/100*e);var s=Math.max(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]));return i&&(i instanceof jt?s=i.value:i instanceof sn&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]))))),{x:a,y:o,r:s}}var NN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,RN=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,IN=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,_w=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function jN(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=TN(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;jN(u);var f=u.map(function(b){return{offset:Ft(Number(b.length.value),"%"),color:kN(b)}});if(c==="linear-gradient")return new pc(rr.LinearGradient,{angle:l?$N(l):Hn,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=BN(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=eh(m):v=Ft(m,y)}return new pc(rr.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=NN.exec(t);if(i){var a=((e=i[2].match(_w))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pc(rr.LinearGradient,{angle:Ft(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=N(s,2),l=c[0],u=c[1];return{offset:Ft(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=zN(t);if(o)if(le(o))t=o;else return[new pc(rr.RadialGradient,o)]}else if(r==="p")return GN(t)}});function zN(t){var e,n=RN.exec(t);if(n){var r=((e=n[4].match(_w))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:Ft(50,"%"),cy:Ft(50,"%"),steps:r.map(function(i){var a=N(i,2),o=a[0],s=a[1];return{offset:Ft(Number(o)*100,"%"),color:s}})}}return null}function GN(t){var e=IN.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function hs(t){return t&&!!t.image}function Tl(t){return t&&!nt(t.r)&&!nt(t.g)&&!nt(t.b)}var Ar=Ne(function(t){if(hs(t))return z({repetition:"repeat"},t);if(nt(t)&&(t=""),t==="transparent")return Ow;t==="currentColor"&&(t="black");var e=FN(t);if(e)return e;var n=ju(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),AN.apply(void 0,q([],N(r),!1))});function YN(t,e){if(!(!Tl(t)||!Tl(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(ce(r[i],0,255));return r[3]=ce(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Hs(t,e){if(nt(e))return Ft(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return Ft(Number(e),"px");if("deg".search(t)>=0)return Ft(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return Ft(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var Mw=function(t){return Hs(new RegExp("px","g"),t)},WN=Ne(Mw),HN=function(t){return Hs(new RegExp("%","g"),t)};Ne(HN);var ps=function(t){return de(t)||isFinite(Number(t))?Ft(Number(t)||0,"px"):Hs(new RegExp("px|%|em|rem","g"),t)},Ba=Ne(ps),zp=function(t){return Hs(new RegExp("deg|rad|grad|turn","g"),t)},Ew=Ne(zp);function VN(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=th(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=Qd(t.unit)):(jt.isLength(t.unit)||jt.isLength(e.unit))&&(o=dn(t,i,n),s=dn(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function hn(t){var e=0;return t.unit===Z.kDegrees?e=t.value:t.unit===Z.kRadians?e=Pn(Number(t.value)):t.unit===Z.kTurns&&(e=iN(Number(t.value))),e}function $f(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):le(t)?n=t.split(" ").map(function(r){return Number(r)}):de(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function Pw(t){return le(t)?t.split(" ").map(function(e){return Ba(e)}):t.map(function(e){return Ba(e.toString())})}function dn(t,e,n){if(t.value===0)return 0;if(t.unit===Z.kPixels)return Number(t.value);if(t.unit===Z.kPercentage&&n){var r=n.nodeName===G.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var XN=function(t){return Hs(/deg|rad|grad|turn|px|%/g,t)},UN=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Aw(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,UN.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return XN(a)||Ar(a)})}),e.lastIndex===t.length)return n}return[]}function kw(t){return t.toString()}var no=function(t){return typeof t=="number"?Ft(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ft(Number(t)):Ft(0)},zi=Ne(no);Ne(function(t){return le(t)?t.split(" ").map(zi):t.map(zi)});function Gp(t,e){return[t,e,kw]}function Yp(t,e){return function(n,r){return[n,r,function(i){return kw(ce(i,t,e))}]}}function Tw(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function ih(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=e5(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function qN(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function Cl(t,e){return t[0]===e[0]&&t[1]===e[1]}function QN(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function Wg(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var Hg=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},Vg=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Ib(r,360);var c=re(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},x=Hg({x:1,y:0},b),w={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},O=Hg(b,w);!a&&O>0?O-=2*Math.PI:a&&O<0&&(O+=2*Math.PI),O%=2*Math.PI;var S=x+O*s,_=e*Math.cos(S),M=n*Math.sin(S),E={x:Math.cos(c)*_-Math.sin(c)*M+m.x,y:Math.sin(c)*_+Math.cos(c)*M+m.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+O,ellipticalArcAngle:S,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return E};function JN(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,x=[(f-g)/n,(d-y)/r],w=[(-1*f-g)/n,(-1*d-y)/r],O=Ug([1,0],x),S=Ug(x,w);return ah(x,w)<=-1&&(S=Math.PI),ah(x,w)>=1&&(S=0),o===0&&S>0&&(S=S-2*Math.PI),o===1&&S<0&&(S=S+2*Math.PI),{cx:m,cy:b,rx:Cl(t,[l,u])?0:n,ry:Cl(t,[l,u])?0:r,startAngle:O,endAngle:O+S,xRotation:i,arcFlag:a,sweepFlag:o}}function e4(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=St(l[1]-a,l[2]-s,0);n&&Oe(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0),p=St(l[5]-a,l[6]-s,0);n&&(Oe(d,d,n),Oe(h,h,n),Oe(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=St(l[6]-a,l[7]-s,0);n&&Oe(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0);n&&(Oe(d,d,n),Oe(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function n4(t,e,n,r){return[["M",t,e],["L",n,r]]}function qg(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function r4(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function i4(t,e,n,r,i){if(i){var a=N(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function Wp(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case G.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=n4(a,s,l,f);break;case G.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=qg(p,p,g,m);break}case G.ELLIPSE:{var b=t.parsedStyle,x=b.rx,w=x===void 0?0:x,O=b.ry,S=O===void 0?0:O,_=b.cx,g=_===void 0?0:_,M=b.cy,m=M===void 0?0:M;n=qg(w,S,g,m);break}case G.POLYLINE:case G.POLYGON:var E=t.parsedStyle.points;n=r4(E.points,t.nodeName===G.POLYGON);break;case G.RECT:var P=t.parsedStyle,T=P.width,A=T===void 0?0:T,k=P.height,C=k===void 0?0:k,L=P.x,I=L===void 0?0:L,R=P.y,j=R===void 0?0:R,D=P.radius,$=D&&D.some(function(F){return F!==0});n=i4(A,C,I,j,$&&D.map(function(F){return ce(F,0,Math.min(Math.abs(A)/2,Math.abs(C)/2))}));break;case G.PATH:var B=t.parsedStyle.path.absolutePath;n=q([],N(B),!1);break}if(n.length)return e4(n,t,e)}var Cw=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=bl(t)}catch{e=bl(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}qN(e);var n=KN(e),r=ZN(e),i=r.polygons,a=r.polylines,o=JN(e),s=QN(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},a4=Ne(Cw);function oh(t){return le(t)?a4(t):Cw(t)}function o4(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Rd(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Rd(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=cx(r,i));var o=eg(a[0])!==eg(a[1])?qT(a[0]):UT(a[0]);return[o,r5(a[1],o),function(s){return s}]}function Lw(t,e){var n;le(t)?n=t.split(" ").map(function(u){var f=N(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=qL(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=yw(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,q([],N(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,q([],N(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function s4(t,e){return[t.points,e.points,function(n){return n}]}var ie=null;function Je(t){return function(e){var n=0;return t.map(function(r){return r===ie?e[n++]:r})}}function bi(t){return t}var Ll={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],bi],matrix3d:["NNNNNNNNNNNNNNNN",bi],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Je([ie,ie,new jt(1)]),bi],scalex:["N",Je([ie,new jt(1),new jt(1)]),Je([ie,new jt(1)])],scaley:["N",Je([new jt(1),ie,new jt(1)]),Je([new jt(1),ie])],scalez:["N",Je([new jt(1),new jt(1),ie])],scale3d:["NNN",bi],skew:["Aa",null,bi],skewx:["A",null,Je([ie,Hn])],skewy:["A",null,Je([Hn,ie])],translate:["Tt",Je([ie,ie,we]),bi],translatex:["T",Je([ie,we,we]),Je([ie,we])],translatey:["T",Je([we,ie,we]),Je([we,ie])],translatez:["L",Je([we,we,ie])],translate3d:["TTL",bi]};function Hp(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=Ll[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=$f(n.anchor,2)),n.transform&&(e.parsedStyle.transform=Hp(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Nw(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===G.CIRCLE||e.nodeName===G.ELLIPSE)&&(!nt(n.cx)||!nt(n.cy))||(e.nodeName===G.RECT||e.nodeName===G.IMAGE||e.nodeName===G.GROUP||e.nodeName===G.HTML||e.nodeName===G.TEXT||e.nodeName===G.MESH)&&(!nt(n.x)||!nt(n.y)||!nt(n.z))||e.nodeName===G.LINE&&(!nt(n.x1)||!nt(n.y1)||!nt(n.z1)||!nt(n.x2)||!nt(n.y2)||!nt(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=r.memoize,v=d,g=Object.keys(n);g.forEach(function(y){var m;u||(e.attributes[y]=n[y]),!v&&(!((m=Br[y])===null||m===void 0)&&m.l)&&(v=!0)}),f||g.forEach(function(y){e.computedStyle[y]=i.parseProperty(y,e.attributes[y],e,p)}),h!=null&&h.length&&(g=Array.from(new Set(g.concat(h)))),g.forEach(function(y){y in e.computedStyle&&(e.parsedStyle[y]=i.computeProperty(y,e.computedStyle[y],e,p))}),v&&this.updateGeometry(e),g.forEach(function(y){y in e.parsedStyle&&i.postProcessProperty(y,e,g)}),this.runtime.enableCSSParsing&&e.children.length&&g.forEach(function(y){y in e.parsedStyle&&i.isPropertyInheritable(y)&&e.children.forEach(function(m){m.internalSetAttribute(y,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r,i){var a=Br[e],o=n;if((n===""||nt(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")o=eh(n);else if(a){var s=a.k,c=a.syntax,l=c&&this.getPropertySyntax(c);s&&s.indexOf(n)>-1?o=eh(n):l&&(!i&&l.parserUnmemoize?o=l.parserUnmemoize(n,r):l.parser&&(o=l.parser(n,r)))}return o},t.prototype.computeProperty=function(e,n,r,i){var a=Br[e],o=r.id==="g-root",s=n;if(a){var c=a.syntax,l=a.inh,u=a.d;if(n instanceof sn){var f=n.value;if(f==="unset"&&(l&&!o?f="inherit":f="initial"),f==="initial")nt(u)||(n=this.parseProperty(e,ga(u)?u(r.nodeName):u,r,i));else if(f==="inherit"){var d=this.tryToResolveProperty(r,e,{inherited:!0});if(nt(d)){this.addUnresolveProperty(r,e);return}else return d}}var h=c&&this.getPropertySyntax(c);if(h&&h.calculator){var p=r.parsedStyle[e];s=h.calculator(e,p,n,r,this.runtime)}else n instanceof sn?s=n.value:s=n}return s},t.prototype.postProcessProperty=function(e,n,r){var i=Br[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=la.get(e);r||(la.set(e,[]),r=la.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&m4(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=la.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),la.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new be),i.renderBounds||(i.renderBounds=new be);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,x=m.lineWidth,w=m.increasedLineWidthForHitTesting,O=m.shadowType,S=m.shadowColor,_=m.filter,M=_===void 0?[]:_,E=m.transformOrigin,P=a.anchor;n===G.TEXT?delete a.anchor:n===G.MESH&&(a.anchor[2]=.5);var T=[(1-(P&&P[0]||0)*2)*s/2+d,(1-(P&&P[1]||0)*2)*c/2+p,(1-(P&&P[2]||0)*2)*y[2]+g];i.contentBounds.update(T,y);var A=n===G.POLYLINE||n===G.POLYGON||n===G.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var C=((x||0)+(w||0))*A;y[0]+=C,y[1]+=C}if(i.renderBounds.update(T,y),S&&O&&O!=="inner"){var L=i.renderBounds,I=L.min,R=L.max,j=a,D=j.shadowBlur,$=j.shadowOffsetX,B=j.shadowOffsetY,F=D||0,Y=$||0,U=B||0,K=I[0]-F+Y,V=R[0]+F+Y,W=I[1]-F+U,J=R[1]+F+U;I[0]=Math.min(I[0],K),R[0]=Math.max(R[0],V),I[1]=Math.min(I[1],W),R[1]=Math.max(R[1],J),i.renderBounds.setMinMax(I,R)}M.forEach(function(lt){var xt=lt.name,Et=lt.params;if(xt==="blur"){var Xt=Et[0].value;i.renderBounds.update(i.renderBounds.center,el(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Xt,Xt,0]))}else if(xt==="drop-shadow"){var ue=Et[0].value,Ke=Et[1].value,vr=Et[2].value,gi=i.renderBounds,Ge=gi.min,wn=gi.max,_t=Ge[0]-vr+ue,Pt=wn[0]+vr+ue,ee=Ge[1]-vr+Ke,kt=wn[1]+vr+Ke;Ge[0]=Math.min(Ge[0],_t),wn[0]=Math.max(wn[0],Pt),Ge[1]=Math.min(Ge[1],ee),wn[1]=Math.max(wn[1],kt),i.renderBounds.setMinMax(Ge,wn)}}),P=a.anchor;var et=s<0,it=c<0,ct=(et?-1:1)*(E?dn(E[0],0,e):0),ot=(it?-1:1)*(E?dn(E[1],1,e):0);ct=ct-(et?-1:1)*(P&&P[0]||0)*i.contentBounds.halfExtents[0]*2,ot=ot-(it?-1:1)*(P&&P[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(ct,ot),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Br[e];return n?n.inh:!1},t}(),x4=function(){function t(){this.parser=Ew,this.parserUnmemoize=zp,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i){return hn(r)},t}(),w4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof sn&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),O4=function(){function t(){this.parser=Ar,this.parserWithCSSDisabled=Ar,this.mixer=YN}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="none"?nh:Ow:r},t}(),S4=function(){function t(){this.parser=Aw}return t.prototype.calculator=function(e,n,r){return r instanceof sn?[]:r},t}();function Jg(t){var e=t.parsedStyle.fontSize;return nt(e)?null:e}var Xp=function(){function t(){this.parser=Ba,this.parserUnmemoize=ps,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i,a){var o;if(de(r))return r;if(jt.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===Z.kPercentage)return 0;if(r.unit===Z.kEms){if(i.parentNode){var c=Jg(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===Z.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=Jg(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),_4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),M4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),xo=Nt();function Up(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[we,we];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[we];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[we];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[we];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[we,we,we];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a==="rotatex"){var l=o||[Hn];e.rotateLocal(hn(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Hn];e.rotateLocal(0,hn(l[0]),0)}else if(a==="rotatez"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(re(u[0]),re(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(re(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],re(u[0]))}else if(a==="matrix"){var f=N(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Td(xo,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Td.apply(bT,q([xo],N(o.map(function(m){return m.value})),!1)),xo[12]+=n,xo[13]+=r,e.setLocalTransform(xo))}),e.getLocalTransform()}var E4=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case G.CIRCLE:case G.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;nt(c)||(i=c),nt(l)||(a=l),nt(u)||(o=u);break;case G.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case G.RECT:case G.IMAGE:case G.GROUP:case G.HTML:case G.TEXT:case G.MESH:nt(n.parsedStyle.x)||(i=n.parsedStyle.x),nt(n.parsedStyle.y)||(a=n.parsedStyle.y),nt(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==G.PATH&&n.nodeName!==G.POLYLINE&&n.nodeName!==G.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!nt(i)||!nt(a)||!nt(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)Up(b,n);else{var x=N(n.getLocalPosition(),3),w=x[0],O=x[1],S=x[2];n.setLocalPosition(nt(i)?w:i,nt(a)?O:a,nt(o)?S:o)}}},e}(Xp),P4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof sn&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),A4=function(){function t(){this.mixer=Gp,this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===G.LINE||a===G.PATH||a===G.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),T4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),C4=function(){function t(){this.parser=oh,this.parserWithCSSDisabled=oh,this.mixer=o4}return t.prototype.calculator=function(e,n,r){return r instanceof sn&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===G.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),L4=function(){function t(){this.parser=Lw,this.mixer=s4}return t.prototype.postProcessor=function(e,n){if((e.nodeName===G.POLYGON||e.nodeName===G.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),N4=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.mixer=Yp(0,1/0),n}return e}(Xp),R4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),I4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),Gf={},j4=0;function D4(t,e){if(t){var n=typeof t=="string"?t:t.id||j4++;Gf[n]&&Gf[n].destroy(),Gf[n]=e}}var Vs=typeof window<"u"&&typeof window.document<"u";function $4(t){return!!t.getAttribute}function B4(t,e){for(var n=0,r=t.length;n>>1;Rw(t[i],e)<0?n=i+1:r=i}return n}function Rw(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function Iw(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var ty="px";function F4(t,e,n){Vs&&t.style&&(t.style.width=e+ty,t.style.height=n+ty)}function jw(t,e){if(Vs)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function z4(t){var e=jw(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function G4(t){var e=jw(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var Y4=1,W4={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},sh=typeof performance=="object"&&performance.now?performance:Date;function Ki(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var H4=1,V4=function(){return H4++},sr=typeof self=="object"&&self.self==self?self:typeof global=="object"&&global.global==global?global:{},X4=Date.now(),U4=function(){return sr.performance&&typeof sr.performance.now=="function"?sr.performance.now():Date.now()-X4},Eo={},ey=Date.now(),q4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-ey,r=n>16?0:16-n,i=V4();return Eo[i]=t,Object.keys(Eo).length>1||setTimeout(function(){ey=e;var a=Eo;Eo={},Object.keys(a).forEach(function(o){return a[o](U4())})},r),i},K4=function(t){delete Eo[t]},Z4=["","webkit","moz","ms","o"],Dw=function(t){return typeof t!="string"?q4:t===""?sr.requestAnimationFrame:sr[t+"RequestAnimationFrame"]},Q4=function(t){return typeof t!="string"?K4:t===""?sr.cancelAnimationFrame:sr[t+"CancelAnimationFrame"]||sr[t+"CancelRequestAnimationFrame"]},J4=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},$w=J4(Z4,function(t){return!!Dw(t)}),Bw=Dw($w),Fw=Q4($w);sr.requestAnimationFrame=Bw;sr.cancelAnimationFrame=Fw;var tR=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!rR.test(l)&&nR.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var aR=function(){function t(){this.parser=Hp,this.parserUnmemoize=Kg,this.parserWithCSSDisabled=Kg,this.mixer=g4}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;Up(n,e)},t}(),oR=function(){function t(){this.parser=Nw,this.parserUnmemoize=y4}return t}(),sR=function(){function t(){this.parser=zi,this.parserUnmemoize=no}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=$a.Z_INDEX_CHANGED)}},t}(),cR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),lR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),uR=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),fR=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),dR=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Le(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),hR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!le(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),pR=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!nt(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var x=0;return c==="middle"?x=y[1]:c==="top"||c==="hanging"?x=y[1]*2:c==="alphabetic"?x=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(x=0),l&&(b+=l),u&&(x+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:x}},t}();function vR(t){return!!t.type}var $u=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Ee,this.page=new Ee,this.canvas=new Ee,this.viewport=new Ee,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(It)},t}(),zw=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.client=new Ee,n.movement=new Ee,n.offset=new Ee,n.global=new Ee,n.screen=new Ee,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(It)},e}($u),ch=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(zw),lh=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(zw),Dt=function(t){rt(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}($u),ny=":",Gw=function(){function t(){this.emitter=new $p}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Xv(r)&&r||ki(r)&&r.capture,a=ki(r)&&r.once,o=ga(n)?void 0:n,s=!1,c="";if(e.indexOf(ny)>-1){var l=N(e.split(ny),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=ga(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(It)},e.prototype.lookupNamespaceURI=function(n){throw new Error(It)},e.prototype.lookupPrefix=function(n){throw new Error(It)},e.prototype.normalize=function(){throw new Error(It)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Gw),gR=2048,yR=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new $p,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Nt(),this.tmpVec3=yt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=sh.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}_e.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),_e.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&_e.isNode(c)&&c.parentNode;p&&p!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),_e.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),_e.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),_e.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),_e.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=$e(this.tmpMatrix,u,l),d=Gn(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return Oe(d,d,f),new Ee(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=$e(this.tmpMatrix,i,a),s=Gn(this.tmpVec3,e.x,e.y,0);Oe(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Ee((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=vn(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(ch);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r??(o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i),typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(lh);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(lh);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(ch);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n??r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=sh.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n??e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||_e.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=$4(n)&&n.getAttribute("cursor");if(r)return r;n=_e.isNode(n)&&n.parentNode}},t}(),mR=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||H.offscreenCanvas)this.canvas=e||H.offscreenCanvas,this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),Qr;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(Qr||(Qr={}));var bR=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Ye,initAsync:new tR,dirtycheck:new Yf,cull:new Yf,beginFrame:new Ye,beforeRender:new Ye,render:new Ye,afterRender:new Ye,endFrame:new Ye,destroy:new Ye,pick:new eR,pickSync:new Yf,pointerDown:new Ye,pointerUp:new Ye,pointerMove:new Ye,pointerOut:new Ye,pointerOver:new Ye,pointerWheel:new Ye,pointerCancel:new Ye,click:new Ye}}return t.prototype.init=function(e){var n=this,r=z(z({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(Qr.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(Qr.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==$a.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=B4(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Rw)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(Qr.DISPLAY_OBJECT_CHANGED)},t}(),xR=/\[\s*(.*)=(.*)\s*\]/,wR=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(xR),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return nt(r)?"":r.toString?r.toString():""},t}(),Gi=function(t){rt(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}($u),ht;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(ht||(ht={}));function ry(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var OR=new Gi(ht.REPARENT,null,"","","",0,"",""),SR=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Dt(ht.BOUNDS_CHANGED),this.rotate=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=ve();oc(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);sc(r,f),Sf(r,r),qr(l,r,l),qr(c.localRotation,l,u),ml(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;oc(r,a[0],a[1],a[2]),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{oc(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);sc(r,Sf(ve(),l)),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=St(i,a,o));var s=r.transformable;vo(i,yt())||(OT(i,i,s.localRotation),ba(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Nt(),i=yt();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!vo(n.getPosition(a),i)){if(rn(s.position,i),a.parentNode===null||!a.parentNode.transformable)rn(s.localPosition,i);else{var c=a.parentNode.transformable;Ri(r,c.worldTransform),Wn(r,r),Oe(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=yt();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!vo(o.localPosition,r)&&(rn(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=yt(),i=yt(),a=yt();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=Gn(i,s,c,l)),!vo(s,r)&&(ba(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=ve();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=_f(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);sc(r,u),Sf(r,r),qr(l.localRotation,r,a),ml(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Nt(),i=yt(),a=_f(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(zo(o.localTransform,o.localRotation,o.localPosition,St(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Rs(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),$e(o.localTransform,o.localTransform,c)}var l=zo(r,a,i,o.localScale,o.origin);$e(o.localTransform,o.localTransform,l)}else zo(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,nt(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=$a.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(OR)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=$a.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=St(n,r,i));var a=e.transformable;oc(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;xT(r.localScale,r.localScale,St(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=St(n[0],n[1],n[2]||r.localScale[2]);vo(i,r.localScale)||(rn(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=_f(n,r,i,a));var o=e.transformable;sc(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=AT(n,r));var i=e.transformable;kT(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=N(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)ry(r),r=r.parentNode;n&&e.forEach(function(i){ry(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new Gi(ht.ATTR_MODIFIED,a,n,n,i,Gi.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return gl(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return yl(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Aa(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=gl(yt(),n),i=yl(ve(),n),a=Aa(yt(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(be.isEmpty(i))return null;var a=r||new be;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new be},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new be,o.update(f.center,f.halfExtents)))}),n){var c=Iw(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new be),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Nt();e.parentNode.transformable&&(n=Wn(Nt(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!be.isEmpty(r)){var i=new be;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);be.isEmpty(a)||(i=new be,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=N(i.getMin(),2),c=s[0],l=s[1],u=N(i.getMax(),2),f=u[0],d=u[1];return new Fi(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Fi((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+M>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var E=p[v].length,P=0,T=E,A=0;Ad){T=A;break}P+=k}p[v]=(p[v]||"").slice(0,T)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(O))continue;this.canBreakInLastChar(O)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(O,_)&&(p=this.trimByKinsokuShorui(p),g+=m(S||""))}g+=M,p[v]=(p[v]||"")+O}return p.join(` +======== +import{X as ip,d as vk,v as gk,a as yk,r as Bv,D as mk,c as bf,j as Qo,t as xf,n as yi,b as Fn,w as On,e as ho,P as Fv,o as po,L as zv,M as Gv,J as Yv,I as Wv,f as Hv,p as bk,h as xk,_ as wk}from"./index-JtaswhjV.js";import{g as Ok,a as Sk}from"./serverInfo-hyQn9HsQ.js";import"./request--dYXBGM5.js";const _b=()=>[["cartesian"]];_b.props={};function _k(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const Mb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),_k(n.startAngle,n.endAngle))},Cs=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mb(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};Cs.props={};const ap=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ap.props={transform:!0};const Mk=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},Eb=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mk(t);return[...ap(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};Eb.props={};const Pb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},op=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Pb(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};op.props={};const sp=()=>[["parallel",0,1,0,1]];sp.props={};const Ab=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];Ab.props={transform:!0};const kb=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...sp(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};kb.props={};const Tb=({value:t})=>e=>e.map(()=>t);Tb.props={};const Cb=({value:t})=>e=>e.map(t);Cb.props={};const Lb=({value:t})=>e=>e.map(n=>n[t]);Lb.props={};const Nb=({value:t})=>()=>t;Nb.props={};var fl=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const Ve=function(t){return typeof t=="function"};var nt=function(t){return t==null},Ek={}.toString,Ls=function(t,e){return Ek.call(t)==="[object "+e+"]"};const Le=function(t){return Array.isArray?Array.isArray(t):Ls(t,"Array")},ki=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function cp(t,e){if(t){var n;if(Le(t))for(var r=0,i=t.length;rn?n:t},de=function(t){return Ls(t,"Number")},Tk=1e-5;function Fo(t,e,n){return n===void 0&&(n=Tk),Math.abs(t-e)r&&(n=a,r=o)}return n}},Lk=function(t,e){if(Le(t)){for(var n,r=1/0,i=0;ii&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}const Ik=function(t,e,n){if(n===void 0&&(n=128),!Ve(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l},wf=function(){};function Uv(t){return nt(t)?0:fl(t)?t.length:Object.keys(t).length}var Zt=1e-6,he=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function Ja(){var t=new he(9);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Gk(t){var e=new he(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Yk(t,e,n,r,i,a,o,s,c){var l=new he(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Wk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*o-s*l,d=-u*a+s*c,h=l*a-o*c,p=n*f+r*d+i*h;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*a)*p,t[6]=h*p,t[7]=(-l*n+r*c)*p,t[8]=(o*n-r*a)*p,t):null}function Hk(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=d*r+h*o+p*l,t[1]=d*i+h*s+p*u,t[2]=d*a+h*c+p*f,t[3]=v*r+g*o+y*l,t[4]=v*i+g*s+y*u,t[5]=v*a+g*c+y*f,t[6]=m*r+b*o+x*l,t[7]=m*i+b*s+x*u,t[8]=m*a+b*c+x*f,t}function Vk(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Xk(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Uk(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}var qk=Hk;function Nt(){var t=new he(16);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function lp(t){var e=new he(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ri(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Kk(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v){var g=new he(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function Td(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Rs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function zb(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Wn(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*c-i*o,x=n*l-a*o,w=r*c-i*s,O=r*l-a*s,S=i*l-a*c,_=u*v-f*p,M=u*g-d*p,E=u*y-h*p,P=f*g-d*v,T=f*y-h*v,A=d*y-h*g,k=m*A-b*T+x*P+w*E-O*M+S*_;return k?(k=1/k,t[0]=(s*A-c*T+l*P)*k,t[1]=(i*T-r*A-a*P)*k,t[2]=(v*S-g*O+y*w)*k,t[3]=(d*O-f*S-h*w)*k,t[4]=(c*E-o*A-l*M)*k,t[5]=(n*A-i*E+a*M)*k,t[6]=(g*x-p*S-y*b)*k,t[7]=(u*S-d*x+h*b)*k,t[8]=(o*T-s*E+l*_)*k,t[9]=(r*E-n*T-a*_)*k,t[10]=(p*O-v*x+y*m)*k,t[11]=(f*x-u*O-h*m)*k,t[12]=(s*M-o*P-c*_)*k,t[13]=(n*P-r*M+i*_)*k,t[14]=(v*b-p*w-g*m)*k,t[15]=(u*w-f*b+d*m)*k,t):null}function Zk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(c*y-l*g)+v*(c*h-l*d),t[1]=-(r*(d*y-h*g)-f*(i*y-a*g)+v*(i*h-a*d)),t[2]=r*(c*y-l*g)-s*(i*y-a*g)+v*(i*l-a*c),t[3]=-(r*(c*h-l*d)-s*(i*h-a*d)+f*(i*l-a*c)),t[4]=-(o*(d*y-h*g)-u*(c*y-l*g)+p*(c*h-l*d)),t[5]=n*(d*y-h*g)-u*(i*y-a*g)+p*(i*h-a*d),t[6]=-(n*(c*y-l*g)-o*(i*y-a*g)+p*(i*l-a*c)),t[7]=n*(c*h-l*d)-o*(i*h-a*d)+u*(i*l-a*c),t[8]=o*(f*y-h*v)-u*(s*y-l*v)+p*(s*h-l*f),t[9]=-(n*(f*y-h*v)-u*(r*y-a*v)+p*(r*h-a*f)),t[10]=n*(s*y-l*v)-o*(r*y-a*v)+p*(r*l-a*s),t[11]=-(n*(s*h-l*f)-o*(r*h-a*f)+u*(r*l-a*s)),t[12]=-(o*(f*g-d*v)-u*(s*g-c*v)+p*(s*d-c*f)),t[13]=n*(f*g-d*v)-u*(r*g-i*v)+p*(r*d-i*f),t[14]=-(n*(s*g-c*v)-o*(r*g-i*v)+p*(r*c-i*s)),t[15]=n*(s*d-c*f)-o*(r*d-i*f)+u*(r*c-i*s),t}function Gb(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*a,m=e*s-r*a,b=e*c-i*a,x=n*s-r*o,w=n*c-i*o,O=r*c-i*s,S=l*p-u*h,_=l*v-f*h,M=l*g-d*h,E=u*v-f*p,P=u*g-d*p,T=f*g-d*v;return y*T-m*P+b*E+x*M-w*_+O*S}function $e(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],O=n[3];return t[0]=b*r+x*s+w*f+O*v,t[1]=b*i+x*c+w*d+O*g,t[2]=b*a+x*l+w*h+O*y,t[3]=b*o+x*u+w*p+O*m,b=n[4],x=n[5],w=n[6],O=n[7],t[4]=b*r+x*s+w*f+O*v,t[5]=b*i+x*c+w*d+O*g,t[6]=b*a+x*l+w*h+O*y,t[7]=b*o+x*u+w*p+O*m,b=n[8],x=n[9],w=n[10],O=n[11],t[8]=b*r+x*s+w*f+O*v,t[9]=b*i+x*c+w*d+O*g,t[10]=b*a+x*l+w*h+O*y,t[11]=b*o+x*u+w*p+O*m,b=n[12],x=n[13],w=n[14],O=n[15],t[12]=b*r+x*s+w*f+O*v,t[13]=b*i+x*c+w*d+O*g,t[14]=b*a+x*l+w*h+O*y,t[15]=b*o+x*u+w*p+O*m,t}function Ur(t,e,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15]):(o=e[0],s=e[1],c=e[2],l=e[3],u=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+u*i+p*a+e[12],t[13]=s*r+f*i+v*a+e[13],t[14]=c*r+d*i+g*a+e[14],t[15]=l*r+h*i+y*a+e[15]),t}function vl(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qk(t,e,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,f,d,h,p,v,g,y,m,b,x,w,O,S,_,M,E,P,T,A,k,C;return s0?(n[0]=(s*o+u*r+c*a-l*i)*2/f,n[1]=(c*o+u*i+l*r-s*a)*2/f,n[2]=(l*o+u*a+s*i-c*r)*2/f):(n[0]=(s*o+u*r+c*a-l*i)*2,n[1]=(c*o+u*i+l*r-s*a)*2,n[2]=(l*o+u*a+s*i-c*r)*2),Hb(t,e,n),t}function gl(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Aa(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,l,u),t}function yl(t,e){var n=new he(3);Aa(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,s=e[1]*i,c=e[2]*a,l=e[4]*r,u=e[5]*i,f=e[6]*a,d=e[8]*r,h=e[9]*i,p=e[10]*a,v=o+u+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-c)/g,t[2]=(s-l)/g):o>u&&o>p?(g=Math.sqrt(1+o-u-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+l)/g,t[2]=(d+c)/g):u>p?(g=Math.sqrt(1+u-o-p)*2,t[3]=(d-c)/g,t[0]=(s+l)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-u)*2,t[3]=(s-l)/g,t[0]=(d+c)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function aT(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,l=a+a,u=o+o,f=i*c,d=i*l,h=i*u,p=a*l,v=a*u,g=o*u,y=s*c,m=s*l,b=s*u,x=r[0],w=r[1],O=r[2];return t[0]=(1-(p+g))*x,t[1]=(d+b)*x,t[2]=(h-m)*x,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(h+m)*O,t[9]=(v-y)*O,t[10]=(1-(f+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function zo(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],l=a+a,u=o+o,f=s+s,d=a*l,h=a*u,p=a*f,v=o*u,g=o*f,y=s*f,m=c*l,b=c*u,x=c*f,w=r[0],O=r[1],S=r[2],_=i[0],M=i[1],E=i[2],P=(1-(v+y))*w,T=(h+x)*w,A=(p-b)*w,k=(h-x)*O,C=(1-(d+y))*O,L=(g+m)*O,I=(p+b)*S,R=(g-m)*S,j=(1-(d+v))*S;return t[0]=P,t[1]=T,t[2]=A,t[3]=0,t[4]=k,t[5]=C,t[6]=L,t[7]=0,t[8]=I,t[9]=R,t[10]=j,t[11]=0,t[12]=n[0]+_-(P*_+k*M+I*E),t[13]=n[1]+M-(T*_+C*M+R*E),t[14]=n[2]+E-(A*_+L*M+j*E),t[15]=1,t}function dp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*c,v=a*o,g=a*s,y=a*c;return t[0]=1-f-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oT(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),l=1/(a-o);return t[0]=a*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a*2*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function Vb(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var sT=Vb;function cT(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function lT(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),l=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-((o-s)*c*.5),t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function Xb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*l,t[15]=1,t}var Ub=Xb;function qb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=a*l,t[15]=1,t}function Kb(t,e,n,r){var i,a,o,s,c,l,u,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],x=n[0],w=n[1],O=n[2];return Math.abs(p-x)0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=c*d-l*f,v=l*u-s*d,g=s*f-c*u;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-u*g,t[6]=u*v-f*p,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function fT(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dT(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hT(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Zb(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vT(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gT(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function yT(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],x=e[2],w=e[3],O=e[4],S=e[5],_=e[6],M=e[7],E=e[8],P=e[9],T=e[10],A=e[11],k=e[12],C=e[13],L=e[14],I=e[15];return Math.abs(n-m)<=Zt*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=Zt*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=Zt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-w)<=Zt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(o-O)<=Zt*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-S)<=Zt*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-_)<=Zt*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-M)<=Zt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=Zt*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(f-P)<=Zt*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(d-T)<=Zt*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-A)<=Zt*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-k)<=Zt*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-C)<=Zt*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=Zt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-I)<=Zt*Math.max(1,Math.abs(y),Math.abs(I))}var Qb=$e,mT=Zb;const bT=Object.freeze(Object.defineProperty({__proto__:null,add:hT,adjoint:Zk,clone:lp,copy:Ri,create:Nt,determinant:Gb,equals:yT,exactEquals:gT,frob:dT,fromQuat:dp,fromQuat2:iT,fromRotation:tT,fromRotationTranslation:Hb,fromRotationTranslationScale:aT,fromRotationTranslationScaleOrigin:zo,fromScaling:fp,fromTranslation:up,fromValues:Kk,fromXRotation:eT,fromYRotation:nT,fromZRotation:rT,frustum:oT,getRotation:yl,getScaling:Aa,getTranslation:gl,identity:Rs,invert:Wn,lookAt:Kb,mul:Qb,multiply:$e,multiplyScalar:pT,multiplyScalarAndAdd:vT,ortho:Ub,orthoNO:Xb,orthoZO:qb,perspective:sT,perspectiveFromFieldOfView:lT,perspectiveNO:Vb,perspectiveZO:cT,rotate:Qk,rotateX:Yb,rotateY:Wb,rotateZ:Jk,scale:vl,set:Td,str:fT,sub:mT,subtract:Zb,targetTo:uT,translate:Ur,transpose:zb},Symbol.toStringTag,{value:"Module"}));function yt(){var t=new he(3);return he!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function br(t){var e=new he(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function wr(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function St(t,e,n){var r=new he(3);return r[0]=t,r[1]=e,r[2]=n,r}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gn(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ba(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qv(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function xT(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Cd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function wT(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function Ti(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function nr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Qc(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function Ld(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function Oe(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function Jb(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function OT(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=i*l-a*c,f=a*s-r*l,d=r*c-i*s,h=i*d-a*f,p=a*u-r*d,v=r*f-i*u,g=o*2;return u*=g,f*=g,d*=g,h*=2,p*=2,v*=2,t[0]=s+u+h,t[1]=c+f+p,t[2]=l+d+v,t}function vo(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=Zt*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=Zt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=Zt*Math.max(1,Math.abs(i),Math.abs(s))}var Kv=wT,tx=wr;(function(){var t=yt();return function(e,n,r,i,a,o){var s,c;for(n||(n=3),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function ha(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}(function(){var t=da();return function(e,n,r,i,a,o){var s,c;for(n||(n=4),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;sZt?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Sf(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function ET(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function oc(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}var _f=ST,sc=_T,Zv=qr,ml=MT;(function(){var t=yt(),e=St(1,0,0),n=St(0,1,0);return function(r,i,a){var o=nr(i,a);return o<-.999999?(Qc(t,e,i),tx(t)<1e-6&&Qc(t,n,i),Ti(t,t),Hr(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Qc(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ml(r,r))}})();(function(){var t=ve(),e=ve();return function(n,r,i,a,o,s){return Of(t,r,o,s),Of(e,i,a,s),Of(n,t,e,2*s*(1-s)),n}})();(function(){var t=Ja();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ml(e,ET(e,t))}})();function PT(){var t=new he(2);return he!=Float32Array&&(t[0]=0,t[1]=0),t}function AT(t,e){var n=new he(2);return n[0]=t,n[1]=e,n}function kT(t,e){return t[0]=e[0],t[1]=e[1],t}function TT(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function CT(t,e){return t[0]*e[0]+t[1]*e[1]}function LT(t,e){return t[0]===e[0]&&t[1]===e[1]}(function(){var t=PT();return function(e,n,r,i,a,o){var s,c;for(n||(n=2),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ex(){for(var t=0,e=0,n=arguments.length;e7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function rx(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Go[n]===e.length-1&&"achlmqstvz".includes(n)})}function ix(t){return rx(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function ax(t){return ix(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}function Qv(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Go[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Go[n]))),!!Go[n]););}function RT(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function IT(t){return t>=48&&t<=57||t===43||t===45||t===46}function ea(t){return t>=48&&t<=57}function jT(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!ea(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function Jc(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(BT(i)&&(o===3||o===4)?RT(t):jT(t),t.err.length)return;t.data.push(t.param),Jc(t),t.index=t.max||!IT(n.charCodeAt(t.index)))break}Qv(t)}var zT=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function GT(t){if(rx(t))return[].concat(t);var e=new zT(t);for(Jc(e);e.index1&&(E=Math.sqrt(E),d*=E,h*=E);var P=d*d,T=h*h,A=(a===o?-1:1)*Math.sqrt(Math.abs((P*T-P*M*M-T*_*_)/(P*M*M+T*_*_)));O=A*d*M/h+(u+p)/2,S=A*-h*_/d+(f+v)/2,x=Math.asin(((f-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((v-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),x=uw&&(x-=Math.PI*2),!o&&w>x&&(w-=Math.PI*2)}var k=w-x;if(Math.abs(k)>g){var C=w,L=p,I=v;w=x+g*(o&&w>x?1:-1),p=O+d*Math.cos(w),v=S+h*Math.sin(w),m=hp(p,v,d,h,i,0,o,L,I,[w,C,O,S])}k=w-x;var R=Math.cos(x),j=Math.sin(x),D=Math.cos(w),$=Math.sin(w),B=Math.tan(k/4),F=4/3*d*B,Y=4/3*h*B,U=[u,f],K=[u+F*j,f-Y*R],V=[p+F*$,v-Y*D],W=[p,v];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],l)return K.concat(V,W,m);m=K.concat(V,W,m);for(var J=[],et=0,it=m.length;et=a)o={x:n,y:r};else{var s=Fr([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function tg(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function KT(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Id(t,e,s,c,l).point;var b=(t-s)/2,x=(e-c)/2,w={x:d(m)*b+f(m)*x,y:-f(m)*b+d(m)*x},O=Math.pow(w.x,2)/Math.pow(v,2)+Math.pow(w.y,2)/Math.pow(g,2);O>1&&(v*=h(O),g*=h(O));var S=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(w.y,2)-Math.pow(g,2)*Math.pow(w.x,2),_=Math.pow(v,2)*Math.pow(w.y,2)+Math.pow(g,2)*Math.pow(w.x,2),M=S/_;M=M<0?0:M;var E=(a!==o?1:-1)*h(M),P={x:E*(v*w.y/g),y:E*(-(g*w.x)/v)},T={x:d(m)*P.x-f(m)*P.y+(t+s)/2,y:f(m)*P.x+d(m)*P.y+(e+c)/2},A={x:(w.x-P.x)/v,y:(w.y-P.y)/g},k=tg({x:1,y:0},A),C={x:(-w.x-P.x)/v,y:(-w.y-P.y)/g},L=tg(A,C);!o&&L>0?L-=2*p:o&&L<0&&(L+=2*p),L%=2*p;var I=k+L*l,R=v*d(I),j=g*f(I),D={x:d(m)*R-f(m)*j+T.x,y:f(m)*R+d(m)*j+T.y};return D}function ZT(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,x=e,w=0,O=[b,x,w],S=[b,x],_=0,M={x:0,y:0},E=[{x:b,y:x}];m&&l<=0&&(M={x:b,y:x});for(var P=0;P<=y;P+=1){if(_=P/y,f=KT(t,e,n,r,i,a,o,s,c,_),b=f.x,x=f.y,h&&E.push({x:b,y:x}),v&&(w+=nn(S,[b,x])),S=[b,x],m&&w>=l&&l>O[2]){var T=(w-l)/(w-O[2]);M={x:S[0]*(1-T)+O[0]*T,y:S[1]*(1-T)+O[1]*T}}O=[b,x,w]}return m&&l>=w&&(M={x:s,y:c}),{length:w,point:M,min:{x:Math.min.apply(null,E.map(function(A){return A.x})),y:Math.min.apply(null,E.map(function(A){return A.y}))},max:{x:Math.max.apply(null,E.map(function(A){return A.x})),y:Math.max.apply(null,E.map(function(A){return A.y}))}}}function QT(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function ox(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,x=0,w=[m,b,x],O=[m,b],S=0,_={x:0,y:0},M=[{x:m,y:b}];y&&c<=0&&(_={x:m,y:b});for(var E=0;E<=g;E+=1){if(S=E/g,u=QT(t,e,n,r,i,a,o,s,S),m=u.x,b=u.y,d&&M.push({x:m,y:b}),p&&(x+=nn(O,[m,b])),O=[m,b],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);_={x:O[0]*(1-P)+w[0]*P,y:O[1]*(1-P)+w[1]*P}}w=[m,b,x]}return y&&c>=x&&(_={x:o,y:s}),{length:x,point:_,min:{x:Math.min.apply(null,M.map(function(T){return T.x})),y:Math.min.apply(null,M.map(function(T){return T.y}))},max:{x:Math.max.apply(null,M.map(function(T){return T.x})),y:Math.max.apply(null,M.map(function(T){return T.y}))}}}function JT(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function t5(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],x=[g,y],w=0,O={x:0,y:0},S=[{x:g,y}];v&&o<=0&&(O={x:g,y});for(var _=0;_<=p;_+=1){if(w=_/p,c=JT(t,e,n,r,i,a,w),g=c.x,y=c.y,u&&S.push({x:g,y}),d&&(m+=nn(x,[g,y])),x=[g,y],v&&m>=o&&o>b[2]){var M=(m-o)/(m-b[2]);O={x:x[0]*(1-M)+b[0]*M,y:x[1]*(1-M)+b[1]*M}}b=[g,y,m]}return v&&o>=m&&(O={x:i,y:a}),{length:m,point:O,min:{x:Math.min.apply(null,S.map(function(E){return E.x})),y:Math.min.apply(null,S.map(function(E){return E.y}))},max:{x:Math.max.apply(null,S.map(function(E){return E.x})),y:Math.max.apply(null,S.map(function(E){return E.y}))}}}function sx(t,e,n){for(var r,i,a,o,s,c,l=bl(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],x=[],w=0,O={x:0,y:0},S=O,_=O,M=O,E=0,P=0,T=l.length;P=e&&(M=_),x.push(S),b.push(O),E+=w,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=E&&(M={x:p,y:v}),{length:E,point:M,min:{x:Math.min.apply(null,b.map(function(A){return A.x})),y:Math.min.apply(null,b.map(function(A){return A.y}))},max:{x:Math.max.apply(null,x.map(function(A){return A.x})),y:Math.max.apply(null,x.map(function(A){return A.y}))}}}function e5(t,e){return sx(t,void 0,z(z({},e),{bbox:!1,length:!0})).length}function n5(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function r5(t,e){var n=t.length-1,r=[],i=0,a=0,o=n5(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=nn(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function i5(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function a5(t){var e=0,n=0,r=0;return Rd(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=i5(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function eg(t){return a5(t)>=0}function o5(t,e,n){return sx(t,e,z(z({},n),{bbox:!1,length:!0})).point}function s5(t,e){e===void 0&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),o=Fr(n,r,e),s=Fr(r,i,e),c=Fr(i,a,e),l=Fr(o,s,e),u=Fr(s,c,e),f=Fr(l,u,e);return[["C"].concat(o,l,f),["C"].concat(u,c,a)]}function ng(t){return t.map(function(e,n,r){var i=n&&r[n-1].slice(-2).concat(e.slice(1)),a=n?ox(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?s5(i):[e,e]:o=[e],{s:e,ss:o,l:a}})}function cx(t,e,n){var r=ng(t),i=ng(e),a=r.length,o=i.length,s=r.filter(function(g){return g.l}).length,c=i.filter(function(g){return g.l}).length,l=r.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/s||0,u=i.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/c||0,f=n||Math.max(a,o),d=[l,u],h=[f-a,f-o],p=0,v=[r,i].map(function(g,y){return g.l===f?g.map(function(m){return m.s}):g.map(function(m,b){return p=b&&h[y]&&m.l>=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:cx(v[0],v[1],f)}function rg(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function Wt(t,e){if(t!==null)return{type:"column",value:t,field:e}}function yu(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function xl(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function c5(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function Kr(t,e){const n=[];for(const r of t)n[r]=e;return n}function Ot(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function ts(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=Ot(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Is(t){return t instanceof Date?!1:typeof t=="object"}const js=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y1:yu(Kr(t,0))}})]};js.props={};function oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function l5(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ca(t){let e,n,r;t.length!==2?(e=oe,n=(s,c)=>oe(t(s),c),r=(s,c)=>t(s)-c):(e=t===oe||t===l5?t:u5,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function u5(){return 0}function jd(t){return t===null?NaN:+t}function*f5(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const lx=Ca(oe),d5=lx.right,h5=lx.left,p5=Ca(jd).center;function ux(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function v5(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function fx(t,e){const n=v5(t,e);return n&&Math.sqrt(n)}function Mr(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let g5=class extends Map{constructor(e,n=b5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(ig(this,e))}has(e){return super.has(ig(this,e))}set(e,n){return super.set(y5(this,e),n)}delete(e){return super.delete(m5(this,e))}};function ig({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function y5({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m5({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function b5(t){return t!==null&&typeof t=="object"?t.valueOf():t}function es(t){return t}function te(t,...e){return mu(t,es,es,e)}function pp(t,...e){return mu(t,Array.from,es,e)}function vp(t,e,...n){return mu(t,es,e,n)}function dx(t,e,...n){return mu(t,Array.from,e,n)}function mu(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new g5,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}function x5(t,e){return Array.from(e,n=>t[n])}function Er(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=ns(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>ns(n[i],n[a]))),x5(t,r)}return t.sort(hx(n))}function hx(t=oe){if(t===oe)return ns;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function ns(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function w5(t,e,n){return(e.length!==2?Er(vp(t,e,n),([r,i],[a,o])=>oe(i,o)||oe(r,a)):Er(te(t,n),([r,i],[a,o])=>e(i,o)||oe(r,a))).map(([r])=>r)}var O5=Array.prototype,S5=O5.slice;function Ef(t){return()=>t}const _5=Math.sqrt(50),M5=Math.sqrt(10),E5=Math.sqrt(2);function wl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=_5?10:a>=M5?5:a>=E5?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function k5(t){return Math.max(1,Math.ceil(Math.log(ux(t))/Math.LN2)+1)}function T5(){var t=es,e=Mr,n=k5;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Mr){const w=Dd(f,d,x);isFinite(w)&&(w>0?d=(Math.floor(d/w)+1)*w:w<0&&(d=(Math.ceil(d*-w)+1)/-w))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;a=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function to(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bu(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function gp(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?ns:hx(i);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));gp(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(go(t,n,e),i(t[r],a)>0&&go(t,n,r);o0;)--s}i(t[n],a)===0?go(t,n,s):(++s,go(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function go(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function C5(t,e=oe){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?oe(o,i)>0:oe(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function xu(t,e,n){if(t=Float64Array.from(f5(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return bn(t);if(e>=1)return Ct(t);var r,i=(r-1)*e,a=Math.floor(i),o=Ct(gp(t,a).subarray(0,a+1)),s=bn(t.subarray(a+1));return o+(s-o)*(i-a)}}function L5(t,e,n=jd){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>jd(n(t[c],c,t))),e<=0)return bu(r);if(e>=1)return to(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return gp(i,o,0,a,(s,c)=>ns(r[s],r[c])),o=C5(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function N5(t,e,n){const r=ux(t),i=fx(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function rs(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function yp(t,e){return xu(t,.5,e)}function R5(t,e){return L5(t,.5,e)}function*I5(t){for(const e of t)yield*e}function px(t){return Array.from(I5(t))}function pa(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r(r,...i)=>n(e(r,...i),...i),ji)}function D5(t){return t.reduce((e,n)=>r=>j5(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),ji)}function bp(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function La(t=""){throw new Error(t)}function xp(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function zt(t){return t!=null&&!Number.isNaN(t)}function $5(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function B5(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function Q(t,e){return vx(t,e)||{}}function vx(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[Db(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function F5(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function Pf(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function ag(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function is(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function Lr(t){return t===null||t===!1}function gx(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!Cr(a)||!Cr(t[i])?t[i]=a:gx(t[i],a,n,r+1)}return t}}function ai(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Ui(t){return t.map((e,n)=>n)}function z5(t){return t[0]}function yx(t){return t[t.length-1]}function G5(t){return Array.from(new Set(t))}function mx(t,e){const n=[[],[]];return t.forEach(r=>{n[e(r)?0:1].push(r)}),n}function bx(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function Y5(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...bx(t,n));return e}function oi(t,e,n){const{encode:r}=n;if(t===null)return[e];const i=W5(t).map(o=>{var s;return[o,(s=Ot(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>zt(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(te(e,a).values())}function xx(t){return Array.isArray(t)?X5(t):typeof t=="function"?V5(t):t==="series"?H5:t==="value"?U5:t==="sum"?q5:t==="maxIndex"?K5:()=>null}function wx(t,e){for(const n of t)n.sort(e)}function Ox(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function W5(t){return Array.isArray(t)?t:[t]}function H5(t,e,n){return Ds(r=>n[r])}function V5(t){return(e,n,r)=>Ds(i=>t(e[i]))}function X5(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:oe(e[i][s],e[a][s]),0)}function U5(t,e,n){return Ds(r=>e[r])}function q5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return Ds(o=>a.get(n[o]))}function K5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,to(s,c=>e[c])]));return Ds(o=>a.get(n[o]))}function Ds(t){return(e,n)=>oe(t(e),t(n))}const Sx=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=Ot(u,"y"),[p,v]=Ot(u,"y1"),[g]=o?ts(u,"series","color"):Ot(u,"color"),y=oi(e,s,c),b=xx(n)(l,d,g);b&&wx(y,b);const x=new Array(s.length),w=new Array(s.length),O=new Array(s.length),S=[],_=[];for(const A of y){r&&A.reverse();const k=p?+p[A[0]]:0,C=[],L=[];for(const F of A){const Y=O[F]=+d[F]-k;Y<0?L.push(F):Y>=0&&C.push(F)}const I=C.length>0?C:L,R=L.length>0?L:C;let j=C.length-1,D=0;for(;j>0&&d[I[j]]===0;)j--;for(;D0?B=x[F]=(w[F]=B)+Y:x[F]=w[F]=B}}const M=new Set(S),E=new Set(_),P=i==="y"?x:w,T=a==="y"?x:w;return[s,X({},c,{encode:{y0:yu(d,h),y:Wt(P,h),y1:Wt(T,v)},style:Object.assign({first:(A,k)=>M.has(k),last:(A,k)=>E.has(k)},f)})]}};Sx.props={};function yo(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function Z5(t){const e=t.getFullYear(),n=yo(t.getMonth()+1),r=yo(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${yo(a)}:${yo(o)}:${yo(s)}`:i}const wu=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Lr(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>Ot(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?Z5(u[l]):u[l]).join(", ")};return[n,X({},r,{tooltip:{title:c}})]}};wu.props={};const qi=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{x:yu(Kr(t,0))},scale:{x:{guide:null}}})]};qi.props={};const Ou=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y:yu(Kr(t,0))},scale:{y:{guide:null}}})]};Ou.props={};const _x=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{size:xl(Kr(t,3))}})]};_x.props={};var Q5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=Q5(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,X({},e,{encode:{key:Wt(o)}})]};Mx.props={};const wp=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=Ot(n,"color");return[t,X({},e,{encode:{series:Wt(a,o)}})]};wp.props={};const Ex=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{y:Wt(n)}})]};Ex.props={};const Px=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{x:Wt(n)}})]};Px.props={};const Ax=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=Ot(n,"y");return[t,X({},e,{encode:{y1:Wt([...i])}})]};Ax.props={};const kx=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=Ot(n,"x");return[t,X({},e,{encode:{x1:Wt([...i])}})]};kx.props={};const Tx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{x:Wt(r(n,0)),x1:Wt(r(n,1))}})]}return[t,e]};Tx.props={};const Cx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{y:Wt(r(n,0)),y1:Wt(r(n,1))}})]}return[t,e]};Cx.props={};const Su=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Lr(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,X({},r,{tooltip:{items:c}})]}};Su.props={};const Op=()=>(t,e)=>[t,X({scale:{x:{padding:0},y:{padding:0}}},e)];Op.props={};var og=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=og(e,["data","style"]),{x:a,y:o}=r,s=og(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],X({},i,{data:[0],cartesian:!0,encode:{x:Wt([c]),y:Wt([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};_u.props={};const Lx=()=>(t,e)=>{const{style:n={}}=e;return[t,X({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};Lx.props={};const Mu=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Is))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,X({},e,{encode:{x:Wt(i),y:Wt(a)}})]};Mu.props={};const Nx=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,X({},e,{encode:{series:xl(Kr(t,void 0))}})]};Nx.props={};var J5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return J5(t,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:c,scale:l}=o,{series:u}=l,[f]=Ot(c,"y"),[d]=ts(c,"series","color"),h=Ox(d,u),p=oi(e,a,o),g=xx(r)(s,f,d);g&&wx(p,g);const y=new Array(a.length);for(const m of p){n&&m.reverse();for(let b=0;b{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,Ot(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(te(m,x=>g[x]).values());y.push(...b)}f=y}if(r){const[g]=Ot(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Kr(o,d)]:ts(c,"enterDuration",Kr(o,d)),[p]=ts(c,"enterDelay",Kr(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[x]);for(const x of m)v[x]=+p[x]+y;y+=b}return[o,X({},s,{encode:{enterDuration:xl(h),enterDelay:xl(v)}})]}};Ix.props={};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ibn(n,i=>r[+i]),max:(n,r)=>Ct(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>rs(n,i=>r[+i]),median:(n,r)=>yp(n,i=>r[+i]),sum:(n,r)=>Cn(n,i=>r[+i]),deviation:(n,r)=>fx(n,i=>r[+i])}[t]||Ct}const jx=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,s=t3(a,["x"]),c=Object.entries(s).filter(([p])=>p.startsWith("y")).map(([p])=>[p,Ot(a,p)[0]]),[,l]=c.find(([p])=>p==="y"),u=c.map(([p])=>[p,new Array(r.length)]),f=oi(e,r,i),d=e3(n);for(const p of f){const v=d(p,l);for(const g of p)for(let y=0;y[p,Wt(v,Ot(a,p)[1])]))},!h&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};jx.props={};function Na(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ol(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function n3(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}function Sp(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}const $d=Math.sqrt(50),Bd=Math.sqrt(10),Fd=Math.sqrt(2);function tl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=$d?10:a>=Bd?5:a>=Fd?2:1)*10**i:-(10**-i)/(a>=$d?10:a>=Bd?5:a>=Fd?2:1)}function sg(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=$d?i*=10:a>=Bd?i*=5:a>=Fd&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=tl(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=tl(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r},as=1e3,os=as*60,ss=os*60,Di=ss*24,Yo=Di*7,$x=Di*30,Bx=Di*365;function Fe(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i3=Fe(as,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getSeconds()),a3=Fe(os,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getMinutes()),o3=Fe(ss,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getHours()),s3=Fe(Di,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getDate()-1),Fx=Fe($x,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),c3=Fe(Yo,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Fx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),l3=Fe(Bx,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),zx={millisecond:r3,second:i3,minute:a3,hour:o3,day:s3,week:c3,month:Fx,year:l3},u3=Fe(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),f3=Fe(as,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getUTCSeconds()),d3=Fe(os,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getUTCMinutes()),h3=Fe(ss,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getUTCHours()),p3=Fe(Di,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getUTCDate()-1),Gx=Fe($x,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),v3=Fe(Yo,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Yo*e)},t=>{const e=Gx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),g3=Fe(Bx,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Yx={millisecond:u3,second:f3,minute:d3,hour:h3,day:p3,week:v3,month:Gx,year:g3};function y3(t){const e=t?Yx:zx,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function Wx(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=y3(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Sp(s,d,0,h,u);let v;if(p===h){const g=sg(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};var Hx=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},b3={}.toString,$s=function(t,e){return b3.call(t)==="[object "+e+"]"};const Vx=function(t){return $s(t,"Function")};var x3=function(t){return t==null};const Xx=function(t){return Array.isArray?Array.isArray(t):$s(t,"Array")},w3=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function O3(t,e){if(t){var n;if(Xx(t))for(var r=0,i=t.length;re=>-t(-e),_p=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?Zx(r):r},Mp=(t,e)=>{const n=t===Math.E?Math.exp:r=>t**r;return e?Zx(n):n},T3=(t,e,n,r)=>{const i=t<0,a=_p(r,i),o=Mp(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u},C3=t=>e=>{const n=t(e);return cs(n)?Math.round(n):n};function L3(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?C3(o):o;this.output=Na(l,c,i,r)},n.prototype.invert=void 0}}var Qx={exports:{}},N3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Jx={exports:{}},R3=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},I3=R3,j3=Array.prototype.concat,D3=Array.prototype.slice,ug=Jx.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};gn.to.keyword=function(t){return e2[t.slice(0,3)]};function Zr(t,e,n){return Math.min(Math.max(e,t),n)}function uc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var B3=Qx.exports;const F3=ip(B3);function kf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function z3(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=kf(o,a,e+1/3),c=kf(o,a,e),l=kf(o,a,e-1/3);return[s*255,c*255,l*255,i]}function fg(t){const e=F3.get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?z3(r):null}const Ra=(t,e)=>n=>t*(1-n)+e*n,G3=(t,e)=>{const n=fg(t),r=fg(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},Fs=(t,e)=>typeof t=="number"&&typeof e=="number"?Ra(t,e):typeof t=="string"&&typeof e=="string"?G3(t,e):()=>t,Y3=(t,e)=>{const n=Ra(t,e);return r=>Math.round(n(r))};function W3(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}let n2=class r2 extends zs{getDefaultOptions(){return{domain:[],range:[],unknown:Eu}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&pg(this.domainIndexMap,this.getDomain(),this.domainKey),vg({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&pg(this.rangeIndexMap,this.getRange(),this.rangeKey),vg({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=gg(n),this.rangeKey=gg(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new r2(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}};function U3(t){const e=Math.min(...t);return t.map(n=>n/e)}function q3(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function K3(t){return Math.round(t*1e12)/1e12}function Z3(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=q3(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=U3(l),m=y.reduce((T,A)=>T+A),b=g/m,x=new hg(e.map((T,A)=>{const k=y[A]*b;return[T,o?Math.floor(k):k]})),w=new hg(e.map((T,A)=>{const C=y[A]*b+v;return[T,o?Math.floor(C):C]})),O=Array.from(w.values()).reduce((T,A)=>T+A),_=(d-(O-O/c*i))*s,M=u+_;let E=o?Math.round(M):M;const P=new Array(c);for(let T=0;Td+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let Ia=class i2 extends n2{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Eu,flex:[]}}constructor(e){super(e)}clone(){return new i2(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=Q3({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}};const Bi=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=tl(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=0&&(c=1),1-s/(o-1)-n+c}function rC(t,e,n){const r=Kx(e);return 1-qx(e,t)/(r-1)-n+1}function iC(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function aC(t,e){return t>=e?2-(t-1)/(e-1):1}function oC(t,e,n,r){const i=e-t;return 1-.5*((e-r)**2+(t-n)**2)/(.1*i)**2}function sC(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function cC(){return 1}const Pp=(t,e,n=5,r=!0,i=J3,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||T<=t&&A>=e)&&(s.lmin=T,s.lmax=A,s.lstep=k,s.score=j)}}x+=1}y+=1}}c+=1}const l=mo(s.lmax),u=mo(s.lmin),f=mo(s.lstep),d=Math.floor(eC((l-u)/f))+1,h=new Array(d);h[0]=mo(u);for(let p=1;p{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Sp(t,l,1,r)-1,f=i[u],d=a[u];return Na(d,f)(l)}},mg=(t,e,n,r)=>(Math.min(t.length,e.length)>2?uC:lC)(t,e,r?Y3:n);let Pu=class extends zs{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Ra,tickCount:5}}map(e){return Sl(e)?this.output(e):this.options.unknown}invert(e){return Sl(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return Dx}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?n3(i[0],i[a-1]):$i}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=mg(r.map(e),i,o,a);this.output=Na(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=mg(a,i.map(e),Ra);this.input=Na(n,r,o)}},Yt=class c2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5}}chooseTransforms(){return[$i,$i]}clone(){return new c2(this.options)}},l2=class u2 extends Ia{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Eu,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new u2(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}};const fC=t=>e=>e<0?-((-e)**t):e**t,dC=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),hC=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);let f2=class d2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Fs,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[$i,$i];const n=e===.5?hC:fC(e),r=dC(e);return[n,r]}clone(){return new d2(this.options)}},pC=class h2 extends f2{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new h2(this.options)}},Au=class p2 extends zs{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!Sl(e))return this.options.unknown;const n=Sp(this.thresholds,e,0,this.n);return this.options.range[n]}invert(e){const{range:n}=this.options,r=n.indexOf(e),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new p2(this.options)}rescale(){const{domain:e,range:n}=this.options;this.n=Math.min(e.length,n.length-1),this.thresholds=e}};const vC=(t,e,n,r=10)=>{const i=t<0,a=Mp(r,i),o=_p(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2a-o);const i=[];for(let a=1;a3?0:(t-t%10!==10?1:0)*t%10]}},_C=zd({},SC),Qe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+Qe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Qe(Math.floor(Math.abs(e)/60),2)+":"+Qe(Math.abs(e)%60,2)}},bg={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},EC=function(t,e,n){if(e===void 0&&(e=bg.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=bg[e]||e;var r=[];e=e.replace(xC,function(a,o){return r.push(o),"@@@"});var i=zd(zd({},_C),n);return e=e.replace(bC,function(a){return MC[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};const PC=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u};function AC(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}let kC=class S2 extends Pu{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:PC,interpolate:Ra,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return m3}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?Yx:zx,i=n?AC:$i;return a=>EC(i(a),e||W3(a,r))}clone(){return new S2(this.options)}};var TC=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Gd;function CC(t){return[t(0),t(1)]}const LC=t=>{const[e,n]=t;return Na(Ra(0,1),Ol(e,n))};let Yd=Gd=class extends Yt{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:$i,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}clone(){return new Gd(this.options)}};Yd=Gd=TC([L3(CC,LC)],Yd);function _l(t,e,n){if(t===null)return[-.5,.5];const r=Ox(t,e),a=new Ia({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function Ml(t,e,n){return e*(1-t)+n*t}const _2=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=Ot(s,"x"),[d]=Ot(s,"y"),h=_l(f,l,n),p=_l(d,u,r),v=a.map(()=>Ml(i(),...p)),g=a.map(()=>Ml(i(),...h));return[a,X({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Wt(v),dx:Wt(g)}})]}};_2.props={};const M2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=Ot(a,"x"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{x:{padding:.5}}},i,{encode:{dx:Wt(u)}})]}};M2.props={};const E2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=Ot(a,"y"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{y:{padding:.5}}},i,{encode:{dy:Wt(u)}})]}};E2.props={};var NC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,a=NC(i,["x"]),o=Object.entries(a).filter(([f])=>f.startsWith("y")).map(([f])=>[f,Ot(i,f)[0]]),s=o.map(([f])=>[f,new Array(n.length)]),c=oi(e,n,r),l=new Array(c.length);for(let f=0;fo.map(([,y])=>+y[g])),[p,v]=Mr(h);l[f]=(p+v)/2}const u=Math.max(...l);for(let f=0;f[f,Wt(d,Ot(i,f)[1])]))})]}};P2.props={};const A2=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=Ot(a,"y"),[s,c]=Ot(a,"y1");n?ts(a,"series","color"):Ot(a,"color");const l=oi(e,r,i),u=new Array(r.length);for(const f of l){const d=f.map(h=>+o[h]);for(let h=0;hy!==h));u[p]=o[p]>v?v:o[p]}}return[r,X({},i,{encode:{y1:Wt(u,c)}})]}};A2.props={};function xg(t,e){return[t[0]]}function RC(t,e){const n=t.length-1;return[t[n]]}function IC(t,e){const n=to(t,r=>e[r]);return[t[n]]}function jC(t,e){const n=bu(t,r=>e[r]);return[t[n]]}function DC(t){return typeof t=="function"?t:{first:xg,last:RC,max:IC,min:jC}[t]||xg}const ku=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=oi(e,i,a),[c]=Ot(o,n),l=DC(r);return[s.flatMap(u=>l(u,c)),a]}};ku.props={};var $C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=$C(t,["selector"]);return ku(Object.assign({channel:"x",selector:e},n))};k2.props={};var BC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=BC(t,["selector"]);return ku(Object.assign({channel:"y",selector:e},n))};T2.props={};var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function zC(t){if(typeof t=="function")return[t,null];const n={mean:GC,max:WC,count:VC,first:UC,last:qC,sum:XC,min:HC,median:YC}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function GC(){const t=(n,r)=>rs(n,i=>+r[i]),e=si("mean");return[t,e]}function YC(){const t=(n,r)=>yp(n,i=>+r[i]),e=si("median");return[t,e]}function WC(){const t=(n,r)=>Ct(n,i=>+r[i]),e=si("max");return[t,e]}function HC(){const t=(n,r)=>bn(n,i=>+r[i]),e=si("min");return[t,e]}function VC(){const t=(n,r)=>n.length,e=si("count");return[t,e]}function XC(){const t=(n,r)=>Cn(n,i=>+r[i]),e=si("sum");return[t,e]}function UC(){const t=(n,r)=>r[n[0]],e=si("first");return[t,e]}function qC(){const t=(n,r)=>r[n[n.length-1]],e=si("last");return[t,e]}const Ap=(t={})=>{const{groupBy:e}=t,n=FC(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=Ot(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=zC(p),[y,m]=Ot(o,h),b=c(m,p),x=s.map(w=>v(w,y??a));return[h,Object.assign(Object.assign({},c5(x,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=Ot(o,h),g=s.map(y=>p[y[0]]);return[h,Wt(g,v)]}),f=s.map(h=>a[h[0]]);return[Ui(s),X({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};Ap.props={};var KC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=KC(t,["channels"]),r=(i,a)=>oi(e,i,a);return Ap(Object.assign(Object.assign({},n),{groupBy:r}))};Gs.props={};const C2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));C2.props={};const L2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));L2.props={};const N2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["color"]}));N2.props={};var R2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Ct(o,s=>+a[s]);if(i==="min")return o=>bn(o,s=>+a[s]);if(i==="sum")return o=>Cn(o,s=>+a[s]);if(i==="median")return o=>yp(o,s=>+a[s]);if(i==="mean")return o=>rs(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function QC(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=Ot(a,i),s=Er(t,c=>o[c]);return r&&s.reverse(),[s,e]}function JC(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function tL(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=R2(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=Ot(c,o),d=ZC(o,s,c),h=JC(t,f,u),p=w5(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,X(e,{scale:{[o]:{domain:g}}})]}const Tu=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=R2(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?tL(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):QC(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};Tu.props={};const I2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"x"}));I2.props={};const j2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"color"}));j2.props={};const D2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"y"}));D2.props={};function eL(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function nL(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Cn(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const $2=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=Ot(s,"x"),l=e?eL(o,e):Ot(s,n)[0],u=nL(r,l),f=dx(i,u,d=>c[d]).map(d=>d[1]);return[i,X({},a,{scale:{x:{flex:f}}})]}};$2.props={};function se([t,e],[n,r]){return[t-n,e-r]}function fc([t,e],[n,r]){return[t+n,e+r]}function Jt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Nn([t,e]){return Math.atan2(e,t)}function ja([t,e]){return Nn([t,e])+Math.PI/2}function B2(t,e){const n=Nn(t),r=Nn(e);return n{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[x,w,O,S]=kp(m),_=n==="col"?b%u:Math.floor(b/d),M=n==="col"?Math.floor(b/u):b%d,E=_*f,P=(d-M-1)*f+p,T=(f-e)/O,A=(f-e)/S,k=E-x+g*_+1/2*e,C=P-w-v*M-y+1/2*e;return`translate(${k}, ${C}) scale(${T}, ${A})`})}}const z2=t=>(e,n)=>[e,X({},n,{modifier:rL(t),axis:!1})];z2.props={};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=iL(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=Ot(c,p);return v}),u=Q(r,wg),f=o.filter(p=>l.every(v=>zt(v[p]))),d=[...e.map(p=>{const[v]=Ot(c,p);return v}).filter(zt).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||aL(g),m=T5().thresholds(y).value(x=>+g[x])(f),b=new Map(m.flatMap(x=>{const{x0:w,x1:O}=x,S=`${w},${O}`;return x.map(_=>[_,S])}));return i[p]=b,x=>b.get(x)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(te(f,h).values())};return Ap(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(wg)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Tp.props={};const G2=(t={})=>{const{thresholds:e}=t;return Tp(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};G2.props={};function oL(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function sL(t){if(typeof t=="function")return t;if(t==="lttb")return oL;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[bu(r,o=>a[o])]],max:(r,i,a)=>[r[to(r,o=>a[o])]],median:(r,i,a)=>[r[R5(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return cL(r,s).flatMap(l=>n(l,i,a))}}function cL(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=sL(e);return(a,o)=>{const{encode:s}=o,c=oi(r,a,o),[l]=Ot(s,"x"),[u]=Ot(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};Y2.props={};function lL(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const W2=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=Ot(r,u);if(!d)return null;const[h,p=!0]=lL(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(zt);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,X({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};W2.props={};function Ut(t){return function(){return t}}const Og=Math.abs,Re=Math.atan2,mi=Math.cos,uL=Math.max,Tf=Math.min,qn=Math.sin,va=Math.sqrt,Ie=1e-12,ls=Math.PI,El=ls/2,fL=2*ls;function dL(t){return t>1?0:t<-1?ls:Math.acos(t)}function Sg(t){return t>=1?El:t<=-1?-El:Math.asin(t)}const Wd=Math.PI,Hd=2*Wd,_i=1e-6,hL=Hd-_i;function H2(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return H2;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i_i)if(!(Math.abs(f*c-l*u)>_i)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Wd-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>_i&&this._append`L${e+x*u},${n+x*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+w*c},${this._y1=n+w*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>_i||Math.abs(this._y1-u)>_i)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Hd+Hd),d>hL?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>_i&&this._append`A${r},${r},0,${+(d>=Wd)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jn(){return new Cp}jn.prototype=Cp.prototype;function Lp(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Cp(e)}function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function yL(t){return t.startAngle}function mL(t){return t.endAngle}function bL(t){return t&&t.padAngle}function xL(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+C*C&&(_=E,M=P),{cx:_,cy:M,x01:-u,y01:-f,x11:_*(i/w-1),y11:M*(i/w-1)}}function Cu(){var t=vL,e=gL,n=Ut(0),r=null,i=yL,a=mL,o=bL,s=null,c=Lp(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-El,v=a.apply(this,arguments)-El,g=Og(v-p),y=v>p;if(s||(s=u=c()),hIe))s.moveTo(0,0);else if(g>fL-Ie)s.moveTo(h*mi(p),h*qn(p)),s.arc(0,0,h,p,v,!y),d>Ie&&(s.moveTo(d*mi(v),d*qn(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,x=p,w=v,O=g,S=g,_=o.apply(this,arguments)/2,M=_>Ie&&(r?+r.apply(this,arguments):va(d*d+h*h)),E=Tf(Og(h-d)/2,+n.apply(this,arguments)),P=E,T=E,A,k;if(M>Ie){var C=Sg(M/d*qn(_)),L=Sg(M/h*qn(_));(O-=C*2)>Ie?(C*=y?1:-1,x+=C,w-=C):(O=0,x=w=(p+v)/2),(S-=L*2)>Ie?(L*=y?1:-1,m+=L,b-=L):(S=0,m=b=(p+v)/2)}var I=h*mi(m),R=h*qn(m),j=d*mi(w),D=d*qn(w);if(E>Ie){var $=h*mi(b),B=h*qn(b),F=d*mi(x),Y=d*qn(x),U;if(gIe?T>Ie?(A=dc(F,Y,I,R,h,T,y),k=dc($,B,j,D,h,T,y),s.moveTo(A.cx+A.x01,A.cy+A.y01),TIe)||!(O>Ie)?s.lineTo(j,D):P>Ie?(A=dc(j,D,$,B,d,-P,y),k=dc(I,R,F,Y,d,-P,y),s.lineTo(A.cx+A.x01,A.cy+A.y01),P=h;--p)s.point(b[p],x[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),x[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):x[d]))}if(m)return s=null,m+""||null}function u(){return Jr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ut(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ut(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ut(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var K2=Np(Ys);function Z2(t){this._curve=t}Z2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Np(t){function e(n){return new Z2(t(n))}return e._curve=t,e}function Mo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Np(n)):e()._curve},t}function wL(){return Mo(Jr().curve(K2))}function OL(){var t=Vd().curve(K2),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mo(n())},delete t.lineX0,t.lineEndAngle=function(){return Mo(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mo(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mo(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Np(o)):e()._curve},t}function Da(){}function Xd(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rp(t,e){this._context=t,this._k=(1-e)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Rp(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ip(t,e){this._context=t,this._k=(1-e)/6}Ip.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Ip(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Q2(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ie){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ie){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function J2(t,e){this._context=t,this._alpha=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return e?new J2(r,e):new Rp(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function tw(t,e){this._context=t,this._alpha=e}tw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ew=function t(e){function n(r){return e?new tw(r,e):new Ip(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function nw(t){this._context=t}nw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function jp(t){return new nw(t)}function _g(t){return t<0?-1:1}function Mg(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(_g(a)+_g(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Eg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cf(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Pl(t){this._context=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cf(this,this._t0,Eg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cf(this,Eg(this,n=Mg(this,t,e)),n);break;default:Cf(this,this._t0,n=Mg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rw(t){this._context=new iw(t)}(rw.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)};function iw(t){this._context=t}iw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function aw(t){return new Pl(t)}function ow(t){return new rw(t)}function Lu(t,e){this._context=t,this._t=e}Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sw(t){return new Lu(t,.5)}function cw(t){return new Lu(t,0)}function lw(t){return new Lu(t,1)}function qt(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Ht(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function Nu(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function uw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function Ru(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function fw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function SL(t){return Ru(t)&&Ht(t)}function eo(t){return uw(t)||Ht(t)}function _L(t){return Ht(t)&&qt(t)}function ML(t){if(eo(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Iu(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function Dp(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function EL(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}var dw={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function a(c,l,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||c,d),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?hc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?hc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kL.exec(t))?new yn(e[1],e[2],e[3],1):(e=TL.exec(t))?new yn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=CL.exec(t))?hc(e[1],e[2],e[3],e[4]):(e=LL.exec(t))?hc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,1):(e=RL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,e[4]):Pg.hasOwnProperty(t)?Tg(Pg[t]):t==="transparent"?new yn(NaN,NaN,NaN,0):null}function Tg(t){return new yn(t>>16&255,t>>8&255,t&255,1)}function hc(t,e,n,r){return r<=0&&(t=e=n=NaN),new yn(t,e,n,r)}function jL(t){return t instanceof Ws||(t=ju(t)),t?(t=t.rgb(),new yn(t.r,t.g,t.b,t.opacity)):new yn}function DL(t,e,n,r){return arguments.length===1?jL(t):new yn(t,e,n,r??1)}function yn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Bp(yn,DL,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatRgb:Lg,toString:Lg}));function Cg(){return"#"+Lf(this.r)+Lf(this.g)+Lf(this.b)}function Lg(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Lf(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ng(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qn(t,e,n,r)}function pw(t){if(t instanceof Qn)return new Qn(t.h,t.s,t.l,t.opacity);if(t instanceof Ws||(t=ju(t)),!t)return new Qn;if(t instanceof Qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Qn(o,s,c,t.opacity)}function $L(t,e,n,r){return arguments.length===1?pw(t):new Qn(t,e,n,r??1)}function Qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Bp(Qn,$L,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new Qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new Qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yn(Nf(t>=240?t-240:t+120,i,r),Nf(t,i,r),Nf(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Nf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Pr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function vw(t,e){var n=Math.min.apply(Math,q([],N(t),!1)),r=Math.min.apply(Math,q([],N(e),!1)),i=Math.max.apply(Math,q([],N(t),!1)),a=Math.max.apply(Math,q([],N(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function BL(t,e,n){return Math.atan(-e/t*Math.tan(n))}function FL(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function zL(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function GL(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function YL(t,e,n,r,i,a,o){for(var s=BL(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=FL(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}var WL=1e-4;function gw(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,q([],N(t.concat([h])),!1)),i.apply(void 0,q([],N(e.concat([h])),!1))],v=Pr(c[0],c[1],p[0],p[1]);v=0&&v=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Fo(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function VL(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Rg(t,n,i,o),f=Rg(e,r,a,s),d=0;d=0?[i]:[]}function KL(t,e,n,r,i,a){var o=jg(t,n,i)[0],s=jg(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(qd(t,n,i,o)),s!==void 0&&l.push(qd(e,r,a,s)),vw(c,l)}function ZL(t,e,n,r,i,a,o,s){return gw([t,n,i],[e,r,a],o,s,qd)}function QL(t,e,n,r,i,a,o,s){var c=ZL(t,e,n,r,i,a,o,s);return Pr(c.x,c.y,o,s)}var JL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bw={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(JL,function(){function n(w,O,S,_,M){r(w,O,S||0,_||w.length-1,M||a)}function r(w,O,S,_,M){for(;_>S;){if(_-S>600){var E=_-S+1,P=O-S+1,T=Math.log(E),A=.5*Math.exp(2*T/3),k=.5*Math.sqrt(T*A*(E-A)/E)*(P-E/2<0?-1:1),C=Math.max(S,Math.floor(O-P*A/E+k)),L=Math.min(_,Math.floor(O+(E-P)*A/E+k));r(w,O,C,L,M)}var I=w[O],R=S,j=_;for(i(w,S,O),M(w[_],I)>0&&i(w,S,_);R0;)j--}M(w[S],I)===0?i(w,S,j):(j++,i(w,j,_)),j<=O&&(S=j+1),O<=j&&(_=j-1)}}function i(w,O,S){var _=w[O];w[O]=w[S],w[S]=_}function a(w,O){return wO?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var S=this.data,_=[];if(!m(O,S))return _;for(var M=this.toBBox,E=[];S;){for(var P=0;P=0&&E[S].children.length>this._maxEntries;)this._split(E,S),S--;this._adjustParentBBoxes(M,E,S)},o.prototype._split=function(O,S){var _=O[S],M=_.children.length,E=this._minEntries;this._chooseSplitAxis(_,E,M);var P=this._chooseSplitIndex(_,E,M),T=b(_.children.splice(P,_.children.length-P));T.height=_.height,T.leaf=_.leaf,c(_,this.toBBox),c(T,this.toBBox),S?O[S-1].children.push(T):this._splitRoot(_,T)},o.prototype._splitRoot=function(O,S){this.data=b([O,S]),this.data.height=O.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,S,_){for(var M,E=1/0,P=1/0,T=S;T<=_-S;T++){var A=l(O,0,T,this.toBBox),k=l(O,T,_,this.toBBox),C=g(A,k),L=h(A)+h(k);C=S;L--){var I=O.children[L];u(T,O.leaf?E(I):I),A+=p(T)}return A},o.prototype._adjustParentBBoxes=function(O,S,_){for(var M=_;M>=0;M--)u(S[M],O)},o.prototype._condense=function(O){for(var S=O.length-1,_=void 0;S>=0;S--)O[S].children.length===0?S>0?(_=O[S-1].children,_.splice(_.indexOf(O[S]),1)):this.clear():c(O[S],this.toBBox)};function s(w,O,S){if(!S)return O.indexOf(w);for(var _=0;_=w.minX&&O.maxY>=w.minY}function b(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(w,O,S,_,M){for(var E=[O,S];E.length;)if(S=E.pop(),O=E.pop(),!(S-O<=_)){var P=O+Math.ceil((S-O)/_/2)*_;n(w,P,O,S,M),E.push(O,P,P,S)}}return o})})(bw);var tN=bw.exports,G;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(G||(G={}));var wa;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(wa||(wa={}));var ci=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),eN=function(){function t(e){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.plugins=[],this.config=z({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function na(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Rf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function el(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Dg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function nN(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function rN(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Oa(t){return t===void 0?0:t>360||t<-360?t%360:t}function We(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?br(t):de(t)?St(t,e,n):St(t[0],t[1]||e,t[2]||n)}function re(t){return t*(Math.PI/180)}function Pn(t){return t*(180/Math.PI)}function iN(t){return 360*t}function aN(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function oN(t,e){var n,r,i=Math.PI*.5,a=N(Aa(yt(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function If(t,e){return e.length===16?oN(t,e):aN(t,e)}function sN(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return Yk(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function cN(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function $g(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eft[1][2]&&(a[0]=-a[0]),ft[0][2]>ft[2][0]&&(a[1]=-a[1]),ft[1][0]>ft[0][1]&&(a[2]=-a[2]),!0}function uN(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function fN(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function jf(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var be=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){na(this.center,e),na(this.halfExtents,n),Rf(this.min,this.center,this.halfExtents),el(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){el(this.center,n,e),Dg(this.center,this.center,.5),Rf(this.halfExtents,n,e),Dg(this.halfExtents,this.halfExtents,.5),na(this.min,e),na(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],x=e.halfExtents,w=x[0],O=x[1],S=x[2],_=y-w,M=y+w,E=m-O,P=m+O,T=b-S,A=b+S;_f&&(f=M),Eh&&(h=P),Tv&&(v=A),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),x=Math.abs(f),w=Math.abs(d),O=Math.abs(h),S=Math.abs(p),_=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+x*o[1]+w*o[2],i[2]=O*o[0]+S*o[1]+_*o[2],Rf(this.min,r,i),el(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=nN([0,0,0],this.getMin(),e.getMin()),i=rN([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),dN=function(){function t(e,n){this.distance=e||0,this.normal=n||St(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return nr(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/tx(this.normal);Cd(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&Ld(r,e,n,o),s},t}(),zr;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(zr||(zr={}));var hN=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new dN)}return t.prototype.extractFromVPMatrix=function(e){var n=N(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];Gn(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,Gn(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,Gn(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,Gn(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,Gn(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,Gn(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Ee=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Fi=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),It="Method not implemented.",ra="Use document.documentElement instead.",pN="Cannot append a destroyed element.",Tt;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(Tt||(Tt={}));var ds;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(ds||(ds={}));var tn;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(tn||(tn={}));var xw={UPDATED:"updated"},Fg=2e-4,ww=function(){function t(){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.eventEmitter=new $p,this.matrix=Nt(),this.right=St(1,0,0),this.up=St(0,1,0),this.forward=St(0,0,1),this.position=St(0,0,1),this.focalPoint=St(0,0,0),this.distanceVector=St(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Nt(),this.projectionMatrixInverse=Nt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=Tt.EXPLORING,this.trackingMode=ds.DEFAULT,this.projectionMode=tn.PERSPECTIVE,this.frustum=new hN,this.orthoMatrix=Nt()}return t.prototype.isOrtho=function(){return this.projectionMode===tn.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===Tt.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Tt.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==Tt.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Wn(Nt(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=up(Nt(),[e,n,0]);this.jitteredProjectionMatrix=$e(Nt(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===tn.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===tn.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=St(c-i,l-a,0),f=nr(u,this.right)/wr(this.right),d=nr(u,this.up)/wr(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=tn.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(re(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return cN(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===wa.ZERO),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=tn.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===wa.NEGATIVE_ONE?Ub(this.projectionMatrix,d,h,v,p,a,o):qb(this.projectionMatrix,d,h,v,p,a,o),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=We(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=St(0,1,0);if(this.focalPoint=We(e,n,r),this.trackingMode===ds.CINEMATIC){var a=qv(yt(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=wr(a),s=Pn(Math.asin(n/o)),c=90+Pn(Math.atan2(r,e)),l=Nt();Wb(l,l,re(c)),Yb(l,l,re(s)),i=Oe(yt(),[0,1,0],l)}return Wn(this.matrix,Kb(Nt(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=Z.kEms&&e=ti.kUnitType&&this.getType()<=ti.kClampType},t}(),xN=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return ti.kColorType},e.prototype.to=function(n){return this},e}(Du),rr;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(rr||(rr={}));var pc=function(t){rt(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return ti.kColorType},e}(Du),sn=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return ti.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(Du),wN=Ne(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Yg=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function ON(t){if(!t)throw new Error}function ga(t){return typeof t=="function"}function SN(t){return typeof t=="symbol"}var _N={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},Jd=Ne(function(t){var e=wN(t),n=_N[e];return e=(n==null?void 0:n.alias)||e,e}),MN=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(ON(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},th=function(t){return bN(mN(t))},jt=function(t){rt(e,t);function e(n,r){r===void 0&&(r=Z.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=yN(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return ti.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=th(this.unit);if(r!==th(n)||r===Z.kUnknown)return null;var i=Gg(this.unit)/Gg(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case Z.kUnknown:break;case Z.kInteger:a=Number(this.value).toFixed(0);break;case Z.kNumber:case Z.kPercentage:case Z.kEms:case Z.kRems:case Z.kPixels:case Z.kDegrees:case Z.kRadians:case Z.kGradians:case Z.kMilliseconds:case Z.kSeconds:case Z.kTurns:{var o=-999999,s=999999,c=this.value,l=Qd(this.unit);if(cs){var u=Qd(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=MN(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(Du),we=new jt(0,"px");new jt(1,"px");var Hn=new jt(0,"deg"),Fp=function(t){rt(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(xN),Gt=new sn("unset"),EN=new sn("initial"),PN=new sn("inherit"),Df={"":Gt,unset:Gt,initial:EN,inherit:PN},eh=function(t){return Df[t]||(Df[t]=new sn(t)),Df[t]},nh=new Fp(0,0,0,0,!0),Ow=new Fp(0,0,0,0),AN=Ne(function(t,e,n,r){return new Fp(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),Ft=function(t,e){return e===void 0&&(e=Z.kNumber),new jt(t,e)},kl=new jt(50,"%"),rh;(function(t){t[t.Standard=0]="Standard"})(rh||(rh={}));var $a;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})($a||($a={}));var Sw={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)},tt;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(tt||(tt={}));function kN(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var TN=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(I){throw new Error(e+": "+I)}function r(){var I=i();return e.length>0&&n("Invalid input not EOF"),I}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(I,R,j){return s(R,function(D){var $=j();return $&&(C(t.comma)||n("Missing comma before color stops")),{type:I,orientation:$,colorStops:b(x)}})}function s(I,R){var j=C(I);if(j){C(t.startCall)||n("Missing (");var D=R(j);return C(t.endCall)||n("Missing )"),D}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var I,R=d(),j;return R&&(I=[],I.push(R),j=e,C(t.comma)&&(R=d(),R?I.push(R):e=j)),I}function d(){var I=h()||p();if(I)I.at=g();else{var R=v();if(R){I=R;var j=g();j&&(I.at=j)}else{var D=y();D&&(I={type:"default-radial",at:D})}}return I}function h(){var I=k("shape",/^(circle)/i,0);return I&&(I.style=A()||v()),I}function p(){var I=k("shape",/^(ellipse)/i,0);return I&&(I.style=P()||v()),I}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=m();if(I.x||I.y)return{type:"position",value:I}}function m(){return{x:P(),y:P()}}function b(I){var R=I(),j=[];if(R)for(j.push(R);C(t.comma);)R=I(),R?j.push(R):n("One extra comma");return j}function x(){var I=w();return I||n("Expected color definition"),I.length=P(),I}function w(){return S()||M()||_()||O()}function O(){return k("literal",t.literalColor,0)}function S(){return k("hex",t.hexColor,1)}function _(){return s(t.rgbColor,function(){return{type:"rgb",value:b(E)}})}function M(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(E)}})}function E(){return C(t.number)[1]}function P(){return k("%",t.percentageValue,1)||T()||A()}function T(){return k("position-keyword",t.positionKeywords,1)}function A(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(I,R,j){var D=C(R);if(D)return{type:I,value:D[j]}}function C(I){var R=/^[\n\r\t\s]+/.exec(e);R&&L(R[0].length);var j=I.exec(e);return j&&L(j[0].length),j}function L(I){e=e.substring(I)}return function(I){return e=I,r()}}();function CN(t,e,n){var r=re(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function LN(t,e,n,r,i){var a=n.value,o=r.value;n.unit===Z.kPercentage&&(a=n.value/100*t),r.unit===Z.kPercentage&&(o=r.value/100*e);var s=Math.max(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]));return i&&(i instanceof jt?s=i.value:i instanceof sn&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]))))),{x:a,y:o,r:s}}var NN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,RN=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,IN=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,_w=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function jN(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=TN(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;jN(u);var f=u.map(function(b){return{offset:Ft(Number(b.length.value),"%"),color:kN(b)}});if(c==="linear-gradient")return new pc(rr.LinearGradient,{angle:l?$N(l):Hn,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=BN(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=eh(m):v=Ft(m,y)}return new pc(rr.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=NN.exec(t);if(i){var a=((e=i[2].match(_w))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pc(rr.LinearGradient,{angle:Ft(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=N(s,2),l=c[0],u=c[1];return{offset:Ft(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=zN(t);if(o)if(le(o))t=o;else return[new pc(rr.RadialGradient,o)]}else if(r==="p")return GN(t)}});function zN(t){var e,n=RN.exec(t);if(n){var r=((e=n[4].match(_w))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:Ft(50,"%"),cy:Ft(50,"%"),steps:r.map(function(i){var a=N(i,2),o=a[0],s=a[1];return{offset:Ft(Number(o)*100,"%"),color:s}})}}return null}function GN(t){var e=IN.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function hs(t){return t&&!!t.image}function Tl(t){return t&&!nt(t.r)&&!nt(t.g)&&!nt(t.b)}var Ar=Ne(function(t){if(hs(t))return z({repetition:"repeat"},t);if(nt(t)&&(t=""),t==="transparent")return Ow;t==="currentColor"&&(t="black");var e=FN(t);if(e)return e;var n=ju(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),AN.apply(void 0,q([],N(r),!1))});function YN(t,e){if(!(!Tl(t)||!Tl(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(ce(r[i],0,255));return r[3]=ce(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Hs(t,e){if(nt(e))return Ft(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return Ft(Number(e),"px");if("deg".search(t)>=0)return Ft(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return Ft(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var Mw=function(t){return Hs(new RegExp("px","g"),t)},WN=Ne(Mw),HN=function(t){return Hs(new RegExp("%","g"),t)};Ne(HN);var ps=function(t){return de(t)||isFinite(Number(t))?Ft(Number(t)||0,"px"):Hs(new RegExp("px|%|em|rem","g"),t)},Ba=Ne(ps),zp=function(t){return Hs(new RegExp("deg|rad|grad|turn","g"),t)},Ew=Ne(zp);function VN(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=th(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=Qd(t.unit)):(jt.isLength(t.unit)||jt.isLength(e.unit))&&(o=dn(t,i,n),s=dn(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function hn(t){var e=0;return t.unit===Z.kDegrees?e=t.value:t.unit===Z.kRadians?e=Pn(Number(t.value)):t.unit===Z.kTurns&&(e=iN(Number(t.value))),e}function $f(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):le(t)?n=t.split(" ").map(function(r){return Number(r)}):de(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function Pw(t){return le(t)?t.split(" ").map(function(e){return Ba(e)}):t.map(function(e){return Ba(e.toString())})}function dn(t,e,n){if(t.value===0)return 0;if(t.unit===Z.kPixels)return Number(t.value);if(t.unit===Z.kPercentage&&n){var r=n.nodeName===G.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var XN=function(t){return Hs(/deg|rad|grad|turn|px|%/g,t)},UN=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Aw(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,UN.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return XN(a)||Ar(a)})}),e.lastIndex===t.length)return n}return[]}function kw(t){return t.toString()}var no=function(t){return typeof t=="number"?Ft(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ft(Number(t)):Ft(0)},zi=Ne(no);Ne(function(t){return le(t)?t.split(" ").map(zi):t.map(zi)});function Gp(t,e){return[t,e,kw]}function Yp(t,e){return function(n,r){return[n,r,function(i){return kw(ce(i,t,e))}]}}function Tw(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function ih(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=e5(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function qN(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function Cl(t,e){return t[0]===e[0]&&t[1]===e[1]}function QN(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function Wg(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var Hg=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},Vg=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Ib(r,360);var c=re(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},x=Hg({x:1,y:0},b),w={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},O=Hg(b,w);!a&&O>0?O-=2*Math.PI:a&&O<0&&(O+=2*Math.PI),O%=2*Math.PI;var S=x+O*s,_=e*Math.cos(S),M=n*Math.sin(S),E={x:Math.cos(c)*_-Math.sin(c)*M+m.x,y:Math.sin(c)*_+Math.cos(c)*M+m.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+O,ellipticalArcAngle:S,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return E};function JN(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,x=[(f-g)/n,(d-y)/r],w=[(-1*f-g)/n,(-1*d-y)/r],O=Ug([1,0],x),S=Ug(x,w);return ah(x,w)<=-1&&(S=Math.PI),ah(x,w)>=1&&(S=0),o===0&&S>0&&(S=S-2*Math.PI),o===1&&S<0&&(S=S+2*Math.PI),{cx:m,cy:b,rx:Cl(t,[l,u])?0:n,ry:Cl(t,[l,u])?0:r,startAngle:O,endAngle:O+S,xRotation:i,arcFlag:a,sweepFlag:o}}function e4(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=St(l[1]-a,l[2]-s,0);n&&Oe(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0),p=St(l[5]-a,l[6]-s,0);n&&(Oe(d,d,n),Oe(h,h,n),Oe(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=St(l[6]-a,l[7]-s,0);n&&Oe(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0);n&&(Oe(d,d,n),Oe(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function n4(t,e,n,r){return[["M",t,e],["L",n,r]]}function qg(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function r4(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function i4(t,e,n,r,i){if(i){var a=N(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function Wp(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case G.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=n4(a,s,l,f);break;case G.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=qg(p,p,g,m);break}case G.ELLIPSE:{var b=t.parsedStyle,x=b.rx,w=x===void 0?0:x,O=b.ry,S=O===void 0?0:O,_=b.cx,g=_===void 0?0:_,M=b.cy,m=M===void 0?0:M;n=qg(w,S,g,m);break}case G.POLYLINE:case G.POLYGON:var E=t.parsedStyle.points;n=r4(E.points,t.nodeName===G.POLYGON);break;case G.RECT:var P=t.parsedStyle,T=P.width,A=T===void 0?0:T,k=P.height,C=k===void 0?0:k,L=P.x,I=L===void 0?0:L,R=P.y,j=R===void 0?0:R,D=P.radius,$=D&&D.some(function(F){return F!==0});n=i4(A,C,I,j,$&&D.map(function(F){return ce(F,0,Math.min(Math.abs(A)/2,Math.abs(C)/2))}));break;case G.PATH:var B=t.parsedStyle.path.absolutePath;n=q([],N(B),!1);break}if(n.length)return e4(n,t,e)}var Cw=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=bl(t)}catch{e=bl(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}qN(e);var n=KN(e),r=ZN(e),i=r.polygons,a=r.polylines,o=JN(e),s=QN(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},a4=Ne(Cw);function oh(t){return le(t)?a4(t):Cw(t)}function o4(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Rd(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Rd(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=cx(r,i));var o=eg(a[0])!==eg(a[1])?qT(a[0]):UT(a[0]);return[o,r5(a[1],o),function(s){return s}]}function Lw(t,e){var n;le(t)?n=t.split(" ").map(function(u){var f=N(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=qL(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=yw(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,q([],N(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,q([],N(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function s4(t,e){return[t.points,e.points,function(n){return n}]}var ie=null;function Je(t){return function(e){var n=0;return t.map(function(r){return r===ie?e[n++]:r})}}function bi(t){return t}var Ll={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],bi],matrix3d:["NNNNNNNNNNNNNNNN",bi],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Je([ie,ie,new jt(1)]),bi],scalex:["N",Je([ie,new jt(1),new jt(1)]),Je([ie,new jt(1)])],scaley:["N",Je([new jt(1),ie,new jt(1)]),Je([new jt(1),ie])],scalez:["N",Je([new jt(1),new jt(1),ie])],scale3d:["NNN",bi],skew:["Aa",null,bi],skewx:["A",null,Je([ie,Hn])],skewy:["A",null,Je([Hn,ie])],translate:["Tt",Je([ie,ie,we]),bi],translatex:["T",Je([ie,we,we]),Je([ie,we])],translatey:["T",Je([we,ie,we]),Je([we,ie])],translatez:["L",Je([we,we,ie])],translate3d:["TTL",bi]};function Hp(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=Ll[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=$f(n.anchor,2)),n.transform&&(e.parsedStyle.transform=Hp(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Nw(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===G.CIRCLE||e.nodeName===G.ELLIPSE)&&(!nt(n.cx)||!nt(n.cy))||(e.nodeName===G.RECT||e.nodeName===G.IMAGE||e.nodeName===G.GROUP||e.nodeName===G.HTML||e.nodeName===G.TEXT||e.nodeName===G.MESH)&&(!nt(n.x)||!nt(n.y)||!nt(n.z))||e.nodeName===G.LINE&&(!nt(n.x1)||!nt(n.y1)||!nt(n.z1)||!nt(n.x2)||!nt(n.y2)||!nt(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=r.memoize,v=d,g=Object.keys(n);g.forEach(function(y){var m;u||(e.attributes[y]=n[y]),!v&&(!((m=Br[y])===null||m===void 0)&&m.l)&&(v=!0)}),f||g.forEach(function(y){e.computedStyle[y]=i.parseProperty(y,e.attributes[y],e,p)}),h!=null&&h.length&&(g=Array.from(new Set(g.concat(h)))),g.forEach(function(y){y in e.computedStyle&&(e.parsedStyle[y]=i.computeProperty(y,e.computedStyle[y],e,p))}),v&&this.updateGeometry(e),g.forEach(function(y){y in e.parsedStyle&&i.postProcessProperty(y,e,g)}),this.runtime.enableCSSParsing&&e.children.length&&g.forEach(function(y){y in e.parsedStyle&&i.isPropertyInheritable(y)&&e.children.forEach(function(m){m.internalSetAttribute(y,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r,i){var a=Br[e],o=n;if((n===""||nt(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")o=eh(n);else if(a){var s=a.k,c=a.syntax,l=c&&this.getPropertySyntax(c);s&&s.indexOf(n)>-1?o=eh(n):l&&(!i&&l.parserUnmemoize?o=l.parserUnmemoize(n,r):l.parser&&(o=l.parser(n,r)))}return o},t.prototype.computeProperty=function(e,n,r,i){var a=Br[e],o=r.id==="g-root",s=n;if(a){var c=a.syntax,l=a.inh,u=a.d;if(n instanceof sn){var f=n.value;if(f==="unset"&&(l&&!o?f="inherit":f="initial"),f==="initial")nt(u)||(n=this.parseProperty(e,ga(u)?u(r.nodeName):u,r,i));else if(f==="inherit"){var d=this.tryToResolveProperty(r,e,{inherited:!0});if(nt(d)){this.addUnresolveProperty(r,e);return}else return d}}var h=c&&this.getPropertySyntax(c);if(h&&h.calculator){var p=r.parsedStyle[e];s=h.calculator(e,p,n,r,this.runtime)}else n instanceof sn?s=n.value:s=n}return s},t.prototype.postProcessProperty=function(e,n,r){var i=Br[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=la.get(e);r||(la.set(e,[]),r=la.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&m4(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=la.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),la.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new be),i.renderBounds||(i.renderBounds=new be);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,x=m.lineWidth,w=m.increasedLineWidthForHitTesting,O=m.shadowType,S=m.shadowColor,_=m.filter,M=_===void 0?[]:_,E=m.transformOrigin,P=a.anchor;n===G.TEXT?delete a.anchor:n===G.MESH&&(a.anchor[2]=.5);var T=[(1-(P&&P[0]||0)*2)*s/2+d,(1-(P&&P[1]||0)*2)*c/2+p,(1-(P&&P[2]||0)*2)*y[2]+g];i.contentBounds.update(T,y);var A=n===G.POLYLINE||n===G.POLYGON||n===G.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var C=((x||0)+(w||0))*A;y[0]+=C,y[1]+=C}if(i.renderBounds.update(T,y),S&&O&&O!=="inner"){var L=i.renderBounds,I=L.min,R=L.max,j=a,D=j.shadowBlur,$=j.shadowOffsetX,B=j.shadowOffsetY,F=D||0,Y=$||0,U=B||0,K=I[0]-F+Y,V=R[0]+F+Y,W=I[1]-F+U,J=R[1]+F+U;I[0]=Math.min(I[0],K),R[0]=Math.max(R[0],V),I[1]=Math.min(I[1],W),R[1]=Math.max(R[1],J),i.renderBounds.setMinMax(I,R)}M.forEach(function(lt){var xt=lt.name,Et=lt.params;if(xt==="blur"){var Xt=Et[0].value;i.renderBounds.update(i.renderBounds.center,el(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Xt,Xt,0]))}else if(xt==="drop-shadow"){var ue=Et[0].value,Ke=Et[1].value,vr=Et[2].value,gi=i.renderBounds,Ge=gi.min,wn=gi.max,_t=Ge[0]-vr+ue,Pt=wn[0]+vr+ue,ee=Ge[1]-vr+Ke,kt=wn[1]+vr+Ke;Ge[0]=Math.min(Ge[0],_t),wn[0]=Math.max(wn[0],Pt),Ge[1]=Math.min(Ge[1],ee),wn[1]=Math.max(wn[1],kt),i.renderBounds.setMinMax(Ge,wn)}}),P=a.anchor;var et=s<0,it=c<0,ct=(et?-1:1)*(E?dn(E[0],0,e):0),ot=(it?-1:1)*(E?dn(E[1],1,e):0);ct=ct-(et?-1:1)*(P&&P[0]||0)*i.contentBounds.halfExtents[0]*2,ot=ot-(it?-1:1)*(P&&P[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(ct,ot),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Br[e];return n?n.inh:!1},t}(),x4=function(){function t(){this.parser=Ew,this.parserUnmemoize=zp,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i){return hn(r)},t}(),w4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof sn&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),O4=function(){function t(){this.parser=Ar,this.parserWithCSSDisabled=Ar,this.mixer=YN}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="none"?nh:Ow:r},t}(),S4=function(){function t(){this.parser=Aw}return t.prototype.calculator=function(e,n,r){return r instanceof sn?[]:r},t}();function Jg(t){var e=t.parsedStyle.fontSize;return nt(e)?null:e}var Xp=function(){function t(){this.parser=Ba,this.parserUnmemoize=ps,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i,a){var o;if(de(r))return r;if(jt.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===Z.kPercentage)return 0;if(r.unit===Z.kEms){if(i.parentNode){var c=Jg(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===Z.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=Jg(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),_4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),M4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),xo=Nt();function Up(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[we,we];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[we];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[we];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[we];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[we,we,we];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a==="rotatex"){var l=o||[Hn];e.rotateLocal(hn(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Hn];e.rotateLocal(0,hn(l[0]),0)}else if(a==="rotatez"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(re(u[0]),re(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(re(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],re(u[0]))}else if(a==="matrix"){var f=N(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Td(xo,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Td.apply(bT,q([xo],N(o.map(function(m){return m.value})),!1)),xo[12]+=n,xo[13]+=r,e.setLocalTransform(xo))}),e.getLocalTransform()}var E4=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case G.CIRCLE:case G.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;nt(c)||(i=c),nt(l)||(a=l),nt(u)||(o=u);break;case G.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case G.RECT:case G.IMAGE:case G.GROUP:case G.HTML:case G.TEXT:case G.MESH:nt(n.parsedStyle.x)||(i=n.parsedStyle.x),nt(n.parsedStyle.y)||(a=n.parsedStyle.y),nt(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==G.PATH&&n.nodeName!==G.POLYLINE&&n.nodeName!==G.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!nt(i)||!nt(a)||!nt(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)Up(b,n);else{var x=N(n.getLocalPosition(),3),w=x[0],O=x[1],S=x[2];n.setLocalPosition(nt(i)?w:i,nt(a)?O:a,nt(o)?S:o)}}},e}(Xp),P4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof sn&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),A4=function(){function t(){this.mixer=Gp,this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===G.LINE||a===G.PATH||a===G.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),T4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),C4=function(){function t(){this.parser=oh,this.parserWithCSSDisabled=oh,this.mixer=o4}return t.prototype.calculator=function(e,n,r){return r instanceof sn&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===G.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),L4=function(){function t(){this.parser=Lw,this.mixer=s4}return t.prototype.postProcessor=function(e,n){if((e.nodeName===G.POLYGON||e.nodeName===G.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),N4=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.mixer=Yp(0,1/0),n}return e}(Xp),R4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),I4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),Gf={},j4=0;function D4(t,e){if(t){var n=typeof t=="string"?t:t.id||j4++;Gf[n]&&Gf[n].destroy(),Gf[n]=e}}var Vs=typeof window<"u"&&typeof window.document<"u";function $4(t){return!!t.getAttribute}function B4(t,e){for(var n=0,r=t.length;n>>1;Rw(t[i],e)<0?n=i+1:r=i}return n}function Rw(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function Iw(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var ty="px";function F4(t,e,n){Vs&&t.style&&(t.style.width=e+ty,t.style.height=n+ty)}function jw(t,e){if(Vs)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function z4(t){var e=jw(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function G4(t){var e=jw(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var Y4=1,W4={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},sh=typeof performance=="object"&&performance.now?performance:Date;function Ki(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var H4=1,V4=function(){return H4++},sr=typeof self=="object"&&self.self==self?self:typeof global=="object"&&global.global==global?global:{},X4=Date.now(),U4=function(){return sr.performance&&typeof sr.performance.now=="function"?sr.performance.now():Date.now()-X4},Eo={},ey=Date.now(),q4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-ey,r=n>16?0:16-n,i=V4();return Eo[i]=t,Object.keys(Eo).length>1||setTimeout(function(){ey=e;var a=Eo;Eo={},Object.keys(a).forEach(function(o){return a[o](U4())})},r),i},K4=function(t){delete Eo[t]},Z4=["","webkit","moz","ms","o"],Dw=function(t){return typeof t!="string"?q4:t===""?sr.requestAnimationFrame:sr[t+"RequestAnimationFrame"]},Q4=function(t){return typeof t!="string"?K4:t===""?sr.cancelAnimationFrame:sr[t+"CancelAnimationFrame"]||sr[t+"CancelRequestAnimationFrame"]},J4=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},$w=J4(Z4,function(t){return!!Dw(t)}),Bw=Dw($w),Fw=Q4($w);sr.requestAnimationFrame=Bw;sr.cancelAnimationFrame=Fw;var tR=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!rR.test(l)&&nR.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var aR=function(){function t(){this.parser=Hp,this.parserUnmemoize=Kg,this.parserWithCSSDisabled=Kg,this.mixer=g4}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;Up(n,e)},t}(),oR=function(){function t(){this.parser=Nw,this.parserUnmemoize=y4}return t}(),sR=function(){function t(){this.parser=zi,this.parserUnmemoize=no}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=$a.Z_INDEX_CHANGED)}},t}(),cR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),lR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),uR=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),fR=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),dR=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Le(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),hR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!le(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),pR=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!nt(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var x=0;return c==="middle"?x=y[1]:c==="top"||c==="hanging"?x=y[1]*2:c==="alphabetic"?x=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(x=0),l&&(b+=l),u&&(x+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:x}},t}();function vR(t){return!!t.type}var $u=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Ee,this.page=new Ee,this.canvas=new Ee,this.viewport=new Ee,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(It)},t}(),zw=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.client=new Ee,n.movement=new Ee,n.offset=new Ee,n.global=new Ee,n.screen=new Ee,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(It)},e}($u),ch=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(zw),lh=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(zw),Dt=function(t){rt(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}($u),ny=":",Gw=function(){function t(){this.emitter=new $p}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Xv(r)&&r||ki(r)&&r.capture,a=ki(r)&&r.once,o=ga(n)?void 0:n,s=!1,c="";if(e.indexOf(ny)>-1){var l=N(e.split(ny),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=ga(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(It)},e.prototype.lookupNamespaceURI=function(n){throw new Error(It)},e.prototype.lookupPrefix=function(n){throw new Error(It)},e.prototype.normalize=function(){throw new Error(It)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Gw),gR=2048,yR=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new $p,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Nt(),this.tmpVec3=yt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=sh.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}_e.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),_e.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&_e.isNode(c)&&c.parentNode;p&&p!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),_e.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),_e.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),_e.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),_e.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=$e(this.tmpMatrix,u,l),d=Gn(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return Oe(d,d,f),new Ee(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=$e(this.tmpMatrix,i,a),s=Gn(this.tmpVec3,e.x,e.y,0);Oe(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Ee((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=vn(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(ch);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r??(o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i),typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(lh);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(lh);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(ch);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n??r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=sh.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n??e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||_e.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=$4(n)&&n.getAttribute("cursor");if(r)return r;n=_e.isNode(n)&&n.parentNode}},t}(),mR=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||H.offscreenCanvas)this.canvas=e||H.offscreenCanvas,this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),Qr;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(Qr||(Qr={}));var bR=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Ye,initAsync:new tR,dirtycheck:new Yf,cull:new Yf,beginFrame:new Ye,beforeRender:new Ye,render:new Ye,afterRender:new Ye,endFrame:new Ye,destroy:new Ye,pick:new eR,pickSync:new Yf,pointerDown:new Ye,pointerUp:new Ye,pointerMove:new Ye,pointerOut:new Ye,pointerOver:new Ye,pointerWheel:new Ye,pointerCancel:new Ye,click:new Ye}}return t.prototype.init=function(e){var n=this,r=z(z({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(Qr.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(Qr.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==$a.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=B4(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Rw)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(Qr.DISPLAY_OBJECT_CHANGED)},t}(),xR=/\[\s*(.*)=(.*)\s*\]/,wR=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(xR),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return nt(r)?"":r.toString?r.toString():""},t}(),Gi=function(t){rt(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}($u),ht;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(ht||(ht={}));function ry(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var OR=new Gi(ht.REPARENT,null,"","","",0,"",""),SR=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Dt(ht.BOUNDS_CHANGED),this.rotate=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=ve();oc(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);sc(r,f),Sf(r,r),qr(l,r,l),qr(c.localRotation,l,u),ml(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;oc(r,a[0],a[1],a[2]),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{oc(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);sc(r,Sf(ve(),l)),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=St(i,a,o));var s=r.transformable;vo(i,yt())||(OT(i,i,s.localRotation),ba(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Nt(),i=yt();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!vo(n.getPosition(a),i)){if(rn(s.position,i),a.parentNode===null||!a.parentNode.transformable)rn(s.localPosition,i);else{var c=a.parentNode.transformable;Ri(r,c.worldTransform),Wn(r,r),Oe(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=yt();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!vo(o.localPosition,r)&&(rn(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=yt(),i=yt(),a=yt();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=Gn(i,s,c,l)),!vo(s,r)&&(ba(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=ve();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=_f(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);sc(r,u),Sf(r,r),qr(l.localRotation,r,a),ml(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Nt(),i=yt(),a=_f(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(zo(o.localTransform,o.localRotation,o.localPosition,St(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Rs(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),$e(o.localTransform,o.localTransform,c)}var l=zo(r,a,i,o.localScale,o.origin);$e(o.localTransform,o.localTransform,l)}else zo(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,nt(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=$a.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(OR)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=$a.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=St(n,r,i));var a=e.transformable;oc(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;xT(r.localScale,r.localScale,St(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=St(n[0],n[1],n[2]||r.localScale[2]);vo(i,r.localScale)||(rn(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=_f(n,r,i,a));var o=e.transformable;sc(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=AT(n,r));var i=e.transformable;kT(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=N(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)ry(r),r=r.parentNode;n&&e.forEach(function(i){ry(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new Gi(ht.ATTR_MODIFIED,a,n,n,i,Gi.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return gl(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return yl(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Aa(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=gl(yt(),n),i=yl(ve(),n),a=Aa(yt(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(be.isEmpty(i))return null;var a=r||new be;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new be},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new be,o.update(f.center,f.halfExtents)))}),n){var c=Iw(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new be),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Nt();e.parentNode.transformable&&(n=Wn(Nt(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!be.isEmpty(r)){var i=new be;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);be.isEmpty(a)||(i=new be,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=N(i.getMin(),2),c=s[0],l=s[1],u=N(i.getMax(),2),f=u[0],d=u[1];return new Fi(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Fi((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+M>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var E=p[v].length,P=0,T=E,A=0;Ad){T=A;break}P+=k}p[v]=(p[v]||"").slice(0,T)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(O))continue;this.canBreakInLastChar(O)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(O,_)&&(p=this.trimByKinsokuShorui(p),g+=m(S||""))}g+=M,p[v]=(p[v]||"")+O}return p.join(` +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-ipGgnE5Q.js `)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:xi.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:xi.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=q([],N(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&iy.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!iy.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),H={},IR=function(){var t,e=new hR,n=new dR;return t={},t[G.CIRCLE]=new cR,t[G.ELLIPSE]=new lR,t[G.RECT]=e,t[G.IMAGE]=e,t[G.GROUP]=e,t[G.LINE]=new uR,t[G.TEXT]=new pR(H),t[G.POLYLINE]=n,t[G.POLYGON]=n,t[G.PATH]=new fR,t[G.HTML]=null,t[G.MESH]=null,t}(),jR=function(){var t,e=new O4,n=new Xp;return t={},t[tt.PERCENTAGE]=null,t[tt.NUMBER]=new A4,t[tt.ANGLE]=new x4,t[tt.DEFINED_PATH]=new w4,t[tt.PAINT]=e,t[tt.COLOR]=e,t[tt.FILTER]=new S4,t[tt.LENGTH]=n,t[tt.LENGTH_PERCENTAGE]=n,t[tt.LENGTH_PERCENTAGE_12]=new _4,t[tt.LENGTH_PERCENTAGE_14]=new M4,t[tt.COORDINATE]=new E4,t[tt.OFFSET_DISTANCE]=new k4,t[tt.OPACITY_VALUE]=new T4,t[tt.PATH]=new C4,t[tt.LIST_OF_POINTS]=new L4,t[tt.SHADOW_BLUR]=new N4,t[tt.TEXT]=new R4,t[tt.TEXT_TRANSFORM]=new I4,t[tt.TRANSFORM]=new aR,t[tt.TRANSFORM_ORIGIN]=new oR,t[tt.Z_INDEX]=new sR,t[tt.MARKER]=new P4,t}(),DR=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}};H.CameraContribution=ww;H.AnimationTimeline=null;H.EasingFunction=null;H.offscreenCanvasCreator=new mR;H.sceneGraphSelector=new wR;H.sceneGraphService=new SR(H);H.textService=new RR(H);H.geometryUpdaterFactory=IR;H.CSSPropertySyntaxFactory=jR;H.styleValueRegistry=new b4(H);H.layoutRegistry=null;H.globalThis=DR();H.enableCSSParsing=!0;H.enableDataset=!1;H.enableStyleSyntax=!0;var $R=0,ay=new Gi(ht.INSERTED,null,"","","",0,"",""),oy=new Gi(ht.REMOVED,null,"","","",0,"",""),BR=new Dt(ht.DESTROY),FR=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.entity=$R++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:rh.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=H.enableCSSParsing?{anchor:Gt,opacity:Gt,fillOpacity:Gt,strokeOpacity:Gt,fill:Gt,stroke:Gt,transform:Gt,transformOrigin:Gt,visibility:Gt,pointerEvents:Gt,lineWidth:Gt,lineCap:Gt,lineJoin:Gt,increasedLineWidthForHitTesting:Gt,fontSize:Gt,fontFamily:Gt,fontStyle:Gt,fontWeight:Gt,fontVariant:Gt,textAlign:Gt,textBaseline:Gt,textTransform:Gt,zIndex:Gt,filter:Gt,shadowType:Gt}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(n){return n!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){throw new Error(It)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(pN);return H.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),ay.relatedNode=this,n.dispatchEvent(ay),n},e.prototype.insertBefore=function(n,r){if(!r)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var i=this.childNodes.indexOf(r);i===-1?this.appendChild(n):this.appendChild(n,i)}return n},e.prototype.replaceChild=function(n,r){var i=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(n,i),r},e.prototype.removeChild=function(n){var r;return oy.relatedNode=this,n.dispatchEvent(oy),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),H.sceneGraphService.detach(n),n},e.prototype.removeChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];this.removeChild(r)}},e.prototype.destroyChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];r.childNodes.length&&r.destroyChildren(),r.destroy()}},e.prototype.matches=function(n){return H.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return H.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return H.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return H.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return H.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return H.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return H.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(H.sceneGraphService.matches(n,r))return r;r=r.parentElement}while(r!==null);return null},e.prototype.find=function(n){var r=this,i=null;return this.forEach(function(a){return a!==r&&n(a)?(i=a,!0):!1}),i},e.prototype.findAll=function(n){var r=this,i=[];return this.forEach(function(a){a!==r&&n(a)&&i.push(a)}),i},e.prototype.after=function(){for(var n=this,r=[],i=0;i1){var i=n[0].currentPoint,a=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.path.segments,r=n.length,i=[];if(r>1){var a=n[r-2].currentPoint,o=n[r-1].currentPoint,s=n[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}(ze),Fu=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=this,i=n.style,a=$t(n,["style"]);r=t.call(this,z({type:G.POLYGON,style:H.enableCSSParsing?z({points:"",miterLimit:"",isClosed:!0},i):z({},i),initialParsedStyle:H.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a))||this,r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,c=o.markerEnd,l=o.markerMid;return s&&Mt(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&Mt(l)&&r.placeMarkerMid(l),c&&Mt(c)&&(r.markerEndAngle=c.getLocalEulerAngles(),r.appendChild(c)),r.transformMarker(!0),r.transformMarker(!1),r}return e.prototype.attributeChangedCallback=function(n,r,i,a,o){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(a&&Mt(a)&&(this.markerStartAngle=0,a.remove()),o&&Mt(o)&&(this.markerStartAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!0))):n==="markerEnd"?(a&&Mt(a)&&(this.markerEndAngle=0,a.remove()),o&&Mt(o)&&(this.markerEndAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(o)},e.prototype.transformMarker=function(n){var r=this.parsedStyle,i=r.markerStart,a=r.markerEnd,o=r.markerStartOffset,s=r.markerEndOffset,c=r.points,l=r.defX,u=r.defY,f=(c||{}).points,d=n?i:a;if(!(!d||!Mt(d)||!f)){var h=0,p,v,g,y,m,b;if(g=f[0][0]-l,y=f[0][1]-u,n)p=f[1][0]-f[0][0],v=f[1][1]-f[0][1],m=o||0,b=this.markerStartAngle;else{var x=f.length;this.parsedStyle.isClosed?(p=f[x-1][0]-f[0][0],v=f[x-1][1]-f[0][1]):(g=f[x-1][0]-l,y=f[x-1][1]-u,p=f[x-2][0]-f[x-1][0],v=f[x-2][1]-f[x-1][1]),m=s||0,b=this.markerEndAngle}h=Math.atan2(v,p),d.setLocalEulerAngles(h*180/Math.PI+b),d.setLocalPosition(g+Math.cos(h)*m,y+Math.sin(h)*m)}},e.prototype.placeMarkerMid=function(n){var r=this.parsedStyle,i=r.points,a=r.defX,o=r.defY,s=(i||{}).points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],n&&Mt(n)&&s)for(var c=1;c<(this.parsedStyle.isClosed?s.length:s.length-1);c++){var l=s[c][0]-a,u=s[c][1]-o,f=c===1?n:n.cloneNode(!0);this.markerMidList.push(f),this.appendChild(f),f.setLocalPosition(l,u)}},e}(ze),Qp=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.POLYLINE,style:H.enableCSSParsing?z({points:"",miterLimit:"",isClosed:!1},r):z({},r),initialParsedStyle:H.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i))||this}return e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(n,r){return r===void 0&&(r=!1),this.getPoint(n/this.getTotalLength(),r)},e.prototype.getPoint=function(n,r){r===void 0&&(r=!1);var i=this.parsedStyle,a=i.defX,o=i.defY,s=i.points,c=s.points,l=s.segments,u=0,f=0;l.forEach(function(g,y){n>=g[0]&&n<=g[1]&&(u=(n-g[0])/(g[1]-g[0]),f=y)});var d=mw(c[f][0],c[f][1],c[f+1][0],c[f+1][1],u),h=d.x,p=d.y,v=Oe(yt(),St(h-a,p-o,0),r?this.getWorldTransform():this.getLocalTransform());return new Ee(v[0],v[1])},e.prototype.getStartTangent=function(){var n=this.parsedStyle.points.points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.points.points,r=n.length-1,i=[];return i.push([n[r-1][0],n[r-1][1]]),i.push([n[r][0],n[r][1]]),i},e}(Fu),Zi=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.RECT,style:H.enableCSSParsing?z({x:"",y:"",width:"",height:"",radius:""},r):z({},r)},i))||this}return e}(ze),ei=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.TEXT,style:H.enableCSSParsing?z({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},r):z({fill:"black"},r),initialParsedStyle:H.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},i))||this}return e.prototype.getComputedTextLength=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}(ze),HR=function(){function t(){this.registry={},this.define(G.CIRCLE,Xs),this.define(G.ELLIPSE,Kp),this.define(G.RECT,Zi),this.define(G.IMAGE,Zp),this.define(G.LINE,Us),this.define(G.GROUP,Ce),this.define(G.PATH,Xe),this.define(G.POLYGON,Fu),this.define(G.POLYLINE,Qp),this.define(G.TEXT,ei),this.define(G.HTML,Bu)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),VR=function(t){rt(e,t);function e(){var n=t.call(this)||this;n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new H.AnimationTimeline(n)}catch{}var r={};return Vp.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=ga(s)?s(G.GROUP):s)}),n.documentElement=new Ce({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(n,r){if(n==="svg")return this.documentElement;var i=this.defaultView.customElements.get(n);i||(console.warn("Unsupported tagName: ",n),i=n==="tspan"?ei:Ce);var a=new i(r);return a.ownerDocument=this,a},e.prototype.createElementNS=function(n,r,i){return this.createElement(r,i)},e.prototype.cloneNode=function(n){throw new Error(It)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}},e.prototype.elementsFromBBox=function(n,r,i,a){var o=this.defaultView.context.rBushRoot,s=o.search({minX:n,minY:r,maxX:i,maxY:a}),c=[];return s.forEach(function(l){var u=l.displayObject,f=u.parsedStyle.pointerEvents,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!d||d&&u.isVisible())&&!u.isCulled()&&u.isInteractive()&&c.push(u)}),c.sort(function(l,u){return u.sortable.renderOrder-l.sortable.renderOrder}),c},e.prototype.elementFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return null;var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(n,r){return ka(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return Ta(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,null]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,[2,h&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return[];var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(n,r){return ka(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return Ta(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,[]]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,h[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(n,r){throw new Error(ra)},e.prototype.insertBefore=function(n,r){throw new Error(ra)},e.prototype.removeChild=function(n,r){throw new Error(ra)},e.prototype.replaceChild=function(n,r,i){throw new Error(ra)},e.prototype.append=function(){throw new Error(ra)},e.prototype.prepend=function(){throw new Error(ra)},e.prototype.getElementById=function(n){return this.documentElement.getElementById(n)},e.prototype.getElementsByName=function(n){return this.documentElement.getElementsByName(n)},e.prototype.getElementsByTagName=function(n){return this.documentElement.getElementsByTagName(n)},e.prototype.getElementsByClassName=function(n){return this.documentElement.getElementsByClassName(n)},e.prototype.querySelector=function(n){return this.documentElement.querySelector(n)},e.prototype.querySelectorAll=function(n){return this.documentElement.querySelectorAll(n)},e.prototype.find=function(n){return this.documentElement.find(n)},e.prototype.findAll=function(n){return this.documentElement.findAll(n)},e}(_e),XR=function(){function t(e){this.strategies=e}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,a=this.strategies;r.hooks.cull.tap(t.tag,function(o){if(o){var s=o.cullable;return a.length===0?s.visible=i.unculledEntities.indexOf(o.entity)>-1:s.visible=a.every(function(c){return c.isVisible(n,o)}),!o.isCulled()&&o.isVisible()?o:(o.dispatchEvent(new Dt(ht.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),UR=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new ch(null),this.rootWheelEvent=new lh(null),this.onPointerMove=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!(s.supportsTouchEvents&&n.pointerType==="touch")){var c=e.normalizeToPointerEvent(n,s);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView,c=e.normalizeToPointerEvent(n,s);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var o=n.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}).picked;return o[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(a){var o=n.normalizeWheelEvent(a);n.context.eventService.mapEvent(o)}),r.hooks.pointerDown.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.normalizeToPointerEvent(a,i);if(n.autoPreventDefault&&c[0].isNormalized){var l=a.cancelable||!("cancelable"in a);l&&a.preventDefault()}try{for(var u=vn(c),f=u.next();!f.done;f=u.next()){var d=f.value,h=n.bootstrapEvent(n.rootPointerEvent,d,i,a);n.context.eventService.mapEvent(h)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.context.contextService.getDomElement(),l="outside";try{l=c&&a.target&&a.target!==c&&c.contains&&!c.contains(a.target)?"outside":""}catch{}var u=n.normalizeToPointerEvent(a,i);try{for(var f=vn(u),d=f.next();!d.done;d=f.next()){var h=d.value,p=n.bootstrapEvent(n.rootPointerEvent,h,i,a);p.type+=l,n.context.eventService.mapEvent(p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(a){var o,s,c=n.normalizeToPointerEvent(a,i);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=n.bootstrapEvent(n.rootPointerEvent,f,i,a);n.context.eventService.mapEvent(d)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(e){var n,r,i=e.offsetX,a=e.offsetY,o=e.clientX,s=e.clientY;if(this.context.config.supportsCSSTransform&&!nt(i)&&!nt(a))n=i,r=a;else{var c=this.context.eventService.client2Viewport(new Ee(o,s));n=c.x,r=c.y}return{x:n,y:r}},t.prototype.bootstrapEvent=function(e,n,r,i){e.view=r,e.originalEvent=null,e.nativeEvent=i,e.pointerId=n.pointerId,e.width=n.width,e.height=n.height,e.isPrimary=n.isPrimary,e.pointerType=n.pointerType,e.pressure=n.pressure,e.tangentialPressure=n.tangentialPressure,e.tiltX=n.tiltX,e.tiltY=n.tiltY,e.twist=n.twist,this.transferMouseData(e,n);var a=this.getViewportXY(n),o=a.x,s=a.y;e.viewport.x=o,e.viewport.y=s;var c=this.context.eventService.viewport2Canvas(e.viewport),l=c.x,u=c.y;return e.canvas.x=l,e.canvas.y=u,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=i.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=W4[e.type]||e.type),e},t.prototype.normalizeWheelEvent=function(e){var n=this.rootWheelEvent;this.transferMouseData(n,e),n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ;var r=this.getViewportXY(e),i=r.x,a=r.y;n.viewport.x=i,n.viewport.y=a;var o=this.context.eventService.viewport2Canvas(n.viewport),s=o.x,c=o.y;return n.canvas.x=s,n.canvas.y=c,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=e,n.type=e.type,n},t.prototype.transferMouseData=function(e,n){e.isTrusted=n.isTrusted,e.srcElement=n.srcElement,e.timeStamp=sh.now(),e.type=n.type,e.altKey=n.altKey,e.metaKey=n.metaKey,e.shiftKey=n.shiftKey,e.ctrlKey=n.ctrlKey,e.button=n.button,e.buttons=n.buttons,e.client.x=n.clientX,e.client.y=n.clientY,e.movement.x=n.movementX,e.movement.y=n.movementY,e.page.x=n.pageX,e.page.y=n.pageY,e.screen.x=n.screenX,e.screen.y=n.screenY,e.relatedTarget=null},t.prototype.setCursor=function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(e,n){var r=[];if(n.isTouchEvent(e))for(var i=0;i-1,s=0,c=i.length;s=1?Math.ceil(P):1,M=s||z4(a)||a.width/P,E=c||G4(a)||a.height/P),o&&(H.offscreenCanvas=o),r.devicePixelRatio=P,r.requestAnimationFrame=p??Bw.bind(H.globalThis),r.cancelAnimationFrame=v??Fw.bind(H.globalThis),r.supportsTouchEvents=m??"ontouchstart"in H.globalThis,r.supportsPointerEvents=y??!!H.globalThis.PointerEvent,r.isTouchEvent=S??function(T){return r.supportsTouchEvents&&T instanceof H.globalThis.TouchEvent},r.isMouseEvent=_??function(T){return!H.globalThis.MouseEvent||T instanceof H.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(T instanceof H.globalThis.PointerEvent))},r.initRenderingContext({container:i,canvas:a,width:M,height:E,renderer:u,offscreenCanvas:o,devicePixelRatio:P,cursor:d||"default",background:f||"transparent",createImage:g,document:h,supportsCSSTransform:b,useNativeClickEvent:w,alwaysTriggerPointerEventOnCanvas:O}),r.initDefaultCamera(M,E,u.clipSpaceNearZ),r.initRenderer(u,!0),r}return e.prototype.initRenderingContext=function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(n,r,i){var a=this,o=new H.CameraContribution;o.clipSpaceNearZ=i,o.setType(Tt.EXPLORING,ds.DEFAULT).setPosition(n/2,r/2,cy).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,QR,JR),o.canvas=this,o.eventEmitter.on(xw.UPDATED,function(){a.context.renderingContext.renderReasons.add(Qr.CAMERA_CHANGED)}),this.context.camera=o},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){n.resolveReadyPromise=function(){r(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!1),r||this.dispatchEvent(new Dt(an.BEFORE_DESTROY)),this.frameId){var i=this.getConfig().cancelAnimationFrame||cancelAnimationFrame;i(this.frameId)}var a=this.getRoot();this.unmountChildren(a),n&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),r||this.dispatchEvent(new Dt(an.AFTER_DESTROY))},e.prototype.changeSize=function(n,r){this.resize(n,r)},e.prototype.resize=function(n,r){var i=this.context.config;i.width=n,i.height=r,this.getContextService().resize(n,r);var a=this.context.camera,o=a.getProjectionMode();a.setPosition(n/2,r/2,cy).setFocalPoint(n/2,r/2,0),o===tn.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new Dt(an.RESIZE,{width:n,height:r}))},e.prototype.appendChild=function(n,r){return this.document.documentElement.appendChild(n,r)},e.prototype.insertBefore=function(n,r){return this.document.documentElement.insertBefore(n,r)},e.prototype.removeChild=function(n){return this.document.documentElement.removeChild(n)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var n=this;this.dispatchEvent(t6);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(e6)}),this.dispatchEvent(n6)},e.prototype.run=function(){var n=this,r=function(){n.render(),n.frameId=n.requestAnimationFrame(r)};r()},e.prototype.initRenderer=function(n,r){var i=this;if(r===void 0&&(r=!1),!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new UR,new ZR,new XR([new KR])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService(z(z({},H),this.context)),this.context.renderingService=new bR(H,this.context),this.context.eventService=new yR(H,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,r,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,r)})},e.prototype.initRenderingService=function(n,r,i){var a=this;r===void 0&&(r=!1),i===void 0&&(i=!1),this.context.renderingService.init(function(){a.inited=!0,r?(i?a.requestAnimationFrame(function(){a.dispatchEvent(new Dt(an.READY))}):a.dispatchEvent(new Dt(an.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new Dt(an.RENDERER_CHANGED)),r||a.getRoot().forEach(function(o){var s=o.renderable;s&&(s.renderBoundsDirty=!0,s.boundsDirty=!0,s.dirty=!0)}),a.mountChildren(a.getRoot()),n.getConfig().enableAutoRendering&&a.run()})},e.prototype.loadRendererContainerModule=function(n){var r=this,i=n.getPlugins();i.forEach(function(a){a.context=r.context,a.init(H)})},e.prototype.setRenderer=function(n){var r=this.getConfig();if(r.renderer!==n){var i=r.renderer;r.renderer=n,this.destroy(!1,!0),q([],N(i==null?void 0:i.getPlugins()),!1).reverse().forEach(function(a){a.destroy(H)}),this.initRenderer(n)}},e.prototype.setCursor=function(n){var r=this.getConfig();r.cursor=n,this.getContextService().applyCursorStyle(n)},e.prototype.unmountChildren=function(n){var r=this;n.childNodes.forEach(function(i){r.unmountChildren(i)}),this.inited&&(n.isMutationObserved?n.dispatchEvent(Hf):(Hf.target=n,this.dispatchEvent(Hf,!0)),n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1),n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()},e.prototype.mountChildren=function(n){var r=this;this.inited?n.isConnected||(n.ownerDocument=this.document,n.isConnected=!0,n.isMutationObserved?n.dispatchEvent(Wf):(Wf.target=n,this.dispatchEvent(Wf,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName),n.childNodes.forEach(function(i){r.mountChildren(i)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()},e.prototype.client2Viewport=function(n){return this.getEventService().client2Viewport(n)},e.prototype.viewport2Client=function(n){return this.getEventService().viewport2Client(n)},e.prototype.viewport2Canvas=function(n){return this.getEventService().viewport2Canvas(n)},e.prototype.canvas2Viewport=function(n){return this.getEventService().canvas2Viewport(n)},e.prototype.getPointByClient=function(n,r){return this.client2Viewport({x:n,y:r})},e.prototype.getClientByPoint=function(n,r){return this.viewport2Client({x:n,y:r})},e}(Gw),r6=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.landmarks=[],n}return e.prototype.rotate=function(n,r,i){if(this.relElevation=Oa(r),this.relAzimuth=Oa(n),this.relRoll=Oa(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===Tt.EXPLORING){var a=Hr(ve(),[1,0,0],re((this.rotateWorld?1:-1)*this.relElevation)),o=Hr(ve(),[0,1,0],re((this.rotateWorld?1:-1)*this.relAzimuth)),s=Hr(ve(),[0,0,1],re(this.relRoll)),c=qr(ve(),o,a);c=qr(ve(),c,s);var l=dp(Nt(),c);Ur(this.matrix,this.matrix,[0,0,-this.distance]),$e(this.matrix,this.matrix,l),Ur(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===Tt.ORBITING||this.type===Tt.EXPLORING?this._getPosition():this.type===Tt.TRACKING&&this._getFocalPoint(),this._update(),this},e.prototype.pan=function(n,r){var i=We(n,r,0),a=br(this.position);return ba(a,a,Cd(yt(),this.right,i[0])),ba(a,a,Cd(yt(),this.up,i[1])),this._setPosition(a),this.triggerUpdate(),this},e.prototype.dolly=function(n){var r=this.forward,i=br(this.position),a=n*this.dollyingStep,o=this.distance+n*this.dollyingStep;return a=Math.max(Math.min(o,this.maxDistance),this.minDistance)-this.distance,i[0]+=a*r[0],i[1]+=a*r[1],i[2]+=a*r[2],this._setPosition(i),this.type===Tt.ORBITING||this.type===Tt.EXPLORING?this._getDistance():this.type===Tt.TRACKING&&ba(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this},e.prototype.cancelLandmarkAnimation=function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},e.prototype.createLandmark=function(n,r){var i,a,o,s;r===void 0&&(r={});var c=r.position,l=c===void 0?this.position:c,u=r.focalPoint,f=u===void 0?this.focalPoint:u,d=r.roll,h=r.zoom,p=new H.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],(i=l[1])!==null&&i!==void 0?i:this.position[1],(a=l[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(d??this.roll),p.setZoom(h??this.zoom);var v={name:n,matrix:lp(p.getWorldTransform()),right:br(p.right),up:br(p.up),forward:br(p.forward),position:br(p.getPosition()),focalPoint:br(p.getFocalPoint()),distanceVector:br(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(v),v},e.prototype.gotoLandmark=function(n,r){var i=this;r===void 0&&(r={});var a=le(n)?this.landmarks.find(function(E){return E.name===n}):n;if(a){var o=de(r)?{duration:r}:r,s=o.easing,c=s===void 0?"linear":s,l=o.duration,u=l===void 0?100:l,f=o.easingFunction,d=f===void 0?void 0:f,h=o.onfinish,p=h===void 0?void 0:h,v=o.onframe,g=v===void 0?void 0:v,y=.01;if(u===0){this.syncFromLandmark(a),p&&p();return}this.cancelLandmarkAnimation();var m=a.position,b=a.focalPoint,x=a.zoom,w=a.roll,O=d||H.EasingFunction(c),S,_=function(){i.setFocalPoint(b),i.setPosition(m),i.setRoll(w),i.setZoom(x),i.computeMatrix(),i.triggerUpdate(),p&&p()},M=function(E){S===void 0&&(S=E);var P=E-S;if(P>u){_();return}var T=O(P/u),A=yt(),k=yt(),C=1,L=0;Ld(A,i.focalPoint,b,T),Ld(k,i.position,m,T),L=i.roll*(1-T)+w*T,C=i.zoom*(1-T)+x*T,i.setFocalPoint(A),i.setPosition(k),i.setRoll(L),i.setZoom(C);var I=Kv(A,b)+Kv(k,m);if(I<=y&&x==null&&w==null){_();return}i.computeMatrix(),i.triggerUpdate(),P0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||this.playState==="running"||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):e==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():e==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new Vf(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()},t.prototype.updatePlaybackRate=function(e){this.playbackRate=e},t.prototype.targetAnimations=function(){var e,n=(e=this.effect)===null||e===void 0?void 0:e.target;return n.getAnimations()},t.prototype.markTarget=function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)},t.prototype.unmarkTarget=function(){var e=this.targetAnimations(),n=e.indexOf(this);n!==-1&&e.splice(n,1)},t.prototype.tick=function(e,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(e))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw new Error(It)},t.prototype.addEventListener=function(e,n,r){throw new Error(It)},t.prototype.removeEventListener=function(e,n,r){throw new Error(It)},t.prototype.dispatchEvent=function(e){throw new Error(It)},t.prototype.commitStyles=function(){throw new Error(It)},t.prototype.ensureAlive=function(){var e,n;this.playbackRate<0&&this.currentTime===0?this._inEffect=!!(!((e=this.effect)===null||e===void 0)&&e.update(-1)):this._inEffect=!!(!((n=this.effect)===null||n===void 0)&&n.update(this.currentTime)),!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(e,n){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(e){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new Vf(null,this,this.currentTime,e);setTimeout(function(){n.onfinish&&n.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var i=new Vf(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),o6=4,s6=.001,c6=1e-7,l6=10,Po=11,yc=1/(Po-1),u6=typeof Float32Array=="function",Vw=function(t,e){return 1-3*e+3*t},Xw=function(t,e){return 3*e-6*t},Uw=function(t){return 3*t},Rl=function(t,e,n){return((Vw(e,n)*t+Xw(e,n))*t+Uw(e))*t},qw=function(t,e,n){return 3*Vw(e,n)*t*t+2*Xw(e,n)*t+Uw(e)},f6=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=Rl(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>c6&&++s=s6?d6(s,d,t,n):h===0?d:f6(s,c,c+yc,t,n)};return function(s){return s===0||s===1?s:Rl(o(s),e,r)}},h6=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},mc=function(t){return Math.pow(t,2)},bc=function(t){return Math.pow(t,3)},xc=function(t){return Math.pow(t,4)},wc=function(t){return Math.pow(t,5)},Oc=function(t){return Math.pow(t,6)},Sc=function(t){return 1-Math.cos(t*Math.PI/2)},_c=function(t){return 1-Math.sqrt(1-t*t)},Mc=function(t){return t*t*(3*t-2)},Ec=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((e*3-2)/22-t,2)},Pc=function(t,e){e===void 0&&(e=[]);var n=N(e,2),r=n[0],i=r===void 0?1:r,a=n[1],o=a===void 0?.5:a,s=ce(Number(i),1,10),c=ce(Number(o),.1,2);return t===0||t===1?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/c)},wo=function(t,e,n){e===void 0&&(e=[]);var r=N(e,4),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?100:o,c=r[2],l=c===void 0?10:c,u=r[3],f=u===void 0?0:u;a=ce(a,.1,1e3),s=ce(s,.1,1e3),l=ce(l,.1,1e3),f=ce(f,.1,1e3);var d=Math.sqrt(s/a),h=l/(2*Math.sqrt(s*a)),p=h<1?d*Math.sqrt(1-h*h):0,v=1,g=h<1?(h*d+-f)/p:-f+d,y=n?n*t/1e3:t;return h<1?y=Math.exp(-y*h*d)*(v*Math.cos(p*y)+g*Math.sin(p*y)):y=(v+g*y)*Math.exp(-y*d),t===0||t===1?t:1-y},Xf=function(t,e){e===void 0&&(e=[]);var n=N(e,2),r=n[0],i=r===void 0?10:r,a=n[1],o=a=="start"?Math.ceil:Math.floor;return o(ce(t,0,1)*i)/i},ly=function(t,e){e===void 0&&(e=[]);var n=N(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return Jp(r,i,a,o)(t)},Ac=Jp(.42,0,1,1),Sn=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},_n=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?t(e*2,n,r)/2:1-t(e*-2+2,n,r)/2}},Mn=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?(1-t(1-e*2,n,r))/2:(t(e*2-1,n,r)+1)/2}},uy={steps:Xf,"step-start":function(t){return Xf(t,[1,"start"])},"step-end":function(t){return Xf(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":ly,ease:function(t){return ly(t,[.25,.1,.25,1])},in:Ac,out:Sn(Ac),"in-out":_n(Ac),"out-in":Mn(Ac),"in-quad":mc,"out-quad":Sn(mc),"in-out-quad":_n(mc),"out-in-quad":Mn(mc),"in-cubic":bc,"out-cubic":Sn(bc),"in-out-cubic":_n(bc),"out-in-cubic":Mn(bc),"in-quart":xc,"out-quart":Sn(xc),"in-out-quart":_n(xc),"out-in-quart":Mn(xc),"in-quint":wc,"out-quint":Sn(wc),"in-out-quint":_n(wc),"out-in-quint":Mn(wc),"in-expo":Oc,"out-expo":Sn(Oc),"in-out-expo":_n(Oc),"out-in-expo":Mn(Oc),"in-sine":Sc,"out-sine":Sn(Sc),"in-out-sine":_n(Sc),"out-in-sine":Mn(Sc),"in-circ":_c,"out-circ":Sn(_c),"in-out-circ":_n(_c),"out-in-circ":Mn(_c),"in-back":Mc,"out-back":Sn(Mc),"in-out-back":_n(Mc),"out-in-back":Mn(Mc),"in-bounce":Ec,"out-bounce":Sn(Ec),"in-out-bounce":_n(Ec),"out-in-bounce":Mn(Ec),"in-elastic":Pc,"out-elastic":Sn(Pc),"in-out-elastic":_n(Pc),"out-in-elastic":Mn(Pc),spring:wo,"spring-in":wo,"spring-out":Sn(wo),"spring-in-out":_n(wo),"spring-out-in":Mn(wo)},p6=function(t){return h6(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},v6=function(t){return uy[p6(t)]||uy.linear},g6=function(t){return t},y6=1,m6=.5,fy=0;function dy(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var kc="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b6=new RegExp("cubic-bezier\\("+kc+","+kc+","+kc+","+kc+"\\)"),x6=/steps\(\s*(\d+)\s*\)/,w6=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function t0(t){var e=b6.exec(t);if(e)return Jp.apply(void 0,q([],N(e.slice(1).map(Number)),!1));var n=x6.exec(t);if(n)return dy(Number(n[1]),fy);var r=w6.exec(t);return r?dy(Number(r[1]),{start:y6,middle:m6,end:fy}[r[2]]):v6(t)}function O6(t){return Math.abs(S6(t)/(t.playbackRate||1))}function S6(t){var e;return t.duration===0||t.iterations===0?0:(t.duration==="auto"?0:Number(t.duration))*((e=t.iterations)!==null&&e!==void 0?e:1)}var Kw=0,e0=1,zu=2,Zw=3;function _6(t,e,n){if(e===null)return Kw;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?zu:Zw}function M6(t,e,n,r,i){switch(r){case e0:return e==="backwards"||e==="both"?0:null;case Zw:return n-i;case zu:return e==="forwards"||e==="both"?t:null;case Kw:return null}}function E6(t,e,n,r,i){var a=i;return t===0?e!==e0&&(a+=n):a+=r/t,a}function P6(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===zu&&r!==0&&(i!==0||a===0)&&(o=1),o}function A6(t,e,n,r){return t===zu&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function k6(t,e,n){var r=t;if(t!=="normal"&&t!=="reverse"){var i=e;t==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function T6(t,e,n){var r=_6(t,e,n),i=M6(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=E6(a,r,n.iterations,i,n.iterationStart),s=P6(o,n.iterationStart,r,n.iterations,i,a),c=A6(r,n.iterations,s,o),l=k6(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function C6(t,e,n){var r=L6(t,e),i=N6(r,n);return function(a,o){if(o!==null)i.filter(function(c){return o>=c.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");l.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));l[u]=f}return l.offset===void 0&&(l.offset=null),l.easing===void 0&&(l.easing=(e==null?void 0:e.easing)||"linear"),l.composite===void 0&&(l.composite="auto"),l}),r=!0,i=-1/0,a=0;a=0&&Number(c.offset)<=1});function s(){var c,l,u=n.length;n[u-1].computedOffset=Number((c=n[u-1].offset)!==null&&c!==void 0?c:1),u>1&&(n[0].computedOffset=Number((l=n[0].offset)!==null&&l!==void 0?l:0));for(var f=0,d=Number(n[0].computedOffset),h=1;hthis.createElement(e),r=[];if(this._data!==null){for(let i=0;ii,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],c=new Set,l=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=te(this._elements,h=>r(h.__data__));for(let h=0;ho,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=e(this._enter),s=n(this._update),c=r(this._exit),l=i(this._merge),u=a(this._split);return s.merge(o).merge(c).merge(l).merge(u)}remove(){for(let e=0;ei.finished)).then(()=>{this._elements[e].remove()})}else this._elements[e].remove()}return new Ae([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let n=0;nn:n;return this.each(function(i,a,o){n!==void 0&&(o[e]=r(i,a,o))})}style(e,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[e]=r(i,a,o))})}transition(e){const n=typeof e!="function"?()=>e:e,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(e,n){return this.each(function(r,i,a){a.addEventListener(e,n)}),this}call(e,...n){return e(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}};Il.registry={g:Ce,rect:Zi,circle:Xs,path:Xe,text:ei,ellipse:Kp,image:Zp,line:Us,polygon:Fu,polyline:Qp,html:Bu};function Tc(t,e,n){return Math.max(e,Math.min(t,n))}function jl(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}function at(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function W6(t,e){return e.forEach((n,r)=>r===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function H6(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Jt(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),s=Math.PI/2-o-a,c=[e[0]-i*Math.sin(s),e[1]-i*Math.cos(s)],l=o-a,u=[e[0]-i*Math.cos(l),e[1]-i*Math.sin(l)];return[c,u]}function vs(t,e,n,r,i){const a=Nn(se(r,e))+Math.PI,o=Nn(se(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function tO(t,e,n,r="y",i="between",a=!1){const o=(g,y)=>g==="y"||g===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:e,c=o(r,a),l=Ui(s),[u,f]=Mr(l,g=>s[g]),d=new Yt({domain:[u,f],range:[0,100]}),h=g=>de(s[g])&&!Number.isNaN(s[g])?d.map(s[g]):0,p={between:g=>`${t[g]} ${h(g)}%`,start:g=>g===0?`${t[g]} ${h(g)}%`:`${t[g-1]} ${h(g)}%, ${t[g]} ${h(g)}%`,end:g=>g===t.length-1?`${t[g]} ${h(g)}%`:`${t[g]} ${h(g)}%, ${t[g+1]} ${h(g)}%`},v=l.sort((g,y)=>h(g)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${c}deg, ${v})`}function Gu(t){const[e,n,r,i]=t;return[i,e,n,r]}function Qi(t,e,n){const[r,i,,a]=qt(t)?Gu(e):e,[o,s]=n,c=t.getCenter(),l=ja(se(r,c)),u=ja(se(i,c)),f=u===l&&o!==s?u+Math.PI*2:u;return{startAngle:l,endAngle:f-l>=0?f:Math.PI*2+f,innerRadius:Jt(a,c),outerRadius:Jt(r,c)}}function eO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function nO(t,e){if(!Ht(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function rO(t){if(t.length===1)return t[0];const[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}var nl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?P:P+A,L=k>0?T:T+k,I=Math.abs(A),R=Math.abs(k),j=C+s,D=L+c,$=I-(s+l),B=R-(c+u),F=_?Tc($,y,1/0):Tc($,v,g),Y=_?Tc(B,v,g):Tc(B,y,1/0),U=_?j:j-(F-$)/2,K=_?D-(Y-B)/2:D-(Y-B);return st(t.createElement("rect",{})).style("x",U).style("y",K).style("width",F).style("height",Y).style("radius",[h,p,d,f]).call(at,m).node()}const{y:b,y1:x}=n,w=r.getCenter(),O=Qi(r,e,[b,x]),S=Cu().cornerRadius(o).padAngle(a*Math.PI/180);return st(t.createElement("path",{})).style("path",S(O)).style("transform",`translate(${w[0]}, ${w[1]})`).style("radius",o).style("inset",a).call(at,m).node()}const qs=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=nl(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=nl(f,["color","radius"]),v=p.lineWidth||1,{stroke:g,radius:y=h,radiusTopLeft:m=y,radiusTopRight:b=y,radiusBottomRight:x=y,radiusBottomLeft:w=y,innerRadius:O=0,innerRadiusTopLeft:S=O,innerRadiusTopRight:_=O,innerRadiusBottomRight:M=O,innerRadiusBottomLeft:E=O,lineWidth:P=n==="stroke"||g?v:0,inset:T=0,insetLeft:A=T,insetRight:k=T,insetBottom:C=T,insetTop:L=T,minWidth:I,maxWidth:R,minHeight:j}=o,D=nl(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:$=d,opacity:B}=u,F=[i?m:S,i?b:_,a?x:M,a?w:E],Y=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];qt(s)&&Y.push(Y.shift());const U=Object.assign(Object.assign({radius:y},Object.fromEntries(Y.map((K,V)=>[K,F[V]]))),{inset:T,insetLeft:A,insetRight:k,insetBottom:C,insetTop:L,minWidth:I,maxWidth:R,minHeight:j});return st(iO(c,l,u,s,U)).call(at,p).style("fill","transparent").style(n,$).style(eO(t),B).style("lineWidth",P).style("stroke",g===void 0?$:g).call(at,D).node()}};qs.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ji=(t,e)=>qs(Object.assign({colorAttribute:"fill"},t),e);Ji.props=Object.assign(Object.assign({},qs.props),{defaultMarker:"square"});const Yu=(t,e)=>qs(Object.assign({colorAttribute:"stroke"},t),e);Yu.props=Object.assign(Object.assign({},qs.props),{defaultMarker:"hollowSquare"});var gy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{adjustPoints:n=V6}=t,r=gy(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=gy(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!qt(i),[g,y,m,b]=v?Gu(p):p,{color:x=f,opacity:w}=s,O=Jr().curve(jp)([g,y,m,b]);return st(a.createElement("path",{})).call(at,d).style("path",O).style("fill",x).style("fillOpacity",w).call(at,r).node()}};n0.props={defaultMarker:"square"};function X6(t,e,n){const[r,i,a,o]=t;if(qt(n)){const l=[e?e[0][0]:(i[0]+a[0])/2,i[1]],u=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,l,u,o]}const s=[i[0],e?e[0][1]:(i[1]+a[1])/2],c=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,s,c,o]}const aO=(t,e)=>n0(Object.assign({adjustPoints:X6},t),e);aO.props={defaultMarker:"square"};function Fa(t){const e=typeof t=="function"?t:t.render;return class extends qp{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}var yy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;st(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(at,r),st(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(at,i)});function q6(t,e){const n=[],r=[];let i=!1,a=null;for(const o of t)!e(o[0])||!e(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const Dn=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=t,s=yy(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=yy(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:x}=f,w=nO(c,f),O=qt(c),S=r&&m?tO(m,b,x,r,i,O):g,_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),S&&{stroke:S}),y&&{lineWidth:y}),w&&{transform:w}),s);let M;if(Ht(c)){const C=c.getCenter();M=L=>wL().angle((I,R)=>ja(se(L[R],C))).radius((I,R)=>Jt(L[R],C)).defined(([I,R])=>a(I)&&a(R)).curve(n)(L)}else M=Jr().x(C=>C[0]).y(C=>C[1]).defined(([C,L])=>a(C)&&a(L)).curve(n);const[E,P]=q6(u,a),T=Q(_,"connect"),A=!!P.length;if(!A||o&&!Object.keys(T).length)return st(l.createElement("path",{})).style("d",M(E)||[]).call(at,_).node();if(A&&!o)return st(l.createElement("path",{})).style("d",M(u)).call(at,_).node();const k=C=>C.map(M).join(",");return st(new U6).style("style1",Object.assign(Object.assign({},_),T)).style("style2",_).style("d1",k(P)).style("d2",M(u)).node()}};Dn.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const oO=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Ht(n)?jp:Ys;return Dn(Object.assign({curve:i},t),e)(...r)}};oO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"line"});var K6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=K6(t,[]),{coordinate:r}=e;return(...i)=>{const a=Ht(r)?ew:qt(r)?ow:aw;return Dn(Object.assign({curve:a},n),e)(...i)}};sO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"smooth"});const cO=(t,e)=>Dn(Object.assign({curve:lw},t),e);cO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"hv"});const lO=(t,e)=>Dn(Object.assign({curve:cw},t),e);lO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"vh"});const uO=(t,e)=>Dn(Object.assign({curve:sw},t),e);uO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"hvh"});var Z6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:c}=a,l=Z6(a,["color"]),u=jn();for(let f=0;f[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];r0.style=["fill"];const dO=r0.bind(void 0);dO.style=["stroke","lineWidth"];const Wu=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Wu.style=["fill"];const hO=Wu.bind(void 0);hO.style=["fill"];const pO=Wu.bind(void 0);pO.style=["stroke","lineWidth"];const i0=(t,e,n)=>{const r=n*.618;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};i0.style=["fill"];const vO=i0.bind(void 0);vO.style=["stroke","lineWidth"];const a0=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};a0.style=["fill"];const gO=a0.bind(void 0);gO.style=["stroke","lineWidth"];const o0=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};o0.style=["fill"];const yO=o0.bind(void 0);yO.style=["stroke","lineWidth"];const s0=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};s0.style=["fill"];const mO=s0.bind(void 0);mO.style=["stroke","lineWidth"];const c0=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};c0.style=["fill"];const bO=c0.bind(void 0);bO.style=["stroke","lineWidth"];const xO=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];xO.style=["stroke","lineWidth"];const wO=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];wO.style=["stroke","lineWidth"];const OO=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];OO.style=["stroke","lineWidth"];const SO=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];SO.style=["stroke","lineWidth"];const _O=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];_O.style=["stroke","lineWidth"];const l0=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];l0.style=["stroke","lineWidth"];const MO=l0.bind(void 0);MO.style=["stroke","lineWidth"];const EO=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];EO.style=["stroke","lineWidth"];const PO=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];PO.style=["stroke","lineWidth"];const AO=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];AO.style=["stroke","lineWidth"];const kO=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];kO.style=["stroke","lineWidth"];const TO=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];TO.style=["stroke","lineWidth"];const Dl=new Map([["bowtie",c0],["cross",wO],["dash",MO],["diamond",i0],["dot",l0],["hexagon",s0],["hollowBowtie",bO],["hollowDiamond",vO],["hollowHexagon",mO],["hollowPoint",dO],["hollowSquare",pO],["hollowTriangle",gO],["hollowTriangleDown",yO],["hv",PO],["hvh",kO],["hyphen",_O],["line",xO],["plus",SO],["point",r0],["rect",hO],["smooth",EO],["square",Wu],["tick",OO],["triangleDown",o0],["triangle",a0],["vh",AO],["vhv",TO]]);function tI(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=J6(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=Dl.get(t)||Dl.get("point");return(...f)=>new Xe({style:Object.assign(Object.assign({},l),{path:u(...f),stroke:u.style.includes("stroke")?c||o:"",fill:u.style.includes("fill")?c||r:"",lineWidth:u.style.includes("lineWidth")?s||s||2:0})})}var eI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=eI(t,["colorAttribute","symbol","mode"]),o=Dl.get(r)||Dl.get("point"),{coordinate:s,document:c}=e;return(l,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:v=h,transform:g,opacity:y}=u,[m,b]=rO(l),w=nI(i,l,u,s)||a.r||f.r;return st(c.createElement("path",{})).call(at,f).style("fill","transparent").style("d",o(m,b,w)).style("lineWidth",p).style("transform",g).style("stroke",v).style(eO(t),y).style(n,v).call(at,a).node()}};bt.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);CO.props=Object.assign({defaultMarker:"hollowBowtie"},bt.props);const LO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);LO.props=Object.assign({defaultMarker:"hollowDiamond"},bt.props);const NO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);NO.props=Object.assign({defaultMarker:"hollowHexagon"},bt.props);const RO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);RO.props=Object.assign({defaultMarker:"hollowPoint"},bt.props);const IO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);IO.props=Object.assign({defaultMarker:"hollowSquare"},bt.props);const jO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);jO.props=Object.assign({defaultMarker:"hollowTriangle"},bt.props);const DO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);DO.props=Object.assign({defaultMarker:"hollowTriangleDown"},bt.props);const $O=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);$O.props=Object.assign({defaultMarker:"bowtie"},bt.props);const BO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);BO.props=Object.assign({defaultMarker:"cross"},bt.props);const FO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);FO.props=Object.assign({defaultMarker:"diamond"},bt.props);const zO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);zO.props=Object.assign({defaultMarker:"hexagon"},bt.props);const GO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);GO.props=Object.assign({defaultMarker:"hyphen"},bt.props);const YO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);YO.props=Object.assign({defaultMarker:"line"},bt.props);const WO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);WO.props=Object.assign({defaultMarker:"plus"},bt.props);const HO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);HO.props=Object.assign({defaultMarker:"point"},bt.props);const VO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);VO.props=Object.assign({defaultMarker:"square"},bt.props);const XO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);XO.props=Object.assign({defaultMarker:"tick"},bt.props);const UO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);UO.props=Object.assign({defaultMarker:"triangle"},bt.props);const qO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);qO.props=Object.assign({defaultMarker:"triangleDown"},bt.props);var my=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n=!0,arrowSize:r="40%"}=t,i=my(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=my(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=jn();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=H6(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return st(a.createElement("path",{})).call(at,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(at,i).node()}};u0.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function KO(t,e){e(t),t.children&&t.children.forEach(function(n){n&&KO(n,e)})}function Ks(t){Hu(t,!0)}function li(t){Hu(t,!1)}function Hu(t,e){var n=e?"visible":"hidden";KO(t,function(r){r.attr("visibility",n)})}var rI=function(t){rt(e,t);function e(){for(var n=[],r=0;r=this.left&&e<=this.right&&n>=this.top&&n<=this.bottom},t}();function Rn(t,e){return Ve(t)?t.apply(void 0,q([],N(e),!1)):t}var $n=function(t,e){var n=function(i){return"".concat(e,"-").concat(i)},r=Object.fromEntries(Object.entries(t).map(function(i){var a=N(i,2),o=a[0],s=a[1],c=n(s);return[o,{name:c,class:".".concat(c),id:"#".concat(c),toString:function(){return c}}]}));return Object.assign(r,{prefix:n}),r},aI=5,JO=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=aI),Object.entries(e).forEach(function(i){var a=N(i,2),o=a[0],s=a[1],c=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?Cr(s)?(Cr(t[o])||(c[o]={}),ne&&tr&&(r=d),h>i&&(i=h)}return new Qt(e,n,r-e,i-n)}var hI=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=a===void 0?"row":a;n.flexWrap;var s=n.justifyContent,c=s===void 0?"flex-start":s;n.alignContent;var l=n.alignItems,u=l===void 0?"flex-start":l,f=o==="row",d=o==="row"||o==="column",h=f?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],p=N([0,0],2),v=p[0],g=p[1],y=e.map(function(_){var M,E=_.width,P=_.height,T=N([v,g],2),A=T[0],k=T[1];return M=N([v+E*h[0],g+P*h[1]],2),v=M[0],g=M[1],new Qt(A,k,E,P)}),m=by(y),b={"flex-start":0,"flex-end":f?r-m.width:i-m.height,center:f?(r-m.width)/2:(i-m.height)/2},x=y.map(function(_){var M=_.x,E=_.y,P=Qt.fromRect(_);return P.x=f?M+b[c]:M,P.y=f?E:E+b[c],P});by(x);var w=function(_){var M=N(f?["height",i]:["width",r],2),E=M[0],P=M[1];switch(u){case"flex-start":return 0;case"flex-end":return P-_[E];case"center":return P/2-_[E]/2;default:return 0}},O=x.map(function(_){var M=_.x,E=_.y,P=Qt.fromRect(_);return P.x=f?M:M+w(P),P.y=f?E+w(P):E,P}),S=O.map(function(_){var M,E,P=Qt.fromRect(_);return P.x+=(M=t.x)!==null&&M!==void 0?M:0,P.y+=(E=t.y)!==null&&E!==void 0?E:0,P});return S},pI=function(t,e,n){return[]};const vI=function(t,e,n){if(e.length===0)return[];var r={flex:hI,grid:pI},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]};function Or(t,e){return[t[0]*e,t[1]*e]}function Ao(t,e){return[t[0]+e[0],t[1]+e[1]]}function Uf(t,e){return[t[0]-e[0],t[1]-e[1]]}function wi(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function Oi(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function gs(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function iS(t){if(t[0]===0&&t[1]===0)return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function gI(t,e){return e?[t[1],-t[0]]:[-t[1],t[0]]}function fh(t,e){return+t.toPrecision(e)}function xy(t,e){var n={},r=Array.isArray(e)?e:[e];for(var i in t)r.includes(i)||(n[i]=t[i]);return n}function yI(t,e,n,r){var i,a=[],o=!!r,s,c,l=[1/0,1/0],u=[-1/0,-1/0],f,d,h;if(o){i=N(r,2),l=i[0],u=i[1];for(var p=0,v=t.length;p="A"&&n<="Z"};function vt(t,e,n){n===void 0&&(n=!1);var r={};return Object.entries(t).forEach(function(i){var a=N(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(Lc(o,"show")&&Lc(Sy(o,"show"),e)!==n)o===kI(e,"show")?r[o]=s:r[o.replace(new RegExp(p0(e)),"")]=s;else if(!Lc(o,"show")&&Lc(o,e)!==n){var c=Sy(o,e);c==="filter"&&typeof s=="function"||(r[c]=s)}}}),r}function Jn(t,e){return Object.entries(t).reduce(function(n,r){var i=N(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(e).concat(a.slice(4))]=o:n["".concat(e).concat(p0(a))]=o,n},{})}function Rr(t,e){e===void 0&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(a){var o=N(a,2),s=o[0],c=o[1];e.includes(s)||(n.indexOf(s)!==-1?i[s]=c:r[s]=c)}),[r,i]}function CI(t,e,n){var r=t.getBBox(),i=r.width,a=r.height,o=N([e,n].map(function(l,u){var f;return l.includes("%")?parseFloat(((f=l.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||f===void 0?void 0:f[0])||"0")/100*(u===0?i:a):l}),2),s=o[0],c=o[1];return[s,c]}function Bl(t,e){if(e)try{var n=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,r=e.replace(n,function(i,a,o){return"translate(".concat(CI(t,a,o),")")});t.attr("transform",r)}catch{}}function LI(t){var e;return((e=t[0])===null||e===void 0?void 0:e.map(function(n,r){return t.map(function(i){return i[r]})}))||[]}function NI(){Hu(this,this.attributes.visibility!=="hidden")}var Pe=function(t){rt(e,t);function e(n,r){r===void 0&&(r={});var i=t.call(this,Nr({},{style:r},n))||this;return i.initialized=!1,i._defaultOptions=r,i}return Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=ZO(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},e.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},e.prototype.attributeChangedCallback=function(n){n==="visibility"&&NI.call(this)},e.prototype.update=function(n,r){var i;return this.attr(Nr({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.bindEvents=function(n,r){},e}(qp),aS=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},RI=aS,II=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},jI=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},DI=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},$I=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},BI=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},FI=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},oS=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},zI=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},GI=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},YI=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},WI=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},sS=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},HI=sS,VI=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},XI=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},UI=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},qI=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function KI(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var ZI=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function QI(t){var e="default";if(ki(t)&&t instanceof Image)e="image";else if(Ve(t))e="symbol";else if(le(t)){var n=new RegExp("data:(image|text)");t.match(n)?e="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?e="url":e="symbol"}return e}function JI(t){var e=QI(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var Bt=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.symbol,a=n.size,o=a===void 0?16:a,s=$t(n,["symbol","size"]),c=JI(i);on(!!c,dt(r),function(l){l.maybeAppendByClassName("marker",c).attr("className","marker ".concat(c,"-marker")).call(function(u){if(c==="image"){var f=o*2;u.styles({img:i,width:f,height:f,x:-o,y:-o})}else{var f=o/2,d=Ve(i)?i:e.getSymbol(i);u.styles(z({path:d==null?void 0:d(0,0,f)},s))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(n,r){e.MARKER_SYMBOL_MAP.set(n,r)},e.getSymbol=function(n){return e.MARKER_SYMBOL_MAP.get(n)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Pe);Bt.registerSymbol("cross",zI);Bt.registerSymbol("hyphen",WI);Bt.registerSymbol("line",oS);Bt.registerSymbol("plus",YI);Bt.registerSymbol("tick",GI);Bt.registerSymbol("circle",aS);Bt.registerSymbol("point",RI);Bt.registerSymbol("bowtie",FI);Bt.registerSymbol("hexagon",BI);Bt.registerSymbol("square",II);Bt.registerSymbol("diamond",jI);Bt.registerSymbol("triangle",DI);Bt.registerSymbol("triangle-down",$I);Bt.registerSymbol("line",oS);Bt.registerSymbol("dot",sS);Bt.registerSymbol("dash",HI);Bt.registerSymbol("smooth",VI);Bt.registerSymbol("hv",XI);Bt.registerSymbol("vh",UI);Bt.registerSymbol("hvh",qI);Bt.registerSymbol("vhv",KI);var t8=function(t){rt(e,t);function e(n){var r=this,i=n.style,a=$t(n,["style"]);return r=t.call(this,X({},{type:"column"},z({style:i},a)))||this,r.columnsGroup=new Ce({name:"columns"}),r.appendChild(r.columnsGroup),r.render(),r}return e.prototype.render=function(){var n=this.attributes.columns;dt(this.columnsGroup).selectAll(".column").data(n.flat()).join(function(r){return r.append("rect").attr("className","column").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},e.prototype.update=function(n){this.attr(Nr({},this.attributes,n)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(ze),e8=function(t){rt(e,t);function e(n){var r=this,i=n.style,a=$t(n,["style"]);return r=t.call(this,X({},{type:"lines"},z({style:i},a)))||this,r.linesGroup=r.appendChild(new Ce),r.areasGroup=r.appendChild(new Ce),r.render(),r}return e.prototype.render=function(){var n=this.attributes,r=n.lines,i=n.areas;r&&this.renderLines(r),i&&this.renderAreas(i)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(n){this.attr(Nr({},this.attributes,n)),this.render()},e.prototype.renderLines=function(n){dt(this.linesGroup).selectAll(".line").data(n).join(function(r){return r.append("path").attr("className","line").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},e.prototype.renderAreas=function(n){dt(this.linesGroup).selectAll(".area").data(n).join(function(r){return r.append("path").attr("className","area").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.style(i)})},function(r){return r.remove()})},e}(ze);function n8(t,e){var n,r=e.x,i=e.y,a=N(i.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(n=N([o,s],2),s=n[0],o=n[1]),t.map(function(c){var l=c.map(function(u,f){return[r.map(f),ce(i.map(u),s,o)]});return l})}function ys(t,e){e===void 0&&(e=!1);var n=e?t.length-1:0,r=t.map(function(i,a){return q([a===n?"M":"L"],N(i),!1)});return e?r.reverse():r}function Fl(t,e){if(e===void 0&&(e=!1),t.length<=2)return ys(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=ys(a),s=void 0;if(i===0)s=v0(o,e,n);else{var c=t[i-1],l=ys(c,!0);l[0][0]="L",s=q(q(q([],N(o),!1),N(l),!1),[["Z"]],!1)}r.push(s)}return r}function a8(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=Fl(a),s=void 0;if(i===0)s=v0(o,e,n);else{var c=t[i-1],l=Fl(c,!0),u=a[0];l[0][0]="L",s=q(q(q([],N(o),!1),N(l),!1),[q(["M"],N(u),!1),["Z"]],!1)}r.push(s)}return r}function _y(t){return t.length===0?[0,0]:[hl(Lk(t,function(e){return hl(e)||0})),dl(Ck(t,function(e){return dl(e)||0}))]}function My(t){for(var e=Jo(t),n=e[0].length,r=N([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o=0?(s[c]+=i[c],i[c]=s[c]):(s[c]+=a[c],a[c]=s[c]);return e}var o8=function(t){rt(e,t);function e(n){return t.call(this,n,{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(e.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=Jo(n);return de(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?My(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var n=this.scales.y,r=N(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=vt(this.attributes,"area"),c=vt(this.attributes,"line"),l=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=n8(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?a8(p,l,g):i8(p,l,g):v=r8(p,o,l,g)}return{lines:p.map(function(y,m){return z({stroke:n.getColor(m),path:o?Fl(y):ys(y)},c)}),areas:v.map(function(y,m){return z({path:y,fill:n.getColor(m)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var n=this,r=vt(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var c=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};a&&(l=My(l));var u=this.createScales(l),f=u.x,d=u.y,h=N(_y(l),2),p=h[0],v=h[1],g=new Yt({domain:[0,v-(p>0?0:p)],range:[0,c*s]}),y=f.getBandWidth(),m=this.rawData;return{columns:l.map(function(b,x){return b.map(function(w,O){var S=y/l.length,_=function(){return{x:f.map(O)+S*x,y:w>=0?d.map(w):d.map(0),width:S,height:g.map(Math.abs(w))}},M=function(){return{x:f.map(O),y:d.map(w),width:y,height:g.map(m[x][O])}};return z(z({fill:n.getColor(x)},r),a?M():_())})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){MI(r,".container","rect").attr("className","container").node();var i=n.type,a="spark".concat(i),o=i==="line"?this.linesStyle:this.columnsStyle;dt(r).selectAll(".spark").data([i]).join(function(s){return s.append(function(c){return c==="line"?new e8({className:a,style:o}):new t8({className:a,style:o})}).attr("className","spark ".concat(a))},function(s){return s.update(o)},function(s){return s.remove()})},e.prototype.getColor=function(n){var r=this.attributes.color;return Le(r)?r[n%r.length]:Ve(r)?r.call(null,n):r},e.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,c=a.range,l=c===void 0?[]:c,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=N(_y(n),2),v=p[0],g=p[1],y=new Yt({domain:[(r=l[0])!==null&&r!==void 0?r:v,(i=l[1])!==null&&i!==void 0?i:g],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Yt({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new Ia({domain:n[0].map(function(m,b){return b}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},e.tag="sparkline",e}(Pe);function s8(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function Ey(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(r){var i=N(r,1),a=i[0];return!e.includes(a)}));return Object.fromEntries(e.map(function(r){return s8(t)?t[r]===!1?[r,!1]:[r,z(z({},t[r]),n)]:[r,n]}))}function ro(t,e){t?t.finished.then(e):e()}function c8(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function cS(t,e){"update"in t?t.update(e):t.attr(e)}function lS(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return cS(t,{style:r}),null}return t.animate(e,n)}function l8(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function u8(t,e,n,r){if(r===void 0&&(r="destroy"),l8(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&li(t),e.isVisible()&&Ks(e)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,c=s===void 0?0:s,l=Math.ceil(+o/2),u=+o/4,f=function(P){if(P.nodeName==="circle"){var T=N(P.getLocalPosition(),2),A=T[0],k=T[1],C=P.attr("r");return[A-C,k-C]}return P.getLocalPosition()},d=N(f(t),2),h=d[0],p=d[1],v=N(f(e),2),g=v[0],y=v[1],m=N([(h+g)/2-h,(p+y)/2-p],2),b=m[0],x=m[1],w=t.style.opacity,O=w===void 0?1:w,S=e.style.opacity,_=S===void 0?1:S,M=t.animate([{opacity:O,transform:"translate(0, 0)"},{opacity:0,transform:"translate(".concat(b,", ").concat(x,")")}],z(z({fill:"both"},n),{duration:c+l+u})),E=e.animate([{opacity:0,transform:"translate(".concat(-b,", ").concat(-x,")"),offset:.01},{opacity:_,transform:"translate(0, 0)"}],z(z({fill:"both"},n),{duration:l+u,delay:c+l-u}));return ro(E,i),[M,E]}function Vn(t,e,n){var r={},i={};return Object.entries(e).forEach(function(a){var o=N(a,2),s=o[0],c=o[1];if(!nt(c)){var l=t.style[s]||t.parsedStyle[s]||0;l!==c&&(r[s]=l,i[s]=c)}}),n?lS(t,[r,i],z({fill:"both"},n)):(cS(t,i),null)}function Vu(t,e){return t.style.opacity||(t.style.opacity=1),Vn(t,{opacity:0},e)}var uS={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},fS={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},dS={orientation:"horizontal",showLabel:!0,type:"start"},Zn=$n({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),Yr=$n({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),f8=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.size,a=i===void 0?10:i,o=n.radius,s=o===void 0?a/4:o,c=n.orientation,l=$t(n,["size","radius","orientation"]),u=a,f=u*2.4,d=dt(r).maybeAppendByClassName(Yr.iconRect,"rect").styles(z(z({},l),{width:u,height:f,radius:s,x:-u/2,y:-f/2})),h=1/3*u,p=2/3*u,v=1/4*f,g=3/4*f;d.maybeAppendByClassName("".concat(Yr.iconLine,"-1"),"line").styles(z({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(Yr.iconLine,"-2"),"line").styles(z({x1:p,x2:p,y1:v,y2:g},l)),d.node().setOrigin(u/2,f/2),c==="vertical"?r.setLocalEulerAngles(90):r.setLocalEulerAngles(0)},e}(Pe),hS=function(t){rt(e,t);function e(n){return t.call(this,n,dS)||this}return e.prototype.renderLabel=function(n){var r=this,i=this.attributes.showLabel,a=vt(this.attributes,"label"),o=a.transform,s=$t(a,["transform"]),c=N(Rr(s,[]),2),l=c[0],u=c[1],f=dt(n).maybeAppendByClassName(Yr.labelGroup,"g").styles(u),d=z(z({},fS),l),h=d.text,p=$t(d,["text"]);on(!!i,f,function(v){r.label=v.maybeAppendByClassName(Yr.label,"text").styles(z(z({},p),{transform:o,text:"".concat(h)})),r.label.on("mousedown",function(g){g.stopPropagation()}),r.label.on("touchstart",function(g){g.stopPropagation()})})},e.prototype.renderIcon=function(n){var r=this.attributes,i=r.orientation,a=r.type,o=z(z({orientation:i},uS),vt(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new f8({style:o})}:s,l=dt(n).maybeAppendByClassName(Yr.iconGroup,"g");l.selectAll(Yr.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",Yr.icon.name)},function(u){return u.update(o)},function(u){return u.remove()})},e.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},e}(Pe),pS=function(t){rt(e,t);function e(n){var r=t.call(this,n,z(z(z({animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},Jn(dS,"handle")),Jn(uS,"handleIcon")),Jn(fS,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal($l(a));var o=r.availableSpace,s=o.x,c=o.y,l=r.getBBox(),u=l.x,f=l.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,c])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,c=a.type;i.stopPropagation();var l=r.getOrientVal($l(i)),u=l-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,c==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break}r.prevPos=l}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,c=s==="range"?i:i[1],l=s==="range"?r.getValues():r.getValues()[1],u=new Dt("valuechange",{detail:{oldValue:c,value:l}});r.dispatchEvent(u),o==null||o(l)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=vt(this.attributes,"sparkline");return z(z({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=N(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.padding,r=N(Te(n),4),i=r[0],a=r[1],o=r[2],s=r[3],c=this.shape,l=c.width,u=c.height;return{x:s,y:i,width:l-(s+a),height:u-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},e.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(Zn.selection.class).each(function(i,a){Vn(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Vn(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Vn(this.endHandle,this.getHandleStyle("end"),n))},e.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},e.prototype.renderTrack=function(n){var r=vt(this.attributes,"track");this.trackShape=dt(n).maybeAppendByClassName(Zn.track,"rect").styles(z(z({},this.shape),r))},e.prototype.renderBrushArea=function(n){var r=this.attributes.brushable;this.brushArea=dt(n).maybeAppendByClassName(Zn.brushArea,"rect").styles(z({fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(n){var r=this,i=this.attributes.orientation,a=dt(n).maybeAppendByClassName(Zn.sparklineGroup,"g");on(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(Zn.sparkline,function(){return new o8({style:s})}).update(s)})},e.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],c=a?s:[],l=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(Zn.handle.class).data(c.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new hS({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(Zn.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");l[h]=this,this.addEventListener("pointerdown",l.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(l.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");l[h]=void 0}).remove()})},e.prototype.renderSelection=function(n){var r=this.attributes,i=r.type,a=r.selectionType;this.foregroundGroup=dt(n).maybeAppendByClassName(Zn.foreground,"g");var o=vt(this.attributes,"selection"),s=function(l){return l.style("visibility",function(u){return u.show?"visible":"hidden"}).style("cursor",function(u){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(o)},c=this;this.foregroundGroup.selectAll(Zn.selection.class).data(i==="value"?[]:this.calcSelectionArea().map(function(l,u){return{style:z({},l),index:u,show:a==="select"?u===1:u!==1}}),function(l){return l.index}).join(function(l){return l.append("rect").attr("className",Zn.selection.name).call(s).each(function(u,f){var d=this;f===1?(c.selectionShape=dt(this),this.on("pointerdown",function(h){d.attr("cursor","grabbing"),c.onDragStart("selection")(h)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){d.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){d.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){d.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(l){return l.call(s)},function(l){return l.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},e.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=N(this.range,2),o=a[0],s=a[1],c=N(this.getValues().map(function(g){return fh(g,r)}),2),l=c[0],u=c[1],f=Array.isArray(n)?n:[l,n??u],d=N((f||[l,u]).map(function(g){return fh(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,ce(p,o,s)];h>p&&(i=N([p,h],2),h=i[0],p=i[1]);var v=p-h;return v>s-o?[o,s]:hs?u===s&&l===h?[h,s]:[s-v,s]:[h,p]},e.prototype.calcSelectionArea=function(n){var r=N(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,c=o.y,l=o.width,u=o.height;return this.getOrientVal([[{y:c,height:u,x:s,width:i*l},{y:c,height:u,x:i*l+s,width:(a-i)*l},{y:c,height:u,x:a*l,width:(1-a)*l}],[{x:s,width:l,y:c,height:i*u},{x:s,width:l,y:i*u+c,height:(a-i)*u},{x:s,width:l,y:a*u,height:(1-a)*u}]])},e.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,c=i.height,l=N(this.clampValues(),2),u=l[0],f=l[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,c])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([c/2,h])}},e.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transform:"rotate(90)",textAlign:"start"}:n==="end"?{transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,c=i.autoFitLabel,l=vt(this.attributes,"handle"),u=vt(l,"label"),f=l.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],v=s(p),g=new f0({style:z(z(z({},u),this.inferTextStyle(n)),{text:v})}),y=g.getBBox(),m=y.width,b=y.height;if(g.destroy(),!c){if(a==="value")return{text:v,x:0,y:-b-f};var x=f+d+(o==="horizontal"?m/2:0);return r={text:v},r[o==="horizontal"?"x":"y"]=n==="start"?-x:x,r}var w=0,O=0,S=this.availableSpace,_=S.width,M=S.height,E=this.calcSelectionArea()[1],P=E.x,T=E.y,A=E.width,k=E.height,C=f+d;if(o==="horizontal"){var L=C+m/2;if(n==="start"){var I=P-C-m;w=I>0?-L:L}else{var R=_-P-A-C>m;w=R?L:-L}}else{var j=C,D=b+C;n==="start"?O=T-d>b?-D:j:O=M-(T+k)-d>b?D:-j}return{x:w,y:O,text:v}},e.prototype.getHandleLabelStyle=function(n){var r=vt(this.attributes,"handleLabel");return z(z(z({},r),this.calcHandleText(n)),this.inferTextStyle(n))},e.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=vt(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return z({cursor:i,shape:n,size:a},r)},e.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.showLabel,a=r.showLabelOnInteraction,o=r.orientation,s=this.calcHandlePosition(n),c=this.calcHandleText(n),l=i;return!i&&a&&(this.target?l=!0:l=!1),z(z(z(z({},Jn(this.getHandleIconStyle(),"icon")),Jn(z(z({},this.getHandleLabelStyle(n)),c),"label")),s),{orientation:o,showLabel:l,type:n,zIndex:3})},e.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},e.prototype.getOrientVal=function(n){var r=N(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},e.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=N(this.getValues(),2),s=o[0],c=o[1],l=a==="range"?n:0,u=[s+l,c+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},e.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},e.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new Dt(i,{detail:o}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},e.tag="slider",e}(Pe),d8=function(t){rt(e,t);function e(n){var r=t.call(this,n,{isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new Dt("scroll",o)),r.dispatchEvent(new Dt("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=N(r.getLocalPosition(),2),s=o[0],c=o[1],l=N(r.padding,4),u=l[0],f=l[3],d=r.getOrientVal([s+f,c+u]),h=r.getOrientVal($l(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Dt("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Dt("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Dt("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Dt("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return Te(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var n=this.attributes.value,r=N(this.range,2),i=r[0],a=r[1];return ce(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=N(this.padding,4),a=i[0],o=i[1],s=i[2],c=i[3],l=N(this.getOrientVal([[r,n],[n,r]]),2),u=l[0],f=l[1];return{x:c,y:a,width:+u-(c+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=N(this.range,2),c=s[0],l=s[1],u=n*(l-c-o);return[u,u+o]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(n){var r=this.attributes,i=r.orientation,a=r.trackSize,o=r.padding,s=r.slidable,c=vt(this.attributes,"track"),l=vt(this.attributes,"thumb"),u=z(z({brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},Jn(c,"track")),Jn(l,"selection"));this.slider=dt(n).maybeAppendByClassName("scrollbar",function(){return new pS({style:u})}).update(u).node()},e.prototype.render=function(n,r){this.renderSlider(r)},e.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=N(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues(ce(n,o,s)),r),this.onValueChange(i)},e.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},e.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(Pe),g0={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new Xe({style:{path:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],anchor:"0.5 0.5",fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};X({},g0,{style:{type:"arc"}});X({},g0,{style:{}});var Rt=$n({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"),Ga=$n({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function vS(t){return t.reduce(function(e,n,r){return e.push(q([r===0?"M":"L"],N(n),!1)),e},[])}function h8(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return vS(t);if(!a)return[];var o=gs(t[0],a),s=n?0:1;return t.reduce(function(c,l,u){return u===0?c.push(q(["M"],N(l),!1)):c.push(q(["A",o,o,0,0,s],N(l),!1)),c},[])}function dh(t,e,n){return e.type==="surround"?h8(t,e,n):vS(t)}function p8(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=N([dh(t,n),dh(e.slice().reverse(),n,!0)],2),l=c[0],u=c[1],f=N([t[0],e.slice(-1)[0]],2),d=f[0],h=f[1],p=function(m,b){return[l,m,u,b,s].flat()};if(i==="line"||r==="surround")return p([q(["L"],N(h),!1)],[q(["L"],N(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=N([gs(h,a),gs(d,a)],2),g=v[0],y=v[1];return p([q(["A",g,g,0,0,1],N(h),!1),q(["L"],N(h),!1)],[q(["A",y,y,0,0,0],N(d),!1),q(["L"],N(d),!1)])}function v8(t,e,n,r){var i=n.animate,a=n.isBillboard,o=e.map(function(s,c){return{id:s.id||"grid-line-".concat(c),path:dh(s.points,n)}});return t.selectAll(Ga.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(c,l){var u=Rn(wy(z({path:c.path},r)),[c,l,o]);this.attr(z({class:Ga.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(c,l){var u=Rn(wy(z({path:c.path},r)),[c,l,o]);return Vn(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=Vu(this,i.exit);return ro(l,function(){return c.remove()}),l})}).transitions()}function g8(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},c=[],l=0;l180?1:0,_=t>e?0:1;return"M".concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(S,",").concat(_,",").concat(y,",").concat(m)}function w8(t){var e=t.attributes,n=e.startAngle,r=e.endAngle,i=e.center,a=e.radius;return q(q([n,r],N(i),!1),[a],!1)}function O8(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(Rt.line.class).data([{path:Py.apply(void 0,q(q([i,a],N(o),!1),[s],!1))}],function(c,l){return l}).join(function(c){return c.append("path").attr("className",Rt.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=dI(this,w8(this),q(q([i,a],N(o),!1),[s],!1),r.update);if(u){var f=function(){var d=je(l.attributes,"__keyframe_data__");l.style.path=Py.apply(void 0,q([],N(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(e)},function(c){return c.remove()}).styles(n).transitions()}function S8(t,e){e.truncRange,e.truncShape,e.lineExtension}function _8(t,e,n){n===void 0&&(n=[0,0]);var r=N([t,e,n],3),i=N(r[0],2),a=i[0],o=i[1],s=N(r[1],2),c=s[0],l=s[1],u=N(r[2],2),f=u[0],d=u[1],h=N([c-a,l-o],2),p=h[0],v=h[1],g=Math.sqrt(Math.pow(p,2)+Math.pow(v,2)),y=N([-f/g,d/g],2),m=y[0],b=y[1];return[m*p,m*v,b*p,b*v]}function Ay(t){var e=N(t,2),n=N(e[0],2),r=n[0],i=n[1],a=N(e[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function M8(t,e,n,r){var i=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,c=e.lineExtension,l=N([a,o],2),u=N(l[0],2),f=u[0],d=u[1],h=N(l[1],2),p=h[0],v=h[1],g=N(c?_8(a,o,c):new Array(4).fill(0),4),y=g[0],m=g[1],b=g[2],x=g[3],w=function(R){return t.selectAll(Rt.line.class).data(R,function(j,D){return D}).join(function(j){return j.append("line").attr("className",function(D){return"".concat(Rt.line.name," ").concat(D.className)}).styles(n).transition(function(D){return Vn(this,Ay(D.line),!1)})},function(j){return j.styles(n).transition(function(D){var $=D.line;return Vn(this,Ay($),r.update)})},function(j){return j.remove()}).transitions()};if(!i||!s)return w([{line:[[f+y,d+m],[p+b,v+x]],className:Rt.line.name}]);var O=N(s,2),S=O[0],_=O[1],M=p-f,E=v-d,P=N([f+M*S,d+E*S],2),T=P[0],A=P[1],k=N([f+M*_,d+E*_],2),C=k[0],L=k[1],I=w([{line:[[f+y,d+m],[T,A]],className:Rt.lineFirst.name},{line:[[C,L],[p+b,v+x]],className:Rt.lineSecond.name}]);return S8(t,e),I}function E8(t,e,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,c=n.lineArrowSize,l;if(e==="arc"?l=t.select(Rt.line.class):a?l=t.select(Rt.lineSecond.class):l=t.select(Rt.line.class),!i||!o||n.type==="arc"&&xS(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=Yi(o);f.attr(r),h0(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function P8(t,e,n){var r=e.type,i,a=vt(e,"line");return r==="linear"?i=M8(t,e,xy(a,"arrow"),n):i=O8(t,e,xy(a,"arrow"),n),E8(t,r,e,a),i}function A8(t,e){return m0(t,e.gridDirection,e)}function wS(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function k8(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=N(Uu(a,e),2),s=o[0],c=o[1],l=N(Or(A8(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function T8(t,e){var n=e.gridControlAngles,r=wS(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=N(r,2),a=i[0],o=i[1];return t.map(function(s,c){var l=s.value,u=N(Uu(l,e),2),f=u[0],d=u[1],h=N([f-a,d-o],2),p=h[0],v=h[1],g=[];return n.forEach(function(y){var m=za(y),b=N([Math.cos(m),Math.sin(m)],2),x=b[0],w=b[1],O=p*x-v*w+a,S=p*w+v*x+o;g.push([O,S])}),{points:g,id:c}})}function C8(t,e,n,r){var i=vt(n,"grid"),a=i.type,o=i.areaFill,s=wS(n),c=y0(e,n.gridFilter),l=a==="segment"?k8(c,n):T8(c,n),u=z(z({},i),{center:s,areaFill:Ve(o)?c.map(function(f,d){return Rn(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(Rt.grid.class).data([1]).join(function(f){return f.append(function(){return new m8({style:u})}).attr("className",Rt.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}var hh=function(){function t(e,n,r,i){this.set(e,n,r,i)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),t.prototype.rotatedPoints=function(e,n,r){var i=this,a=i.x1,o=i.y1,s=i.x2,c=i.y2,l=Math.cos(e),u=Math.sin(e),f=n-n*l+r*u,d=r-n*u-r*l,h=[[l*a-u*c+f,u*a+l*c+d],[l*s-u*c+f,u*s+l*c+d],[l*a-u*o+f,u*a+l*o+d],[l*s-u*o+f,u*s+l*o+d]];return h},t.prototype.set=function(e,n,r,i){return r0,m=r-c,b=i-l,x=d*b-h*m;if(x<0===y)return!1;var w=p*b-v*m;return!(w<0===y||x>g===y||w>g===y)}function D8(t,e){var n=[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]];return n.some(function(r){return j8(e,r)})}function $8(t,e,n){var r,i,a=ph(t,n).flat(1),o=ph(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var c=vn(s),l=c.next();!l.done;l=c.next()){var u=l.value;if(D8(o,u))return!0}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return!1}function B8(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if(n==="arc"){var a=t.center,o=t.radius,s=N(a,2),c=s[0],l=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=N(Te(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new hh(c+f-y,l+f-p,c+d+v,l+d+g)}var m=N(t.startPos,2),b=m[0],x=m[1],w=N(t.endPos,2),O=w[0],S=w[1],_=N(bS(t)?[-e,0,e,0]:[0,e,0,-e],4),M=_[0],E=_[1],P=_[2],T=_[3],A=Zs(0,t),k=Or(A,i),C=new hh(b,x,O,S);return C.x1+=T,C.y1+=M,C.x2+=E+k[0],C.y2+=P+k[1],C}function qu(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=B8(e,a),l=function(p){return c?I8(c,p):!0},u=function(p,v){return p?!$8(p,v,Te(n)):!0};try{for(var f=vn(t),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function qf(t,e){return e===void 0&&(e={}),nt(t)?0:typeof t=="number"?t:Math.floor(oI(t,e))}function F8(t,e,n,r){if(!(t.length<=1)){var i=e.suffix,a=i===void 0?"...":i,o=e.minLength,s=e.maxLength,c=s===void 0?1/0:s,l=e.step,u=l===void 0?" ":l,f=e.margin,d=f===void 0?[0,0,0,0]:f,h=eS(r.getTextShape(t[0])),p=qf(u,h),v=o?qf(o,h):p,g=qf(c,h);(nt(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(O){return b0(O).width})));var y=t.slice(),m=N(d,4);m[0],m[1],m[2],m[3];for(var b=function(O){if(y.forEach(function(S){r.ellipsis(r.getTextShape(S),O,a)}),y=qu(t,n,d),y.length<1)return{value:void 0}},x=g;x>v+p;x-=p){var w=b(x);if(typeof w=="object")return w.value}}}var z8={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(li(i),!1):!0})}},G8=function(t){return t.filter(tS)};function Y8(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=z8.parity,c=function(b){return b.forEach(r.show),b},l=2,u=t.slice(),f=t.slice(),d=Math.min.apply(Math,q([1],N(t.map(function(b){return b0(b).width})),!1));if(n.type==="linear"&&(mS(n)||bS(n))){var h=Oy(t[0]).left,p=Oy(t[i-1]).right,v=Math.abs(p-h)||1;l=Math.max(Math.floor(i*d/v),l)}var g,y;for(a&&(g=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),c(u);ls)){for(var y=h;y<=s;y++)if(g(y),p())return;l&&g(d)}}var X8=new Map([["hide",Y8],["rotate",W8],["ellipsis",F8],["wrap",V8]]);function U8(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!iI(t[0]):n==="rotate"?!t.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?t.filter(function(r){return r.querySelector("text")}).length>1:!0}function q8(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=X8.get(o);U8(t,e,o)&&(s==null||s(t,a,e,n))})}function K8(){for(var t=[],e=0;e2?[t[0]]:t.split("")}function sj(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),c=e.getBBox(),l=Ku(r),u=N(Te(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=N(Te(a),4),g=v[0],y=v[1],m=v[2],b=v[3],x=N([p+d,f+h],2),w=x[0],O=x[1],S=N([b+y,g+m],2),_=S[0],M=S[1];if(l[0]==="l")return new Qt(s.x,s.y,c.width+s.width+w+_,Math.max(c.height+M,s.height));if(l[0]==="t")return new Qt(s.x,s.y,Math.max(c.width+_,s.width),c.height+s.height+O+M);var E=N([e.attributes.width||c.width,e.attributes.height||c.height],2),P=E[0],T=E[1];return new Qt(c.x,c.y,P+s.width+w+_,T+s.height+O+M)}function cj(t,e){var n=Object.entries(e).reduce(function(r,i){var a=N(i,2),o=a[0],s=a[1],c=t.node().attr(o);return c||(r[o]=s),r},{});t.styles(n)}function lj(t){var e,n,r,i,a=t,o=a.width,s=a.height,c=a.position,l=N([+o/2,+s/2],2),u=l[0],f=l[1],d=N([+u,+f,"center","middle"],4),h=d[0],p=d[1],v=d[2],g=d[3],y=Ku(c);return y.includes("l")&&(e=N([0,"start"],2),h=e[0],v=e[1]),y.includes("r")&&(n=N([+o,"end"],2),h=n[0],v=n[1]),y.includes("t")&&(r=N([0,"top"],2),p=r[0],g=r[1]),y.includes("b")&&(i=N([+s,"bottom"],2),p=i[0],g=i[1]),{x:h,y:p,textAlign:v,textBaseline:g}}var MS=function(t){rt(e,t);function e(n){return t.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return e.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,c=r.inset,l=n.querySelector(Ry.text.class);if(!l)return new Qt(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=N(Te(s),4),p=h[0],v=h[1],g=h[2],y=h[3],m=N([0,0,+i,+a],4),b=m[0],x=m[1],w=m[2],O=m[3],S=Ku(o);if(S.includes("i"))return new Qt(b,x,w,O);S.forEach(function(L,I){var R,j,D,$;L==="t"&&(R=N(I===0?[d+g,+a-d-g]:[0,+a],2),x=R[0],O=R[1]),L==="r"&&(j=N([+i-f-y],1),w=j[0]),L==="b"&&(D=N([+a-d-p],1),O=D[0]),L==="l"&&($=N(I===0?[f+v,+i-f-v]:[0,+i],2),b=$[0],w=$[1])});var _=N(Te(c),4),M=_[0],E=_[1],P=_[2],T=_[3],A=N([T+E,M+P],2),k=A[0],C=A[1];return new Qt(b+T,x+M,w-k,O-C)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Qt(0,0,0,0)},e.prototype.render=function(n,r){var i=this;n.width,n.height,n.position,n.spacing;var a=$t(n,["width","height","position","spacing"]),o=N(Rr(a),1),s=o[0],c=lj(n),l=c.x,u=c.y,f=c.textAlign,d=c.textBaseline;on(!!a.text,dt(r),function(h){i.title=h.maybeAppendByClassName(Ry.text,"text").styles(s).call(cj,{x:l,y:u,textAlign:f,textBaseline:d}).node()})},e}(Pe);function uj(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=Ku(i),s=t.node().getLocalBounds(),c=N(s.min,2),l=c[0],u=c[1],f=N(s.halfExtents,2),d=f[0],h=f[1],p=N(e.node().getLocalBounds().halfExtents,2),v=p[0],g=p[1],y=N([l+d,u+h],2),m=y[0],b=y[1],x=N(Te(a),4),w=x[0],O=x[1],S=x[2],_=x[3];if(["start","end"].includes(i)&&n.type==="linear"){var M=n.startPos,E=n.endPos,P=N(i==="start"?[M,E]:[E,M],2),T=P[0],A=P[1],k=iS([-A[0]+T[0],-A[1]+T[1]]),C=N(Or(k,w),2),L=C[0],I=C[1];return{x:T[0]+L,y:T[1]+I}}return o.includes("t")&&(b-=h+g+w),o.includes("r")&&(m+=d+v+O),o.includes("l")&&(m-=d+v*2+_),o.includes("b")&&(b+=h+g*2+S),{x:m,y:b}}function fj(t,e,n){var r=t.cloneNode(!0);r.style.transform="scale(1, 1)",r.style.transform="none";var i=r.getBBox().height;if(e==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function Iy(t,e,n,r,i){var a=vt(r,"title"),o=N(Rr(a),2),s=o[0],c=o[1],l=c.transform,u=$t(c,["transform"]);t.styles(s),e.styles(u);var f=l||fj(t.node(),s.direction,s.position);Bl(t.node(),f);var d=uj(dt(n._offscreen||n.querySelector(Rt.mainGroup.class)),e,r),h=d.x,p=d.y,v=Vn(e.node(),{x:h,y:p},i);return Bl(t.node(),f),v}function dj(t,e,n,r){var i=n.titleText;return t.selectAll(Rt.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return Yi(i)}).attr("className",Rt.title.name).transition(function(){return Iy(dt(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return Iy(dt(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function jy(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(Rt.lineGroup,"g"),c=on(i,s,function(h){return P8(h,t,r)})||[],l=e.maybeAppendByClassName(Rt.tickGroup,"g"),u=on(a,l,function(h){return oj(h,n,t,r)})||[],f=e.maybeAppendByClassName(Rt.labelGroup,"g"),d=on(o,f,function(h){return ej(h,n,t,r)})||[];return q(q(q([],N(c),!1),N(u),!1),N(d),!1).filter(function(h){return!!h})}var x0=function(t){rt(e,t);function e(n){return t.call(this,n,g0)||this}return e.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,c=n.animate,l=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=wI(s,f).filter(function(w){var O=w.value;return!(d&&O>d[0]&&O1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var n=this.pageViews,r=N(LI(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,q([],N(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,c=s===void 0?i:s,l=o.pageHeight,u=l===void 0?a:l;return{pageWidth:c,pageHeight:u}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=t.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,c=o.pageHeight;return new Qt(r,i,s+a.width,c)},e.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,c=a.playWindow,l=a.pageViews;if(s!=="idle"||n<0||l.length<=0||n>=l.length)return null;l[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=N(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=lS(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return ro(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},e.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:ce(i-1,0,r);return this.goTo(a)},e.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:ce(i+1,0,r);return this.goTo(a)},e.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(En.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?Ks(r):li(r)})},e.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,c=o.controllerPadding,l=a.getBBox(),u=l.width;l.height;var f=N(s==="horizontal"?[-180,0]:[-90,90],2),d=f[0],h=f[1];r.setLocalEulerAngles(d),i.setLocalEulerAngles(h);var p=r.getBBox(),v=p.width,g=p.height,y=i.getBBox(),m=y.width,b=y.height,x=Math.max(v,u,m),w=s==="horizontal"?{offset:[[0,0],[v/2+c,0],[v+u+c*2,0]],textAlign:"start"}:{offset:[[x/2,-g-c],[x/2,0],[x/2,b+c]],textAlign:"center"},O=N(w.offset,3),S=N(O[0],2),_=S[0],M=S[1],E=N(O[1],2),P=E[0],T=E[1],A=N(O[2],2),k=A[0],C=A[1],L=w.textAlign,I=a.querySelector("text");I&&(I.style.textAlign=L),r.setLocalPosition(_,M),a.setLocalPosition(P,T),i.setLocalPosition(k,C)},e.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(En.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,c=n=2,l=n.maybeAppendByClassName(En.controller,"g");if(Hu(l.node(),c),!!c){var u=vt(this.attributes,"button"),f=vt(this.attributes,"pageNum"),d=N(Rr(u),2),h=d[0],p=d[1],v=h.size,g=$t(h,["size"]),y=!l.select(En.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(En.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(En.prevBtn,"path"),x=l.maybeAppendByClassName(En.nextBtnGroup,"g").styles(p);this.nextBtnGroup=x.node();var w=x.maybeAppendByClassName(En.nextBtn,"path");[b,w].forEach(function(S){S.styles(z(z({},g),{transformOrigin:"center"})),h0(S.node(),v,!0)});var O=l.maybeAppendByClassName(En.pageInfoGroup,"g");this.pageInfoGroup=O.node(),O.maybeAppendByClassName(En.pageInfo,"text").styles(f),this.updatePageInfo(),l.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},e.prototype.render=function(n,r){var i=dt(r);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var n=this,r=$b(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(ht.INSERTED,r),this.playWindow.addEventListener(ht.REMOVED,r)},e}(Pe);function pj(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function vj(t,e,n){var r=1.4,i=r*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}var ES=1.4,PS=.4;function gj(t,e,n){var r=n,i=r*ES,a=r/2,o=r/6,s=t+i*PS;return[["M",t,e],["L",s,e+a],["L",t+i,e+a],["L",t+i,e-a],["L",s,e-a],["Z"],["M",s,e+o],["L",t+i-2,e+o],["M",s,e-o],["L",t+i-2,e-o]]}function yj(t,e,n){var r=n,i=r*ES,a=r/2,o=r/6,s=e+i*PS;return[["M",t,e],["L",t-a,s],["L",t-a,e+i],["L",t+a,e+i],["L",t+a,s],["Z"],["M",t-o,s],["L",t-o,e+i-2],["M",t+o,s],["L",t+o,e+i-2]]}Bt.registerSymbol("hiddenHandle",vj);Bt.registerSymbol("verticalHandle",gj);Bt.registerSymbol("horizontalHandle",yj);function mj(t,e,n,r){var i,a=N(t,2),o=a[0],s=a[1],c=N(e,2),l=c[0],u=c[1],f=N(n,2),d=f[0],h=f[1],p=N([l,u],2),v=p[0],g=p[1],y=g-v;return v>g&&(i=N([g,v],2),v=i[0],g=i[1]),y>s-o?[o,s]:vs?h===s&&d===v?[v,s]:[s-y,s]:[v,g]}function ir(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n}var un=$n({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function bj(t){var e=t.querySelector(un.marker.class);return e?e.style:{}}var xj=function(t){rt(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new Xs({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(e.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,c=r.node().getBBox(),l=c.width,u=c.height;return{markerWidth:i,labelWidth:o,valueWidth:l,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=N(Te(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,c=o.height,l=this.actualSpace,u=l.labelWidth,f=l.valueWidth,d=N(this.spacing,2),h=d[0],p=d[1];if(a){var v=a-i-h-p,g=N(this.span,2),y=g[0],m=g[1];n=N([y*v,m*v],2),u=n[0],f=n[1]}var b=s+u+f+h+p;return{width:b,height:c,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=N(Te(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,c=N(this.spacing,2),l=c[0],u=c[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+l,r+i+l+u]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var n=bj(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,c=s===void 0?n.lineWidth:s,l=r.markerStroke,u=l===void 0?n.stroke:l,f=+(o||c||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=vt(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(un.markerGroup,"g").style("zIndex",0),on(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(un.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(PI(s,c),dt(s).styles(a)):(s.remove(),dt(c).attr("className",un.marker.name).styles(a),o.appendChild(c)):(dt(c).attr("className",un.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),h0(r.markerGroup.node(),r.scaleSize,!0)})},e.prototype.renderLabel=function(n){var r=vt(this.attributes,"label"),i=r.text,a=$t(r,["text"]);this.labelGroup=n.maybeAppendByClassName(un.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(un.label,function(){return Yi(i)}).styles(a)},e.prototype.renderValue=function(n){var r=this,i=vt(this.attributes,"value"),a=i.text,o=$t(i,["text"]);this.valueGroup=n.maybeAppendByClassName(un.valueGroup,"g").style("zIndex",0),on(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(un.value,function(){return Yi(a)}).styles(o)})},e.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=vt(this.attributes,"background");this.background=n.maybeAppendByClassName(un.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(un.background,"rect").styles(z({width:i,height:a},o))},e.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=N(n.position,3),s=o[0],c=o[1],l=o[2],u=a/2;this.markerGroup.styles({x:s,y:u}),this.labelGroup.styles({x:c,y:u}),uh(this.labelGroup.select(un.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),uh(this.valueGroup.select(un.value.class).node(),Math.ceil(i)))},e.prototype.render=function(n,r){var i=dt(r);this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},e}(Pe),Si=$n({page:"item-page",navigator:"navigator",item:"item"},"items"),Dy=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},wj=function(t){rt(e,t);function e(n){var r=t.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:wf,mouseenter:wf,mouseleave:wf})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=vt(this.attributes,"item"),o=r.map(function(s,c){var l=s.id,u=l===void 0?c:l,f=s.label,d=s.value;return{id:"".concat(u),index:c,style:z({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=N(h,2),v=p[0],g=p[1];return[v,Rn(g,[s,c,r])]})))}});return o},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,c=N(this.navigatorShape,1),l=c[0],u=N(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(v,g){var y,m,b=Math.floor(g/h),x=g%h,w=n.ifHorizontal(d,f),O=[Math.floor(x/w),x%w];i==="vertical"&&O.reverse();var S=N(O,2),_=S[0],M=S[1],E=(a-l-(d-1)*s)/d,P=v.getBBox().height,T=N([0,0],2),A=T[0],k=T[1];return i==="horizontal"?(y=N([p,_*(P+o)],2),A=y[0],k=y[1],p=M===d-1?0:p+E+s):(m=N([M*(E+s),p],2),A=m[0],k=m[1],p=_===f-1?0:p+P+o),{page:b,index:g,row:_,col:M,pageIndex:x,width:E,height:P,x:A,y:k}})},e.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=N(this.navigatorShape,1),c=s[0],l=N(this.grid,2),u=l[0],f=l[1],d=N([r-c,i],2),h=d[0],p=d[1],v=N([0,0,0,0,0,0,0,0],8),g=v[0],y=v[1],m=v[2],b=v[3],x=v[4],w=v[5],O=v[6],S=v[7];return this.pageViews.children.map(function(_,M){var E,P,T,A,k=_.getBBox(),C=k.width,L=k.height,I=O===0?0:o,R=O+I+C;if(R<=h&&Dy(x,function(D){return D0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return ir(i,n,r)},e.prototype.flattenPage=function(n){n.querySelectorAll(Si.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(Si.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},e.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);dt(n).selectAll(Si.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new xj({style:u})}).attr("className",Si.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(c){return c.each(function(l){var u=l.style;this.update(u)})},function(c){return c.remove()})},e.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=N(this.navigatorShape,2),c=s[0],l=s[1];this.navigator.update(i==="grid"?{pageWidth:a-c,pageHeight:o-l}:{})},e.prototype.adjustLayout=function(){var n=this,r=Object.entries(cI(this.itemsLayout,"page")).map(function(a){var o=N(a,2),s=o[0],c=o[1];return{page:s,layouts:c}}),i=q([],N(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Ce({className:Si.page.name}));o.forEach(function(c){var l=c.x,u=c.y,f=c.index,d=c.width,h=c.height,p=i[f];s.appendChild(p),$k(p,"__layout__",c),p.update({x:l,y:u,width:d,height:h})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=vt(this.attributes,"nav"),a=Nr({orientation:r},i),o=this;return n.selectAll(Si.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new hj({style:a})}).attr("className",Si.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(dt(r));this.renderItems(a.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(n,r){var i=new Dt(n,{detail:r});this.dispatchEvent(i)},e}(Pe),Oo=$n({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),AS={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},Oj=function(t){rt(e,t);function e(n){return t.call(this,n,AS)||this}return e.prototype.render=function(n,r){var i=dt(r).maybeAppendByClassName(Oo.markerGroup,"g");this.renderMarker(i);var a=dt(r).maybeAppendByClassName(Oo.labelGroup,"g");this.renderLabel(a)},e.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?ir(a,"horizontalHandle","verticalHandle"):o;on(!!s,n,function(c){var l=vt(r.attributes,"marker"),u=z({symbol:s},l);r.marker=c.maybeAppendByClassName(Oo.marker,function(){return new Bt({style:u})}).update(u)})},e.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,c=s===void 0?0:s,l=i.formatter;on(a,n,function(u){var f,d=vt(r.attributes,"label"),h=d.text,p=$t(d,["text"]),v=((f=u.select(Oo.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=v.width,y=g===void 0?0:g,m=v.height,b=m===void 0?0:m,x=N(ir(o,[0,b+c,"center","top"],[y+c,0,"start","middle"]),4),w=x[0],O=x[1],S=x[2],_=x[3];u.maybeAppendByClassName(Oo.label,"text").styles(z(z({},p),{x:w,y:O,text:l(h).toString(),textAlign:S,textBaseline:_}))})},e}(Pe),kS={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},Sj=Nr({},kS,{}),_j=Nr({},kS,Jn(AS,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),Mj=.01,Me=$n({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),Ej=function(t){rt(e,t);function e(n){return t.call(this,n,Sj)||this}return e.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,c=vt(this.attributes,"title"),l=N(Rr(c),2),u=l[0],f=l[1];this.titleGroup=n.maybeAppendByClassName(Me.titleGroup,"g").styles(f);var d=z(z({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(Me.title,function(){return new MS({style:d})}).update(d)},e.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,c=vt(this.attributes,"title",!0),l=N(Rr(c),2),u=l[0],f=l[1],d=z(z({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(Me.itemsGroup,"g").styles(z({x:i,y:a},f));var h=this;this.itemsGroup.selectAll(Me.items.class).data(["items"]).join(function(p){return p.append(function(){return new wj({style:d})}).attr("className",Me.items.name).each(function(){h.items=dt(this)})},function(p){return p.update(d)},function(p){return p.remove()})},e.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().setLocalPosition(i,a)}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new Qt(0,0,i,a)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?t.prototype.getBBox.call(this):sj(i,a)},e.prototype.render=function(n,r){var i=n.width,a=n.height,o=dt(r);this.renderTitle(o,i,a),this.renderItems(o,this.availableSpace),this.adjustLayout()},e}(Pe),Pj={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},Kf=$n({background:"background",labelGroup:"label-group",label:"label"},"indicator"),Aj=function(t){rt(e,t);function e(n){var r=t.call(this,n,Pj)||this;return r.point=[0,0],r.group=r.appendChild(new Ce({})),r.isMutationObserved=!0,r}return e.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=N(Te(i),4),o=a[0],s=a[1],c=a[2],l=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new Qt(f[0]-l,f[1]-o,d[0]+s-f[0]+l,d[1]+c-f[1]+o),p=this.getPath(r,h),v=vt(this.attributes,"background");this.background=dt(this.group).maybeAppendByClassName(Kf.background,"path").styles(z(z({},v),{path:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=vt(this.attributes,"label"),o=N(Rr(a),2),s=o[0],c=o[1];s.text;var l=$t(s,["text"]);if(this.label=dt(this.group).maybeAppendByClassName(Kf.labelGroup,"g").styles(c),!!i){var u=this.label.maybeAppendByClassName(Kf.label,function(){return Yi(r(i))}).style("text",r(i).toString());u.selectAll("text").styles(l)}},e.prototype.adjustLayout=function(){var n=N(this.point,2),r=n[0],i=n[1];this.group.attr("x",-r).attr("y",-i)},e.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,c=r.height,l=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+c-i],["A",i,i,0,0,1,a+s-i,o+c],["L",a+i,o+c],["A",i,i,0,0,1,a,o+c-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([l[f].slice(-2),l[f+1].slice(-2)]);return l.splice.apply(l,q([f+1,1],N(d),!1)),l[0][0]="M",l},e.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=EI.apply(void 0,q([],N(n),!1)),o=N(n,2),s=N(o[0],2),c=s[0],l=s[1],u=N(o[1],2),f=u[0],d=u[1],h=N(a?[f-c,[c,f]]:[d-l,[l,d]],2),p=h[0],v=N(h[1],2),g=v[0],y=v[1],m=p/2,b=p/Math.abs(p),x=r*b,w=x/2,O=x*Math.sqrt(3)/2*i,S=N([g,g+m-w,g+m,g+m+w,y],5),_=S[0],M=S[1],E=S[2],P=S[3],T=S[4];return a?(this.point=[E,l-O],[["L",_,l],["L",M,l],["L",E,l-O],["L",P,l],["L",T,l]]):(this.point=[c+O,E],[["L",c,_],["L",c,M],["L",c+O,E],["L",c,P],["L",c,T]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?li(this):Ks(this)},e.prototype.bindEvents=function(){this.label.on(ht.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Pe);function kj(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function Tj(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(a,o,s){var c=r[s%r.length];return a+=" ".concat(t[s],":").concat(c).concat(s(r+i)/2?i:r,range:[r,i]}}var ms=$n({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function TS(t){var e=t.orientation,n=t.size,r=t.length;return ir(e,[r,n],[n,r])}function CS(t){var e=t.type,n=N(TS(t),2),r=n[0],i=n[1];return e==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function Cj(t){return CS(t)}function Lj(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(Ve(n)){var o=20;a=new Array(o).fill(0).map(function(l,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,c=a.map(function(l){return Ar(l).toString()});return s?s===1?c[0]:r?Tj(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(ir(e,"0","270"),")")):""}function Nj(t){var e=t.orientation,n=t.range;if(!n)return[];var r=N(TS(t),2),i=r[0],a=r[1],o=N(n,2),s=o[0],c=o[1],l=ir(e,s*i,0),u=ir(e,0,s*a),f=ir(e,c*i,i),d=ir(e,a,c*a);return[["M",l,u],["L",l,d],["L",f,d],["L",f,u],["Z"]]}function Rj(t,e){var n=vt(e,"track");t.maybeAppendByClassName(ms.track,"path").styles(z({path:CS(e)},n))}function Ij(t,e){var n=vt(e,"selection"),r=Lj(e),i=t.maybeAppendByClassName(ms.selection,"path").styles(z({path:Cj(e),fill:r},n)),a=i.maybeAppendByClassName(ms.clipPath,"path").styles({path:Nj(e)}).node();i.style("clip-path",a)}var jj=function(t){rt(e,t);function e(n){return t.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return e.prototype.render=function(n,r){var i=dt(r).maybeAppendByClassName(ms.trackGroup,"g");Rj(i,n);var a=dt(r).maybeAppendByClassName(ms.selectionGroup,"g");Ij(a,n)},e}(Pe);function Dj(t){return{min:Math.min.apply(Math,q([],N(t.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,q([],N(t.map(function(e){return e.value})),!1))}}var $j=function(t){rt(e,t);function e(n){var r=t.call(this,n,_j)||this;return r.eventToOffsetScale=new Yt({}),r.innerRibbonScale=new Yt({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var c=r.getValueByCanvasPoint(i);if(s){var l=$y(o.map(function(f){var d=f.value;return d}),c).range;r.showIndicator((l[0]+l[1])/2,"".concat(l[0],"-").concat(l[1])),r.dispatchIndicated(c,l)}else{var u=r.getTickValue(c);r.showIndicator(u),r.dispatchIndicated(u)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=N(r.selection,2),s=o[0],c=o[1],l=r.getTickValue(r.getValueByCanvasPoint(i)),u=l-r.prevValue;a==="start"?s!==l&&r.updateSelection(l,c):a==="end"?c!==l&&r.updateSelection(s,l):a==="ribbon"&&u!==0&&(r.prevValue=l,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new Qt(0,0,r,i)},e.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(dt(r));var o=this.availableSpace,s=o.x,c=o.y,l=dt(r).maybeAppendByClassName(Me.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Me.labelGroup,"g").styles({zIndex:1});on(!!a,u,function(d){i.renderLabel(d)});var f=l.maybeAppendByClassName(Me.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=l.maybeAppendByClassName(Me.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(l),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:Dj(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var n=N(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=N(o,2),c=s[0],l=s[1];return[c,l]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){return ir(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},e.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,c=vt(this.attributes,"title"),l=z(z({},c),{width:o,height:s,text:a}),u=this;n.selectAll(Me.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new MS({style:l})}).attr("className",Me.title.name).each(function(){u.title=this})},function(f){return f.update(l)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new Qt(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new Qt(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Rt.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Qt(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,c=o.height,l=this.ifHorizontal(c,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,c);return{width:s,height:c,size:l,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,c=this.labelShape,l=c.size,u=c.length,f=N(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},v=p.size,g=p.length,y=this.handleOffsetRatio,m=0,b=this.labelPosition;i?m=i:["bottom","right"].includes(b)?m=Math.min(d-l,(d-v)/y):d*(1-y)>v?m=Math.max(d-l,0):m=Math.max((d-l-v)/y,0);var x=Math.max(g,u),w=h-x,O=N(this.ifHorizontal([w,m],[m,w]),2),S=O[0],_=O[1],M=["top","left"].includes(b)?l:0,E=N(this.ifHorizontal([x/2,M],[M,x/2]),2),P=E[0],T=E[1];return new Qt(P,T,S,_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,c=r.block,l=vt(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,v=h.y,g=this.ribbonShape,y=g.length,m=g.size,b=Nr({x:p,y:v,length:y,size:m,type:a,orientation:o,color:s,block:c,partition:i.map(function(x){return(x.value-f)/(d-f)}),range:this.ribbonRange},l);this.ribbon=n.maybeAppendByClassName(Me.ribbon,function(){return new jj({style:b})}).update(b)},e.prototype.getHandleClassName=function(n){return"".concat(Me.prefix("".concat(n,"-handle")))},e.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=vt(this.attributes,"handle"),o=N(this.selection,2),s=o[0],c=o[1],l=z(z({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?Oj:hS,h=this;this.handlesGroup.selectAll(Me.handle.class).data(r?[{value:s,type:"start"},{value:c,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:l})}).attr("className",function(v){var g=v.type;return"".concat(Me.handle," ").concat(h.getHandleClassName(g))}).each(function(v){var g=v.type,y=v.value;this.update({labelText:y});var m="".concat(g,"Handle");h[m]=this,this.addEventListener("pointerdown",h.onDragStart(g))})},function(p){return p.update(l).each(function(v){var g=v.value;this.update({labelText:g})})},function(p){return p.each(function(v){var g=v.type,y="".concat(g,"Handle");h[y]=void 0}).remove()})},e.prototype.adjustHandles=function(){var n=N(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},e.prototype.adjustTitle=function(){var n=this.attributes,r=n.titlePosition,i=n.orientation,a=N(this.getElementsByClassName(Me.title.name),1),o=a[0],s=this.handlesGroup.select(".".concat(this.getHandleClassName("start"))).node();if(!(!o||!s)&&!(r!=="top-left"||i!=="horizontal")){var c=N(s.getLocalBounds().min,1),l=c[0],u=N(o.getLocalBounds().min,1),f=u[0],d=l-f;o.style.x=+(this.style.x||0)+d}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Qt(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,c=N([Math.max(r,o),Math.max(i,s)],2),l=c[0],u=c[1];return this.cacheHandleBBox=new Qt(0,0,l,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=N(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,c=this.ribbonShape.size,l=this.getOffset(r),u=N(this.ifHorizontal([o+l,s+c*this.handleOffsetRatio],[o+c*this.handleOffsetRatio,s+l]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({x:f,y:d,formatter:i})},e.prototype.renderIndicator=function(n){var r=vt(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(Me.indicator,function(){return new Aj({})}).update(r)},Object.defineProperty(e.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var c,l,u=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:o.toString();if(i.push(z(z({},a),{id:u,index:o,type:"value",label:(l=a==null?void 0:a.label)!==null&&l!==void 0?l:a.value.toString(),value:n.ribbonScale.map(a.value)})),o'),title:'
'),item:'
  • diff --git a/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js b/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js index 3a9ba68d5..949b74377 100644 --- a/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js +++ b/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js @@ -520,7 +520,11 @@ __p += '`),sn&&(Ge+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ge+`return __p +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js }`;var Qt=p4(function(){return fn(de,yt+"return "+Ge).apply(n,Ce)});if(Qt.source=Ge,mS(Qt))throw Qt;return Qt}function Vq(p){return hn(p).toLowerCase()}function Kq(p){return hn(p).toUpperCase()}function Uq(p,C,T){if(p=hn(p),p&&(T||C===n))return $T(p);if(!p||!(C=qo(C)))return p;var U=Ui(p),Q=Ui(C),de=xT(U,Q),Ce=wT(U,Q)+1;return Vl(U,de,Ce).join("")}function Gq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.slice(0,OT(p)+1);if(!p||!(C=qo(C)))return p;var U=Ui(p),Q=wT(U,Ui(C))+1;return Vl(U,0,Q).join("")}function Yq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.replace(We,"");if(!p||!(C=qo(C)))return p;var U=Ui(p),Q=xT(U,Ui(C));return Vl(U,Q).join("")}function Xq(p,C){var T=R,U=A;if(Kn(C)){var Q="separator"in C?C.separator:Q;T="length"in C?Xt(C.length):T,U="omission"in C?qo(C.omission):U}p=hn(p);var de=p.length;if(gu(p)){var Ce=Ui(p);de=Ce.length}if(T>=de)return p;var we=T-vu(U);if(we<1)return U;var Me=Ce?Vl(Ce,0,we).join(""):p.slice(0,we);if(Q===n)return Me+U;if(Ce&&(we+=Me.length-we),bS(Q)){if(p.slice(we).search(Q)){var ze,je=Me;for(Q.global||(Q=D1(Q.source,hn(Xr.exec(Q))+"g")),Q.lastIndex=0;ze=Q.exec(je);)var Ge=ze.index;Me=Me.slice(0,Ge===n?we:Ge)}}else if(p.indexOf(qo(Q),we)!=we){var rt=Me.lastIndexOf(Q);rt>-1&&(Me=Me.slice(0,rt))}return Me+U}function qq(p){return p=hn(p),p&&Vn.test(p)?p.replace(jt,_K):p}var Zq=xu(function(p,C,T){return p+(T?" ":"")+C.toUpperCase()}),CS=hE("toUpperCase");function f4(p,C,T){return p=hn(p),C=T?n:C,C===n?SK(p)?PK(p):dK(p):p.match(C)||[]}var p4=Jt(function(p,C){try{return Yo(p,n,C)}catch(T){return mS(T)?T:new Wt(T)}}),Qq=Ga(function(p,C){return vi(C,function(T){T=ba(T),Ka(p,T,gS(p[T],p))}),p});function Jq(p){var C=p==null?0:p.length,T=Tt();return p=C?Fn(p,function(U){if(typeof U[1]!="function")throw new mi(a);return[T(U[0]),U[1]]}):[],Jt(function(U){for(var Q=-1;++QL)return[];var T=G,U=Jr(p,G);C=Tt(C),p-=G;for(var Q=A1(U,C);++T0||C<0)?new rn(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),C!==n&&(C=Xt(C),T=C<0?T.dropRight(-C):T.take(C-p)),T)},rn.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},rn.prototype.toArray=function(){return this.take(G)},va(rn.prototype,function(p,C){var T=/^(?:filter|find|map|reject)|While$/.test(C),U=/^(?:head|last)$/.test(C),Q=ce[U?"take"+(C=="last"?"Right":""):C],de=U||/^find/.test(C);Q&&(ce.prototype[C]=function(){var Ce=this.__wrapped__,we=U?[1]:arguments,Me=Ce instanceof rn,ze=we[0],je=Me||Kt(Ce),Ge=function(tn){var sn=Q.apply(ce,Bl([tn],we));return U&&rt?sn[0]:sn};je&&T&&typeof ze=="function"&&ze.length!=1&&(Me=je=!1);var rt=this.__chain__,yt=!!this.__actions__.length,Et=de&&!rt,Qt=Me&&!yt;if(!de&&je){Ce=Qt?Ce:new rn(this);var At=p.apply(Ce,we);return At.__actions__.push({func:qg,args:[Ge],thisArg:n}),new bi(At,rt)}return Et&&Qt?p.apply(this,we):(At=this.thru(Ge),Et?U?At.value()[0]:At.value():At)})}),vi(["pop","push","shift","sort","splice","unshift"],function(p){var C=$g[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",U=/^(?:pop|shift)$/.test(p);ce.prototype[p]=function(){var Q=arguments;if(U&&!this.__chain__){var de=this.value();return C.apply(Kt(de)?de:[],Q)}return this[T](function(Ce){return C.apply(Kt(Ce)?Ce:[],Q)})}}),va(rn.prototype,function(p,C){var T=ce[C];if(T){var U=T.name+"";vn.call(Su,U)||(Su[U]=[]),Su[U].push({name:C,func:T})}}),Su[Wg(n,b).name]=[{name:"wrapper",func:n}],rn.prototype.clone=qK,rn.prototype.reverse=ZK,rn.prototype.value=QK,ce.prototype.at=IY,ce.prototype.chain=PY,ce.prototype.commit=TY,ce.prototype.next=EY,ce.prototype.plant=MY,ce.prototype.reverse=RY,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=DY,ce.prototype.first=ce.prototype.head,_f&&(ce.prototype[_f]=AY),ce},mu=TK();Bs?((Bs.exports=mu)._=mu,x1._=mu):Hr._=mu}).call(Lo)})(tb,tb.exports);var HRe=tb.exports;const Fp=Ba(HRe),zRe="#17b392",Jj="LOCAL_STORAGE_LOCALE",jRe="LOCAL_STORAGE_THEME",WRe=localStorage.getItem(jRe);function VRe(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),r=parseInt(e.substring(4,6),16),[o,i,a]=[t,n,r].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*o+.7152*i+.0722*a>.5?"#131313":"#e3e1e1"}const Oh=he(WRe||zRe),xHe=e=>M(()=>Oh.value+e),wHe=M(()=>VRe(Oh.value)),_He={HEALTHY:"green",REGISTED:"green"},KRe={functional:!0,props:["route"],render:(e,t,n)=>{var a,l,s,c;const r=n.route,o=(l=(a=r.meta)==null?void 0:a.slots)==null?void 0:l.header,i=((s=r.meta)==null?void 0:s.headerParamKey)||"pathId";return Ni(o)||Ni("div",(c=r.params)==null?void 0:c[i])}},OHe={RUNNING:"green",PENDING:"yellow",TERMINATING:"red",CRASHING:"darkRed"},Lu="__PROVIDE_INJECT_KEY_",eW={LAYOUT_ROUTE_KEY:Lu+"LAYOUT_ROUTE_KEY",LOCALE:Lu+"LOCALE",GRAFANA:Lu+"GRAFANA",SEARCH_DOMAIN:Lu+"SEARCH_DOMAIN",COLLAPSED:Lu+"COLLAPSED",TAB_LAYOUT_STATE:Lu+"TAB_LAYOUT_STATE"},URe={class:"__container_router_tab_index"},GRe={key:0,class:"header"},YRe={id:"layout-tab-body",style:{transition:"scroll-top 0.5s ease",overflow:"auto",height:"calc(100vh - 300px)","padding-bottom":"20px"}},XRe=pe({__name:"layout_tab",setup(e){ON(u=>({"7e5c7278":wt(Oh)}));const t=St({});ft(eW.TAB_LAYOUT_STATE,t);const n=kj(),r=Ml();r.meta;const o=M(()=>{var d,f;let u=r.meta;return(f=(d=u==null?void 0:u.parent)==null?void 0:d.children)==null?void 0:f.filter(h=>h.meta.tab)}),i=M(()=>String(r.name||"")+"_"+Fp.uniqueId());let a=he(String(r.name||"")),l=he(!1),s=Fp.uniqueId("__tab_page");function c(u){n.push({name:u,params:r.params,query:r.query})}return n.beforeEach((u,d,f)=>{s=Fp.uniqueId("__tab_page"),l.value=!0,a.value=u.name,f(),setTimeout(()=>{l.value=!1},500)}),(u,d)=>{const f=Nt("a-col"),h=Nt("a-row"),m=Nt("a-tab-pane"),v=Nt("a-tabs"),y=Nt("router-view"),b=Nt("a-spin");return ht(),qt("div",URe,[(ht(),qt("div",{key:wt(s)},[wt(r).meta.tab?(ht(),qt("div",GRe,[g(h,null,{default:bn(()=>[g(f,{span:1},{default:bn(()=>[tt("span",{onClick:d[0]||(d[0]=$=>wt(n).replace(wt(r).meta.back||"../")),style:{float:"left"}},[g(wt(S5),{icon:"material-symbols:keyboard-backspace-rounded",class:"back"})])]),_:1}),g(f,{span:18},{default:bn(()=>[g(wt(KRe),{route:wt(r)},null,8,["route"])]),_:1})]),_:1}),g(v,{onChange:d[1]||(d[1]=$=>c(wt(a))),activeKey:wt(a),"onUpdate:activeKey":d[2]||(d[2]=$=>Wn(a)?a.value=$:a=$)},{default:bn(()=>[(ht(!0),qt(Je,null,Cd(o.value.filter($=>!$.meta.hidden),$=>(ht(),jn(m,{key:$.name},{tab:bn(()=>[tt("span",null,[g(wt(S5),{style:{"margin-bottom":"-2px"},icon:$.meta.icon},null,8,["icon"]),Dr(" "+Pr(u.$t($.name)),1)])]),_:2},1024))),128))]),_:1},8,["activeKey"])])):zn("",!0),g(b,{class:"tab-spin",spinning:wt(l)},{default:bn(()=>[tt("div",YRe,[wt(l)?zn("",!0):(ht(),jn(y,{key:i.value}))])]),_:1},8,["spinning"])]))])}}}),fa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},qi=fa(XRe,[["__scopeId","data-v-a080a530"]]),qRe={class:"__container_AppTabHeaderSlot"},ZRe={class:"header-desc"},QRe=pe({__name:"AppTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",qRe,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",ZRe,Pr(n.$t("applicationDomain.name"))+": "+Pr((a=wt(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),JRe=fa(QRe,[["__scopeId","data-v-d9202124"]]),e5e={class:"__container_ServiceTabHeaderSlot"},t5e={class:"header-desc"},n5e=pe({__name:"ServiceTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{var o;return ht(),qt("div",e5e,[tt("span",t5e,Pr(n.$t("serviceDomain.name"))+": "+Pr((o=wt(t).params)==null?void 0:o.pathId),1)])}}}),r5e=fa(n5e,[["__scopeId","data-v-3de51f62"]]),o5e={class:"__container_AppTabHeaderSlot"},i5e={class:"header-desc"},a5e=pe({__name:"InstanceTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",o5e,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",i5e,Pr(n.$t("instanceDomain.name"))+": "+Pr((a=wt(t).params)==null?void 0:a.name),1)]}),_:1})]),_:1})])}}}),l5e=fa(a5e,[["__scopeId","data-v-0332e378"]]);/*! +======== +}`;var Qt=p4(function(){return fn(de,yt+"return "+Ge).apply(n,Ce)});if(Qt.source=Ge,vS(Qt))throw Qt;return Qt}function Vq(p){return hn(p).toLowerCase()}function Kq(p){return hn(p).toUpperCase()}function Uq(p,C,T){if(p=hn(p),p&&(T||C===n))return $T(p);if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=Ui(C),de=xT(U,Q),Ce=wT(U,Q)+1;return Vl(U,de,Ce).join("")}function Gq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.slice(0,OT(p)+1);if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=wT(U,Ui(C))+1;return Vl(U,0,Q).join("")}function Yq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.replace(We,"");if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=xT(U,Ui(C));return Vl(U,Q).join("")}function Xq(p,C){var T=R,U=A;if(Kn(C)){var Q="separator"in C?C.separator:Q;T="length"in C?Xt(C.length):T,U="omission"in C?qr(C.omission):U}p=hn(p);var de=p.length;if(gu(p)){var Ce=Ui(p);de=Ce.length}if(T>=de)return p;var we=T-vu(U);if(we<1)return U;var Me=Ce?Vl(Ce,0,we).join(""):p.slice(0,we);if(Q===n)return Me+U;if(Ce&&(we+=Me.length-we),mS(Q)){if(p.slice(we).search(Q)){var ze,je=Me;for(Q.global||(Q=R1(Q.source,hn(qo.exec(Q))+"g")),Q.lastIndex=0;ze=Q.exec(je);)var Ge=ze.index;Me=Me.slice(0,Ge===n?we:Ge)}}else if(p.indexOf(qr(Q),we)!=we){var ot=Me.lastIndexOf(Q);ot>-1&&(Me=Me.slice(0,ot))}return Me+U}function qq(p){return p=hn(p),p&&Vn.test(p)?p.replace(jt,_K):p}var Zq=xu(function(p,C,T){return p+(T?" ":"")+C.toUpperCase()}),SS=hE("toUpperCase");function f4(p,C,T){return p=hn(p),C=T?n:C,C===n?SK(p)?PK(p):dK(p):p.match(C)||[]}var p4=Jt(function(p,C){try{return Yr(p,n,C)}catch(T){return vS(T)?T:new Wt(T)}}),Qq=Ga(function(p,C){return vi(C,function(T){T=ba(T),Ka(p,T,hS(p[T],p))}),p});function Jq(p){var C=p==null?0:p.length,T=Tt();return p=C?Fn(p,function(U){if(typeof U[1]!="function")throw new mi(a);return[T(U[0]),U[1]]}):[],Jt(function(U){for(var Q=-1;++QL)return[];var T=G,U=er(p,G);C=Tt(C),p-=G;for(var Q=E1(U,C);++T0||C<0)?new on(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),C!==n&&(C=Xt(C),T=C<0?T.dropRight(-C):T.take(C-p)),T)},on.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},on.prototype.toArray=function(){return this.take(G)},va(on.prototype,function(p,C){var T=/^(?:filter|find|map|reject)|While$/.test(C),U=/^(?:head|last)$/.test(C),Q=ce[U?"take"+(C=="last"?"Right":""):C],de=U||/^find/.test(C);Q&&(ce.prototype[C]=function(){var Ce=this.__wrapped__,we=U?[1]:arguments,Me=Ce instanceof on,ze=we[0],je=Me||Kt(Ce),Ge=function(tn){var sn=Q.apply(ce,Bl([tn],we));return U&&ot?sn[0]:sn};je&&T&&typeof ze=="function"&&ze.length!=1&&(Me=je=!1);var ot=this.__chain__,yt=!!this.__actions__.length,Et=de&&!ot,Qt=Me&&!yt;if(!de&&je){Ce=Qt?Ce:new on(this);var At=p.apply(Ce,we);return At.__actions__.push({func:Xg,args:[Ge],thisArg:n}),new bi(At,ot)}return Et&&Qt?p.apply(this,we):(At=this.thru(Ge),Et?U?At.value()[0]:At.value():At)})}),vi(["pop","push","shift","sort","splice","unshift"],function(p){var C=Cg[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",U=/^(?:pop|shift)$/.test(p);ce.prototype[p]=function(){var Q=arguments;if(U&&!this.__chain__){var de=this.value();return C.apply(Kt(de)?de:[],Q)}return this[T](function(Ce){return C.apply(Kt(Ce)?Ce:[],Q)})}}),va(on.prototype,function(p,C){var T=ce[C];if(T){var U=T.name+"";vn.call(Su,U)||(Su[U]=[]),Su[U].push({name:C,func:T})}}),Su[jg(n,b).name]=[{name:"wrapper",func:n}],on.prototype.clone=qK,on.prototype.reverse=ZK,on.prototype.value=QK,ce.prototype.at=IY,ce.prototype.chain=PY,ce.prototype.commit=TY,ce.prototype.next=EY,ce.prototype.plant=MY,ce.prototype.reverse=RY,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=DY,ce.prototype.first=ce.prototype.head,_f&&(ce.prototype[_f]=AY),ce},mu=TK();Hs?((Hs.exports=mu)._=mu,$1._=mu):Ho._=mu}).call(Lr)})(eb,eb.exports);var HRe=eb.exports;const Fp=Ba(HRe),zRe="#17b392",Jj="LOCAL_STORAGE_LOCALE",jRe="LOCAL_STORAGE_THEME",WRe=localStorage.getItem(jRe);function VRe(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),[r,i,a]=[t,n,o].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*r+.7152*i+.0722*a>.5?"#131313":"#e3e1e1"}const Oh=he(WRe||zRe),_He=e=>M(()=>Oh.value+e),OHe=M(()=>VRe(Oh.value)),IHe={HEALTHY:"green",REGISTED:"green"},KRe={functional:!0,props:["route"],render:(e,t,n)=>{var a,l,s,c;const o=n.route,r=(l=(a=o.meta)==null?void 0:a.slots)==null?void 0:l.header,i=((s=o.meta)==null?void 0:s.headerParamKey)||"pathId";return Ni(r)||Ni("div",(c=o.params)==null?void 0:c[i])}},PHe={RUNNING:"green",PENDING:"yellow",TERMINATING:"red",CRASHING:"darkRed"},Lu="__PROVIDE_INJECT_KEY_",eW={LAYOUT_ROUTE_KEY:Lu+"LAYOUT_ROUTE_KEY",LOCALE:Lu+"LOCALE",GRAFANA:Lu+"GRAFANA",SEARCH_DOMAIN:Lu+"SEARCH_DOMAIN",COLLAPSED:Lu+"COLLAPSED",TAB_LAYOUT_STATE:Lu+"TAB_LAYOUT_STATE"},URe={class:"__container_router_tab_index"},GRe={key:0,class:"header"},YRe={id:"layout-tab-body",style:{transition:"scroll-top 0.5s ease",overflow:"auto",height:"calc(100vh - 300px)","padding-bottom":"20px"}},XRe=pe({__name:"layout_tab",setup(e){ON(c=>({"6b871b3a":It(Oh)}));const t=St({});ft(eW.PROVIDE_INJECT_KEY,t);const n=kj(),o=Ml();o.meta;const r=M(()=>{var u,d;let c=o.meta;return(d=(u=c==null?void 0:c.parent)==null?void 0:u.children)==null?void 0:d.filter(f=>f.meta.tab)}),i=M(()=>o.name+"_"+Fp.uniqueId());let a=he(o.name),l=he(!1),s=Fp.uniqueId("__tab_page");return n.beforeEach((c,u,d)=>{s=Fp.uniqueId("__tab_page"),l.value=!0,a.value=c.name,d(),setTimeout(()=>{l.value=!1},500)}),(c,u)=>{const d=Nt("a-col"),f=Nt("a-row"),h=Nt("a-tab-pane"),m=Nt("a-tabs"),v=Nt("router-view"),y=Nt("a-spin");return ht(),qt("div",URe,[(ht(),qt("div",{key:It(s)},[It(o).meta.tab?(ht(),qt("div",GRe,[g(f,null,{default:bn(()=>[g(d,{span:1},{default:bn(()=>[tt("span",{onClick:u[0]||(u[0]=b=>It(n).replace(It(o).meta.back||"../")),style:{float:"left"}},[g(It(S5),{icon:"material-symbols:keyboard-backspace-rounded",class:"back"})])]),_:1}),g(d,{span:18},{default:bn(()=>[g(It(KRe),{route:It(o)},null,8,["route"])]),_:1})]),_:1}),g(m,{onChange:u[1]||(u[1]=b=>It(n).push({name:It(a)||""})),activeKey:It(a),"onUpdate:activeKey":u[2]||(u[2]=b=>Wn(a)?a.value=b:a=b)},{default:bn(()=>[(ht(!0),qt(Je,null,Cd(r.value.filter(b=>!b.meta.hidden),b=>(ht(),jn(h,{key:b.name},{tab:bn(()=>[tt("span",null,[g(It(S5),{style:{"margin-bottom":"-2px"},icon:b.meta.icon},null,8,["icon"]),Do(" "+Uo(c.$t(b.name)),1)])]),_:2},1024))),128))]),_:1},8,["activeKey"])])):zn("",!0),g(y,{class:"tab-spin",spinning:It(l)},{default:bn(()=>[tt("div",YRe,[It(l)?zn("",!0):(ht(),jn(v,{key:i.value}))])]),_:1},8,["spinning"])]))])}}}),fa=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},qi=fa(XRe,[["__scopeId","data-v-e3c1cda1"]]),qRe={class:"__container_AppTabHeaderSlot"},ZRe={class:"header-desc"},QRe=pe({__name:"AppTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",qRe,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",ZRe,Uo(n.$t("applicationDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),JRe=fa(QRe,[["__scopeId","data-v-d9202124"]]),e5e={class:"__container_ServiceTabHeaderSlot"},t5e={class:"header-desc"},n5e=pe({__name:"ServiceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{var r;return ht(),qt("div",e5e,[tt("span",t5e,Uo(n.$t("serviceDomain.name"))+": "+Uo((r=It(t).params)==null?void 0:r.pathId),1)])}}}),o5e=fa(n5e,[["__scopeId","data-v-3de51f62"]]),r5e={class:"__container_AppTabHeaderSlot"},i5e={class:"header-desc"},a5e=pe({__name:"InstanceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",r5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",i5e,Uo(n.$t("instanceDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.appName),1)]}),_:1})]),_:1})])}}}),l5e=fa(a5e,[["__scopeId","data-v-8402fa49"]]),s5e={},c5e=e=>(Ps("data-v-0f2e35af"),e=e(),Ts(),e),u5e={class:"__container_AppTabHeaderSlot"},d5e=c5e(()=>tt("span",{class:"header-desc"}," 新增条件路由 ",-1));function f5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",u5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[d5e]),_:1})]),_:1})])}const p5e=fa(s5e,[["render",f5e],["__scopeId","data-v-0f2e35af"]]),h5e={class:"__container_AppTabHeaderSlot"},g5e={class:"header-desc"},v5e=pe({__name:"conditionRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",h5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",g5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),m5e=fa(v5e,[["__scopeId","data-v-8b847dc2"]]),b5e={class:"__container_AppTabHeaderSlot"},y5e={class:"header-desc"},S5e=pe({__name:"updateConditionRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",b5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",y5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),C5e=fa(S5e,[["__scopeId","data-v-9e571c17"]]),$5e={},x5e=e=>(Ps("data-v-0f780945"),e=e(),Ts(),e),w5e={class:"__container_AppTabHeaderSlot"},_5e=x5e(()=>tt("span",{class:"header-desc"}," 新增标签路由 ",-1));function O5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",w5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[_5e]),_:1})]),_:1})])}const I5e=fa($5e,[["render",O5e],["__scopeId","data-v-0f780945"]]),P5e={class:"__container_AppTabHeaderSlot"},T5e={class:"header-desc"},E5e=pe({__name:"tagRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",P5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",T5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),A5e=fa(E5e,[["__scopeId","data-v-49f86476"]]),M5e={class:"__container_AppTabHeaderSlot"},R5e={class:"header-desc"},D5e=pe({__name:"updateTagRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",M5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",R5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),L5e=fa(D5e,[["__scopeId","data-v-91777569"]]),N5e={class:"__container_AppTabHeaderSlot"},k5e={class:"header-desc"},B5e=pe({__name:"updateDCTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",N5e,[g(i,null,{default:bn(()=>[g(r,{span:20},{default:bn(()=>{var a,l;return[tt("span",k5e,Uo(((a=It(t).params)==null?void 0:a.isEdit)==="1"?n.$t("dynamicConfigDomain.updateByFormView"):n.$t("dynamicConfigDomain.detailByFormView"))+" "+Uo((l=It(t).params)==null?void 0:l.pathId),1)]}),_:1})]),_:1})])}}}),C5=fa(B5e,[["__scopeId","data-v-4d4ee463"]]),tW=[{path:"/login",name:"Login",component:()=>Ht(()=>import("./Login-y1uh0mPf.js"),__vite__mapDeps([0,1,2,3])),meta:{skip:!0},children:[]},{path:"/",name:"Root",redirect:"/home",component:()=>Ht(()=>import("./index-gIa2WffK.js"),__vite__mapDeps([4,5,2,6,7,1,8])),meta:{skip:!0},children:[{path:"/home",name:"homePage",component:()=>Ht(()=>import("./index-ipGgnE5Q.js"),__vite__mapDeps([9,10,2,11])),meta:{icon:"carbon:web-services-cluster"}},{path:"/resources",name:"resources",meta:{icon:"carbon:web-services-cluster"},children:[{path:"/applications",name:"applications",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:JRe}},children:[{path:"/list",name:"router.resource.app.list",component:()=>Ht(()=>import("./index-97iE2q1l.js"),__vite__mapDeps([12,5,2,13,14,15])),meta:{hidden:!0}},{path:"/detail/:pathId",name:"applicationDomain.detail",component:()=>Ht(()=>import("./detail-Sj1Uzu8p.js"),__vite__mapDeps([16,5,2,17])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/applications/list"}},{path:"/instance/:pathId",name:"applicationDomain.instance",component:()=>Ht(()=>import("./instance-MbyoVFFM.js"),__vite__mapDeps([18,13,14,5,2,19,20,21,22])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/applications/list"}},{path:"/service/:pathId",name:"applicationDomain.service",component:()=>Ht(()=>import("./service--7SgXxRn.js"),__vite__mapDeps([23,10,2,13,14,5,20,24])),meta:{tab:!0,icon:"carbon:web-services-definition",back:"/resources/applications/list"}},{path:"/monitor/:pathId",name:"applicationDomain.monitor",component:()=>Ht(()=>import("./monitor-4MZElxdr.js"),__vite__mapDeps([25,26,27,5,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/applications/list"}},{path:"/tracing/:pathId",name:"applicationDomain.tracing",component:()=>Ht(()=>import("./tracing-0saJ0bye.js"),__vite__mapDeps([28,26,27,5,2])),meta:{tab:!0,icon:"game-icons:digital-trace",back:"/resources/applications/list"}},{path:"/config/:pathId",name:"applicationDomain.config",component:()=>Ht(()=>import("./config-IKkzv5Nb.js"),__vite__mapDeps([29,30,31,5,2,32])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/applications/list"}},{path:"/event/:pathId",name:"applicationDomain.event",component:()=>Ht(()=>import("./event-d_wQc3g_.js"),__vite__mapDeps([33,5,2,34])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/applications/list"}}]},{path:"/instances",name:"instances",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:l5e}},children:[{path:"/list",name:"router.resource.ins.list",component:()=>Ht(()=>import("./index-fwxuMidi.js"),__vite__mapDeps([35,6,2,13,14,20,21,36])),meta:{hidden:!0}},{path:"/detail/:appName/:pathId?",name:"instanceDomain.details",component:()=>Ht(()=>import("./detail-xChLxl9Z.js"),__vite__mapDeps([37,17,6,2,19])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/instances/list",headerParamKey:"appName"}},{path:"/monitor/:pathId/:appName",name:"instanceDomain.monitor",component:()=>Ht(()=>import("./monitor-fKqC9Q7u.js"),__vite__mapDeps([38,26,27,6,2])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/instances/list"}},{path:"/linktracking/:pathId/:appName",name:"instanceDomain.linkTracking",component:()=>Ht(()=>import("./linkTracking-wjZ-ycSv.js"),__vite__mapDeps([39,26,27,6,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/instances/list"}},{path:"/configuration/:pathId/:appName",name:"instanceDomain.configuration",component:()=>Ht(()=>import("./configuration-0U4sObwn.js"),__vite__mapDeps([40,30,31,6,2])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/instances/list"}},{path:"/event/:pathId/:appName",name:"instanceDomain.event",component:()=>Ht(()=>import("./event-hTbHcw_b.js"),__vite__mapDeps([])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/instances/list"}}]},{path:"/services",name:"services",redirect:"list",component:qi,meta:{tab_parent:!0,slots:{header:o5e}},children:[{path:"/list",name:"router.resource.svc.list",component:()=>Ht(()=>import("./search-GCTQci_4.js"),__vite__mapDeps([41,7,2,13,14,20])),meta:{hidden:!0}},{path:"/distribution/:pathId/:group?/:version?",name:"distribution",component:()=>Ht(()=>import("./distribution-iEzIExlH.js"),__vite__mapDeps([42,7,2,13,14,43])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/monitor/:pathId/:group?/:version?",name:"monitor",component:()=>Ht(()=>import("./monitor-LGJ7b0-x.js"),__vite__mapDeps([44,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/tracing/:pathId/:group?/:version?",name:"tracing",component:()=>Ht(()=>import("./tracing-cZerXPwx.js"),__vite__mapDeps([45,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/sceneConfig/:pathId/:group?/:version?",name:"sceneConfig",component:()=>Ht(()=>import("./sceneConfig-Y58Csalf.js"),__vite__mapDeps([46,30,31,7,2,47])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/event/:pathId/:group?/:version?",name:"event",component:()=>Ht(()=>import("./event-LYJunMDL.js"),__vite__mapDeps([48,49])),meta:{tab:!0,hidden:!0,back:"/resources/services/list"}}]}]},{path:"/traffic",name:"trafficManagement",meta:{icon:"eos-icons:cluster-management"},children:[{path:"/routingRule",name:"routingRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:m5e}},children:[{path:"/index",name:"routingRuleIndex",component:()=>Ht(()=>import("./index-u57ZDlZX.js"),__vite__mapDeps([50,51,2,13,14,19,52])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"routingRuleDomain.formView",component:()=>Ht(()=>import("./formView-ULhh7EIP.js"),__vite__mapDeps([53,17,51,2,54])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/yamlview/:ruleName",name:"routingRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-Eh-9j974.js"),__vite__mapDeps([55,56,57,51,2,58])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addRoutingRule",name:"addRoutingRule",component:qi,redirect:"addByFormView",meta:{tab_parent:!0,hidden:!0,slots:{header:p5e}},children:[{path:"/addByFormView",name:"addRoutingRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-Sygk6tZo.js"),__vite__mapDeps([59,17,51,2,60])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYamlView",name:"addRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-dNFM9Bbo.js"),__vite__mapDeps([61,56,57,51,2,62])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateRoutingRule",name:"updateRoutingRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:C5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateRoutingRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-TnmABeBc.js"),__vite__mapDeps([63,17,51,2,64])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-m-m8wK4x.js"),__vite__mapDeps([65,56,57,51,2,66])),meta:{tab:!0}}]},{path:"/tagRule",name:"tagRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:A5e}},children:[{path:"/index",name:"tagRuleIndex",component:()=>Ht(()=>import("./index-ecPHe_YS.js"),__vite__mapDeps([67,51,2,13,14,19,68])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"tagRuleDomain.formView",component:()=>Ht(()=>import("./formView-lbEY3Kt0.js"),__vite__mapDeps([69,17,51,2,70])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/tagRule"}},{path:"/yamlview/:ruleName",name:"tagRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-ket2Aor6.js"),__vite__mapDeps([71,56,57,51,2,72])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addTagRule",name:"addTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:I5e}},children:[{path:"/addByFormView",name:"addTagRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-gV28VMNn.js"),__vite__mapDeps([73,17,51,2,74])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYAMLView",name:"addTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-nV9s5qhd.js"),__vite__mapDeps([75,56,57,51,2,76])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateTagRule",name:"updateTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:L5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateTagRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-fQCTRCAj.js"),__vite__mapDeps([77,17,51,2,78])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-ywfb5iZ3.js"),__vite__mapDeps([79,56,57,51,2,80])),meta:{tab:!0}}]},{path:"/dynamicConfig",name:"dynamicConfig",redirect:"index",component:qi,meta:{tab_parent:!0},children:[{path:"/index",name:"dynamicConfigIndex",component:()=>Ht(()=>import("./index-KY4IGAgX.js"),__vite__mapDeps([81,51,2,13,14,82])),meta:{hidden:!0}},{path:"/formview/:pathId/:isEdit",name:"dynamicConfigDomain.formView",component:()=>Ht(()=>import("./formView-IcrDVJjl.js"),__vite__mapDeps([83,17,51,2,84,85])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/dynamicConfig",slots:{header:C5}}},{path:"/yamlview/:pathId/:isEdit",name:"dynamicConfigDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-RC29bqZr.js"),__vite__mapDeps([86,56,57,51,2,84,87])),meta:{tab:!0,icon:"oui:app-console",back:"/traffic/dynamicConfig",slots:{header:C5}}}]}]},{path:"/common",name:"commonDemo",redirect:"tab",meta:{hidden:!0,icon:"tdesign:play-demo"},children:[{path:"/tab",name:"tabDemo",component:qi,redirect:"index",meta:{tab_parent:!0},children:[{path:"/index",name:"tab_demo_index",component:()=>Ht(()=>import("./index-1IoRy9d1.js"),__vite__mapDeps([])),meta:{hidden:!0}},{path:"/tab1/:pathId",name:"tab1",component:()=>Ht(()=>import("./tab1-nSfouRTr.js"),__vite__mapDeps([])),meta:{icon:"simple-icons:podman",tab:!0}},{path:"/tab2/:pathId",name:"tab2",component:()=>Ht(()=>import("./tab2-18LtHGi3.js"),__vite__mapDeps([])),meta:{icon:"fontisto:docker",tab:!0}}]},{path:"/placeholder",name:"placeholder_demo",component:()=>Ht(()=>import("./index-nYQ6FtL1.js"),__vite__mapDeps([])),meta:{}}]}]},{path:"/:catchAll(.*)",name:"notFound",component:()=>Ht(()=>import("./notFound-mUOXRXmj.js"),__vite__mapDeps([88,89])),meta:{skip:!0}}];function $5(...e){return e.join("/").replace(/\/+/g,"/")}function nW(e,t){if(e)for(const n of e)t&&(n.path=$5(t==null?void 0:t.path,n.path)),n.redirect&&(n.redirect=$5(n.path,n.redirect||"")),n.meta?(n.meta._router_key=Fp.uniqueId("__router_key"),n.meta.parent=t,n.meta.skip=n.meta.skip===!0):n.meta={_router_key:Fp.uniqueId("__router_key"),skip:!1},nW(n.children,n)}nW(tW,void 0);const F5e={history:e8e("/admin"),routes:tW},oW=k8e(F5e),H5e={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},z5e=H5e,j5e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},rW=j5e,iW={lang:S({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},z5e),timePickerLocale:S({},rW)};iW.lang.ok="确定";const x5=iW,oi="${label}不是一个有效的${type}",W5e={locale:"zh-cn",Pagination:zH,DatePicker:x5,TimePicker:rW,Calendar:x5,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:oi,method:oi,array:oi,object:oi,number:oi,date:oi,boolean:oi,integer:oi,float:oi,regexp:oi,email:oi,url:oi,hex:oi},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},V5e=W5e;var aW={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Lr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var D=["th","st","nd","rd"],B=W%100;return"["+W+(D[(B-20)%10]||D[B]||D[0])+"]"}},x=function(W,D,B){var k=String(W);return!k||k.length>=D?W:""+Array(D+1-k.length).join(B)+W},_={s:x,z:function(W){var D=-W.utcOffset(),B=Math.abs(D),k=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function W(D,B){if(D.date()1)return W(K[0])}else{var G=D.name;I[G]=D,L=G}return!k&&L&&(w=L),L||!k&&w},R=function(W,D){if(P(W))return W.clone();var B=typeof D=="object"?D:{};return B.date=W,B.args=arguments,new N(B)},A=_;A.l=E,A.i=P,A.w=function(W,D){return R(W,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=function(){function W(B){this.$L=E(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[O]=!0}var D=W.prototype;return D.parse=function(B){this.$d=function(k){var L=k.date,z=k.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(y);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return z?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==v},D.isSame=function(B,k){var L=R(B);return this.startOf(k)<=L&&L<=this.endOf(k)},D.isAfter=function(B,k){return R(B)>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-JtaswhjV.js * shared v9.9.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. @@ -560,7 +564,11 @@ if(!(o.$id in r.state.value)){const l=r._s.get(o.$id.replace("__hot:",""));l&&Pr */let LV;const m1=e=>LV=e,NV=Symbol();function Qw(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Up;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Up||(Up={}));function hHe(){const e=o2(!0),t=e.run(()=>he({}));let n=[],r=[];const o=xb({install(i){m1(o),o._a=i,i.provide(NV,o),i.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(i){return!this._a&&!KLe?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const kV=()=>{};function yL(e,t,n,r=kV){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Cb()&&i2(o),o}function ju(e,...t){e.slice().forEach(n=>{n(...t)})}const gHe=e=>e();function Jw(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Qw(o)&&Qw(r)&&e.hasOwnProperty(n)&&!Wn(r)&&!gs(r)?e[n]=Jw(o,r):e[n]=r}return e}const vHe=Symbol();function mHe(e){return!Qw(e)||!e.hasOwnProperty(vHe)}const{assign:ts}=Object;function bHe(e){return!!(Wn(e)&&e.effect)}function yHe(e,t,n,r){const{state:o,actions:i,getters:a}=t,l=n.state.value[e];let s;function c(){l||(n.state.value[e]=o?o():{});const u=ra(n.state.value[e]);return ts(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=xb(M(()=>{m1(n);const h=n._s.get(e);return a[f].call(h,h)})),d),{}))}return s=BV(e,c,t,n,r,!0),s}function BV(e,t,n={},r,o,i){let a;const l=ts({actions:{}},n),s={deep:!0};let c,u,d=[],f=[],h;const m=r.state.value[e];!i&&!m&&(r.state.value[e]={}),he({});let v;function y(P){let E;c=u=!1,typeof P=="function"?(P(r.state.value[e]),E={type:Up.patchFunction,storeId:e,events:h}):(Jw(r.state.value[e],P),E={type:Up.patchObject,payload:P,storeId:e,events:h});const R=v=Symbol();_t().then(()=>{v===R&&(c=!0)}),u=!0,ju(d,E,r.state.value[e])}const b=i?function(){const{state:E}=n,R=E?E():{};this.$patch(A=>{ts(A,R)})}:kV;function $(){a.stop(),d=[],f=[],r._s.delete(e)}function x(P,E){return function(){m1(r);const R=Array.from(arguments),A=[],N=[];function F(B){A.push(B)}function W(B){N.push(B)}ju(f,{args:R,name:P,store:w,after:F,onError:W});let D;try{D=E.apply(this&&this.$id===e?this:w,R)}catch(B){throw ju(N,B),B}return D instanceof Promise?D.then(B=>(ju(A,B),B)).catch(B=>(ju(N,B),Promise.reject(B))):(ju(A,D),D)}}const _={_p:r,$id:e,$onAction:yL.bind(null,f),$patch:y,$reset:b,$subscribe(P,E={}){const R=yL(d,P,E.detached,()=>A()),A=a.run(()=>Ie(()=>r.state.value[e],N=>{(E.flush==="sync"?u:c)&&P({storeId:e,type:Up.direct,events:h},N)},ts({},s,E)));return R},$dispose:$},w=St(_);r._s.set(e,w);const O=(r._a&&r._a.runWithContext||gHe)(()=>r._e.run(()=>(a=o2()).run(t)));for(const P in O){const E=O[P];if(Wn(E)&&!bHe(E)||gs(E))i||(m&&mHe(E)&&(Wn(E)?E.value=m[P]:Jw(E,m[P])),r.state.value[e][P]=E);else if(typeof E=="function"){const R=x(P,E);O[P]=R,l.actions[P]=E}}return ts(w,O),ts($t(w),O),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:P=>{y(E=>{ts(E,P)})}}),r._p.forEach(P=>{ts(w,a.run(()=>P({store:w,app:r._a,pinia:r,options:l})))}),m&&i&&n.hydrate&&n.hydrate(w.$state,m),c=!0,u=!0,w}function AHe(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function a(l,s){const c=oJ();return l=l||(c?it(NV,null):null),l&&m1(l),l=LV,l._s.has(r)||(i?BV(r,t,o,l):yHe(r,o,l)),l._s.get(r)}return a.$id=r,a}const SHe=AN(VLe),FV=hHe();FV.use(pHe);SHe.use(N6e).use(sHe).use(FV).use(xP).use(PW).mount("#app");PW.beforeEach((e,t,n)=>{const r=WLe();r!=null&&r.state||e.path.startsWith("/login")?n():n({path:`/login?redirect=${e.path}`})});export{Ln as $,It as A,he as B,MW as C,lt as D,WLe as E,Ie as F,IHe as G,HRe as H,S5 as I,jn as J,$He as K,Je as L,Cd as M,Wn as N,jRe as O,Oh as P,zRe as Q,THe as R,uy as S,zn as T,ft as U,sr as V,O4 as W,Ba as X,PW as Y,xHe as Z,fa as _,Ml as a,Y3e as a0,Br as a1,OHe as a2,_He as a3,_t as a4,CHe as a5,sH as a6,_r as a7,ej as a8,A0e as a9,GQ as aa,ig as ab,d8 as ac,p8 as ad,oD as ae,Lo as af,AHe as ag,gr as ah,n3 as ai,Ht as aj,xr as ak,g as b,qt as c,pe as d,Nt as e,Dr as f,PHe as g,Uc as h,xP as i,tt as j,Nn as k,M as l,YO as m,wt as n,ht as o,Kc as p,OW as q,St as r,Ni as s,Pr as t,kj as u,ON as v,bn as w,wHe as x,it as y,eW as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js __vite__mapDeps.viteFileDeps = ["assets/Login-WDB2yLVB.js","assets/globalSearch-_m3MXXfo.js","assets/request-vlI2kaaR.js","assets/Login-h2m9vUys.css","assets/index-iEpzgnm5.js","assets/app-4lFIb2G-.js","assets/instance-ChxJL4oQ.js","assets/service-RF66g7V7.js","assets/index-upMhqAJg.css","assets/index-rD-ZU8dN.js","assets/serverInfo-T8wz3JrY.js","assets/index-bVXendlO.css","assets/index-f3klQpXz.js","assets/SearchUtil-FCBI7ppE.js","assets/SearchUtil-Fi_1zs66.css","assets/index-rpFThF7n.css","assets/detail-tPSvFGFf.js","assets/index-nvCr9_iI.js","assets/instance-jbHVDGq-.js","assets/DateUtil-OIUqM92a.js","assets/PromQueryUtil-mqYJCdcK.js","assets/ByteUtil-YdHlSEeW.js","assets/instance-90vfeE3E.css","assets/service-yecgep27.js","assets/service-5zrCbX1G.css","assets/monitor-ydtLS9P6.js","assets/GrafanaPage-aw8SVm5P.js","assets/GrafanaPage-Ox7zYy20.css","assets/tracing-qOOaUDUW.js","assets/config-L4QhBo2Y.js","assets/ConfigPage-HbXln963.js","assets/ConfigPage-cVEIcX7I.css","assets/config-6bc2RhwH.css","assets/event-U8rWPJ_o.js","assets/event-0p00qhH9.css","assets/index-vfibNA7v.js","assets/index-fp33XqC9.css","assets/detail-DO2x71pm.js","assets/monitor-0ZbTVcPs.js","assets/linkTracking-CDmTO6CN.js","assets/configuration-mnhVbFFZ.js","assets/search-HhXTRztG.js","assets/distribution-UiS_TbBu.js","assets/distribution-Py-Du1W_.css","assets/monitor-Bile44jq.js","assets/tracing-l8cxfZrK.js","assets/sceneConfig-5xoznbCR.js","assets/sceneConfig-2nmQ4eli.css","assets/event-H3QxA0ip.js","assets/event-lmBmBbXg.css","assets/index-D32qWHNQ.js","assets/traffic-nmA_BhEL.js","assets/index-K34N7Hp4.css","assets/formView-6c6ubrMh.js","assets/formView-ry7RXfv8.css","assets/YAMLView-qj8iQria.js","assets/js-yaml-A63HP8_m.js","assets/js-yaml-TGthJqWD.css","assets/YAMLView-0MdW80fM.css","assets/addByFormView-n4jb5xo4.js","assets/RoutingRuleList-hVzUyucI.js","assets/RoutingRuleList-S1X2ttk3.css","assets/addByFormView-glwcLbZU.css","assets/addByYAMLView-BmRR26Fc.js","assets/addByYAMLView-QJbvZP1h.css","assets/updateByFormView-x4LVel5f.js","assets/updateByFormView-XZ0fbLEw.css","assets/updateByYAMLView-zslWiAmQ.js","assets/updateByYAMLView-dYnrZKoA.css","assets/index-HJqg-GcZ.js","assets/index-VMQ14q1L.css","assets/formView-e13inb3H.js","assets/formView-4wdFbDyU.css","assets/YAMLView-l1kqynjo.js","assets/YAMLView-zY3xQ2jU.css","assets/addByFormView-rbd9XAeQ.js","assets/addByFormView-xrHwB0pN.css","assets/addByYAMLView-UzLeu456.js","assets/addByYAMLView-BPKme7-4.css","assets/updateByFormView-n4N0yfp8.js","assets/updateByFormView-eUIRkJ4F.css","assets/updateByYAMLView-ewo550Av.js","assets/updateByYAMLView-otue_Myk.css","assets/index-75IgToXr.js","assets/index-bUsyFe6h.css","assets/formView-vI7S-3Yw.js","assets/ConfigModel-yjTa7EW2.js","assets/formView-PnVUxe2n.css","assets/YAMLView-nAITJpmO.js","assets/YAMLView-UuHbt3WX.css","assets/notFound-U6T768yw.js","assets/notFound-DMLJUJ6x.css"] +======== + __vite__mapDeps.viteFileDeps = ["assets/Login-y1uh0mPf.js","assets/globalSearch-tZ8VrkZD.js","assets/request--dYXBGM5.js","assets/Login-h2m9vUys.css","assets/index-gIa2WffK.js","assets/app-PIImRajL.js","assets/instance-sa6ohjCn.js","assets/service-1UmnLUvi.js","assets/index-upMhqAJg.css","assets/index-ipGgnE5Q.js","assets/serverInfo-hyQn9HsQ.js","assets/index-bVXendlO.css","assets/index-97iE2q1l.js","assets/SearchUtil-euy68KhE.js","assets/SearchUtil-Fi_1zs66.css","assets/index-rpFThF7n.css","assets/detail-Sj1Uzu8p.js","assets/index-mXj9VWUy.js","assets/instance-MbyoVFFM.js","assets/DateUtil-ed3saMVp.js","assets/PromQueryUtil-xm9pTL4M.js","assets/ByteUtil-YdHlSEeW.js","assets/instance-90vfeE3E.css","assets/service--7SgXxRn.js","assets/service-Qm7irZ4x.css","assets/monitor-4MZElxdr.js","assets/GrafanaPage-Ib81UiBl.js","assets/GrafanaPage-kjWXhr_m.css","assets/tracing-0saJ0bye.js","assets/config-IKkzv5Nb.js","assets/ConfigPage-bt_br5PT.js","assets/ConfigPage-cVEIcX7I.css","assets/config-6bc2RhwH.css","assets/event-d_wQc3g_.js","assets/event-0p00qhH9.css","assets/index-fwxuMidi.js","assets/index-JWp7iLDq.css","assets/detail-xChLxl9Z.js","assets/monitor-fKqC9Q7u.js","assets/linkTracking-wjZ-ycSv.js","assets/configuration-0U4sObwn.js","assets/search-GCTQci_4.js","assets/distribution-iEzIExlH.js","assets/distribution-Py-Du1W_.css","assets/monitor-LGJ7b0-x.js","assets/tracing-cZerXPwx.js","assets/sceneConfig-Y58Csalf.js","assets/sceneConfig-RIh0X0VO.css","assets/event-LYJunMDL.js","assets/event-lmBmBbXg.css","assets/index-u57ZDlZX.js","assets/traffic-BsDR0F4K.js","assets/index-RAD_B3-2.css","assets/formView-ULhh7EIP.js","assets/formView-ry7RXfv8.css","assets/YAMLView-Eh-9j974.js","assets/js-yaml-F_PXjql-.js","assets/js-yaml-TGthJqWD.css","assets/YAMLView-0MdW80fM.css","assets/addByFormView-Sygk6tZo.js","assets/addByFormView-y4Lm3R1H.css","assets/addByYAMLView-dNFM9Bbo.js","assets/addByYAMLView-pxyUhmjw.css","assets/updateByFormView-TnmABeBc.js","assets/updateByFormView-TNj8ahR3.css","assets/updateByYAMLView-m-m8wK4x.js","assets/updateByYAMLView-PEzkJVl5.css","assets/index-ecPHe_YS.js","assets/index-z3GkJOiG.css","assets/formView-lbEY3Kt0.js","assets/formView-4wdFbDyU.css","assets/YAMLView-ket2Aor6.js","assets/YAMLView-zY3xQ2jU.css","assets/addByFormView-gV28VMNn.js","assets/addByFormView-oQIIBcPS.css","assets/addByYAMLView-nV9s5qhd.js","assets/addByYAMLView-syQBWc8T.css","assets/updateByFormView-fQCTRCAj.js","assets/updateByFormView-Rbk-U9KY.css","assets/updateByYAMLView-ywfb5iZ3.js","assets/updateByYAMLView-mETZFxNZ.css","assets/index-KY4IGAgX.js","assets/index-3C570Mwi.css","assets/formView-IcrDVJjl.js","assets/ConfigModel-t29mQMqm.js","assets/formView-A1QBJo5I.css","assets/YAMLView-RC29bqZr.js","assets/YAMLView-YQ0g95u3.css","assets/notFound-mUOXRXmj.js","assets/notFound-DMLJUJ6x.css"] +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-JtaswhjV.js } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/app/dubbo-ui/dist/admin/assets/index-vRAqZ0qU.js b/app/dubbo-ui/dist/admin/assets/index-vRAqZ0qU.js index 746ad05a1..0f155bbeb 100644 --- a/app/dubbo-ui/dist/admin/assets/index-vRAqZ0qU.js +++ b/app/dubbo-ui/dist/admin/assets/index-vRAqZ0qU.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-vRAqZ0qU.js import{_ as e,c,o}from"./index-rt1yTeew.js";const n={},_={class:"__container_common_index"};function t(r,s){return o(),c("div",_,"placeholder demo")}const d=e(n,[["render",t]]);export{d as default}; +======== +import{_ as e,c,o}from"./index-JtaswhjV.js";const n={},_={class:"__container_common_index"};function t(r,s){return o(),c("div",_,"placeholder demo")}const d=e(n,[["render",t]]);export{d as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-nYQ6FtL1.js diff --git a/app/dubbo-ui/dist/admin/assets/index-vfibNA7v.js b/app/dubbo-ui/dist/admin/assets/index-vfibNA7v.js index a5df0d35d..4f9ba239c 100644 --- a/app/dubbo-ui/dist/admin/assets/index-vfibNA7v.js +++ b/app/dubbo-ui/dist/admin/assets/index-vfibNA7v.js @@ -1,4 +1,9 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-vfibNA7v.js import{s as b}from"./instance-ChxJL4oQ.js";import{S as D,a as N}from"./SearchUtil-FCBI7ppE.js";import{d as E,a as T,r as q,D as O,F as R,c as y,b as k,w as n,H as v,U as L,e as f,o as t,J as p,j as C,n as _,I as P,f as m,t as r,Y as V,T as i,a2 as $,a3 as A,L as B,M as F,z as M,_ as U}from"./index-rt1yTeew.js";import{p as Y,q as g}from"./PromQueryUtil-mqYJCdcK.js";import{b as H}from"./ByteUtil-YdHlSEeW.js";import"./request-vlI2kaaR.js";const J={class:"instances-container"},j=["onClick"],z={key:1},G=E({__name:"index",setup(K){let I=T(),x=I.query.query,w=[{title:"instanceDomain.instanceName",key:"name",dataIndex:"name",width:140},{title:"instanceDomain.instanceIP",key:"ip",dataIndex:"ip",width:200},{title:"instanceDomain.deployState",key:"deployState",dataIndex:"deployState",width:120},{title:"instanceDomain.deployCluster",key:"deployCluster",dataIndex:"deployCluster",width:120},{title:"instanceDomain.registerState",key:"registerState",dataIndex:"registerState",width:120},{title:"instanceDomain.registerCluster",key:"registerClusters",dataIndex:"registerClusters",width:140},{title:"instanceDomain.CPU",key:"cpu",dataIndex:"cpu",width:140},{title:"instanceDomain.memory",key:"memory",dataIndex:"memory",width:100},{title:"instanceDomain.startTime_k8s",key:"startTime_k8s",dataIndex:"startTime",width:200}];function S(d){return b(d).then(async u=>Y(u,["cpu","memory"],async l=>{let a=l.ip.split(":")[0],e=await g(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${a}"}`),c=await g(`sum(container_memory_working_set_bytes{container!=""}) by (pod) +======== +import{s as b}from"./instance-sa6ohjCn.js";import{S as D,a as N}from"./SearchUtil-euy68KhE.js";import{d as E,a as T,r as q,D as O,F as R,c as y,b as k,w as n,H as v,U as L,e as f,o as t,J as c,j as C,n as _,I as P,f as p,t as r,Y as V,T as i,a2 as $,a3 as A,L as B,M as F,z as M,_ as U}from"./index-JtaswhjV.js";import{p as Y,q as g}from"./PromQueryUtil-xm9pTL4M.js";import{b as H}from"./ByteUtil-YdHlSEeW.js";import"./request--dYXBGM5.js";const J={class:"instances-container"},j=["onClick"],z={key:1},G=E({__name:"index",setup(K){let I=T(),x=I.query.query,w=[{title:"instanceDomain.instanceName",key:"name",dataIndex:"name",width:140},{title:"instanceDomain.instanceIP",key:"ip",dataIndex:"ip",width:200},{title:"instanceDomain.deployState",key:"deployState",dataIndex:"deployState",width:120},{title:"instanceDomain.deployCluster",key:"deployCluster",dataIndex:"deployCluster",width:120},{title:"instanceDomain.registerState",key:"registerState",dataIndex:"registerState",width:120},{title:"instanceDomain.registerCluster",key:"registerClusters",dataIndex:"registerClusters",width:140},{title:"instanceDomain.CPU",key:"cpu",dataIndex:"cpu",width:140},{title:"instanceDomain.memory",key:"memory",dataIndex:"memory",width:100},{title:"instanceDomain.startTime_k8s",key:"startTime_k8s",dataIndex:"startTime",width:200}];function S(d){return b(d).then(async u=>Y(u,["cpu","memory"],async l=>{let a=l.ip.split(":")[0],e=await g(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) + kube_pod_info{pod_ip="${a}"}`),m=await g(`sum(container_memory_working_set_bytes{container!=""}) by (pod) +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-fwxuMidi.js * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${a}"}`);l.cpu=v.isNumber(e)?e.toFixed(3)+"u":e,l.memory=H(c)}))}const o=q(new D([{label:"instanceDomain.instanceIP",param:"keywords",defaultValue:x,placeholder:"typeInstanceIP",style:{width:"200px"}}],S,w));return O(()=>{o.tableStyle={scrollX:"100",scrollY:"367px"},o.onSearch()}),L(M.SEARCH_DOMAIN,o),R(I,(d,u)=>{o.queryForm.keywords=d.query.query,o.onSearch(),console.log(d)}),(d,u)=>{const l=f("a-tooltip"),a=f("a-tag");return t(),y("div",J,[k(N,{"search-domain":o},{bodyCell:n(({text:e,record:c,index:Q,column:s})=>[s.dataIndex==="name"?(t(),p(l,{key:0,title:e},{default:n(()=>[C("span",{class:"app-link",onClick:h=>_(V).push(`/resources/instances/detail/${c.name}/${c.ip}/${c.appName}`)},[C("b",null,[k(_(P),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),m(" "+r(e),1)])],8,j)]),_:2},1032,["title"])):i("",!0),s.dataIndex==="ip"?(t(),y("span",z,r(e),1)):i("",!0),s.dataIndex==="deployState"?(t(),p(a,{key:2,color:_($)[e.toUpperCase()]},{default:n(()=>[m(r(e),1)]),_:2},1032,["color"])):i("",!0),s.dataIndex==="deployCluster"?(t(),p(a,{key:3,color:"grey"},{default:n(()=>[m(r(e),1)]),_:2},1024)):i("",!0),s.dataIndex==="registerState"?(t(),p(a,{key:4,color:_(A)[e.toUpperCase()]},{default:n(()=>[m(r(e),1)]),_:2},1032,["color"])):i("",!0),s.dataIndex==="registerClusters"?(t(!0),y(B,{key:5},F(e,h=>(t(),p(a,{color:"grey"},{default:n(()=>[m(r(h),1)]),_:2},1024))),256)):i("",!0)]),_:1},8,["search-domain"])])}}}),oe=U(G,[["__scopeId","data-v-40f5e4f1"]]);export{oe as default}; diff --git a/app/dubbo-ui/dist/admin/assets/instance-ChxJL4oQ.js b/app/dubbo-ui/dist/admin/assets/instance-ChxJL4oQ.js index 7ccfb26e5..ac40275a2 100644 --- a/app/dubbo-ui/dist/admin/assets/instance-ChxJL4oQ.js +++ b/app/dubbo-ui/dist/admin/assets/instance-ChxJL4oQ.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/instance-ChxJL4oQ.js import{r as e}from"./request-vlI2kaaR.js";const s=t=>e({url:"/instance/search",method:"get",params:t}),c=t=>e({url:"/instance/detail",method:"get",params:t}),o=t=>e({url:"/instance/metric-dashboard",method:"get",params:t}),i=t=>e({url:"/instance/trace-dashboard",method:"get",params:t}),u=(t,a)=>e({url:"/instance/config/operatorLog",method:"get",params:{instanceIP:t,appName:a}}),g=(t,a,n)=>e({url:"/instance/config/operatorLog",method:"put",params:{instanceIP:t,appName:a,operatorLog:n}}),d=(t,a)=>e({url:"/instance/config/trafficDisable",method:"get",params:{instanceIP:t,appName:a}}),h=(t,a,n)=>e({url:"/instance/config/trafficDisable",method:"put",params:{instanceIP:t,appName:a,trafficDisable:n}});export{o as a,i as b,h as c,u as d,d as e,c as g,s,g as u}; +======== +import{r as e}from"./request--dYXBGM5.js";const s=t=>e({url:"/instance/search",method:"get",params:t}),c=t=>e({url:"/instance/detail",method:"get",params:t}),o=t=>e({url:"/instance/metric-dashboard",method:"get",params:t}),i=t=>e({url:"/instance/trace-dashboard",method:"get",params:t}),u=(t,a)=>e({url:"/instance/config/operatorLog",method:"get",params:{instanceIP:t,appName:a}}),g=(t,a,n)=>e({url:"/instance/config/operatorLog",method:"put",params:{instanceIP:t,appName:a,operatorLog:n}}),d=(t,a)=>e({url:"/instance/config/trafficDisable",method:"get",params:{instanceIP:t,appName:a}}),h=(t,a,n)=>e({url:"/instance/config/trafficDisable",method:"put",params:{instanceIP:t,appName:a,trafficDisable:n}});export{o as a,i as b,h as c,u as d,d as e,c as g,s,g as u}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/instance-sa6ohjCn.js diff --git a/app/dubbo-ui/dist/admin/assets/instance-jbHVDGq-.js b/app/dubbo-ui/dist/admin/assets/instance-jbHVDGq-.js index 9f9d573ad..ed02ccc6c 100644 --- a/app/dubbo-ui/dist/admin/assets/instance-jbHVDGq-.js +++ b/app/dubbo-ui/dist/admin/assets/instance-jbHVDGq-.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/instance-jbHVDGq-.js import{d as B,v as Y,a as j,u as H,r as x,D as S,c as I,b as d,w as t,e as y,n as o,P as g,H as U,U as q,o as a,L as C,M as D,J as r,I as v,f as l,t as n,j as N,T as c,a2 as z,a3 as F,z as J,_ as G}from"./index-rt1yTeew.js";import{S as K,a as Q}from"./SearchUtil-FCBI7ppE.js";import{a as X}from"./app-4lFIb2G-.js";import{f as W}from"./DateUtil-OIUqM92a.js";import{p as Z,q as T}from"./PromQueryUtil-mqYJCdcK.js";import{b as ee}from"./ByteUtil-YdHlSEeW.js";import"./request-vlI2kaaR.js";const te={class:"__container_app_instance"},ae={class:"statistic-icon-big"},se=["onClick"],oe=B({__name:"instance",setup(ne){var k;Y(i=>({"78ed5cfc":o(g)+"22","2b29ec18":o(g)}));const E=j(),R=H();let O=x({info:{},report:{}}),A=(k=E.params)==null?void 0:k.pathId;S(async()=>{});const L=[{title:"instanceDomain.name",dataIndex:"name",key:"name",width:180,fixed:"left"},{title:"instanceDomain.ip",dataIndex:"ip",key:"ip",width:150},{title:"instanceDomain.deployState",dataIndex:"deployState",key:"deployState",width:150},{title:"instanceDomain.deployCluster",dataIndex:"deployClusters",key:"deployClusters",width:180},{title:"instanceDomain.registerState",dataIndex:"registerState",key:"registerState",width:150},{title:"instanceDomain.registerClusters",dataIndex:"registerCluster",key:"registerCluster",width:200},{title:"instanceDomain.cpu",dataIndex:"cpu",key:"cpu",width:120},{title:"instanceDomain.memory",dataIndex:"memory",key:"memory",width:120},{title:"instanceDomain.startTime",dataIndex:"startTime",key:"startTime",width:150}];function V(i){return X(i).then(async b=>Z(b,["cpu","memory"],async p=>{let _=p.ip.split(":")[0],u=await T(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) +======== +import{d as B,v as Y,a as j,u as H,r as x,D as S,c as I,b as d,w as t,e as y,n as o,P as g,H as U,U as q,o as a,L as C,M as D,J as r,I as v,f as l,t as n,j as N,T as c,a2 as z,a3 as F,z as J,_ as G}from"./index-JtaswhjV.js";import{S as K,a as Q}from"./SearchUtil-euy68KhE.js";import{a as X}from"./app-PIImRajL.js";import{f as W}from"./DateUtil-ed3saMVp.js";import{p as Z,q as T}from"./PromQueryUtil-xm9pTL4M.js";import{b as ee}from"./ByteUtil-YdHlSEeW.js";import"./request--dYXBGM5.js";const te={class:"__container_app_instance"},ae={class:"statistic-icon-big"},se=["onClick"],oe=B({__name:"instance",setup(ne){var k;Y(i=>({"78ed5cfc":o(g)+"22","2b29ec18":o(g)}));const E=j(),R=H();let O=x({info:{},report:{}}),A=(k=E.params)==null?void 0:k.pathId;S(async()=>{});const L=[{title:"instanceDomain.name",dataIndex:"name",key:"name",width:180,fixed:"left"},{title:"instanceDomain.ip",dataIndex:"ip",key:"ip",width:150},{title:"instanceDomain.deployState",dataIndex:"deployState",key:"deployState",width:150},{title:"instanceDomain.deployCluster",dataIndex:"deployClusters",key:"deployClusters",width:180},{title:"instanceDomain.registerState",dataIndex:"registerState",key:"registerState",width:150},{title:"instanceDomain.registerClusters",dataIndex:"registerCluster",key:"registerCluster",width:200},{title:"instanceDomain.cpu",dataIndex:"cpu",key:"cpu",width:120},{title:"instanceDomain.memory",dataIndex:"memory",key:"memory",width:120},{title:"instanceDomain.startTime",dataIndex:"startTime",key:"startTime",width:150}];function V(i){return X(i).then(async b=>Z(b,["cpu","memory"],async p=>{let _=p.ip.split(":")[0],u=await T(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/instance-MbyoVFFM.js kube_pod_info{pod_ip="${_}"}`),h=await T(`sum(container_memory_working_set_bytes{container!=""}) by (pod) * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${_}"}`);p.cpu=U.isNumber(u)?u.toFixed(3)+"u":u,p.memory=ee(h)}))}const f=x(new K([{label:"",param:"type",defaultValue:1,dict:[{label:"ip",value:1},{label:"name",value:2},{label:"label",value:3}],style:{width:"100px"}},{label:"",param:"search",style:{width:"300px"}},{label:"",param:"appName",defaultValue:A,dict:[],dictType:"APPLICATION_NAME"}],V,L,{pageSize:10},!0));S(()=>{f.tableStyle={scrollX:"100",scrollY:"calc(100vh - 400px)"},f.onSearch()});const P=i=>{R.push(`/resources/instances/detail/${i.name}/${i.ip}`)};return q(J.SEARCH_DOMAIN,f),(i,b)=>{const p=y("a-statistic"),_=y("a-flex"),u=y("a-card"),h=y("a-tooltip"),m=y("a-tag");return a(),I("div",te,[d(_,{wrap:"wrap",gap:"small",vertical:!1,justify:"space-around",align:"left"},{default:t(()=>[(a(!0),I(C,null,D(o(O).report,(s,e)=>(a(),r(u,{class:"statistic-card"},{default:t(()=>[d(_,{gap:"middle",vertical:!1,justify:"space-between",align:"center"},{default:t(()=>[d(p,{value:s.value,class:"statistic"},{prefix:t(()=>[d(o(v),{class:"statistic-icon",icon:"solar:target-line-duotone"})]),title:t(()=>[l(n(i.$t(e.toString())),1)]),_:2},1032,["value"]),N("div",ae,[d(o(v),{icon:s.icon},null,8,["icon"])])]),_:2},1024)]),_:2},1024))),256))]),_:1}),d(Q,{"search-domain":f},{bodyCell:t(({column:s,text:e,record:M})=>[s.dataIndex==="name"?(a(),r(h,{key:0,title:e},{default:t(()=>[N("span",{class:"app-link",onClick:w=>P(M)},n(e),9,se)]),_:2},1032,["title"])):c("",!0),s.dataIndex==="deployState"?(a(),r(m,{key:1,color:o(z)[e.toUpperCase()]},{default:t(()=>[l(n(e),1)]),_:2},1032,["color"])):c("",!0),s.dataIndex==="deployClusters"?(a(),r(m,{key:2},{default:t(()=>[l(n(e),1)]),_:2},1024)):c("",!0),s.dataIndex==="registerState"?(a(),r(m,{key:3,color:o(F)[e.toUpperCase()]},{default:t(()=>[l(n(e),1)]),_:2},1032,["color"])):c("",!0),s.dataIndex==="registerCluster"?(a(),r(m,{key:4},{default:t(()=>[l(n(e),1)]),_:2},1024)):c("",!0),s.dataIndex==="labels"?(a(!0),I(C,{key:5},D(e,(w,$)=>(a(),r(m,{color:o(g)},{default:t(()=>[l(n($)+" : "+n(w),1)]),_:2},1032,["color"]))),256)):c("",!0),s.dataIndex==="registerTime"?(a(),I(C,{key:6},[l(n(o(W)(e)),1)],64)):c("",!0)]),_:1},8,["search-domain"])])}}}),ue=G(oe,[["__scopeId","data-v-30ecf1a7"]]);export{ue as default}; diff --git a/app/dubbo-ui/dist/admin/assets/javascript-Pd2mCcrq.js b/app/dubbo-ui/dist/admin/assets/javascript-Pd2mCcrq.js index 453bab76d..3b686e491 100644 --- a/app/dubbo-ui/dist/admin/assets/javascript-Pd2mCcrq.js +++ b/app/dubbo-ui/dist/admin/assets/javascript-Pd2mCcrq.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/javascript-Pd2mCcrq.js import{conf as t,language as e}from"./typescript-RCkR-T-T.js";import"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{conf as t,language as e}from"./typescript-gBGQkGaZ.js";import"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/javascript-ag7Jk9EF.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js b/app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js index e0ed8acec..18368ae35 100644 --- a/app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js +++ b/app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js var pQ=Object.defineProperty;var mQ=(s,e,t)=>e in s?pQ(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Fi=(s,e,t)=>(mQ(s,typeof e!="symbol"?e+"":e,t),t);import{aj as Se,d as _Q,F as bQ,D as CQ,o as vQ,c as wQ,ah as SQ}from"./index-rt1yTeew.js";function ar(s,e=0){return s[s.length-(1+e)]}function yQ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function ti(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;it(s[i],e))}function xQ(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function LR(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s!!e)}function i7(s){let e=0;for(let t=0;t0}function Xc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function e5(s,e){return s.length>0?s[0]:e}function Ts(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function xI(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function fN(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function F0(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function xR(s,e){for(const t of e)s.push(t)}function t5(s){return Array.isArray(s)?s:[s]}function DQ(s,e,t){const i=Xz(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Yv||(Yv={}));function ps(s,e){return(t,i)=>e(s(t),s(i))}function IQ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!Yv.isNeitherLessOrGreaterThan(n))return n}return Yv.neitherLessOrGreaterThan}}const Zr=(s,e)=>s-e,EQ=(s,e)=>Zr(s?1:0,e?1:0);function Qz(s){return(e,t)=>-s(e,t)}class Qc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}const Hp=class Hp{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Hp(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Hp(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Yv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}};Hp.empty=new Hp(e=>{});let sg=Hp;class Wy{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new Wy(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function Al(s){return!Fo(s)}function Fo(s){return Jn(s)||s===null}function ft(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Zd(s){if(Fo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Xv(s){return typeof s=="function"}function TQ(s,e){const t=Math.min(s.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?yc(i):i}),e}function MQ(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(eU.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!NQ(n)&&e.push(n)}}return s}const eU=Object.prototype.hasOwnProperty;function tU(s,e){return kR(s,e,new Set)}function kR(s,e,t){if(Fo(s))return s;const i=e(s);if(typeof i<"u")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(kR(o,e,t));return n}if(on(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)eU.call(s,o)&&(n[o]=kR(s[o],e,t));return t.delete(s),n}return s}function kI(s,e,t=!0){return on(s)?(on(e)&&Object.keys(e).forEach(i=>{i in s?t&&(on(s[i])&&on(e[i])?kI(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function ho(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;tfunction(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}function iU(){return globalThis._VSCODE_NLS_MESSAGES}function i5(){return globalThis._VSCODE_NLS_LANGUAGE}const OQ=i5()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function By(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),OQ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return By(typeof s=="number"?nU(s,e):e,t)}function nU(s,e){var i;const t=(i=iU())==null?void 0:i[s];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${s} !!!`)}return t}function Ee(s,e,...t){let i;typeof s=="number"?i=nU(s,e):i=e;const n=By(i,t);return{value:n,original:e===i?n:By(e,t)}}const gp="en";let Hy=!1,Vy=!1,ZS=!1,sU=!1,n5=!1,s5=!1,oU=!1,W0,YS=gp,o7=gp,FQ,ha;const $c=globalThis;let rs;var jz;typeof $c.vscode<"u"&&typeof $c.vscode.process<"u"?rs=$c.vscode.process:typeof process<"u"&&typeof((jz=process==null?void 0:process.versions)==null?void 0:jz.node)=="string"&&(rs=process);var Kz;const WQ=typeof((Kz=rs==null?void 0:rs.versions)==null?void 0:Kz.electron)=="string",BQ=WQ&&(rs==null?void 0:rs.type)==="renderer";var qz;if(typeof rs=="object"){Hy=rs.platform==="win32",Vy=rs.platform==="darwin",ZS=rs.platform==="linux",ZS&&rs.env.SNAP&&rs.env.SNAP_REVISION,rs.env.CI||rs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,W0=gp,YS=gp;const s=rs.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s);W0=e.userLocale,o7=e.osLocale,YS=e.resolvedLanguage||gp,FQ=(qz=e.languagePack)==null?void 0:qz.translationsConfigFile}catch{}sU=!0}else typeof navigator=="object"&&!BQ?(ha=navigator.userAgent,Hy=ha.indexOf("Windows")>=0,Vy=ha.indexOf("Macintosh")>=0,s5=(ha.indexOf("Macintosh")>=0||ha.indexOf("iPad")>=0||ha.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ZS=ha.indexOf("Linux")>=0,oU=(ha==null?void 0:ha.indexOf("Mobi"))>=0,n5=!0,YS=i5()||gp,W0=navigator.language.toLowerCase(),o7=W0):console.error("Unable to resolve platform.");const Nn=Hy,Je=Vy,Cs=ZS,Na=sU,uf=n5,HQ=n5&&typeof $c.importScripts=="function",VQ=HQ?$c.origin:void 0,Wa=s5,rU=oU,Bl=ha,zQ=YS,UQ=typeof $c.postMessage=="function"&&!$c.importScripts,aU=(()=>{if(UQ){const s=[];$c.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i{const i=++e;s.push({id:i,callback:t}),$c.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),co=Vy||s5?2:Hy?1:3;let r7=!0,a7=!1;function lU(){if(!a7){a7=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,r7=new Uint16Array(s.buffer)[0]===513}return r7}const cU=!!(Bl&&Bl.indexOf("Chrome")>=0),$Q=!!(Bl&&Bl.indexOf("Firefox")>=0),jQ=!!(!cU&&Bl&&Bl.indexOf("Safari")>=0),KQ=!!(Bl&&Bl.indexOf("Edg/")>=0),qQ=!!(Bl&&Bl.indexOf("Android")>=0),Pn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ot;(function(s){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(w){yield w}s.single=n;function o(w){return e(w)?w:n(w)}s.wrap=o;function r(w){return w||t}s.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}s.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}s.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}s.first=c;function d(w,S){let L=0;for(const k of w)if(S(k,L++))return!0;return!1}s.some=d;function h(w,S){for(const L of w)if(S(L))return L}s.find=h;function*u(w,S){for(const L of w)S(L)&&(yield L)}s.filter=u;function*g(w,S){let L=0;for(const k of w)yield S(k,L++)}s.map=g;function*f(w,S){let L=0;for(const k of w)yield*S(k,L++)}s.flatMap=f;function*m(...w){for(const S of w)yield*S}s.concat=m;function _(w,S,L){let k=L;for(const D of w)k=S(k,D);return k}s.reduce=_;function*b(w,S,L=w.length){for(S<0&&(S+=w.length),L<0?L+=w.length:L>w.length&&(L=w.length);S{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Ki.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ki.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ki.Undefined&&e.next!==Ki.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ki.Undefined&&e.next===Ki.Undefined?(this._first=Ki.Undefined,this._last=Ki.Undefined):e.next===Ki.Undefined?(this._last=this._last.prev,this._last.next=Ki.Undefined):e.prev===Ki.Undefined&&(this._first=this._first.next,this._first.prev=Ki.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ki.Undefined;)yield e.element,e=e.next}}const zy="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function GQ(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of zy)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const o5=GQ();function r5(s){let e=o5;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const dU=new hs;dU.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Qv(s,e,t,i,n){if(e=r5(e),n||(n=ot.first(dU)),t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Qv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=ZQ(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function ZQ(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const rl=8;class hU{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class uU{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Qt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}compute(e,t,i){return i}}class jC{constructor(e,t){this.newValue=e,this.didChange=t}}function DI(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new jC(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&ti(s,e);return new jC(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=DI(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new jC(s,t)}class K1{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return DI(e,t)}validate(e){return this.defaultValue}}class ub{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function be(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ut extends ub{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return be(e,this.defaultValue)}}function Cu(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class At extends ub{static clampedInt(e,t,i,n){return Cu(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return At.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function YQ(s,e,t,i){if(typeof s>"u")return e;const n=Vo.float(s,e);return Vo.clamp(n,t,i)}class Vo extends ub{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Vo.float(e,this.defaultValue))}}class Xn extends ub{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Xn.string(e,this.defaultValue)}}function gi(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class ui extends ub{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return gi(e,this.defaultValue,this._allowedValues)}}class B0 extends Qt{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function XQ(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class QQ extends Qt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class JQ extends Qt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:be(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:be(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function eJ(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var fn;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(fn||(fn={}));function tJ(s){switch(s){case"line":return fn.Line;case"block":return fn.Block;case"underline":return fn.Underline;case"line-thin":return fn.LineThin;case"block-outline":return fn.BlockOutline;case"underline-thin":return fn.UnderlineThin}}class iJ extends K1{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}class nJ extends ut{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class sJ extends Qt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Je},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:be(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":gi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":gi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:be(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:be(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:be(t.loop,this.defaultValue.loop)}}}const bc=class bc extends Qt{constructor(){super(51,"fontLigatures",bc.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?bc.OFF:e==="true"?bc.ON:e:e?bc.ON:bc.OFF}};bc.OFF='"liga" off, "calt" off',bc.ON='"liga" on, "calt" on';let xh=bc;const Cc=class Cc extends Qt{constructor(){super(54,"fontVariations",Cc.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Cc.OFF:e==="true"?Cc.TRANSLATE:e:e?Cc.TRANSLATE:Cc.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}};Cc.OFF="normal",Cc.TRANSLATE="translate";let Jv=Cc;class oJ extends K1{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class rJ extends ub{constructor(){super(52,"fontSize",ms.fontSize,{type:"number",minimum:6,maximum:100,default:ms.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Vo.float(e,this.defaultValue);return t===0?ms.fontSize:Vo.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}const hl=class hl extends Qt{constructor(){super(53,"fontWeight",ms.fontWeight,{anyOf:[{type:"number",minimum:hl.MINIMUM_VALUE,maximum:hl.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:hl.SUGGESTION_VALUES}],default:ms.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(At.clampedInt(e,ms.fontWeight,hl.MINIMUM_VALUE,hl.MAXIMUM_VALUE))}};hl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],hl.MINIMUM_VALUE=1,hl.MAXIMUM_VALUE=1e3;let IR=hl;class aJ extends Qt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:gi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??gi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??gi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??gi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??gi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??gi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??gi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Xn.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Xn.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Xn.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Xn.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Xn.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Xn.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class lJ extends Qt{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),delay:At.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:be(t.sticky,this.defaultValue.sticky),hidingDelay:At.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:be(t.above,this.defaultValue.above)}}}class im extends K1{constructor(){super(146)}compute(e,t,i){return im.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,C=e.remainingWidth,v=e.isViewportWrapping,w=h?2:3;let S=Math.floor(o*n);const L=S/o;let k=!1,D=!1,T=w*u,U=u/o,W=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:me,extraLinesBeforeFirstLine:ge,extraLinesBeyondLastLine:Ae,desiredRatio:Pe,minimapLineCount:hi}=im.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/hi>1)k=!0,D=!0,u=1,T=1,U=u/o;else{let It=!1,St=u+1;if(f==="fit"){const Ti=Math.ceil((ge+b+Ae)*T);v&&a&&C<=t.stableFitRemainingWidth?(It=!0,St=t.stableFitMaxMinimapScale):It=Ti>S}if(f==="fill"||It){k=!0;const Ti=u;T=Math.min(l*o,Math.max(1,Math.floor(1/Pe))),v&&a&&C<=t.stableFitRemainingWidth&&(St=t.stableFitMaxMinimapScale),u=Math.min(St,Math.max(1,Math.floor(T/w))),u>Ti&&(W=Math.min(2,u/Ti)),U=u/o/W,S=Math.ceil(Math.max(me,ge+b+Ae)*T),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const V=Math.floor(g*U),$=Math.min(V,Math.max(0,Math.floor((C-_-2)*U/(c+U)))+rl);let B=Math.floor(o*$);const X=B/o;B=Math.floor(B*W);const ae=h?1:2,ue=m==="left"?0:i-$-_;return{renderMinimap:ae,minimapLeft:ue,minimapWidth:$,minimapHeightIsEditorHeight:k,minimapIsSampling:D,minimapScale:u,minimapLineHeight:T,minimapCanvasInnerWidth:B,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:X,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(138),u=h==="inherit"?e.get(137):h,g=u==="inherit"?e.get(133):u,f=e.get(136),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,C=e.get(69),v=e.get(106),w=e.get(84),S=e.get(73),L=e.get(104),k=L.verticalScrollbarSize,D=L.verticalHasArrows,T=L.arrowSize,U=L.horizontalScrollbarSize,W=e.get(43),V=e.get(111)!=="never";let $=e.get(66);W&&V&&($+=16);let B=0;if(b){const Is=Math.max(r,C);B=Math.round(Is*l)}let X=0;_&&(X=o*t.glyphMarginDecorationLaneCount);let ae=0,ue=ae+X,me=ue+B,ge=me+$;const Ae=i-X-B-$;let Pe=!1,hi=!1,Be=-1;u==="inherit"&&m?(Pe=!0,hi=!0):g==="on"||g==="bounded"?hi=!0:g==="wordWrapColumn"&&(Be=f);const It=im._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:v,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:Ae,isViewportWrapping:hi},t.memory||new uU);It.renderMinimap!==0&&It.minimapLeft===0&&(ae+=It.minimapWidth,ue+=It.minimapWidth,me+=It.minimapWidth,ge+=It.minimapWidth);const St=Ae-It.minimapWidth,Ti=Math.max(1,Math.floor((St-k-2)/a)),ns=D?T:0;return hi&&(Be=Math.max(1,Ti),g==="bounded"&&(Be=Math.min(Be,f))),{width:i,height:n,glyphMarginLeft:ae,glyphMarginWidth:X,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ue,lineNumbersWidth:B,decorationsLeft:me,decorationsWidth:$,contentLeft:ge,contentWidth:St,minimap:It,viewportColumn:Ti,isWordWrapMinified:Pe,isViewportWrapping:hi,wrappingColumn:Be,verticalScrollbarWidth:k,horizontalScrollbarHeight:U,overviewRuler:{top:ns,width:k,height:n-2*ns,right:0}}}}class cJ extends Qt{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return gi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Vr;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Vr||(Vr={}));class dJ extends Qt{constructor(){const e={enabled:Vr.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Vr.Off,Vr.OnCode,Vr.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:gi(e.enabled,this.defaultValue.enabled,[Vr.Off,Vr.OnCode,Vr.On])}}}class hJ extends Qt{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),maxLineCount:At.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:gi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:be(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class uJ extends Qt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:gi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:At.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily),padding:be(t.padding,this.defaultValue.padding)}}}class gJ extends Qt{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):At.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?At.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class fJ extends Vo{constructor(){super(67,"lineHeight",ms.lineHeight,e=>Vo.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +======== +var pQ=Object.defineProperty;var mQ=(s,e,t)=>e in s?pQ(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Fi=(s,e,t)=>(mQ(s,typeof e!="symbol"?e+"":e,t),t);import{ah as Se,d as _Q,F as bQ,D as CQ,o as vQ,c as wQ,af as SQ}from"./index-JtaswhjV.js";function ar(s,e=0){return s[s.length-(1+e)]}function yQ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function ti(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;it(s[i],e))}function xQ(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function LR(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s!!e)}function i7(s){let e=0;for(let t=0;t0}function Xc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function e5(s,e){return s.length>0?s[0]:e}function Ts(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function xI(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function fN(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function F0(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function xR(s,e){for(const t of e)s.push(t)}function t5(s){return Array.isArray(s)?s:[s]}function DQ(s,e,t){const i=Xz(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Yv||(Yv={}));function ps(s,e){return(t,i)=>e(s(t),s(i))}function IQ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!Yv.isNeitherLessOrGreaterThan(n))return n}return Yv.neitherLessOrGreaterThan}}const Zr=(s,e)=>s-e,EQ=(s,e)=>Zr(s?1:0,e?1:0);function Qz(s){return(e,t)=>-s(e,t)}class Qc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}const Hp=class Hp{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Hp(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Hp(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Yv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}};Hp.empty=new Hp(e=>{});let sg=Hp;class Wy{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new Wy(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function Al(s){return!Fo(s)}function Fo(s){return Jn(s)||s===null}function ft(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Zd(s){if(Fo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Xv(s){return typeof s=="function"}function TQ(s,e){const t=Math.min(s.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?yc(i):i}),e}function MQ(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(eU.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!NQ(n)&&e.push(n)}}return s}const eU=Object.prototype.hasOwnProperty;function tU(s,e){return kR(s,e,new Set)}function kR(s,e,t){if(Fo(s))return s;const i=e(s);if(typeof i<"u")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(kR(o,e,t));return n}if(on(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)eU.call(s,o)&&(n[o]=kR(s[o],e,t));return t.delete(s),n}return s}function kI(s,e,t=!0){return on(s)?(on(e)&&Object.keys(e).forEach(i=>{i in s?t&&(on(s[i])&&on(e[i])?kI(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function ho(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;tfunction(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}function iU(){return globalThis._VSCODE_NLS_MESSAGES}function i5(){return globalThis._VSCODE_NLS_LANGUAGE}const OQ=i5()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function By(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),OQ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return By(typeof s=="number"?nU(s,e):e,t)}function nU(s,e){var i;const t=(i=iU())==null?void 0:i[s];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${s} !!!`)}return t}function Ee(s,e,...t){let i;typeof s=="number"?i=nU(s,e):i=e;const n=By(i,t);return{value:n,original:e===i?n:By(e,t)}}const gp="en";let Hy=!1,Vy=!1,ZS=!1,sU=!1,n5=!1,s5=!1,oU=!1,W0,YS=gp,o7=gp,FQ,ha;const $c=globalThis;let rs;var jz;typeof $c.vscode<"u"&&typeof $c.vscode.process<"u"?rs=$c.vscode.process:typeof process<"u"&&typeof((jz=process==null?void 0:process.versions)==null?void 0:jz.node)=="string"&&(rs=process);var Kz;const WQ=typeof((Kz=rs==null?void 0:rs.versions)==null?void 0:Kz.electron)=="string",BQ=WQ&&(rs==null?void 0:rs.type)==="renderer";var qz;if(typeof rs=="object"){Hy=rs.platform==="win32",Vy=rs.platform==="darwin",ZS=rs.platform==="linux",ZS&&rs.env.SNAP&&rs.env.SNAP_REVISION,rs.env.CI||rs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,W0=gp,YS=gp;const s=rs.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s);W0=e.userLocale,o7=e.osLocale,YS=e.resolvedLanguage||gp,FQ=(qz=e.languagePack)==null?void 0:qz.translationsConfigFile}catch{}sU=!0}else typeof navigator=="object"&&!BQ?(ha=navigator.userAgent,Hy=ha.indexOf("Windows")>=0,Vy=ha.indexOf("Macintosh")>=0,s5=(ha.indexOf("Macintosh")>=0||ha.indexOf("iPad")>=0||ha.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ZS=ha.indexOf("Linux")>=0,oU=(ha==null?void 0:ha.indexOf("Mobi"))>=0,n5=!0,YS=i5()||gp,W0=navigator.language.toLowerCase(),o7=W0):console.error("Unable to resolve platform.");const Nn=Hy,Je=Vy,Cs=ZS,Na=sU,uf=n5,HQ=n5&&typeof $c.importScripts=="function",VQ=HQ?$c.origin:void 0,Wa=s5,rU=oU,Bl=ha,zQ=YS,UQ=typeof $c.postMessage=="function"&&!$c.importScripts,aU=(()=>{if(UQ){const s=[];$c.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i{const i=++e;s.push({id:i,callback:t}),$c.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),co=Vy||s5?2:Hy?1:3;let r7=!0,a7=!1;function lU(){if(!a7){a7=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,r7=new Uint16Array(s.buffer)[0]===513}return r7}const cU=!!(Bl&&Bl.indexOf("Chrome")>=0),$Q=!!(Bl&&Bl.indexOf("Firefox")>=0),jQ=!!(!cU&&Bl&&Bl.indexOf("Safari")>=0),KQ=!!(Bl&&Bl.indexOf("Edg/")>=0),qQ=!!(Bl&&Bl.indexOf("Android")>=0),Pn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ot;(function(s){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(w){yield w}s.single=n;function o(w){return e(w)?w:n(w)}s.wrap=o;function r(w){return w||t}s.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}s.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}s.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}s.first=c;function d(w,S){let L=0;for(const k of w)if(S(k,L++))return!0;return!1}s.some=d;function h(w,S){for(const L of w)if(S(L))return L}s.find=h;function*u(w,S){for(const L of w)S(L)&&(yield L)}s.filter=u;function*g(w,S){let L=0;for(const k of w)yield S(k,L++)}s.map=g;function*f(w,S){let L=0;for(const k of w)yield*S(k,L++)}s.flatMap=f;function*m(...w){for(const S of w)yield*S}s.concat=m;function _(w,S,L){let k=L;for(const D of w)k=S(k,D);return k}s.reduce=_;function*b(w,S,L=w.length){for(S<0&&(S+=w.length),L<0?L+=w.length:L>w.length&&(L=w.length);S{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Ki.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ki.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ki.Undefined&&e.next!==Ki.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ki.Undefined&&e.next===Ki.Undefined?(this._first=Ki.Undefined,this._last=Ki.Undefined):e.next===Ki.Undefined?(this._last=this._last.prev,this._last.next=Ki.Undefined):e.prev===Ki.Undefined&&(this._first=this._first.next,this._first.prev=Ki.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ki.Undefined;)yield e.element,e=e.next}}const zy="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function GQ(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of zy)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const o5=GQ();function r5(s){let e=o5;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const dU=new hs;dU.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Qv(s,e,t,i,n){if(e=r5(e),n||(n=ot.first(dU)),t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Qv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=ZQ(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function ZQ(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const rl=8;class hU{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class uU{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Qt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}compute(e,t,i){return i}}class jC{constructor(e,t){this.newValue=e,this.didChange=t}}function DI(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new jC(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&ti(s,e);return new jC(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=DI(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new jC(s,t)}class K1{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return DI(e,t)}validate(e){return this.defaultValue}}class ub{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function be(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ut extends ub{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return be(e,this.defaultValue)}}function Cu(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class At extends ub{static clampedInt(e,t,i,n){return Cu(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return At.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function YQ(s,e,t,i){if(typeof s>"u")return e;const n=Vo.float(s,e);return Vo.clamp(n,t,i)}class Vo extends ub{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Vo.float(e,this.defaultValue))}}class Xn extends ub{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Xn.string(e,this.defaultValue)}}function gi(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class ui extends ub{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return gi(e,this.defaultValue,this._allowedValues)}}class B0 extends Qt{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function XQ(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class QQ extends Qt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class JQ extends Qt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:be(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:be(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function eJ(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var fn;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(fn||(fn={}));function tJ(s){switch(s){case"line":return fn.Line;case"block":return fn.Block;case"underline":return fn.Underline;case"line-thin":return fn.LineThin;case"block-outline":return fn.BlockOutline;case"underline-thin":return fn.UnderlineThin}}class iJ extends K1{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}class nJ extends ut{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class sJ extends Qt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Je},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:be(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":gi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":gi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:be(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:be(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:be(t.loop,this.defaultValue.loop)}}}const bc=class bc extends Qt{constructor(){super(51,"fontLigatures",bc.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?bc.OFF:e==="true"?bc.ON:e:e?bc.ON:bc.OFF}};bc.OFF='"liga" off, "calt" off',bc.ON='"liga" on, "calt" on';let xh=bc;const Cc=class Cc extends Qt{constructor(){super(54,"fontVariations",Cc.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Cc.OFF:e==="true"?Cc.TRANSLATE:e:e?Cc.TRANSLATE:Cc.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}};Cc.OFF="normal",Cc.TRANSLATE="translate";let Jv=Cc;class oJ extends K1{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class rJ extends ub{constructor(){super(52,"fontSize",ms.fontSize,{type:"number",minimum:6,maximum:100,default:ms.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Vo.float(e,this.defaultValue);return t===0?ms.fontSize:Vo.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}const hl=class hl extends Qt{constructor(){super(53,"fontWeight",ms.fontWeight,{anyOf:[{type:"number",minimum:hl.MINIMUM_VALUE,maximum:hl.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:hl.SUGGESTION_VALUES}],default:ms.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(At.clampedInt(e,ms.fontWeight,hl.MINIMUM_VALUE,hl.MAXIMUM_VALUE))}};hl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],hl.MINIMUM_VALUE=1,hl.MAXIMUM_VALUE=1e3;let IR=hl;class aJ extends Qt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:gi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??gi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??gi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??gi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??gi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??gi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??gi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Xn.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Xn.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Xn.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Xn.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Xn.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Xn.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class lJ extends Qt{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),delay:At.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:be(t.sticky,this.defaultValue.sticky),hidingDelay:At.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:be(t.above,this.defaultValue.above)}}}class im extends K1{constructor(){super(146)}compute(e,t,i){return im.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,C=e.remainingWidth,v=e.isViewportWrapping,w=h?2:3;let S=Math.floor(o*n);const L=S/o;let k=!1,D=!1,T=w*u,U=u/o,W=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:me,extraLinesBeforeFirstLine:ge,extraLinesBeyondLastLine:Ae,desiredRatio:Pe,minimapLineCount:hi}=im.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/hi>1)k=!0,D=!0,u=1,T=1,U=u/o;else{let It=!1,St=u+1;if(f==="fit"){const Ti=Math.ceil((ge+b+Ae)*T);v&&a&&C<=t.stableFitRemainingWidth?(It=!0,St=t.stableFitMaxMinimapScale):It=Ti>S}if(f==="fill"||It){k=!0;const Ti=u;T=Math.min(l*o,Math.max(1,Math.floor(1/Pe))),v&&a&&C<=t.stableFitRemainingWidth&&(St=t.stableFitMaxMinimapScale),u=Math.min(St,Math.max(1,Math.floor(T/w))),u>Ti&&(W=Math.min(2,u/Ti)),U=u/o/W,S=Math.ceil(Math.max(me,ge+b+Ae)*T),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const V=Math.floor(g*U),$=Math.min(V,Math.max(0,Math.floor((C-_-2)*U/(c+U)))+rl);let B=Math.floor(o*$);const X=B/o;B=Math.floor(B*W);const ae=h?1:2,ue=m==="left"?0:i-$-_;return{renderMinimap:ae,minimapLeft:ue,minimapWidth:$,minimapHeightIsEditorHeight:k,minimapIsSampling:D,minimapScale:u,minimapLineHeight:T,minimapCanvasInnerWidth:B,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:X,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(138),u=h==="inherit"?e.get(137):h,g=u==="inherit"?e.get(133):u,f=e.get(136),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,C=e.get(69),v=e.get(106),w=e.get(84),S=e.get(73),L=e.get(104),k=L.verticalScrollbarSize,D=L.verticalHasArrows,T=L.arrowSize,U=L.horizontalScrollbarSize,W=e.get(43),V=e.get(111)!=="never";let $=e.get(66);W&&V&&($+=16);let B=0;if(b){const Is=Math.max(r,C);B=Math.round(Is*l)}let X=0;_&&(X=o*t.glyphMarginDecorationLaneCount);let ae=0,ue=ae+X,me=ue+B,ge=me+$;const Ae=i-X-B-$;let Pe=!1,hi=!1,Be=-1;u==="inherit"&&m?(Pe=!0,hi=!0):g==="on"||g==="bounded"?hi=!0:g==="wordWrapColumn"&&(Be=f);const It=im._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:v,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:Ae,isViewportWrapping:hi},t.memory||new uU);It.renderMinimap!==0&&It.minimapLeft===0&&(ae+=It.minimapWidth,ue+=It.minimapWidth,me+=It.minimapWidth,ge+=It.minimapWidth);const St=Ae-It.minimapWidth,Ti=Math.max(1,Math.floor((St-k-2)/a)),ns=D?T:0;return hi&&(Be=Math.max(1,Ti),g==="bounded"&&(Be=Math.min(Be,f))),{width:i,height:n,glyphMarginLeft:ae,glyphMarginWidth:X,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ue,lineNumbersWidth:B,decorationsLeft:me,decorationsWidth:$,contentLeft:ge,contentWidth:St,minimap:It,viewportColumn:Ti,isWordWrapMinified:Pe,isViewportWrapping:hi,wrappingColumn:Be,verticalScrollbarWidth:k,horizontalScrollbarHeight:U,overviewRuler:{top:ns,width:k,height:n-2*ns,right:0}}}}class cJ extends Qt{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return gi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Vr;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Vr||(Vr={}));class dJ extends Qt{constructor(){const e={enabled:Vr.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Vr.Off,Vr.OnCode,Vr.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:gi(e.enabled,this.defaultValue.enabled,[Vr.Off,Vr.OnCode,Vr.On])}}}class hJ extends Qt{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),maxLineCount:At.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:gi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:be(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class uJ extends Qt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:gi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:At.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily),padding:be(t.padding,this.defaultValue.padding)}}}class gJ extends Qt{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):At.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?At.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class fJ extends Vo{constructor(){super(67,"lineHeight",ms.lineHeight,e=>Vo.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class pJ extends Qt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:p("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:p("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:p("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:p("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),autohide:be(t.autohide,this.defaultValue.autohide),size:gi(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:gi(t.side,this.defaultValue.side,["right","left"]),showSlider:gi(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:be(t.renderCharacters,this.defaultValue.renderCharacters),scale:At.clampedInt(t.scale,1,1,3),maxColumn:At.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:be(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:be(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:Vo.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:Vo.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function mJ(s){return s==="ctrlCmd"?Je?"metaKey":"ctrlKey":"altKey"}class _J extends Qt{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:At.clampedInt(t.top,0,0,1e3),bottom:At.clampedInt(t.bottom,0,0,1e3)}}}class bJ extends Qt{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),cycle:be(t.cycle,this.defaultValue.cycle)}}}class CJ extends K1{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}class vJ extends Qt{constructor(){super(88,"placeholder",void 0)}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e:this.defaultValue}}class wJ extends Qt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=gi(t,this.defaultValue.other,o),typeof i=="boolean"?a=i?"on":"off":a=gi(i,this.defaultValue.comments,o),typeof n=="boolean"?l=n?"on":"off":l=gi(n,this.defaultValue.strings,o),{other:r,comments:a,strings:l}}}class SJ extends Qt{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Uy(s){const e=s.get(99);return e==="editable"?s.get(92):e!=="on"}class yJ extends Qt{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:At.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:At.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class LJ extends Qt{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function l7(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let xJ=class extends Qt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:p("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=At.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=At.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:At.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:l7(t.vertical,this.defaultValue.vertical),horizontal:l7(t.horizontal,this.defaultValue.horizontal),useShadows:be(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:be(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:be(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:be(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:be(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:At.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:At.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:be(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:be(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const No="inUntrustedWorkspace",Rs={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class kJ extends Qt{constructor(){const e={nonBasicASCII:No,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:No,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[Rs.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,No],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Rs.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Rs.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Rs.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,No],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Rs.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,No],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Rs.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Rs.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(ho(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(ho(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new jC(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:nm(t.nonBasicASCII,No,[!0,!1,No]),invisibleCharacters:be(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:be(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:nm(t.includeComments,No,[!0,!1,No]),includeStrings:nm(t.includeStrings,No,[!0,!1,No]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,o]of Object.entries(e))o===!0&&(i[n]=!0);return i}}class DJ extends Qt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),p("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),mode:gi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:gi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:be(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:be(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class IJ extends Qt{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:p("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),p("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),p("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:p("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),showToolbar:gi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:be(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class EJ extends Qt{constructor(){const e={enabled:Pn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Pn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:be(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class NJ extends Qt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:nm(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:nm(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:be(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:be(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:nm(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function nm(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class TJ extends Qt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:gi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:be(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:be(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:be(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:be(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:gi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:be(t.showIcons,this.defaultValue.showIcons),showStatusBar:be(t.showStatusBar,this.defaultValue.showStatusBar),preview:be(t.preview,this.defaultValue.preview),previewMode:gi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:be(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:be(t.showMethods,this.defaultValue.showMethods),showFunctions:be(t.showFunctions,this.defaultValue.showFunctions),showConstructors:be(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:be(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:be(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:be(t.showFields,this.defaultValue.showFields),showVariables:be(t.showVariables,this.defaultValue.showVariables),showClasses:be(t.showClasses,this.defaultValue.showClasses),showStructs:be(t.showStructs,this.defaultValue.showStructs),showInterfaces:be(t.showInterfaces,this.defaultValue.showInterfaces),showModules:be(t.showModules,this.defaultValue.showModules),showProperties:be(t.showProperties,this.defaultValue.showProperties),showEvents:be(t.showEvents,this.defaultValue.showEvents),showOperators:be(t.showOperators,this.defaultValue.showOperators),showUnits:be(t.showUnits,this.defaultValue.showUnits),showValues:be(t.showValues,this.defaultValue.showValues),showConstants:be(t.showConstants,this.defaultValue.showConstants),showEnums:be(t.showEnums,this.defaultValue.showEnums),showEnumMembers:be(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:be(t.showKeywords,this.defaultValue.showKeywords),showWords:be(t.showWords,this.defaultValue.showWords),showColors:be(t.showColors,this.defaultValue.showColors),showFiles:be(t.showFiles,this.defaultValue.showFiles),showReferences:be(t.showReferences,this.defaultValue.showReferences),showFolders:be(t.showFolders,this.defaultValue.showFolders),showTypeParameters:be(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:be(t.showSnippets,this.defaultValue.showSnippets),showUsers:be(t.showUsers,this.defaultValue.showUsers),showIssues:be(t.showIssues,this.defaultValue.showIssues)}}}class RJ extends Qt{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:p("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:be(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:be(e.selectSubwords,this.defaultValue.selectSubwords)}}}class MJ extends Qt{constructor(){const e=[];super(131,"wordSegmenterLocales",e,{anyOf:[{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}class AJ extends Qt{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class PJ extends K1{constructor(){super(147)}compute(e,t,i){const n=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class OJ extends Qt{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:p("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[p("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),p("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),showDropSelector:gi(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class FJ extends Qt{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:p("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[p("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),p("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),showPasteSelector:gi(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const WJ="Consolas, 'Courier New', monospace",BJ="Menlo, Monaco, 'Courier New', monospace",HJ="'Droid Sans Mono', 'monospace', monospace",ms={fontFamily:Je?BJ:Cs?HJ:WJ,fontWeight:"normal",fontSize:Je?12:14,lineHeight:0,letterSpacing:0},fp=[];function ne(s){return fp[s.id]=s,s}const ja={acceptSuggestionOnCommitCharacter:ne(new ut(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ne(new ui(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ne(new QQ),accessibilityPageSize:ne(new At(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ne(new Xn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),ariaRequired:ne(new ut(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ne(new ut(8,"screenReaderAnnounceInlineSuggestion",!0,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ne(new ui(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ne(new ui(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),p("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:p("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ne(new ui(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ne(new ui(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ne(new ui(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ne(new B0(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],XQ,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ne(new ut(13,"automaticLayout",!1)),autoSurround:ne(new ui(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ne(new EJ),bracketPairGuides:ne(new NJ),stickyTabStops:ne(new ut(117,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ne(new ut(17,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ne(new Xn(18,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ne(new At(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ne(new ut(20,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ne(new ui(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[p("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),p("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),p("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:p("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ne(new At(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ne(new ut(22,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ne(new JQ),contextmenu:ne(new ut(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ne(new ut(25,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ne(new B0(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],eJ,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ne(new ui(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ne(new B0(28,"cursorStyle",fn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],tJ,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ne(new At(29,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ne(new ui(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:p("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:ne(new At(31,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ne(new ut(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ne(new ut(33,"disableMonospaceOptimizations",!1)),domReadOnly:ne(new ut(34,"domReadOnly",!1)),dragAndDrop:ne(new ut(35,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ne(new nJ),dropIntoEditor:ne(new OJ),stickyScroll:ne(new hJ),experimentalWhitespaceRendering:ne(new ui(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ne(new Xn(39,"extraEditorClassName","")),fastScrollSensitivity:ne(new Vo(40,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ne(new sJ),fixedOverflowWidgets:ne(new ut(42,"fixedOverflowWidgets",!1)),folding:ne(new ut(43,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ne(new ui(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ne(new ut(45,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ne(new ut(46,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ne(new At(47,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ne(new ut(48,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ne(new Xn(49,"fontFamily",ms.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:ne(new oJ),fontLigatures2:ne(new xh),fontSize:ne(new rJ),fontWeight:ne(new IR),fontVariations:ne(new Jv),formatOnPaste:ne(new ut(55,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ne(new ut(56,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ne(new ut(57,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ne(new aJ),hideCursorInOverviewRuler:ne(new ut(59,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ne(new lJ),inDiffEditor:ne(new ut(61,"inDiffEditor",!1)),letterSpacing:ne(new Vo(64,"letterSpacing",ms.letterSpacing,s=>Vo.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ne(new dJ),lineDecorationsWidth:ne(new gJ),lineHeight:ne(new fJ),lineNumbers:ne(new SJ),lineNumbersMinChars:ne(new At(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ne(new ut(70,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ne(new ut(71,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ne(new ui(72,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:ne(new pJ),mouseStyle:ne(new ui(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ne(new Vo(75,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ne(new ut(76,"mouseWheelZoom",!1,{markdownDescription:Je?p("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ne(new ut(77,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ne(new B0(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],mJ,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ne(new ui(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ne(new At(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ne(new ui(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[p("occurrencesHighlight.off","Does not highlight occurrences."),p("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),p("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:p("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ne(new ut(82,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ne(new At(83,"overviewRulerLanes",3,0,3)),padding:ne(new _J),pasteAs:ne(new FJ),parameterHints:ne(new bJ),peekWidgetDefaultFocus:ne(new ui(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:ne(new vJ),definitionLinkOpensInPeek:ne(new ut(89,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ne(new wJ),quickSuggestionsDelay:ne(new At(91,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ne(new ut(92,"readOnly",!1)),readOnlyMessage:ne(new LJ),renameOnType:ne(new ut(94,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ne(new ut(95,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ne(new ui(96,"renderFinalNewline",Cs?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ne(new ui(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ne(new ut(98,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ne(new ui(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ne(new ui(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ne(new At(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ne(new ut(102,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ne(new yJ),scrollbar:ne(new xJ),scrollBeyondLastColumn:ne(new At(105,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ne(new ut(106,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ne(new ut(107,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ne(new ut(108,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Cs})),selectionHighlight:ne(new ut(109,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ne(new ut(110,"selectOnLineNumbers",!0)),showFoldingControls:ne(new ui(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ne(new ut(112,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:ne(new ut(141,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ne(new uJ),snippetSuggestions:ne(new ui(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ne(new RJ),smoothScrolling:ne(new ut(115,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ne(new At(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ne(new TJ),inlineSuggest:ne(new DJ),inlineEdit:ne(new IJ),inlineCompletionsAccessibilityVerbose:ne(new ut(150,"inlineCompletionsAccessibilityVerbose",!1,{description:p("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ne(new At(120,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ne(new At(121,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ne(new ut(122,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ne(new ui(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ne(new ui(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:ne(new At(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:ne(new kJ),unusualLineTerminators:ne(new ui(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ne(new ut(128,"useShadowDOM",!0)),useTabStops:ne(new ut(129,"useTabStops",!0,{description:p("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:ne(new ui(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:ne(new MJ),wordSeparators:ne(new Xn(132,"wordSeparators",zy,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ne(new ui(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ne(new Xn(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ne(new Xn(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ne(new At(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ne(new ui(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ne(new ui(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ne(new iJ),defaultColorDecorators:ne(new ut(148,"defaultColorDecorators",!1,{markdownDescription:p("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ne(new CJ),tabFocusMode:ne(new ut(145,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ne(new im),wrappingInfo:ne(new PJ),wrappingIndent:ne(new AJ),wrappingStrategy:ne(new cJ)};class VJ{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Im.isErrorNoTelemetry(e)?new Im(e.message+` @@ -666,27 +670,47 @@ ${e.toString()}`}}class dx{constructor(e=new Nb,t=!1,i,n=$pe){this._services=e,t * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js *-----------------------------------------------------------------------------*/var Y1e=Object.defineProperty,X1e=Object.getOwnPropertyDescriptor,Q1e=Object.getOwnPropertyNames,J1e=Object.prototype.hasOwnProperty,W6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Q1e(e))!J1e.call(s,n)&&n!==t&&Y1e(s,n,{get:()=>e[n],enumerable:!(i=X1e(e,n))||i.enumerable});return s},e0e=(s,e,t)=>(W6(s,e,"default"),t&&W6(t,e,"default")),MC={};e0e(MC,w0);var AG={},zT={},t0e=class PG{static getOrCreate(e){return zT[e]||(zT[e]=new PG(e)),zT[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,AG[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function xe(s){const e=s.id;AG[e]=s,MC.languages.register(s);const t=t0e.getOrCreate(e);MC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),MC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();MC.languages.setLanguageConfiguration(e,i.conf)})}xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Se(()=>import("./abap-ze8r6a4j.js"),__vite__mapDeps([]))});xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Se(()=>import("./apex-l4wq3GX1.js"),__vite__mapDeps([]))});xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Se(()=>import("./azcli-bA_AuLZG.js"),__vite__mapDeps([]))});xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Se(()=>import("./bat-0sCTlecs.js"),__vite__mapDeps([]))});xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Se(()=>import("./bicep-qAe7PV0A.js"),__vite__mapDeps([]))});xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Se(()=>import("./cameligo-MxzRDM6f.js"),__vite__mapDeps([]))});xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Se(()=>import("./clojure-aJ1F8HHH.js"),__vite__mapDeps([]))});xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Se(()=>import("./coffee-dz-c8Bgx.js"),__vite__mapDeps([]))});xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Se(()=>import("./csharp-4Zs2zOBj.js"),__vite__mapDeps([]))});xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Se(()=>import("./csp-lGMKRGPG.js"),__vite__mapDeps([]))});xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Se(()=>import("./css-QeSqfO15.js"),__vite__mapDeps([]))});xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Se(()=>import("./cypher-5YIL2BCq.js"),__vite__mapDeps([]))});xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Se(()=>import("./dart-qjFgolkP.js"),__vite__mapDeps([]))});xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Se(()=>import("./dockerfile-5toe0RAn.js"),__vite__mapDeps([]))});xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Se(()=>import("./ecl-1L3WRmRU.js"),__vite__mapDeps([]))});xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Se(()=>import("./elixir-4vH1gF-H.js"),__vite__mapDeps([]))});xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Se(()=>import("./flow9-7owDGJzV.js"),__vite__mapDeps([]))});xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Se(()=>import("./fsharp-bDkC0eEG.js"),__vite__mapDeps([]))});xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationDollar)});xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationBracket)});xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationBracket)});xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Se(()=>import("./freemarker2-GKVO7p5q.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationBracket)});xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Se(()=>import("./go-B7tkULuP.js"),__vite__mapDeps([]))});xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Se(()=>import("./graphql-CtVT9S5J.js"),__vite__mapDeps([]))});xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Se(()=>import("./handlebars-LJs_OsPl.js"),__vite__mapDeps([3,1,2]))});xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Se(()=>import("./hcl-rcnRcHhv.js"),__vite__mapDeps([]))});xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Se(()=>import("./html-5vla4NC_.js"),__vite__mapDeps([4,1,2]))});xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Se(()=>import("./ini-B-F8H_48.js"),__vite__mapDeps([]))});xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Se(()=>import("./java-QsCSWwE3.js"),__vite__mapDeps([]))});xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Se(()=>import("./javascript-Pd2mCcrq.js"),__vite__mapDeps([5,6,1,2]))});xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Se(()=>import("./julia-IAetV4Uj.js"),__vite__mapDeps([]))});xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Se(()=>import("./kotlin-alSTuGQa.js"),__vite__mapDeps([]))});xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Se(()=>import("./less-hZfaYD2w.js"),__vite__mapDeps([]))});xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Se(()=>import("./lexon-dAwoDiDP.js"),__vite__mapDeps([]))});xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Se(()=>import("./lua-oETFoaFl.js"),__vite__mapDeps([]))});xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Se(()=>import("./liquid-eKUo_tln.js"),__vite__mapDeps([7,1,2]))});xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Se(()=>import("./m3-pfNrzY-g.js"),__vite__mapDeps([]))});xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Se(()=>import("./markdown-8sLQQPwY.js"),__vite__mapDeps([]))});xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Se(()=>import("./mdx-j-hpKbwY.js"),__vite__mapDeps([8,1,2]))});xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Se(()=>import("./mips-8z7PytKi.js"),__vite__mapDeps([]))});xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Se(()=>import("./msdax-J3g5vy9V.js"),__vite__mapDeps([]))});xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Se(()=>import("./mysql-HnGTccPx.js"),__vite__mapDeps([]))});xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Se(()=>import("./objective-c-ozrejCV4.js"),__vite__mapDeps([]))});xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Se(()=>import("./pascal-pJZfFvIz.js"),__vite__mapDeps([]))});xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Se(()=>import("./pascaligo-0DtATwAu.js"),__vite__mapDeps([]))});xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Se(()=>import("./perl-do3rkI9Q.js"),__vite__mapDeps([]))});xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Se(()=>import("./pgsql-ryXbWXdn.js"),__vite__mapDeps([]))});xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Se(()=>import("./php-aHuupjla.js"),__vite__mapDeps([]))});xe({id:"pla",extensions:[".pla"],loader:()=>Se(()=>import("./pla-h3tpWKqn.js"),__vite__mapDeps([]))});xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Se(()=>import("./postiats-wHg1rUaH.js"),__vite__mapDeps([]))});xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Se(()=>import("./powerquery-2Tt3HzPs.js"),__vite__mapDeps([]))});xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Se(()=>import("./powershell--E8XKnlp.js"),__vite__mapDeps([]))});xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Se(()=>import("./protobuf-5supJPAn.js"),__vite__mapDeps([]))});xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Se(()=>import("./pug-z8IO2Fo8.js"),__vite__mapDeps([]))});xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Se(()=>import("./python-dLDs41C4.js"),__vite__mapDeps([9,1,2]))});xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Se(()=>import("./qsharp-CPlGHk-t.js"),__vite__mapDeps([]))});xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Se(()=>import("./r-fxI4Is36.js"),__vite__mapDeps([]))});xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Se(()=>import("./razor-FwGgO_k1.js"),__vite__mapDeps([10,1,2]))});xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Se(()=>import("./redis-BX8G37Y7.js"),__vite__mapDeps([]))});xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Se(()=>import("./redshift-sRh-NLhN.js"),__vite__mapDeps([]))});xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Se(()=>import("./restructuredtext-YfUmf862.js"),__vite__mapDeps([]))});xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Se(()=>import("./ruby-8wQ3Zh8u.js"),__vite__mapDeps([]))});xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Se(()=>import("./rust-v86rzylm.js"),__vite__mapDeps([]))});xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Se(()=>import("./sb-_rkMImWM.js"),__vite__mapDeps([]))});xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Se(()=>import("./scala-40tTdy2H.js"),__vite__mapDeps([]))});xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Se(()=>import("./scheme-5-wDu3JQ.js"),__vite__mapDeps([]))});xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Se(()=>import("./scss-pQydS_eS.js"),__vite__mapDeps([]))});xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Se(()=>import("./shell-Ki-wZYQ1.js"),__vite__mapDeps([]))});xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Se(()=>import("./solidity-N2qlMzF2.js"),__vite__mapDeps([]))});xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Se(()=>import("./sophia-SjREo0Ok.js"),__vite__mapDeps([]))});xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Se(()=>import("./sparql-pazIw3FY.js"),__vite__mapDeps([]))});xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Se(()=>import("./sql-2toitEz_.js"),__vite__mapDeps([]))});xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Se(()=>import("./st-PaES2HSd.js"),__vite__mapDeps([]))});xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Se(()=>import("./swift-EwstTa4z.js"),__vite__mapDeps([]))});xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Se(()=>import("./tcl-nuZs0K-6.js"),__vite__mapDeps([]))});xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Se(()=>import("./twig-mN8sjoV_.js"),__vite__mapDeps([]))});xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Se(()=>import("./typescript-RCkR-T-T.js"),__vite__mapDeps([6,1,2]))});xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Se(()=>import("./typespec-W2nuLCQv.js"),__vite__mapDeps([]))});xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Se(()=>import("./vb-z8sR6fTG.js"),__vite__mapDeps([]))});xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Se(()=>import("./wgsl-2VbyLW9i.js"),__vite__mapDeps([]))});xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Se(()=>import("./xml-lU0j0SNM.js"),__vite__mapDeps([11,1,2]))});xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Se(()=>import("./yaml-m0OSq1I5.js"),__vite__mapDeps([12,1,2]))});/*!----------------------------------------------------------------------------- +======== + *-----------------------------------------------------------------------------*/var Y1e=Object.defineProperty,X1e=Object.getOwnPropertyDescriptor,Q1e=Object.getOwnPropertyNames,J1e=Object.prototype.hasOwnProperty,W6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Q1e(e))!J1e.call(s,n)&&n!==t&&Y1e(s,n,{get:()=>e[n],enumerable:!(i=X1e(e,n))||i.enumerable});return s},e0e=(s,e,t)=>(W6(s,e,"default"),t&&W6(t,e,"default")),MC={};e0e(MC,w0);var AG={},zT={},t0e=class PG{static getOrCreate(e){return zT[e]||(zT[e]=new PG(e)),zT[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,AG[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function xe(s){const e=s.id;AG[e]=s,MC.languages.register(s);const t=t0e.getOrCreate(e);MC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),MC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();MC.languages.setLanguageConfiguration(e,i.conf)})}xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Se(()=>import("./abap-ze8r6a4j.js"),__vite__mapDeps([]))});xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Se(()=>import("./apex-l4wq3GX1.js"),__vite__mapDeps([]))});xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Se(()=>import("./azcli-bA_AuLZG.js"),__vite__mapDeps([]))});xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Se(()=>import("./bat-0sCTlecs.js"),__vite__mapDeps([]))});xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Se(()=>import("./bicep-qAe7PV0A.js"),__vite__mapDeps([]))});xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Se(()=>import("./cameligo-MxzRDM6f.js"),__vite__mapDeps([]))});xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Se(()=>import("./clojure-aJ1F8HHH.js"),__vite__mapDeps([]))});xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Se(()=>import("./coffee-dz-c8Bgx.js"),__vite__mapDeps([]))});xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Se(()=>import("./csharp-4Zs2zOBj.js"),__vite__mapDeps([]))});xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Se(()=>import("./csp-lGMKRGPG.js"),__vite__mapDeps([]))});xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Se(()=>import("./css-QeSqfO15.js"),__vite__mapDeps([]))});xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Se(()=>import("./cypher-5YIL2BCq.js"),__vite__mapDeps([]))});xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Se(()=>import("./dart-qjFgolkP.js"),__vite__mapDeps([]))});xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Se(()=>import("./dockerfile-5toe0RAn.js"),__vite__mapDeps([]))});xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Se(()=>import("./ecl-1L3WRmRU.js"),__vite__mapDeps([]))});xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Se(()=>import("./elixir-4vH1gF-H.js"),__vite__mapDeps([]))});xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Se(()=>import("./flow9-7owDGJzV.js"),__vite__mapDeps([]))});xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Se(()=>import("./fsharp-bDkC0eEG.js"),__vite__mapDeps([]))});xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationDollar)});xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationBracket)});xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationBracket)});xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Se(()=>import("./freemarker2--tagdD0m.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationBracket)});xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Se(()=>import("./go-B7tkULuP.js"),__vite__mapDeps([]))});xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Se(()=>import("./graphql-CtVT9S5J.js"),__vite__mapDeps([]))});xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Se(()=>import("./handlebars-tQKSlSHV.js"),__vite__mapDeps([3,1,2]))});xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Se(()=>import("./hcl-rcnRcHhv.js"),__vite__mapDeps([]))});xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Se(()=>import("./html-p0SFTXEz.js"),__vite__mapDeps([4,1,2]))});xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Se(()=>import("./ini-B-F8H_48.js"),__vite__mapDeps([]))});xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Se(()=>import("./java-QsCSWwE3.js"),__vite__mapDeps([]))});xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Se(()=>import("./javascript-ag7Jk9EF.js"),__vite__mapDeps([5,6,1,2]))});xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Se(()=>import("./julia-IAetV4Uj.js"),__vite__mapDeps([]))});xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Se(()=>import("./kotlin-alSTuGQa.js"),__vite__mapDeps([]))});xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Se(()=>import("./less-hZfaYD2w.js"),__vite__mapDeps([]))});xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Se(()=>import("./lexon-dAwoDiDP.js"),__vite__mapDeps([]))});xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Se(()=>import("./lua-oETFoaFl.js"),__vite__mapDeps([]))});xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Se(()=>import("./liquid-lPp2KU7K.js"),__vite__mapDeps([7,1,2]))});xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Se(()=>import("./m3-pfNrzY-g.js"),__vite__mapDeps([]))});xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Se(()=>import("./markdown-8sLQQPwY.js"),__vite__mapDeps([]))});xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Se(()=>import("./mdx-haUY93E0.js"),__vite__mapDeps([8,1,2]))});xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Se(()=>import("./mips-8z7PytKi.js"),__vite__mapDeps([]))});xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Se(()=>import("./msdax-J3g5vy9V.js"),__vite__mapDeps([]))});xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Se(()=>import("./mysql-HnGTccPx.js"),__vite__mapDeps([]))});xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Se(()=>import("./objective-c-ozrejCV4.js"),__vite__mapDeps([]))});xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Se(()=>import("./pascal-pJZfFvIz.js"),__vite__mapDeps([]))});xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Se(()=>import("./pascaligo-0DtATwAu.js"),__vite__mapDeps([]))});xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Se(()=>import("./perl-do3rkI9Q.js"),__vite__mapDeps([]))});xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Se(()=>import("./pgsql-ryXbWXdn.js"),__vite__mapDeps([]))});xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Se(()=>import("./php-aHuupjla.js"),__vite__mapDeps([]))});xe({id:"pla",extensions:[".pla"],loader:()=>Se(()=>import("./pla-h3tpWKqn.js"),__vite__mapDeps([]))});xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Se(()=>import("./postiats-wHg1rUaH.js"),__vite__mapDeps([]))});xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Se(()=>import("./powerquery-2Tt3HzPs.js"),__vite__mapDeps([]))});xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Se(()=>import("./powershell--E8XKnlp.js"),__vite__mapDeps([]))});xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Se(()=>import("./protobuf-5supJPAn.js"),__vite__mapDeps([]))});xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Se(()=>import("./pug-z8IO2Fo8.js"),__vite__mapDeps([]))});xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Se(()=>import("./python-7wRajubk.js"),__vite__mapDeps([9,1,2]))});xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Se(()=>import("./qsharp-CPlGHk-t.js"),__vite__mapDeps([]))});xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Se(()=>import("./r-fxI4Is36.js"),__vite__mapDeps([]))});xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Se(()=>import("./razor-cUHvhE7N.js"),__vite__mapDeps([10,1,2]))});xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Se(()=>import("./redis-BX8G37Y7.js"),__vite__mapDeps([]))});xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Se(()=>import("./redshift-sRh-NLhN.js"),__vite__mapDeps([]))});xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Se(()=>import("./restructuredtext-YfUmf862.js"),__vite__mapDeps([]))});xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Se(()=>import("./ruby-8wQ3Zh8u.js"),__vite__mapDeps([]))});xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Se(()=>import("./rust-v86rzylm.js"),__vite__mapDeps([]))});xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Se(()=>import("./sb-_rkMImWM.js"),__vite__mapDeps([]))});xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Se(()=>import("./scala-40tTdy2H.js"),__vite__mapDeps([]))});xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Se(()=>import("./scheme-5-wDu3JQ.js"),__vite__mapDeps([]))});xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Se(()=>import("./scss-pQydS_eS.js"),__vite__mapDeps([]))});xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Se(()=>import("./shell-Ki-wZYQ1.js"),__vite__mapDeps([]))});xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Se(()=>import("./solidity-N2qlMzF2.js"),__vite__mapDeps([]))});xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Se(()=>import("./sophia-SjREo0Ok.js"),__vite__mapDeps([]))});xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Se(()=>import("./sparql-pazIw3FY.js"),__vite__mapDeps([]))});xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Se(()=>import("./sql-2toitEz_.js"),__vite__mapDeps([]))});xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Se(()=>import("./st-PaES2HSd.js"),__vite__mapDeps([]))});xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Se(()=>import("./swift-EwstTa4z.js"),__vite__mapDeps([]))});xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Se(()=>import("./tcl-nuZs0K-6.js"),__vite__mapDeps([]))});xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Se(()=>import("./twig-mN8sjoV_.js"),__vite__mapDeps([]))});xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Se(()=>import("./typescript-gBGQkGaZ.js"),__vite__mapDeps([6,1,2]))});xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Se(()=>import("./typespec-W2nuLCQv.js"),__vite__mapDeps([]))});xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Se(()=>import("./vb-z8sR6fTG.js"),__vite__mapDeps([]))});xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Se(()=>import("./wgsl-2VbyLW9i.js"),__vite__mapDeps([]))});xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Se(()=>import("./xml-FrK-xr7p.js"),__vite__mapDeps([11,1,2]))});xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Se(()=>import("./yaml-kA0NHOLb.js"),__vite__mapDeps([12,1,2]))});/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js *-----------------------------------------------------------------------------*/var i0e=Object.defineProperty,n0e=Object.getOwnPropertyDescriptor,s0e=Object.getOwnPropertyNames,o0e=Object.prototype.hasOwnProperty,B6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s0e(e))!o0e.call(s,n)&&n!==t&&i0e(s,n,{get:()=>e[n],enumerable:!(i=n0e(e,n))||i.enumerable});return s},r0e=(s,e,t)=>(B6(s,e,"default"),t&&B6(t,e,"default")),Mb={};r0e(Mb,w0);var zW=class{constructor(e,t,i){this._onDidChange=new Mb.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},UW={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},$W={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},OG=new zW("css",UW,$W),FG=new zW("scss",UW,$W),WG=new zW("less",UW,$W);Mb.languages.css={cssDefaults:OG,lessDefaults:WG,scssDefaults:FG};function jW(){return Se(()=>import("./cssMode-WATe-J7K.js"),__vite__mapDeps([13,1,2]))}Mb.languages.onLanguage("less",()=>{jW().then(s=>s.setupMode(WG))});Mb.languages.onLanguage("scss",()=>{jW().then(s=>s.setupMode(FG))});Mb.languages.onLanguage("css",()=>{jW().then(s=>s.setupMode(OG))});/*!----------------------------------------------------------------------------- +======== + *-----------------------------------------------------------------------------*/var i0e=Object.defineProperty,n0e=Object.getOwnPropertyDescriptor,s0e=Object.getOwnPropertyNames,o0e=Object.prototype.hasOwnProperty,B6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s0e(e))!o0e.call(s,n)&&n!==t&&i0e(s,n,{get:()=>e[n],enumerable:!(i=n0e(e,n))||i.enumerable});return s},r0e=(s,e,t)=>(B6(s,e,"default"),t&&B6(t,e,"default")),Mb={};r0e(Mb,w0);var zW=class{constructor(e,t,i){this._onDidChange=new Mb.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},UW={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},$W={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},OG=new zW("css",UW,$W),FG=new zW("scss",UW,$W),WG=new zW("less",UW,$W);Mb.languages.css={cssDefaults:OG,lessDefaults:WG,scssDefaults:FG};function jW(){return Se(()=>import("./cssMode-SOEcaa9z.js"),__vite__mapDeps([13,1,2]))}Mb.languages.onLanguage("less",()=>{jW().then(s=>s.setupMode(WG))});Mb.languages.onLanguage("scss",()=>{jW().then(s=>s.setupMode(FG))});Mb.languages.onLanguage("css",()=>{jW().then(s=>s.setupMode(OG))});/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js *-----------------------------------------------------------------------------*/var a0e=Object.defineProperty,l0e=Object.getOwnPropertyDescriptor,c0e=Object.getOwnPropertyNames,d0e=Object.prototype.hasOwnProperty,H6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c0e(e))!d0e.call(s,n)&&n!==t&&a0e(s,n,{get:()=>e[n],enumerable:!(i=l0e(e,n))||i.enumerable});return s},h0e=(s,e,t)=>(H6(s,e,"default"),t&&H6(t,e,"default")),WE={};h0e(WE,w0);var u0e=class{constructor(e,t,i){this._onDidChange=new WE.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g0e={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},BE={format:g0e,suggest:{},data:{useDefaultDataProvider:!0}};function HE(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===vv,documentFormattingEdits:s===vv,documentRangeFormattingEdits:s===vv}}var vv="html",V6="handlebars",z6="razor",BG=VE(vv,BE,HE(vv)),f0e=BG.defaults,HG=VE(V6,BE,HE(V6)),p0e=HG.defaults,VG=VE(z6,BE,HE(z6)),m0e=VG.defaults;WE.languages.html={htmlDefaults:f0e,razorDefaults:m0e,handlebarDefaults:p0e,htmlLanguageService:BG,handlebarLanguageService:HG,razorLanguageService:VG,registerHTMLLanguageService:VE};function _0e(){return Se(()=>import("./htmlMode-PobRrH1O.js"),__vite__mapDeps([14,1,2]))}function VE(s,e=BE,t=HE(s)){const i=new u0e(s,e,t);let n;const o=WE.languages.onLanguage(s,async()=>{n=(await _0e()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- +======== + *-----------------------------------------------------------------------------*/var a0e=Object.defineProperty,l0e=Object.getOwnPropertyDescriptor,c0e=Object.getOwnPropertyNames,d0e=Object.prototype.hasOwnProperty,H6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c0e(e))!d0e.call(s,n)&&n!==t&&a0e(s,n,{get:()=>e[n],enumerable:!(i=l0e(e,n))||i.enumerable});return s},h0e=(s,e,t)=>(H6(s,e,"default"),t&&H6(t,e,"default")),WE={};h0e(WE,w0);var u0e=class{constructor(e,t,i){this._onDidChange=new WE.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g0e={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},BE={format:g0e,suggest:{},data:{useDefaultDataProvider:!0}};function HE(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===vv,documentFormattingEdits:s===vv,documentRangeFormattingEdits:s===vv}}var vv="html",V6="handlebars",z6="razor",BG=VE(vv,BE,HE(vv)),f0e=BG.defaults,HG=VE(V6,BE,HE(V6)),p0e=HG.defaults,VG=VE(z6,BE,HE(z6)),m0e=VG.defaults;WE.languages.html={htmlDefaults:f0e,razorDefaults:m0e,handlebarDefaults:p0e,htmlLanguageService:BG,handlebarLanguageService:HG,razorLanguageService:VG,registerHTMLLanguageService:VE};function _0e(){return Se(()=>import("./htmlMode-AAgMy7ra.js"),__vite__mapDeps([14,1,2]))}function VE(s,e=BE,t=HE(s)){const i=new u0e(s,e,t);let n;const o=WE.languages.onLanguage(s,async()=>{n=(await _0e()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js *-----------------------------------------------------------------------------*/var b0e=Object.defineProperty,C0e=Object.getOwnPropertyDescriptor,v0e=Object.getOwnPropertyNames,w0e=Object.prototype.hasOwnProperty,U6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of v0e(e))!w0e.call(s,n)&&n!==t&&b0e(s,n,{get:()=>e[n],enumerable:!(i=C0e(e,n))||i.enumerable});return s},S0e=(s,e,t)=>(U6(s,e,"default"),t&&U6(t,e,"default")),S0={};S0e(S0,w0);var y0e=class{constructor(e,t,i){this._onDidChange=new S0.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},L0e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},x0e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},zG=new y0e("json",L0e,x0e),k0e=()=>UG().then(s=>s.getWorker());S0.languages.json={jsonDefaults:zG,getWorker:k0e};function UG(){return Se(()=>import("./jsonMode-S2Y1HX7r.js"),__vite__mapDeps([15,1,2]))}S0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});S0.languages.onLanguage("json",()=>{UG().then(s=>s.setupMode(zG))});/*!----------------------------------------------------------------------------- +======== + *-----------------------------------------------------------------------------*/var b0e=Object.defineProperty,C0e=Object.getOwnPropertyDescriptor,v0e=Object.getOwnPropertyNames,w0e=Object.prototype.hasOwnProperty,U6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of v0e(e))!w0e.call(s,n)&&n!==t&&b0e(s,n,{get:()=>e[n],enumerable:!(i=C0e(e,n))||i.enumerable});return s},S0e=(s,e,t)=>(U6(s,e,"default"),t&&U6(t,e,"default")),S0={};S0e(S0,w0);var y0e=class{constructor(e,t,i){this._onDidChange=new S0.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},L0e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},x0e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},zG=new y0e("json",L0e,x0e),k0e=()=>UG().then(s=>s.getWorker());S0.languages.json={jsonDefaults:zG,getWorker:k0e};function UG(){return Se(()=>import("./jsonMode-q1HVkYYH.js"),__vite__mapDeps([15,1,2]))}S0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});S0.languages.onLanguage("json",()=>{UG().then(s=>s.setupMode(zG))});/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js *-----------------------------------------------------------------------------*/var D0e=Object.defineProperty,I0e=Object.getOwnPropertyDescriptor,E0e=Object.getOwnPropertyNames,N0e=Object.prototype.hasOwnProperty,$6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E0e(e))!N0e.call(s,n)&&n!==t&&D0e(s,n,{get:()=>e[n],enumerable:!(i=I0e(e,n))||i.enumerable});return s},T0e=(s,e,t)=>($6(s,e,"default"),t&&$6(t,e,"default")),R0e="5.4.5",e_={};T0e(e_,w0);var $G=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))($G||{}),jG=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(jG||{}),KG=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(KG||{}),qG=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(qG||{}),GG=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(GG||{}),ZG=class{constructor(s,e,t,i,n){this._onDidChange=new e_.Emitter,this._onDidExtraLibsChange=new e_.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(void 0)}},M0e=R0e,YG={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},XG=new ZG({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),QG=new ZG({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),A0e=()=>zE().then(s=>s.getTypeScriptWorker()),P0e=()=>zE().then(s=>s.getJavaScriptWorker());e_.languages.typescript={ModuleKind:$G,JsxEmit:jG,NewLineKind:KG,ScriptTarget:qG,ModuleResolutionKind:GG,typescriptVersion:M0e,typescriptDefaults:XG,javascriptDefaults:QG,getTypeScriptWorker:A0e,getJavaScriptWorker:P0e};function zE(){return Se(()=>import("./tsMode-8u_HsZum.js"),__vite__mapDeps([16,1,2]))}e_.languages.onLanguage("typescript",()=>zE().then(s=>s.setupTypeScript(XG)));e_.languages.onLanguage("javascript",()=>zE().then(s=>s.setupJavaScript(QG)));class O0e extends Ls{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ee("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ee.map,toggled:q.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:q.has("isInDiffEditor"),menu:{when:q.has("isInDiffEditor"),id:fe.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class JG extends Ls{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ee("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class eZ extends Ls{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ee("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const y0=Ee("diffEditor","Diff Editor");class F0e extends Ka{constructor(){super({id:"diffEditor.switchSide",title:Ee("switchSide","Switch Side"),icon:ee.arrowSwap,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,i){const n=Ab(e);if(n instanceof ad){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class W0e extends Ka{constructor(){super({id:"diffEditor.exitCompareMove",title:Ee("exitCompareMove","Exit Compare Move"),icon:ee.close,precondition:I.comparingMovedCode,f1:!1,category:y0,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.exitCompareMove()}}class B0e extends Ka{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ee("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ee.fold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.collapseAllUnchangedRegions()}}class H0e extends Ka{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ee("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ee.unfold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.showAllUnchangedRegions()}}class cO extends Ls{constructor(){super({id:"diffEditor.revert",title:Ee("revert","Revert"),f1:!1,category:y0})}run(e,t){const i=V0e(e,t.originalUri,t.modifiedUri);i instanceof ad&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const tZ=Ee("accessibleDiffViewer","Accessible Diff Viewer"),FD=class FD extends Ls{constructor(){super({id:FD.id,title:Ee("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerNext()}};FD.id="editor.action.accessibleDiffViewer.next";let i1=FD;const WD=class WD extends Ls{constructor(){super({id:WD.id,title:Ee("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerPrev()}};WD.id="editor.action.accessibleDiffViewer.prev";let Bx=WD;function V0e(s,e,t){return s.get(pt).listDiffEditors().find(o=>{var l,c;const r=o.getModifiedEditor(),a=o.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function Ab(s){const t=s.get(pt).listDiffEditors(),i=In();if(i)for(const n of t){const o=n.getContainerDomNode();if(z0e(o,i))return n}return null}function z0e(s,e){let t=e;for(;t;){if(t===s)return!0;t=t.parentElement}return!1}Ot(O0e);Ot(JG);Ot(eZ);rn.appendMenuItem(fe.EditorTitle,{command:{id:new eZ().desc.id,title:p("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:q.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:q.has("isInDiffEditor")},order:11,group:"1_diff",when:q.and(I.diffEditorRenderSideBySideInlineBreakpointReached,q.has("isInDiffEditor"))});rn.appendMenuItem(fe.EditorTitle,{command:{id:new JG().desc.id,title:p("showMoves","Show Moved Code Blocks"),icon:ee.move,toggled:mb.create("config.diffEditor.experimental.showMoves",!0),precondition:q.has("isInDiffEditor")},order:10,group:"1_diff",when:q.has("isInDiffEditor")});Ot(cO);for(const s of[{icon:ee.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:ee.discard,key:I.diffEditorInlineMode}])rn.appendMenuItem(fe.DiffEditorHunkToolbar,{command:{id:new cO().desc.id,title:p("revertHunk","Revert Block"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"}),rn.appendMenuItem(fe.DiffEditorSelectionToolbar,{command:{id:new cO().desc.id,title:p("revertSelection","Revert Selection"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"});Ot(F0e);Ot(W0e);Ot(B0e);Ot(H0e);rn.appendMenuItem(fe.EditorTitle,{command:{id:i1.id,title:p("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:q.has("isInDiffEditor")},order:10,group:"2_diff",when:q.and(I.accessibleDiffViewerVisible.negate(),q.has("isInDiffEditor"))});rt.registerCommandAlias("editor.action.diffReview.next",i1.id);Ot(i1);rt.registerCommandAlias("editor.action.diffReview.prev",Bx.id);Ot(Bx);var U0e=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0e=function(s,e){return function(t,i){e(t,i,s)}},dO;const UE=new le("selectionAnchorSet",!1);var x_;let Hh=(x_=class{static get(e){return e.getContribution(dO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=UE.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(pe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new On().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ss(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(pe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},dO=x_,x_.ID="editor.contrib.selectionAnchorController",x_);Hh=dO=U0e([$0e(1,Ie)],Hh);class j0e extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2080),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.setSelectionAnchor()}}class K0e extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:UE})}async run(e,t){var i;(i=Hh.get(t))==null||i.goToSelectionAnchor()}}class q0e extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2089),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.selectFromAnchorToCursor()}}class G0e extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.cancelSelectionAnchor()}}ct(Hh.ID,Hh,4);Q(j0e);Q(K0e);Q(q0e);Q(G0e);const Z0e=E("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Y0e extends de{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.jumpToBracket()}}class X0e extends de{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ee("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var o;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(o=Jg.get(t))==null||o.selectToBracket(n)}}class Q0e extends de{constructor(){super({id:"editor.action.removeBrackets",label:p("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.removeBrackets(this.id)}}class J0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Wd=class Wd extends F{static get(e){return e.getContribution(Wd.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Dt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new pe(r.lineNumber,r.column,r.lineNumber,r.column):new pe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new pe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let r=0;for(let h=0,u=e.length;h1&&o.sort(A.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}Q(nSe);const $E=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let s;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?s=crypto.getRandomValues.bind(crypto):s=function(i){for(let n=0;ns,asFile:()=>{},value:typeof s=="string"?s:void 0}}function sSe(s,e,t){const i={id:$E(),name:s,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class nZ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ot.some(this,([i,n])=>n.asFile())&&t.push("files"),oZ(Hx(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return Hx(e)}}function Hx(s){return s.toLowerCase()}function sZ(s,e){return oZ(Hx(s),e.map(Hx))}function oZ(s,e){if(s==="*/*")return e.length>0;if(e.includes(s))return!0;const t=s.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,o]=t;return o==="*"?e.some(r=>r.startsWith(n+"/")):!1}const jE=Object.freeze({create:s=>Xc(s.map(e=>e.toString())).join(`\r +======== + *-----------------------------------------------------------------------------*/var D0e=Object.defineProperty,I0e=Object.getOwnPropertyDescriptor,E0e=Object.getOwnPropertyNames,N0e=Object.prototype.hasOwnProperty,$6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E0e(e))!N0e.call(s,n)&&n!==t&&D0e(s,n,{get:()=>e[n],enumerable:!(i=I0e(e,n))||i.enumerable});return s},T0e=(s,e,t)=>($6(s,e,"default"),t&&$6(t,e,"default")),R0e="5.4.5",e_={};T0e(e_,w0);var $G=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))($G||{}),jG=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(jG||{}),KG=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(KG||{}),qG=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(qG||{}),GG=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(GG||{}),ZG=class{constructor(s,e,t,i,n){this._onDidChange=new e_.Emitter,this._onDidExtraLibsChange=new e_.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(void 0)}},M0e=R0e,YG={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},XG=new ZG({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),QG=new ZG({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),A0e=()=>zE().then(s=>s.getTypeScriptWorker()),P0e=()=>zE().then(s=>s.getJavaScriptWorker());e_.languages.typescript={ModuleKind:$G,JsxEmit:jG,NewLineKind:KG,ScriptTarget:qG,ModuleResolutionKind:GG,typescriptVersion:M0e,typescriptDefaults:XG,javascriptDefaults:QG,getTypeScriptWorker:A0e,getJavaScriptWorker:P0e};function zE(){return Se(()=>import("./tsMode-nLGftXSM.js"),__vite__mapDeps([16,1,2]))}e_.languages.onLanguage("typescript",()=>zE().then(s=>s.setupTypeScript(XG)));e_.languages.onLanguage("javascript",()=>zE().then(s=>s.setupJavaScript(QG)));class O0e extends Ls{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ee("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ee.map,toggled:q.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:q.has("isInDiffEditor"),menu:{when:q.has("isInDiffEditor"),id:fe.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class JG extends Ls{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ee("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class eZ extends Ls{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ee("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const y0=Ee("diffEditor","Diff Editor");class F0e extends Ka{constructor(){super({id:"diffEditor.switchSide",title:Ee("switchSide","Switch Side"),icon:ee.arrowSwap,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,i){const n=Ab(e);if(n instanceof ad){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class W0e extends Ka{constructor(){super({id:"diffEditor.exitCompareMove",title:Ee("exitCompareMove","Exit Compare Move"),icon:ee.close,precondition:I.comparingMovedCode,f1:!1,category:y0,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.exitCompareMove()}}class B0e extends Ka{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ee("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ee.fold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.collapseAllUnchangedRegions()}}class H0e extends Ka{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ee("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ee.unfold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.showAllUnchangedRegions()}}class cO extends Ls{constructor(){super({id:"diffEditor.revert",title:Ee("revert","Revert"),f1:!1,category:y0})}run(e,t){const i=V0e(e,t.originalUri,t.modifiedUri);i instanceof ad&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const tZ=Ee("accessibleDiffViewer","Accessible Diff Viewer"),FD=class FD extends Ls{constructor(){super({id:FD.id,title:Ee("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerNext()}};FD.id="editor.action.accessibleDiffViewer.next";let i1=FD;const WD=class WD extends Ls{constructor(){super({id:WD.id,title:Ee("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerPrev()}};WD.id="editor.action.accessibleDiffViewer.prev";let Bx=WD;function V0e(s,e,t){return s.get(pt).listDiffEditors().find(o=>{var l,c;const r=o.getModifiedEditor(),a=o.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function Ab(s){const t=s.get(pt).listDiffEditors(),i=In();if(i)for(const n of t){const o=n.getContainerDomNode();if(z0e(o,i))return n}return null}function z0e(s,e){let t=e;for(;t;){if(t===s)return!0;t=t.parentElement}return!1}Ot(O0e);Ot(JG);Ot(eZ);rn.appendMenuItem(fe.EditorTitle,{command:{id:new eZ().desc.id,title:p("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:q.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:q.has("isInDiffEditor")},order:11,group:"1_diff",when:q.and(I.diffEditorRenderSideBySideInlineBreakpointReached,q.has("isInDiffEditor"))});rn.appendMenuItem(fe.EditorTitle,{command:{id:new JG().desc.id,title:p("showMoves","Show Moved Code Blocks"),icon:ee.move,toggled:mb.create("config.diffEditor.experimental.showMoves",!0),precondition:q.has("isInDiffEditor")},order:10,group:"1_diff",when:q.has("isInDiffEditor")});Ot(cO);for(const s of[{icon:ee.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:ee.discard,key:I.diffEditorInlineMode}])rn.appendMenuItem(fe.DiffEditorHunkToolbar,{command:{id:new cO().desc.id,title:p("revertHunk","Revert Block"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"}),rn.appendMenuItem(fe.DiffEditorSelectionToolbar,{command:{id:new cO().desc.id,title:p("revertSelection","Revert Selection"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"});Ot(F0e);Ot(W0e);Ot(B0e);Ot(H0e);rn.appendMenuItem(fe.EditorTitle,{command:{id:i1.id,title:p("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:q.has("isInDiffEditor")},order:10,group:"2_diff",when:q.and(I.accessibleDiffViewerVisible.negate(),q.has("isInDiffEditor"))});rt.registerCommandAlias("editor.action.diffReview.next",i1.id);Ot(i1);rt.registerCommandAlias("editor.action.diffReview.prev",Bx.id);Ot(Bx);var U0e=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0e=function(s,e){return function(t,i){e(t,i,s)}},dO;const UE=new le("selectionAnchorSet",!1);var x_;let Hh=(x_=class{static get(e){return e.getContribution(dO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=UE.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(pe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new On().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ss(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(pe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},dO=x_,x_.ID="editor.contrib.selectionAnchorController",x_);Hh=dO=U0e([$0e(1,Ie)],Hh);class j0e extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2080),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.setSelectionAnchor()}}class K0e extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:UE})}async run(e,t){var i;(i=Hh.get(t))==null||i.goToSelectionAnchor()}}class q0e extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2089),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.selectFromAnchorToCursor()}}class G0e extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.cancelSelectionAnchor()}}ct(Hh.ID,Hh,4);Q(j0e);Q(K0e);Q(q0e);Q(G0e);const Z0e=E("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Y0e extends de{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.jumpToBracket()}}class X0e extends de{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ee("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var o;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(o=Jg.get(t))==null||o.selectToBracket(n)}}class Q0e extends de{constructor(){super({id:"editor.action.removeBrackets",label:p("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.removeBrackets(this.id)}}class J0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Wd=class Wd extends F{static get(e){return e.getContribution(Wd.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Dt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new pe(r.lineNumber,r.column,r.lineNumber,r.column):new pe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new pe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let r=0;for(let h=0,u=e.length;h1&&o.sort(A.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}Q(nSe);const $E=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let s;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?s=crypto.getRandomValues.bind(crypto):s=function(i){for(let n=0;ns,asFile:()=>{},value:typeof s=="string"?s:void 0}}function sSe(s,e,t){const i={id:$E(),name:s,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class nZ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ot.some(this,([i,n])=>n.asFile())&&t.push("files"),oZ(Hx(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return Hx(e)}}function Hx(s){return s.toLowerCase()}function sZ(s,e){return oZ(Hx(s),e.map(Hx))}function oZ(s,e){if(s==="*/*")return e.length>0;if(e.includes(s))return!0;const t=s.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,o]=t;return o==="*"?e.some(r=>r.startsWith(n+"/")):!1}const jE=Object.freeze({create:s=>Xc(s.map(e=>e.toString())).join(`\r +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js `),split:s=>s.split(`\r `),parse:s=>jE.split(s).filter(e=>!e.startsWith("#"))}),fl=class fl{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+fl.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new fl((this.value?[this.value,...e]:e).join(fl.sep))}};fl.sep=".",fl.None=new fl("@@none@@"),fl.Empty=new fl("");let ei=fl;const j6={EDITORS:"CodeEditors",FILES:"CodeFiles"};class oSe{}const rSe={DragAndDropContribution:"workbench.contributions.dragAndDrop"};li.add(rSe.DragAndDropContribution,new oSe);const jv=class jv{constructor(){}static getInstance(){return jv.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};jv.INSTANCE=new jv;let hO=jv;function rZ(s){const e=new nZ;for(const t of s.items){const i=t.type;if(t.kind==="string"){const n=new Promise(o=>t.getAsString(o));e.append(i,KW(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,aSe(n))}}return e}function aSe(s){const e=s.path?we.parse(s.path):void 0;return sSe(s.name,e,async()=>new Uint8Array(await s.arrayBuffer()))}const lSe=Object.freeze([j6.EDITORS,j6.FILES,Iw.RESOURCES,Iw.INTERNAL_URI_LIST]);function aZ(s,e=!1){const t=rZ(s),i=t.get(Iw.INTERNAL_URI_LIST);if(i)t.replace(vi.uriList,i);else if(e||!t.has(vi.uriList)){const n=[];for(const o of s.items){const r=o.getAsFile();if(r){const a=r.path;try{a?n.push(we.file(a).toString()):n.push(we.parse(r.name,!0).toString())}catch{}}}n.length&&t.replace(vi.uriList,KW(jE.create(n)))}for(const n of lSe)t.delete(n);return t}var qW=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},n1=function(s,e){return function(t,i){e(t,i,s)}};class GW{async provideDocumentPasteEdits(e,t,i,n,o){const r=await this.getEdit(i,o);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const o=await this.getEdit(i,n);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}}const Kv=class Kv extends GW{constructor(){super(...arguments),this.kind=Kv.kind,this.dropMimeTypes=[vi.text],this.pasteMimeTypes=[vi.text]}async getEdit(e,t){const i=e.get(vi.text);if(!i||e.has(vi.uriList))return;const n=await i.asString();return{handledMimeType:vi.text,title:p("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}};Kv.id="text",Kv.kind=new ei("text.plain");let ef=Kv;class lZ extends GW{constructor(){super(...arguments),this.kind=new ei("uri.absolute"),this.dropMimeTypes=[vi.uriList],this.pasteMimeTypes=[vi.uriList]}async getEdit(e,t){const i=await cZ(e);if(!i.length||t.isCancellationRequested)return;let n=0;const o=i.map(({uri:a,originalText:l})=>a.scheme===Oe.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?p("defaultDropProvider.uriList.uris","Insert Uris"):p("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?p("defaultDropProvider.uriList.paths","Insert Paths"):p("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:vi.uriList,insertText:o,title:r,kind:this.kind}}}let Vx=class extends GW{constructor(e){super(),this._workspaceContextService=e,this.kind=new ei("uri.relative"),this.dropMimeTypes=[vi.uriList],this.pasteMimeTypes=[vi.uriList]}async getEdit(e,t){const i=await cZ(e);if(!i.length||t.isCancellationRequested)return;const n=Xr(i.map(({uri:o})=>{const r=this._workspaceContextService.getWorkspaceFolder(o);return r?_le(r.uri,o):void 0}));if(n.length)return{handledMimeType:vi.uriList,insertText:n.join(" "),title:i.length>1?p("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):p("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};Vx=qW([n1(0,qg)],Vx);class cSe{constructor(){this.kind=new ei("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:vi.text}]}async provideDocumentPasteEdits(e,t,i,n,o){var l;if(n.triggerKind!==iw.PasteAs&&!((l=n.only)!=null&&l.contains(this.kind)))return;const r=i.get("text/html"),a=await(r==null?void 0:r.asString());if(!(!a||o.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:p("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function cZ(s){const e=s.get(vi.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of jE.parse(t))try{i.push({uri:we.parse(n),originalText:n})}catch{}return i}let uO=class extends F{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new ef)),this._register(e.documentDropEditProvider.register("*",new lZ)),this._register(e.documentDropEditProvider.register("*",new Vx(t)))}};uO=qW([n1(0,he),n1(1,qg)],uO);let gO=class extends F{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new ef)),this._register(e.documentPasteEditProvider.register("*",new lZ)),this._register(e.documentPasteEditProvider.register("*",new Vx(t))),this._register(e.documentPasteEditProvider.register("*",new cSe))}};gO=qW([n1(0,he),n1(1,qg)],gO);const Fr=class Fr{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=Fr._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(Fr.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(Fr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(Fr.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(Fr.isVariableCharacter(i)||Fr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof Fr._table[i]>"u"&&!Fr.isDigitCharacter(i)&&!Fr.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}};Fr._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let fO=Fr;class Pb{constructor(){this._children=[]}appendChild(e){return e instanceof ds&&this._children[this._children.length-1]instanceof ds?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof L0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class ds extends Pb{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new ds(this.value)}}class dZ extends Pb{}class hr extends dZ{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Ob?this._children[0]:void 0}clone(){const e=new hr(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Ob extends Pb{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof ds&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Ob;return this.options.forEach(e.appendChild,e),e}}class ZW extends Pb{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(o=>o instanceof ya&&!!o.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof ya){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new ZW;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class ya extends Pb{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new ya(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class s1 extends dZ{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new ds(t)],!0):!1}clone(){const e=new s1(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function K6(s,e){const t=[...s];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class L0 extends Pb{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof hr&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return K6([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof hr&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof s1&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new L0;return this._children=this.children.map(t=>t.clone()),e}walk(e){K6(this.children,e)}}class tf{constructor(){this._scanner=new fO,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new L0;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,o=[];t.walk(l=>(l instanceof hr&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):o.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new hr(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof hr&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of o)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new hr(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new ds(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new hr(Number(t)):new s1(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const o=new hr(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new ds("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){const r=new Ob;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(r),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new ds(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const o=new s1(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new ds("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){const t=new ZW;let i="",n="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,i+=o;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new ds(o));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new ya(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new ya(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new ya(Number(n),o)),!0)}else if(this._accept(11)){const o=this._until(4);if(o)return e.appendChild(new ya(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){const o=this._until(4);if(o)return e.appendChild(new ya(Number(n),void 0,void 0,o)),!0}else if(this._accept(13)){const o=this._until(1);if(o){const r=this._until(4);if(r)return e.appendChild(new ya(Number(n),void 0,o,r)),!0}}else{const o=this._until(4);if(o)return e.appendChild(new ya(Number(n),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new ds(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function hZ(s,e,t){var i,n;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:((i=t.additionalEdit)==null?void 0:i.edits)??[]}:{edits:[...e.map(o=>new Ch(s,{range:o,text:typeof t.insertText=="string"?tf.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...((n=t.additionalEdit)==null?void 0:n.edits)??[]]}}function uZ(s){function e(r,a){return"mimeType"in r?r.mimeType===a.handledMimeType:!!a.kind&&r.kind.contains(a.kind)}const t=new Map;for(const r of s)for(const a of r.yieldTo??[])for(const l of s)if(l!==r&&e(a,l)){let c=t.get(r);c||(c=[],t.set(r,c)),c.push(l)}if(!t.size)return Array.from(s);const i=new Set,n=[];function o(r){if(!r.length)return[];const a=r[0];if(n.includes(a))return console.warn("Yield to cycle detected",a),r;if(i.has(a))return o(r.slice(1));let l=[];const c=t.get(a);return c&&(n.push(a),l=o(c),n.pop()),i.add(a),[...l,a,...o(r.slice(1))]}return o(Array.from(s))}var dSe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hSe=function(s,e){return function(t,i){e(t,i,s)}};const uSe=Fe.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:FU,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),BD=class BD extends F{constructor(e,t,i,n,o){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=ie(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=ie("span.icon");this.domNode.append(t),t.classList.add(...De.asClassNameArray(ee.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(z(this.domNode,te.CLICK,n=>{this.delegate.cancel()}))}getId(){return BD.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};BD.baseId="editor.widget.inlineProgressWidget";let pO=BD,zx=class extends F{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new Ji),this._currentWidget=this._register(new Ji),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,o){const r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=Nh(()=>{const a=x.fromPositions(e);this._currentDecorations.set([{range:a,options:uSe}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(pO,this.id,this._editor,a,t,n))},o??this._showDelay);try{return await i}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};zx=dSe([hSe(2,ve)],zx);var gSe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q6=function(s,e){return function(t,i){e(t,i,s)}},xy,wg;let fo=(wg=class{static get(e){return e.getContribution(xy.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new Ji,this._messageListeners=new K,this._mouseOverMessage=!1,this._editor=e,this._visible=xy.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)==null||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ss(Fa(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=Fa(e)?hE(e,{actionHandler:{callback:n=>{this.closeMessage(),f3(this._openerService,n,Fa(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new G6(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(se.debounce(this._editor.onDidBlurEditorText,(n,o)=>o,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Zi(In(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(z(this._messageWidget.value.getDomNode(),te.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(z(this._messageWidget.value.getDomNode(),te.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(G6.fadeOut(this._messageWidget.value))}},xy=wg,wg.ID="editor.contrib.messageController",wg.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message")),wg);fo=xy=gSe([q6(1,Ie),q6(2,js)],fo);const fSe=$i.bindToContribution(fo.get);oe(new fSe({id:"leaveEditorMessage",precondition:fo.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:130,primary:9}}));let G6=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};ct(fo.ID,fo,4);function UT(s,e){return e&&(s.stack||s.stacktrace)?p("stackTrace.format","{0}: {1}",Y6(s),Z6(s.stack)||Z6(s.stacktrace)):Y6(s)}function Z6(s){return Array.isArray(s)?s.join(` `):s}function Y6(s){return s.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${s.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof s.code=="string"&&typeof s.errno=="number"&&typeof s.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",s.message):s.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function Ux(s=null,e=!1){if(!s)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(s)){const t=Xr(s),i=Ux(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Fs(s))return s;if(s.detail){const t=s.detail;if(t.error)return UT(t.error,e);if(t.exception)return UT(t.exception,e)}return s.stack?UT(s,e):s.message?s.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var gZ=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xm=function(s,e){return function(t,i){e(t,i,s)}},mO,k_;let _O=(k_=class extends F{constructor(e,t,i,n,o,r,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(Ce(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Ce(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(h=>{o.containsPosition(h.position)||this.dispose()})),this._register(se.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var t;const e=(t=this._keybindingService.lookupKeybinding(this.showCommand.id))==null?void 0:t.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=ie(".post-edit-widget"),this.button=this._register(new ZL(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(z(this.domNode,te.CLICK,()=>this.showSelector()))}getId(){return mO.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=wi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>lg({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}},mO=k_,k_.baseId="editor.widget.postEditWidget",k_);_O=mO=gZ([xm(7,vo),xm(8,Ie),xm(9,wt)],_O);let $x=class extends F{constructor(e,t,i,n,o,r,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=o,this._bulkEditService=r,this._notificationService=a,this._currentWidget=this._register(new Ji),this._register(se.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,o){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const b=this._editor.getModel();b&&(await b.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,o))},c=(_,b)=>{Dr(_)||(this._notificationService.error(b),i&&this.show(e[0],t,l))};let d;try{d=await n(a,o)}catch(_){return c(_,p("resolveError",`Error resolving edit '{0}': @@ -785,7 +809,11 @@ ${e.toString()}`}}class dx{constructor(e=new Nb,t=!1,i,n=$pe){this._services=e,t `:""}var BAe=WAe,HAe={dump:BAe};function UB(s,e){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var VAe=bs,zAe=NX,UAe=AX,$Ae=BX,jAe=HX,KAe=BB,qAe=nQ.load,GAe=nQ.loadAll,ZAe=HAe.dump,YAe=lo,XAe={binary:jX,float:WX,map:MX,null:PX,pairs:qX,set:GX,timestamp:UX,bool:OX,int:FX,merge:$X,omap:KX,seq:RX,str:TX},QAe=UB("safeLoad","load"),JAe=UB("safeLoadAll","loadAll"),e2e=UB("safeDump","dump"),t2e={Type:VAe,Schema:zAe,FAILSAFE_SCHEMA:UAe,JSON_SCHEMA:$Ae,CORE_SCHEMA:jAe,DEFAULT_SCHEMA:KAe,load:qAe,loadAll:GAe,dump:ZAe,YAMLException:YAe,types:XAe,safeLoad:QAe,safeLoadAll:JAe,safeDump:e2e};const FFe=t2e;export{OFe as _,w0 as m,XG as t,FFe as y}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js __vite__mapDeps.viteFileDeps = ["assets/freemarker2-GKVO7p5q.js","assets/index-rt1yTeew.js","assets/index-c7off0hr.css","assets/handlebars-LJs_OsPl.js","assets/html-5vla4NC_.js","assets/javascript-Pd2mCcrq.js","assets/typescript-RCkR-T-T.js","assets/liquid-eKUo_tln.js","assets/mdx-j-hpKbwY.js","assets/python-dLDs41C4.js","assets/razor-FwGgO_k1.js","assets/xml-lU0j0SNM.js","assets/yaml-m0OSq1I5.js","assets/cssMode-WATe-J7K.js","assets/htmlMode-PobRrH1O.js","assets/jsonMode-S2Y1HX7r.js","assets/tsMode-8u_HsZum.js"] +======== + __vite__mapDeps.viteFileDeps = ["assets/freemarker2--tagdD0m.js","assets/index-JtaswhjV.js","assets/index-1FIqKekI.css","assets/handlebars-tQKSlSHV.js","assets/html-p0SFTXEz.js","assets/javascript-ag7Jk9EF.js","assets/typescript-gBGQkGaZ.js","assets/liquid-lPp2KU7K.js","assets/mdx-haUY93E0.js","assets/python-7wRajubk.js","assets/razor-cUHvhE7N.js","assets/xml-FrK-xr7p.js","assets/yaml-kA0NHOLb.js","assets/cssMode-SOEcaa9z.js","assets/htmlMode-AAgMy7ra.js","assets/jsonMode-q1HVkYYH.js","assets/tsMode-nLGftXSM.js"] +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/js-yaml-F_PXjql-.js } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/app/dubbo-ui/dist/admin/assets/jsonMode-S2Y1HX7r.js b/app/dubbo-ui/dist/admin/assets/jsonMode-S2Y1HX7r.js index 5a8e31f18..cc9f7ae49 100644 --- a/app/dubbo-ui/dist/admin/assets/jsonMode-S2Y1HX7r.js +++ b/app/dubbo-ui/dist/admin/assets/jsonMode-S2Y1HX7r.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/jsonMode-S2Y1HX7r.js import{m as Lt}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as Lt}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/jsonMode-q1HVkYYH.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/linkTracking-wjZ-ycSv.js b/app/dubbo-ui/dist/admin/assets/linkTracking-wjZ-ycSv.js new file mode 100644 index 000000000..48f5231a5 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/linkTracking-wjZ-ycSv.js @@ -0,0 +1 @@ +import{G as s}from"./GrafanaPage-Ib81UiBl.js";import{d as t,a as r,U as o,r as n,z as c,c as i,b as _,o as p}from"./index-JtaswhjV.js";import{b as m}from"./instance-sa6ohjCn.js";import"./request--dYXBGM5.js";const d={class:"__container_ins_tracing"},E=t({__name:"linkTracking",setup(f){var a;const e=r();return o(c.GRAFANA,n({api:m,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"instance"})),(l,u)=>(p(),i("div",d,[_(s)]))}});export{E as default}; diff --git a/app/dubbo-ui/dist/admin/assets/liquid-eKUo_tln.js b/app/dubbo-ui/dist/admin/assets/liquid-eKUo_tln.js index 5a03a2a52..28f2a9617 100644 --- a/app/dubbo-ui/dist/admin/assets/liquid-eKUo_tln.js +++ b/app/dubbo-ui/dist/admin/assets/liquid-eKUo_tln.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/liquid-eKUo_tln.js import{m as d}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as d}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/liquid-lPp2KU7K.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/mdx-j-hpKbwY.js b/app/dubbo-ui/dist/admin/assets/mdx-j-hpKbwY.js index 9809d8d86..189dc2b02 100644 --- a/app/dubbo-ui/dist/admin/assets/mdx-j-hpKbwY.js +++ b/app/dubbo-ui/dist/admin/assets/mdx-j-hpKbwY.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/mdx-j-hpKbwY.js import{m as d}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as d}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/mdx-haUY93E0.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/monitor-4MZElxdr.js b/app/dubbo-ui/dist/admin/assets/monitor-4MZElxdr.js new file mode 100644 index 000000000..cc7744823 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/monitor-4MZElxdr.js @@ -0,0 +1 @@ +import{G as o}from"./GrafanaPage-Ib81UiBl.js";import{c as t}from"./app-PIImRajL.js";import{d as r,a as s,U as n,r as p,z as c,c as i,b as m,n as _,o as f}from"./index-JtaswhjV.js";import"./request--dYXBGM5.js";const d={class:"__container_app_monitor"},G=r({__name:"monitor",setup(l){var a;const e=s();return n(c.GRAFANA,p({api:t,showIframe:!1,name:(a=e.params)==null?void 0:a.pathId,type:"application"})),(u,h)=>(f(),i("div",d,[m(_(o))]))}});export{G as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-LGJ7b0-x.js b/app/dubbo-ui/dist/admin/assets/monitor-LGJ7b0-x.js new file mode 100644 index 000000000..40b2d5a29 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/monitor-LGJ7b0-x.js @@ -0,0 +1 @@ +import{G as o}from"./GrafanaPage-Ib81UiBl.js";import{d as r,a as t,U as s,r as c,z as n,c as i,b as p,o as m}from"./index-JtaswhjV.js";import{a as _}from"./service-1UmnLUvi.js";import"./request--dYXBGM5.js";const d={class:"__container_app_monitor"},A=r({__name:"monitor",setup(f){var e;const a=t();return s(n.GRAFANA,c({api:_,showIframe:!1,name:((e=a.params)==null?void 0:e.pathId)+":22222",type:"service"})),(u,l)=>(m(),i("div",d,[p(o)]))}});export{A as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-fKqC9Q7u.js b/app/dubbo-ui/dist/admin/assets/monitor-fKqC9Q7u.js new file mode 100644 index 000000000..e29dfed3a --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/monitor-fKqC9Q7u.js @@ -0,0 +1 @@ +import{G as o}from"./GrafanaPage-Ib81UiBl.js";import{d as t,a as s,U as r,r as n,z as c,c as i,b as m,o as _}from"./index-JtaswhjV.js";import{a as p}from"./instance-sa6ohjCn.js";import"./request--dYXBGM5.js";const d={class:"__container_ins_monitor"},A=t({__name:"monitor",setup(f){var a;const e=s();return r(c.GRAFANA,n({api:p,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"instance"})),(u,l)=>(_(),i("div",d,[m(o)]))}});export{A as default}; diff --git a/app/dubbo-ui/dist/admin/assets/notFound-U6T768yw.js b/app/dubbo-ui/dist/admin/assets/notFound-U6T768yw.js index d1d92eda2..e2d98b1bc 100644 --- a/app/dubbo-ui/dist/admin/assets/notFound-U6T768yw.js +++ b/app/dubbo-ui/dist/admin/assets/notFound-U6T768yw.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/notFound-U6T768yw.js import{d as B,u as w,c,b as e,w as A,e as o,o as g,j as m,n as E,f as r,t as u,_ as h}from"./index-rt1yTeew.js";const I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAAoCAMAAACfFQXaAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACuUExURUdwTDan7xfJ5wzU5jCt8zeo7WZ2+Dip62V391qG9VSJ9YdV/2px9yuz61GN9Htg/BTM5z+e8Htj/G1w+im27EeX8h3C6TSq7oBb/jSq7hDQ5hPM6HFr+lCM9GB9+FqE9wjZ5hPM6DGu7T6h8UOc8n1g/U+Q9Gd2+XVo/F9+93hk/EuU8yy07mtz+iK/7IRY/w7S6BjJ6ohV/yW67APe5mR6+UeY8yi37DWu84Vf/xmiDNwAAAAfdFJOUwC+TtUHJuQUITLlyz8+8WObb5f17OzHkejgbu6zufJfV5qDAAAIpklEQVRYw5WZiXaqyhKGERrBgS0a0TgRnKJGRI3G6Pu/2K3quRs055ZmZy2X29TvV1NXO2GFBU7JSPjaiPE2Xz3xUfq8wK+wgDhPzXfHA2+SnbxB7Prm+1rvZWtNew3rExr1+hs8qKX4xEczpQ80n/+hZtJMEvqjbJTUuqaGWn80GvXxCQ98UhsMo0rvg3E8OTHLsus188b6p7W+lT0ej/VjDfZYv0/bxoe037YHtJ/DD9oO7IP+fFBrhlznv0+0/R6e+9ttdVtxG3W1743U7mCLRb7I0X7BLmBF0Y/DCve9Obg+FxJOoGESB2UBx8dxfVxT+/r62q6/eoEhgPq/QfuRGpSAhi6Aur+/gQIpYLmcBYaAhTBdQ3HxbAjR4DQ/n+ZzoSCjFK6eawk4cv+PQsHX9qulxVHjTfj/gwJ2pv9lAlQBGkJYgv/Le42UBeSLX1DwywRQCX1TgTs5nc9z6X9GBVAJY6ILOFKTBJiCg6bAJsAVCAlPCXAEKGE11AQslkKBFUXFQAc/PlP3mSkEKOAaawKY9w9TwNd22wpNASqCmICP6hDSCLAsoAiWy0YlAXgwYwKKof79c/9lAGWMAGNgE+g1aA3srYX/28OUGCHEFWx2PyaAD1GFuAClAEI/9GtUwOo+1AhIA//zyygK/GHBGEwkgtBDADSCJvAGKL6uJxQgA9cg8Ojw/9ZjCLaoYNspE9CS+EMwsEKIu79f3ZKIONGNI0h8RWBpEABppF8wAoUrvrX4LCLo5PEuEQyumUTgKQHwmDIPOp2pIAAKDq2gTGC3gSaQprvnZVQRgMwls+WKhdAyKhOgSfwLysYMwKU4C1DR5KwIjMdMV3RSMUQRCALf9Ltu017Akxjt0KkgUG9DsLVTvQpVJTFmcRdeS5bCutU5cIlB5iDnOVDERAPAcxi9psWfeFfpP0UgCVBPew+tjFIJPAt0Amk9wKEhfVqFJIBVE945hPBnCO7dUhVCAr931yERrUJIoBiwNwX9syRAa1CGAAMvywwELSMFmACNwPYtVJ2YA9igACesywz4+KzuA/sVeBwmKxFBVQSAQT6AL6lWYB9A/wteH92TTgDLkC6AEsBSyqvQNyVAOAFZhmQalwg4QfpHJwYCCejqqjIq6qiWA5gCOeiK+pfLxaijJD4XGgFQkLk0hHQCHikReEgAVMBh26vIAay37fTjxSzEAIArQe0mCYwcuwrRKjrCOBMAQAJLdTI4WwQmbonANTAJGCHECLxNLQIwSsA4Wm/Wd38SSGAg7LJRYqWlgCKAEZRfQKbfv4gcOA9Y1vlmCmASuKUcuEaVOaAR2G7r/6kPVBG4zeCVGZ/lEIA8NWjD3G/exxqaX+gshBE0VkW0mJcIEEmAKhhX5oBO4IsGvNmJS6OQXYV4FsMfjPgotFIprFchHIUwzgaXX0FAFNGIpYCdA5KAyOKKHGACRA68By9mIe6/VYV4EcIBeraSBGpV43Se4/jp3tWRwHeMIvQsB7JrpgTYOcAAiBCqIiBmoSd9gDUy+Mb9RA6jy8QgIJMAp+zahU/ToECcVcZAoDBygPYB8heBtVmFQEBo9YEN/f6taTQsJ3ESYA29KQUjt1yF8hwmBKihapyWbYCGj9EHjCqUXSsIlPvAGw8hcxb6+XmdA+j/J8Z2ovm/XI2CUh/IRwAgvohxGiVcmM4u5rCRxf+NwKNEIChVoc3OyoGqKpQ0sIaKAwGzYakTYxPz+ywFaBXCUYIIAuf5/5kDFVXo0JJ9YCMI1DvtdruTvjyRYQ0NZvI8YyDQqtAIcnaY6wBwnmZlFACYOaAJ4BHEy+iLPnDg0xzbSohOHBBCwubu1Sz0SQ8CYi8hxtHIJkBrqHakRAVsnvZxmIYYetIHuIToz07MRwm9E7NZyK+/yIHP2wx0z4wzserFWhUCAN1cnemZAhpDOEoUCEAdKiv6gP93H+ioTryRBHAaTV92YjwIUAA3NctBEhCjCuXsIKBCiEYQP9fHeg7Mq3PAezKNan1AjtP2NPqCAOQAHATI8GYT4FksCdwjOAgscl0BavACvpGgZWheNY3KKvpnFZIHGoXgJ51OZ71Ziu4LAcQi0CVwENhbW4mFEkAV5LUAm5jtf9GnnxZMMAH0KhSVQsi1CDid9eNhngf4kTKsH7TN1oc9S8wcU8A/n9ZQtZpb2jmAIcRqqA6AxRCroySeKwJwHrsOAvs8AMcBRYCNzW15qGcE6mJnPLWmUXMzN3TMWQiLS1PuhVQOREQjcKcHgVwKECeyM1+6wTwqCUzGLlvpRjqAsaMR+FZrFa0KiRedzqvN3K5hEvhsQ2zbmzkcJgI9ByiAEfq/UAQuog/QM5naSvAmHsQ6gMBRBI7f770wQOtpBKZqSVx/e76ZmzkmgVkYhLNbaTN3HxqzUD8KgrEE8GtFkGwFc77YQnNxJyE3W66+F3ocH9/frXd8yE52aGnb7s7b083cv4Zj5cAsaZrr6cpZCC8J8lzuFgUB11gt8hjy0CbPVotst/tYH7UUBgWthn4Z0ttoOSBzGBV0HYvAJ/hO91pmH4jsE1meLyz/IQNiYix35WKX+n1SAmJCdAJ0N82Xu+yGYNsyr2nIVE6jBoFd1ykJ2FsXBMsnJzIqgiuwTmRcwUTthcz9eqyt149qu35U54GpfVtCeimvoyhB+J/qdy/mVoIDYP4nbtX9gB5BvxdtLScvOLwz7wNztV3Prt7YuOBAAuujRmC9bbUrbqs6U3Rf+g8K0pmBydoL7Vd7ngFJTQtHezvNqxDM0gO3fMU09E4n/YaDXjH51hUTZDBkMb0igyx4n/bapPLOkHSmqZYDTesmTScgqig8k5p5fcfuyO73nBuLn/6g5lbeVPrjwSTTQsjT3IcW2yhZGAbk2ZUncfx2r54CgnTWa5fuT4n4DJ/90Gf5ntWP6OvwTwS/IvbLh/HpyR8l/jimV32ZF4/Na9b/AZLRNtBnM80jAAAAAElFTkSuQmCC",Q={class:"__container_error_notFound"},V=["src"],G=B({__name:"notFound",setup(i){const s=w(),C=()=>{s.push("/home")};return(t,K)=>{const a=o("a-button"),n=o("a-result");return g(),c("div",Q,[e(n,{class:"result",title:"404","sub-title":t.$t("noPageTip")},{icon:A(()=>[m("img",{src:E(I)},null,8,V)]),extra:A(()=>[e(a,{type:"primary",onClick:C},{default:A(()=>[r(u(t.$t("backHome")),1)]),_:1})]),_:1},8,["sub-title"])])}}}),p=h(G,[["__scopeId","data-v-d64d284c"]]);export{p as default}; +======== +import{d as B,u as w,c,b as e,w as A,e as o,o as g,j as m,n as E,f as r,t as u,_ as h}from"./index-JtaswhjV.js";const I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAAoCAMAAACfFQXaAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACuUExURUdwTDan7xfJ5wzU5jCt8zeo7WZ2+Dip62V391qG9VSJ9YdV/2px9yuz61GN9Htg/BTM5z+e8Htj/G1w+im27EeX8h3C6TSq7oBb/jSq7hDQ5hPM6HFr+lCM9GB9+FqE9wjZ5hPM6DGu7T6h8UOc8n1g/U+Q9Gd2+XVo/F9+93hk/EuU8yy07mtz+iK/7IRY/w7S6BjJ6ohV/yW67APe5mR6+UeY8yi37DWu84Vf/xmiDNwAAAAfdFJOUwC+TtUHJuQUITLlyz8+8WObb5f17OzHkejgbu6zufJfV5qDAAAIpklEQVRYw5WZiXaqyhKGERrBgS0a0TgRnKJGRI3G6Pu/2K3quRs055ZmZy2X29TvV1NXO2GFBU7JSPjaiPE2Xz3xUfq8wK+wgDhPzXfHA2+SnbxB7Prm+1rvZWtNew3rExr1+hs8qKX4xEczpQ80n/+hZtJMEvqjbJTUuqaGWn80GvXxCQ98UhsMo0rvg3E8OTHLsus188b6p7W+lT0ej/VjDfZYv0/bxoe037YHtJ/DD9oO7IP+fFBrhlznv0+0/R6e+9ttdVtxG3W1743U7mCLRb7I0X7BLmBF0Y/DCve9Obg+FxJOoGESB2UBx8dxfVxT+/r62q6/eoEhgPq/QfuRGpSAhi6Aur+/gQIpYLmcBYaAhTBdQ3HxbAjR4DQ/n+ZzoSCjFK6eawk4cv+PQsHX9qulxVHjTfj/gwJ2pv9lAlQBGkJYgv/Le42UBeSLX1DwywRQCX1TgTs5nc9z6X9GBVAJY6ILOFKTBJiCg6bAJsAVCAlPCXAEKGE11AQslkKBFUXFQAc/PlP3mSkEKOAaawKY9w9TwNd22wpNASqCmICP6hDSCLAsoAiWy0YlAXgwYwKKof79c/9lAGWMAGNgE+g1aA3srYX/28OUGCHEFWx2PyaAD1GFuAClAEI/9GtUwOo+1AhIA//zyygK/GHBGEwkgtBDADSCJvAGKL6uJxQgA9cg8Ojw/9ZjCLaoYNspE9CS+EMwsEKIu79f3ZKIONGNI0h8RWBpEABppF8wAoUrvrX4LCLo5PEuEQyumUTgKQHwmDIPOp2pIAAKDq2gTGC3gSaQprvnZVQRgMwls+WKhdAyKhOgSfwLysYMwKU4C1DR5KwIjMdMV3RSMUQRCALf9Ltu017Akxjt0KkgUG9DsLVTvQpVJTFmcRdeS5bCutU5cIlB5iDnOVDERAPAcxi9psWfeFfpP0UgCVBPew+tjFIJPAt0Amk9wKEhfVqFJIBVE945hPBnCO7dUhVCAr931yERrUJIoBiwNwX9syRAa1CGAAMvywwELSMFmACNwPYtVJ2YA9igACesywz4+KzuA/sVeBwmKxFBVQSAQT6AL6lWYB9A/wteH92TTgDLkC6AEsBSyqvQNyVAOAFZhmQalwg4QfpHJwYCCejqqjIq6qiWA5gCOeiK+pfLxaijJD4XGgFQkLk0hHQCHikReEgAVMBh26vIAay37fTjxSzEAIArQe0mCYwcuwrRKjrCOBMAQAJLdTI4WwQmbonANTAJGCHECLxNLQIwSsA4Wm/Wd38SSGAg7LJRYqWlgCKAEZRfQKbfv4gcOA9Y1vlmCmASuKUcuEaVOaAR2G7r/6kPVBG4zeCVGZ/lEIA8NWjD3G/exxqaX+gshBE0VkW0mJcIEEmAKhhX5oBO4IsGvNmJS6OQXYV4FsMfjPgotFIprFchHIUwzgaXX0FAFNGIpYCdA5KAyOKKHGACRA68By9mIe6/VYV4EcIBeraSBGpV43Se4/jp3tWRwHeMIvQsB7JrpgTYOcAAiBCqIiBmoSd9gDUy+Mb9RA6jy8QgIJMAp+zahU/ToECcVcZAoDBygPYB8heBtVmFQEBo9YEN/f6taTQsJ3ESYA29KQUjt1yF8hwmBKihapyWbYCGj9EHjCqUXSsIlPvAGw8hcxb6+XmdA+j/J8Z2ovm/XI2CUh/IRwAgvohxGiVcmM4u5rCRxf+NwKNEIChVoc3OyoGqKpQ0sIaKAwGzYakTYxPz+ywFaBXCUYIIAuf5/5kDFVXo0JJ9YCMI1DvtdruTvjyRYQ0NZvI8YyDQqtAIcnaY6wBwnmZlFACYOaAJ4BHEy+iLPnDg0xzbSohOHBBCwubu1Sz0SQ8CYi8hxtHIJkBrqHakRAVsnvZxmIYYetIHuIToz07MRwm9E7NZyK+/yIHP2wx0z4wzserFWhUCAN1cnemZAhpDOEoUCEAdKiv6gP93H+ioTryRBHAaTV92YjwIUAA3NctBEhCjCuXsIKBCiEYQP9fHeg7Mq3PAezKNan1AjtP2NPqCAOQAHATI8GYT4FksCdwjOAgscl0BavACvpGgZWheNY3KKvpnFZIHGoXgJ51OZ71Ziu4LAcQi0CVwENhbW4mFEkAV5LUAm5jtf9GnnxZMMAH0KhSVQsi1CDid9eNhngf4kTKsH7TN1oc9S8wcU8A/n9ZQtZpb2jmAIcRqqA6AxRCroySeKwJwHrsOAvs8AMcBRYCNzW15qGcE6mJnPLWmUXMzN3TMWQiLS1PuhVQOREQjcKcHgVwKECeyM1+6wTwqCUzGLlvpRjqAsaMR+FZrFa0KiRedzqvN3K5hEvhsQ2zbmzkcJgI9ByiAEfq/UAQuog/QM5naSvAmHsQ6gMBRBI7f770wQOtpBKZqSVx/e76ZmzkmgVkYhLNbaTN3HxqzUD8KgrEE8GtFkGwFc77YQnNxJyE3W66+F3ocH9/frXd8yE52aGnb7s7b083cv4Zj5cAsaZrr6cpZCC8J8lzuFgUB11gt8hjy0CbPVotst/tYH7UUBgWthn4Z0ttoOSBzGBV0HYvAJ/hO91pmH4jsE1meLyz/IQNiYix35WKX+n1SAmJCdAJ0N82Xu+yGYNsyr2nIVE6jBoFd1ykJ2FsXBMsnJzIqgiuwTmRcwUTthcz9eqyt149qu35U54GpfVtCeimvoyhB+J/qdy/mVoIDYP4nbtX9gB5BvxdtLScvOLwz7wNztV3Prt7YuOBAAuujRmC9bbUrbqs6U3Rf+g8K0pmBydoL7Vd7ngFJTQtHezvNqxDM0gO3fMU09E4n/YaDXjH51hUTZDBkMb0igyx4n/bapPLOkHSmqZYDTesmTScgqig8k5p5fcfuyO73nBuLn/6g5lbeVPrjwSTTQsjT3IcW2yhZGAbk2ZUncfx2r54CgnTWa5fuT4n4DJ/90Gf5ntWP6OvwTwS/IvbLh/HpyR8l/jimV32ZF4/Na9b/AZLRNtBnM80jAAAAAElFTkSuQmCC",Q={class:"__container_error_notFound"},V=["src"],G=B({__name:"notFound",setup(i){const s=w(),C=()=>{s.push("/home")};return(t,K)=>{const a=o("a-button"),n=o("a-result");return g(),c("div",Q,[e(n,{class:"result",title:"404","sub-title":t.$t("noPageTip")},{icon:A(()=>[m("img",{src:E(I)},null,8,V)]),extra:A(()=>[e(a,{type:"primary",onClick:C},{default:A(()=>[r(u(t.$t("backHome")),1)]),_:1})]),_:1},8,["sub-title"])])}}}),p=h(G,[["__scopeId","data-v-d64d284c"]]);export{p as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/notFound-mUOXRXmj.js diff --git a/app/dubbo-ui/dist/admin/assets/python-dLDs41C4.js b/app/dubbo-ui/dist/admin/assets/python-dLDs41C4.js index d6c3d45c9..3d94c5bac 100644 --- a/app/dubbo-ui/dist/admin/assets/python-dLDs41C4.js +++ b/app/dubbo-ui/dist/admin/assets/python-dLDs41C4.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/python-dLDs41C4.js import{m as a}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as a}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/python-7wRajubk.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/razor-FwGgO_k1.js b/app/dubbo-ui/dist/admin/assets/razor-FwGgO_k1.js index 9ade87a58..45b3db7e4 100644 --- a/app/dubbo-ui/dist/admin/assets/razor-FwGgO_k1.js +++ b/app/dubbo-ui/dist/admin/assets/razor-FwGgO_k1.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/razor-FwGgO_k1.js import{m as s}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as s}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/razor-cUHvhE7N.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/request-vlI2kaaR.js b/app/dubbo-ui/dist/admin/assets/request-vlI2kaaR.js index 21ba29c9b..551142e74 100644 --- a/app/dubbo-ui/dist/admin/assets/request-vlI2kaaR.js +++ b/app/dubbo-ui/dist/admin/assets/request-vlI2kaaR.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/request-vlI2kaaR.js import{af as Ke,X as Ge,ag as Xe,B as Qe,m as K,R as Ye,Y as de}from"./index-rt1yTeew.js";function Pe(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:oe}=Object,z=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>z(t)===e),J=e=>t=>typeof t===e,{isArray:k}=Array,D=J("undefined");function et(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ce=N("ArrayBuffer");function tt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ce(e.buffer),t}const nt=J("string"),T=J("function"),Ne=J("number"),$=e=>e!==null&&typeof e=="object",rt=e=>e===!0||e===!1,q=e=>{if(z(e)!=="object")return!1;const t=oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},st=N("Date"),ot=N("File"),it=N("Blob"),at=N("FileList"),ct=e=>$(e)&&T(e.pipe),ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=z(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},lt=N("URLSearchParams"),ft=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),k(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=e=>!D(e)&&e!==Ue;function ee(){const{caseless:e}=Fe(this)&&this||{},t={},n=(r,s)=>{const o=e&&xe(t,s)||s;q(t[o])&&q(r)?t[o]=ee(t[o],r):q(r)?t[o]=ee({},r):k(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(j(t,(s,o)=>{n&&T(s)?e[o]=Pe(s,n):e[o]=s},{allOwnKeys:r}),e),pt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ht=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mt=(e,t,n,r)=>{let s,o,i;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=n!==!1&&oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},St=e=>{if(!e)return null;if(k(e))return e;let t=e.length;if(!Ne(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oe(Uint8Array)),Et=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},wt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Rt=N("HTMLFormElement"),gt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ot=N("RegExp"),_e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Tt=e=>{_e(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},At=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return k(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},Ct=(e,t)=>(e=+e,Number.isFinite(e)?e:t),G="abcdefghijklmnopqrstuvwxyz",he="0123456789",Le={DIGIT:he,ALPHA:G,ALPHA_DIGIT:G+G.toUpperCase()+he},Nt=(e=16,t=Le.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function xt(e){return!!(e&&T(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ut=e=>{const t=new Array(10),n=(r,s)=>{if($(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=k(r)?[]:{};return j(r,(i,f)=>{const h=n(i,s+1);!D(h)&&(o[f]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Ft=N("AsyncFunction"),_t=e=>e&&($(e)||T(e))&&T(e.then)&&T(e.catch),c={isArray:k,isArrayBuffer:Ce,isBuffer:et,isFormData:ut,isArrayBufferView:tt,isString:nt,isNumber:Ne,isBoolean:rt,isObject:$,isPlainObject:q,isUndefined:D,isDate:st,isFile:ot,isBlob:it,isRegExp:Ot,isFunction:T,isStream:ct,isURLSearchParams:lt,isTypedArray:bt,isFileList:at,forEach:j,merge:ee,extend:dt,trim:ft,stripBOM:pt,inherits:ht,toFlatObject:mt,kindOf:z,kindOfTest:N,endsWith:yt,toArray:St,forEachEntry:Et,matchAll:wt,isHTMLForm:Rt,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:_e,freezeMethods:Tt,toObjectSet:At,toCamelCase:gt,noop:Pt,toFiniteNumber:Ct,findKey:xe,global:Ue,isContextDefined:Fe,ALPHABET:Le,generateString:Nt,isSpecCompliantForm:xt,toJSONObject:Ut,isAsyncFn:Ft,isThenable:_t};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ke=y.prototype,Be={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Be[e]={value:e}});Object.defineProperties(y,Be);Object.defineProperty(ke,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return c.toFlatObject(e,i,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Lt=null;function te(e){return c.isPlainObject(e)||c.isArray(e)}function De(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,n){return e?e.concat(t).map(function(s,o){return s=De(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function kt(e){return c.isArray(e)&&!e.some(te)}const Bt=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function W(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,p){return!c.isUndefined(p[u])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function m(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!h&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?h&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function d(a,u,p){let S=a;if(a&&!p&&typeof a=="object"){if(c.endsWith(u,"{}"))u=r?u:u.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&kt(a)||(c.isFileList(a)||c.endsWith(u,"[]"))&&(S=c.toArray(a)))return u=De(u),S.forEach(function(g,E){!(c.isUndefined(g)||g===null)&&t.append(i===!0?me([u],E,o):i===null?u:u+"[]",m(g))}),!1}return te(a)?!0:(t.append(me(p,u,o),m(a)),!1)}const l=[],b=Object.assign(Bt,{defaultVisitor:d,convertValue:m,isVisitable:te});function O(a,u){if(!c.isUndefined(a)){if(l.indexOf(a)!==-1)throw Error("Circular reference detected in "+u.join("."));l.push(a),c.forEach(a,function(S,w){(!(c.isUndefined(S)||S===null)&&s.call(t,S,c.isString(w)?w.trim():w,u,b))===!0&&O(S,u?u.concat(w):[w])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return O(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ie(e,t){this._pairs=[],e&&W(e,this,t)}const je=ie.prototype;je.append=function(t,n){this._pairs.push([t,n])};je.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ve(e,t,n){if(!t)return e;const r=n&&n.encode||Dt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Se{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jt=typeof URLSearchParams<"u"?URLSearchParams:ie,vt=typeof FormData<"u"?FormData:null,qt=typeof Blob<"u"?Blob:null,Ht={isBrowser:!0,classes:{URLSearchParams:jt,FormData:vt,Blob:qt},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",It=(e=>He&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Mt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:It,hasStandardBrowserWebWorkerEnv:Mt},Symbol.toStringTag,{value:"Module"})),C={...zt,...Ht};function Jt(e,t){return W(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return C.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function $t(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,h?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!f):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Wt(s[i])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t($t(r),s,n,0)}),n}return null}function Vt(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ae={transitional:qe,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Ie(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jt(t,this.formSerializer).toString();if((f=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return W(f?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Vt(t)):t}],transformResponse:[function(t){const n=this.transitional||ae.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?y.from(f,y.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ae.headers[e]={}});const ce=ae,Kt=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gt=e=>{const t={};let n,r,s;return e&&e.split(` +======== +import{ad as Ke,X as Ge,ae as Xe,B as Qe,m as K,R as Ye,Y as de}from"./index-JtaswhjV.js";function Pe(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:oe}=Object,z=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>z(t)===e),J=e=>t=>typeof t===e,{isArray:k}=Array,D=J("undefined");function et(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ce=N("ArrayBuffer");function tt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ce(e.buffer),t}const nt=J("string"),T=J("function"),Ne=J("number"),$=e=>e!==null&&typeof e=="object",rt=e=>e===!0||e===!1,q=e=>{if(z(e)!=="object")return!1;const t=oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},st=N("Date"),ot=N("File"),it=N("Blob"),at=N("FileList"),ct=e=>$(e)&&T(e.pipe),ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||T(e.append)&&((t=z(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},lt=N("URLSearchParams"),ft=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),k(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=e=>!D(e)&&e!==Ue;function ee(){const{caseless:e}=Fe(this)&&this||{},t={},n=(r,s)=>{const o=e&&xe(t,s)||s;q(t[o])&&q(r)?t[o]=ee(t[o],r):q(r)?t[o]=ee({},r):k(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(j(t,(s,o)=>{n&&T(s)?e[o]=Pe(s,n):e[o]=s},{allOwnKeys:r}),e),pt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ht=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mt=(e,t,n,r)=>{let s,o,i;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=n!==!1&&oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},St=e=>{if(!e)return null;if(k(e))return e;let t=e.length;if(!Ne(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oe(Uint8Array)),Et=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},wt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Rt=N("HTMLFormElement"),gt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ot=N("RegExp"),_e=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Tt=e=>{_e(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},At=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return k(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},Ct=(e,t)=>(e=+e,Number.isFinite(e)?e:t),G="abcdefghijklmnopqrstuvwxyz",he="0123456789",Le={DIGIT:he,ALPHA:G,ALPHA_DIGIT:G+G.toUpperCase()+he},Nt=(e=16,t=Le.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function xt(e){return!!(e&&T(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ut=e=>{const t=new Array(10),n=(r,s)=>{if($(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=k(r)?[]:{};return j(r,(i,f)=>{const h=n(i,s+1);!D(h)&&(o[f]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Ft=N("AsyncFunction"),_t=e=>e&&($(e)||T(e))&&T(e.then)&&T(e.catch),c={isArray:k,isArrayBuffer:Ce,isBuffer:et,isFormData:ut,isArrayBufferView:tt,isString:nt,isNumber:Ne,isBoolean:rt,isObject:$,isPlainObject:q,isUndefined:D,isDate:st,isFile:ot,isBlob:it,isRegExp:Ot,isFunction:T,isStream:ct,isURLSearchParams:lt,isTypedArray:bt,isFileList:at,forEach:j,merge:ee,extend:dt,trim:ft,stripBOM:pt,inherits:ht,toFlatObject:mt,kindOf:z,kindOfTest:N,endsWith:yt,toArray:St,forEachEntry:Et,matchAll:wt,isHTMLForm:Rt,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:_e,freezeMethods:Tt,toObjectSet:At,toCamelCase:gt,noop:Pt,toFiniteNumber:Ct,findKey:xe,global:Ue,isContextDefined:Fe,ALPHABET:Le,generateString:Nt,isSpecCompliantForm:xt,toJSONObject:Ut,isAsyncFn:Ft,isThenable:_t};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ke=y.prototype,Be={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Be[e]={value:e}});Object.defineProperties(y,Be);Object.defineProperty(ke,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(ke);return c.toFlatObject(e,i,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Lt=null;function te(e){return c.isPlainObject(e)||c.isArray(e)}function De(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,n){return e?e.concat(t).map(function(s,o){return s=De(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function kt(e){return c.isArray(e)&&!e.some(te)}const Bt=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function W(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,p){return!c.isUndefined(p[u])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function m(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!h&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?h&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function d(a,u,p){let S=a;if(a&&!p&&typeof a=="object"){if(c.endsWith(u,"{}"))u=r?u:u.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&kt(a)||(c.isFileList(a)||c.endsWith(u,"[]"))&&(S=c.toArray(a)))return u=De(u),S.forEach(function(g,E){!(c.isUndefined(g)||g===null)&&t.append(i===!0?me([u],E,o):i===null?u:u+"[]",m(g))}),!1}return te(a)?!0:(t.append(me(p,u,o),m(a)),!1)}const l=[],b=Object.assign(Bt,{defaultVisitor:d,convertValue:m,isVisitable:te});function O(a,u){if(!c.isUndefined(a)){if(l.indexOf(a)!==-1)throw Error("Circular reference detected in "+u.join("."));l.push(a),c.forEach(a,function(S,w){(!(c.isUndefined(S)||S===null)&&s.call(t,S,c.isString(w)?w.trim():w,u,b))===!0&&O(S,u?u.concat(w):[w])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return O(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ie(e,t){this._pairs=[],e&&W(e,this,t)}const je=ie.prototype;je.append=function(t,n){this._pairs.push([t,n])};je.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ve(e,t,n){if(!t)return e;const r=n&&n.encode||Dt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Se{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jt=typeof URLSearchParams<"u"?URLSearchParams:ie,vt=typeof FormData<"u"?FormData:null,qt=typeof Blob<"u"?Blob:null,Ht={isBrowser:!0,classes:{URLSearchParams:jt,FormData:vt,Blob:qt},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",It=(e=>He&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Mt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:It,hasStandardBrowserWebWorkerEnv:Mt},Symbol.toStringTag,{value:"Module"})),C={...zt,...Ht};function Jt(e,t){return W(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return C.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function $t(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,h?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!f):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Wt(s[i])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t($t(r),s,n,0)}),n}return null}function Vt(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ae={transitional:qe,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(Ie(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jt(t,this.formSerializer).toString();if((f=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return W(f?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Vt(t)):t}],transformResponse:[function(t){const n=this.transitional||ae.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?y.from(f,y.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ae.headers[e]={}});const ce=ae,Kt=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gt=e=>{const t={};let n,r,s;return e&&e.split(` +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/request--dYXBGM5.js `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Kt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},be=Symbol("internals");function B(e){return e&&String(e).trim().toLowerCase()}function H(e){return e===!1||e==null?e:c.isArray(e)?e.map(H):String(e)}function Xt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Qt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function X(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Yt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Zt(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class V{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(f,h,m){const d=B(h);if(!d)throw new Error("header name must be a non-empty string");const l=c.findKey(s,d);(!l||s[l]===void 0||m===!0||m===void 0&&s[l]!==!1)&&(s[l||h]=H(f))}const i=(f,h)=>c.forEach(f,(m,d)=>o(m,d,h));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Qt(t)?i(Gt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=B(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Xt(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=B(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||X(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=B(i),i){const f=c.findKey(r,i);f&&(!n||X(r,r[f],f,n))&&(delete r[f],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||X(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=H(s),delete n[o];return}const f=t?Yt(o):String(o).trim();f!==o&&delete n[o],n[f]=H(s),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[be]=this[be]={accessors:{}}).accessors,s=this.prototype;function o(i){const f=B(i);r[f]||(Zt(s,i),r[f]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(V.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(V);const x=V;function Q(e,t){const n=this||ce,r=t||n,s=x.from(r.headers);let o=r.data;return c.forEach(e,function(f){o=f.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Me(e){return!!(e&&e.__CANCEL__)}function v(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(v,y,{__CANCEL__:!0});function en(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const tn=C.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ze(e,t){return e&&!nn(t)?rn(e,t):t}const sn=C.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const f=c.isString(i)?s(i):i;return f.protocol===r.protocol&&f.host===r.host}}():function(){return function(){return!0}}();function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),d=r[o];i||(i=m),n[s]=h,r[s]=m;let l=o,b=0;for(;l!==s;)b+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),m-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,f=o-n,h=r(f),m=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:f,rate:h||void 0,estimated:h&&i&&m?(i-o)/h:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const cn=typeof XMLHttpRequest<"u",un=cn&&function(e){return new Promise(function(n,r){let s=e.data;const o=x.from(e.headers).normalize();let{responseType:i,withXSRFToken:f}=e,h;function m(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}let d;if(c.isFormData(s)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[u,...p]=d?d.split(";").map(S=>S.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...p].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(u+":"+p))}const b=ze(e.baseURL,e.url);l.open(e.method.toUpperCase(),ve(b,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function O(){if(!l)return;const u=x.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),S={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:u,config:e,request:l};en(function(g){n(g),m()},function(g){r(g),m()},S),l=null}if("onloadend"in l?l.onloadend=O:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(O)},l.onabort=function(){l&&(r(new y("Request aborted",y.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||qe;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new y(p,S.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,l)),l=null},C.hasStandardBrowserEnv&&(f&&c.isFunction(f)&&(f=f(e)),f||f!==!1&&sn(b))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&tn.read(e.xsrfCookieName);u&&o.set(e.xsrfHeaderName,u)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&c.forEach(o.toJSON(),function(p,S){l.setRequestHeader(S,p)}),c.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ee(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ee(e.onUploadProgress)),(e.cancelToken||e.signal)&&(h=u=>{l&&(r(!u||u.type?new v(null,e,l):u),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h)));const a=on(b);if(a&&C.protocols.indexOf(a)===-1){r(new y("Unsupported protocol "+a+":",y.ERR_BAD_REQUEST,e));return}l.send(s||null)})},ne={http:Lt,xhr:un};c.forEach(ne,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const we=e=>`- ${e}`,ln=e=>c.isFunction(e)||e===null||e===!1,Je={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(we).join(` diff --git a/app/dubbo-ui/dist/admin/assets/search-HhXTRztG.js b/app/dubbo-ui/dist/admin/assets/search-HhXTRztG.js index 1abb2646e..81e135066 100644 --- a/app/dubbo-ui/dist/admin/assets/search-HhXTRztG.js +++ b/app/dubbo-ui/dist/admin/assets/search-HhXTRztG.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/search-HhXTRztG.js import{d as g,u as b,a as f,r as k,F as q,c as I,b as l,w as d,U as x,e as N,o as u,J as S,j as m,n as T,I as w,f as C,t as R,T as D,z as P,_ as Q}from"./index-rt1yTeew.js";import{s as V}from"./service-RF66g7V7.js";import{S as E,a as $}from"./SearchUtil-FCBI7ppE.js";import{p as A,q as i}from"./PromQueryUtil-mqYJCdcK.js";import"./request-vlI2kaaR.js";const B={class:"__container_services_index"},F=["onClick"],J=g({__name:"search",setup(M){const p=b(),c=f();let _=c.query.query;const v=[{title:"service",key:"service",dataIndex:"serviceName"},{title:"version",key:"version",dataIndex:"version"},{title:"subset",key:"group",dataIndex:"group"},{title:"provider",key:"provider",dataIndex:"providerAppName"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal"}];function y(a,r){return V(a).then(async o=>A(o,["avgQPS","avgRT","requestTotal"],async e=>{e.avgQPS=await i(`sum (dubbo_provider_qps_total{interface='${e.serviceName}'}) by (interface)`),e.avgRT=await i(`avg(dubbo_consumer_rt_avg_milliseconds_aggregate{interface="${e.serviceName}",method=~"$method"}>0)`),e.requestTotal=await i(`sum (increase(dubbo_provider_requests_total{interface="${e.serviceName}"}[1m]))`)}))}const t=k(new E([{label:"serviceName",param:"keywords",placeholder:"typeAppName",defaultValue:_,style:{width:"200px"}}],y,v,void 0,void 0));t.onSearch(),t.tableStyle={scrollX:"100",scrollY:"367px"};const h=(a,r,o,e)=>{p.push({name:"distribution",params:{pathId:a,group:r,version:o},query:e?{providerAppName:e}:{}})};return x(P.SEARCH_DOMAIN,t),q(c,(a,r)=>{t.queryForm.keywords=a.query.query,t.onSearch(),console.log(a)}),(a,r)=>{const o=N("a-tooltip");return u(),I("div",B,[l($,{"search-domain":t},{bodyCell:d(({column:e,record:s,text:n})=>[e.dataIndex==="serviceName"?(u(),S(o,{key:0,title:n},{default:d(()=>[m("span",{class:"app-link",onClick:O=>h(n,s.group,s.version,s.providerAppName)},[m("b",null,[l(T(w),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),C(" "+R(n),1)])],8,F)]),_:2},1032,["title"])):D("",!0)]),_:1},8,["search-domain"])])}}}),L=Q(J,[["__scopeId","data-v-306e509f"]]);export{L as default}; +======== +import{d as g,u as b,a as f,r as k,F as q,c as I,b as l,w as d,U as x,e as N,o as u,J as S,j as m,n as T,I as w,f as C,t as R,T as D,z as P,_ as Q}from"./index-JtaswhjV.js";import{s as V}from"./service-1UmnLUvi.js";import{S as E,a as $}from"./SearchUtil-euy68KhE.js";import{p as A,q as i}from"./PromQueryUtil-xm9pTL4M.js";import"./request--dYXBGM5.js";const B={class:"__container_services_index"},F=["onClick"],J=g({__name:"search",setup(M){const p=b(),c=f();let _=c.query.query;const v=[{title:"service",key:"service",dataIndex:"serviceName"},{title:"version",key:"version",dataIndex:"version"},{title:"subset",key:"group",dataIndex:"group"},{title:"provider",key:"provider",dataIndex:"providerAppName"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal"}];function y(a,r){return V(a).then(async o=>A(o,["avgQPS","avgRT","requestTotal"],async e=>{e.avgQPS=await i(`sum (dubbo_provider_qps_total{interface='${e.serviceName}'}) by (interface)`),e.avgRT=await i(`avg(dubbo_consumer_rt_avg_milliseconds_aggregate{interface="${e.serviceName}",method=~"$method"}>0)`),e.requestTotal=await i(`sum (increase(dubbo_provider_requests_total{interface="${e.serviceName}"}[1m]))`)}))}const t=k(new E([{label:"serviceName",param:"keywords",placeholder:"typeAppName",defaultValue:_,style:{width:"200px"}}],y,v,void 0,void 0));t.onSearch(),t.tableStyle={scrollX:"100",scrollY:"367px"};const h=(a,r,o,e)=>{p.push({name:"distribution",params:{pathId:a,group:r,version:o},query:e?{providerAppName:e}:{}})};return x(P.SEARCH_DOMAIN,t),q(c,(a,r)=>{t.queryForm.keywords=a.query.query,t.onSearch(),console.log(a)}),(a,r)=>{const o=N("a-tooltip");return u(),I("div",B,[l($,{"search-domain":t},{bodyCell:d(({column:e,record:s,text:n})=>[e.dataIndex==="serviceName"?(u(),S(o,{key:0,title:n},{default:d(()=>[m("span",{class:"app-link",onClick:O=>h(n,s.group,s.version,s.providerAppName)},[m("b",null,[l(T(w),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),C(" "+R(n),1)])],8,F)]),_:2},1032,["title"])):D("",!0)]),_:1},8,["search-domain"])])}}}),L=Q(J,[["__scopeId","data-v-306e509f"]]);export{L as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/search-GCTQci_4.js diff --git a/app/dubbo-ui/dist/admin/assets/serverInfo-T8wz3JrY.js b/app/dubbo-ui/dist/admin/assets/serverInfo-T8wz3JrY.js index 75d83f2a2..ffa259feb 100644 --- a/app/dubbo-ui/dist/admin/assets/serverInfo-T8wz3JrY.js +++ b/app/dubbo-ui/dist/admin/assets/serverInfo-T8wz3JrY.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/serverInfo-T8wz3JrY.js import{r as e}from"./request-vlI2kaaR.js";const a=t=>e({url:"/overview",method:"get",params:t}),o=t=>e({url:"/metadata",method:"get",params:t});export{o as a,a as g}; +======== +import{r as e}from"./request--dYXBGM5.js";const a=t=>e({url:"/overview",method:"get",params:t}),o=t=>e({url:"/metadata",method:"get",params:t});export{o as a,a as g}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/serverInfo-hyQn9HsQ.js diff --git a/app/dubbo-ui/dist/admin/assets/service-RF66g7V7.js b/app/dubbo-ui/dist/admin/assets/service-RF66g7V7.js index 6e4ca7bf3..b9de62656 100644 --- a/app/dubbo-ui/dist/admin/assets/service-RF66g7V7.js +++ b/app/dubbo-ui/dist/admin/assets/service-RF66g7V7.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/service-RF66g7V7.js import{r}from"./request-vlI2kaaR.js";const i=e=>r({url:"/service/search",method:"get",params:e}),o=e=>r({url:"/service/distribution",method:"get",params:e}),c=e=>r({url:"/service/metric-dashboard",method:"get",params:e}),s=e=>r({url:"/service/trace-dashboard",method:"get",params:e}),u=e=>r({url:"/service/config/timeout",method:"get",params:e}),n=e=>r({url:"/service/config/timeout",method:"put",data:e}),a=e=>r({url:"/service/config/retry",method:"get",params:e}),g=e=>r({url:"/service/config/retry",method:"put",data:e}),d=e=>r({url:"/service/config/regionPriority",method:"get",params:e}),m=e=>r({url:"/service/config/regionPriority",method:"put",data:e}),v=e=>r({url:"/service/config/argumentRoute",method:"get",params:e}),h=e=>r({url:"/service/config/argumentRoute",method:"put",data:e});export{c as a,s as b,v as c,u as d,n as e,a as f,o as g,g as h,d as i,m as j,i as s,h as u}; +======== +import{r}from"./request--dYXBGM5.js";const i=e=>r({url:"/service/search",method:"get",params:e}),o=e=>r({url:"/service/distribution",method:"get",params:e}),c=e=>r({url:"/service/metric-dashboard",method:"get",params:e}),s=e=>r({url:"/service/trace-dashboard",method:"get",params:e}),u=e=>r({url:"/service/config/timeout",method:"get",params:e}),n=e=>r({url:"/service/config/timeout",method:"put",data:e}),a=e=>r({url:"/service/config/retry",method:"get",params:e}),g=e=>r({url:"/service/config/retry",method:"put",data:e}),d=e=>r({url:"/service/config/regionPriority",method:"get",params:e}),m=e=>r({url:"/service/config/regionPriority",method:"put",data:e}),v=e=>r({url:"/service/config/argumentRoute",method:"get",params:e}),h=e=>r({url:"/service/config/argumentRoute",method:"put",data:e});export{c as a,s as b,v as c,u as d,n as e,a as f,o as g,g as h,d as i,m as j,i as s,h as u}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/service-1UmnLUvi.js diff --git a/app/dubbo-ui/dist/admin/assets/tab1-krCLsB5L.js b/app/dubbo-ui/dist/admin/assets/tab1-krCLsB5L.js index ec1e80a59..8430babb5 100644 --- a/app/dubbo-ui/dist/admin/assets/tab1-krCLsB5L.js +++ b/app/dubbo-ui/dist/admin/assets/tab1-krCLsB5L.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/tab1-krCLsB5L.js import{_ as e,c as t,o as c}from"./index-rt1yTeew.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab1")}const f=e(o,[["render",a]]);export{f as default}; +======== +import{_ as e,c as t,o as c}from"./index-JtaswhjV.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab1")}const f=e(o,[["render",a]]);export{f as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/tab1-nSfouRTr.js diff --git a/app/dubbo-ui/dist/admin/assets/tab2-pkEoLefQ.js b/app/dubbo-ui/dist/admin/assets/tab2-pkEoLefQ.js index 83869c9c8..361c1daa4 100644 --- a/app/dubbo-ui/dist/admin/assets/tab2-pkEoLefQ.js +++ b/app/dubbo-ui/dist/admin/assets/tab2-pkEoLefQ.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/tab2-pkEoLefQ.js import{_ as e,c as t,o as c}from"./index-rt1yTeew.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab2")}const f=e(o,[["render",a]]);export{f as default}; +======== +import{_ as e,c as t,o as c}from"./index-JtaswhjV.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab2")}const f=e(o,[["render",a]]);export{f as default}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/tab2-18LtHGi3.js diff --git a/app/dubbo-ui/dist/admin/assets/tracing-0saJ0bye.js b/app/dubbo-ui/dist/admin/assets/tracing-0saJ0bye.js new file mode 100644 index 000000000..e64ce7050 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/tracing-0saJ0bye.js @@ -0,0 +1 @@ +import{G as t}from"./GrafanaPage-Ib81UiBl.js";import{d as o}from"./app-PIImRajL.js";import{d as r,a as s,U as n,r as p,z as c,c as i,b as _,n as m,o as d}from"./index-JtaswhjV.js";import"./request--dYXBGM5.js";const f={class:"__container_app_tracing"},v=r({__name:"tracing",setup(l){var a;const e=s();return n(c.GRAFANA,p({api:o,showIframe:!1,name:(a=e.params)==null?void 0:a.pathId,type:"application"})),(u,h)=>(d(),i("div",f,[_(m(t))]))}});export{v as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tracing-cZerXPwx.js b/app/dubbo-ui/dist/admin/assets/tracing-cZerXPwx.js new file mode 100644 index 000000000..3a1f7c9be --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/tracing-cZerXPwx.js @@ -0,0 +1 @@ +import{G as r}from"./GrafanaPage-Ib81UiBl.js";import{d as o,a as t,U as s,r as c,z as n,c as i,b as p,o as _}from"./index-JtaswhjV.js";import{b as m}from"./service-1UmnLUvi.js";import"./request--dYXBGM5.js";const d={class:"__container_app_monitor"},I=o({__name:"tracing",setup(f){var a;const e=t();return s(n.GRAFANA,c({api:m,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"service"})),(u,l)=>(_(),i("div",d,[p(r)]))}});export{I as default}; diff --git a/app/dubbo-ui/dist/admin/assets/traffic-nmA_BhEL.js b/app/dubbo-ui/dist/admin/assets/traffic-nmA_BhEL.js index 20f2c91f3..fadb9961c 100644 --- a/app/dubbo-ui/dist/admin/assets/traffic-nmA_BhEL.js +++ b/app/dubbo-ui/dist/admin/assets/traffic-nmA_BhEL.js @@ -1 +1,5 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/traffic-nmA_BhEL.js import{r as t}from"./request-vlI2kaaR.js";const n=e=>t({url:"/condition-rule/search",method:"get",params:e}),u=e=>t({url:`/condition-rule/${e}`,method:"get"}),a=e=>t({url:`/condition-rule/${e}`,method:"delete"}),l=(e,o)=>t({url:`/condition-rule/${e}`,method:"put",data:o}),d=(e,o)=>t({url:`/condition-rule/${e}`,method:"post",data:o}),s=e=>t({url:"/tag-rule/search",method:"get",params:e}),i=e=>t({url:`/tag-rule/${e}`,method:"delete"}),c=e=>t({url:`/tag-rule/${e}`,method:"get"}),g=(e,o)=>t({url:`/tag-rule/${e}`,method:"put",data:o}),m=(e,o)=>t({url:`/tag-rule/${e}`,method:"post",data:o}),h=e=>t({url:"/configurator/search",method:"get",params:e}),R=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"get"}),p=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"put",data:o}),C=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"post",data:o}),f=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"delete"});export{d as a,s as b,i as c,a as d,c as e,m as f,u as g,g as h,h as i,f as j,R as k,C as l,p as m,n as s,l as u}; +======== +import{r as t}from"./request--dYXBGM5.js";const n=e=>t({url:"/condition-rule/search",method:"get",params:e}),u=e=>t({url:`/condition-rule/${e}`,method:"get"}),a=e=>t({url:`/condition-rule/${e}`,method:"delete"}),l=(e,o)=>t({url:`/condition-rule/${e}`,method:"put",data:o}),d=(e,o)=>t({url:`/condition-rule/${e}`,method:"post",data:o}),s=e=>t({url:"/tag-rule/search",method:"get",params:e}),i=e=>t({url:`/tag-rule/${e}`,method:"delete"}),c=e=>t({url:`/tag-rule/${e}`,method:"get"}),g=(e,o)=>t({url:`/tag-rule/${e}`,method:"put",data:o}),m=(e,o)=>t({url:`/tag-rule/${e}`,method:"post",data:o}),h=e=>t({url:"/configurator/search",method:"get",params:e}),R=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"get"}),p=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"put",data:o}),C=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"post",data:o}),f=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"delete"});export{d as a,s as b,i as c,a as d,c as e,m as f,u as g,g as h,h as i,f as j,R as k,C as l,p as m,n as s,l as u}; +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/traffic-BsDR0F4K.js diff --git a/app/dubbo-ui/dist/admin/assets/tsMode-8u_HsZum.js b/app/dubbo-ui/dist/admin/assets/tsMode-8u_HsZum.js index c4de8d1c5..34afb7696 100644 --- a/app/dubbo-ui/dist/admin/assets/tsMode-8u_HsZum.js +++ b/app/dubbo-ui/dist/admin/assets/tsMode-8u_HsZum.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/tsMode-8u_HsZum.js import{t as I,m as N}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{t as I,m as N}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/tsMode-nLGftXSM.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/typescript-RCkR-T-T.js b/app/dubbo-ui/dist/admin/assets/typescript-RCkR-T-T.js index a51edb610..17ba984a9 100644 --- a/app/dubbo-ui/dist/admin/assets/typescript-RCkR-T-T.js +++ b/app/dubbo-ui/dist/admin/assets/typescript-RCkR-T-T.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/typescript-RCkR-T-T.js import{m as a}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as a}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/typescript-gBGQkGaZ.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/xml-lU0j0SNM.js b/app/dubbo-ui/dist/admin/assets/xml-lU0j0SNM.js index e55f2c6b2..29d90ae2d 100644 --- a/app/dubbo-ui/dist/admin/assets/xml-lU0j0SNM.js +++ b/app/dubbo-ui/dist/admin/assets/xml-lU0j0SNM.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/xml-lU0j0SNM.js import{m}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/xml-FrK-xr7p.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/yaml-m0OSq1I5.js b/app/dubbo-ui/dist/admin/assets/yaml-m0OSq1I5.js index 250f94e85..ac1355c4f 100644 --- a/app/dubbo-ui/dist/admin/assets/yaml-m0OSq1I5.js +++ b/app/dubbo-ui/dist/admin/assets/yaml-m0OSq1I5.js @@ -1,4 +1,8 @@ +<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/yaml-m0OSq1I5.js import{m as i}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- +======== +import{m as i}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- +>>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/yaml-kA0NHOLb.js * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/pkg/config/app/admin.go b/pkg/config/app/admin.go index eb232af6f..ee943a668 100644 --- a/pkg/config/app/admin.go +++ b/pkg/config/app/admin.go @@ -19,7 +19,6 @@ package app import ( "github.com/duke-git/lancet/v2/slice" - "github.com/pkg/errors" "go.uber.org/multierr" "github.com/apache/dubbo-admin/pkg/common/bizerror" @@ -28,35 +27,39 @@ import ( "github.com/apache/dubbo-admin/pkg/config/diagnostics" "github.com/apache/dubbo-admin/pkg/config/discovery" "github.com/apache/dubbo-admin/pkg/config/engine" - "github.com/apache/dubbo-admin/pkg/config/mode" + "github.com/apache/dubbo-admin/pkg/config/log" + "github.com/apache/dubbo-admin/pkg/config/observability" "github.com/apache/dubbo-admin/pkg/config/store" ) type AdminConfig struct { config.BaseConfig - // Mode in which dubbo admin is running. Available values are: "test", "global", "zone" - Mode mode.Mode `json:"mode" envconfig:"DUBBO_MODE"` + // Log configuration + Log *log.Config `json:"log" yaml:"log"` // Diagnostics configuration - Diagnostics *diagnostics.Config `json:"diagnostics,omitempty"` + Diagnostics *diagnostics.Config `json:"diagnostics,omitempty" yaml:"diagnostics"` + // Observability configuration + Observability *observability.Config `json:"observability" yaml:"observability"` // Console configuration - Console *console.Config `json:"console"` + Console *console.Config `json:"console" yaml:"console"` // Store configuration - Store *store.Config `json:"store"` + Store *store.Config `json:"store" yaml:"store"` // Discovery configuration - Discovery []*discovery.Config `json:"discovery"` + Discovery []*discovery.Config `json:"discovery" yaml:"discovery"` // Engine configuration - Engine *engine.Config `json:"engine"` + Engine *engine.Config `json:"engine" yaml:"engine"` } var _ = &AdminConfig{} var DefaultAdminConfig = func() AdminConfig { return AdminConfig{ - Mode: mode.Zone, - Store: store.DefaultStoreConfig(), - Engine: engine.DefaultResourceEngineConfig(), - Diagnostics: diagnostics.DefaultDiagnosticsConfig(), - Console: console.DefaultConsoleConfig(), + Log: log.DefaultLogConfig(), + Store: store.DefaultStoreConfig(), + Engine: engine.DefaultResourceEngineConfig(), + Observability: observability.DefaultObservabilityConfig(), + Diagnostics: diagnostics.DefaultDiagnosticsConfig(), + Console: console.DefaultConsoleConfig(), } } @@ -67,15 +70,28 @@ func (c AdminConfig) Sanitize() { } c.Store.Sanitize() c.Console.Sanitize() + c.Observability.Sanitize() c.Diagnostics.Sanitize() + c.Log.Sanitize() } func (c AdminConfig) PreProcess() error { + discoveryPreProcess := func() error { + for _, d := range c.Discovery { + if err := d.PreProcess(); err != nil { + return err + } + } + return nil + } return multierr.Combine( c.Engine.PreProcess(), + discoveryPreProcess(), c.Store.PreProcess(), c.Console.PreProcess(), + c.Observability.PreProcess(), c.Diagnostics.PreProcess(), + c.Log.PreProcess(), ) } @@ -93,47 +109,56 @@ func (c AdminConfig) PostProcess() error { discoveryPostProcess(), c.Store.PostProcess(), c.Console.PostProcess(), + c.Observability.PostProcess(), c.Diagnostics.PostProcess(), + c.Log.PostProcess(), ) } func (c AdminConfig) Validate() error { - if err := mode.ValidateMode(c.Mode); err != nil { - return errors.Wrap(err, "Mode Config validation failed") + if c.Log == nil { + c.Log = log.DefaultLogConfig() + } else if err := c.Log.Validate(); err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, "log config validation failed") } if c.Store == nil { c.Store = store.DefaultStoreConfig() } else if err := c.Store.Validate(); err != nil { - return bizerror.Wrap(err, bizerror.ConfigError, "Store Config validation failed") + return bizerror.Wrap(err, bizerror.ConfigError, "store config validation failed") } if c.Diagnostics == nil { c.Diagnostics = diagnostics.DefaultDiagnosticsConfig() } else if err := c.Diagnostics.Validate(); err != nil { - return bizerror.Wrap(err, bizerror.ConfigError, "Diagnostics Config validation failed") + return bizerror.Wrap(err, bizerror.ConfigError, "diagnostics config validation failed") } if c.Console == nil { c.Console = console.DefaultConsoleConfig() } else if err := c.Console.Validate(); err != nil { - return bizerror.Wrap(err, bizerror.ConfigError, "Admin validation failed") + return bizerror.Wrap(err, bizerror.ConfigError, "console config validation failed") + } + if c.Observability == nil { + c.Observability = observability.DefaultObservabilityConfig() + } else if err := c.Observability.Validate(); err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, "observability config validation failed") } - if c.Discovery == nil { - return bizerror.New(bizerror.ConfigError, "Discovery Config is needed") + if c.Discovery == nil || len(c.Discovery) == 0 { + return bizerror.New(bizerror.ConfigError, "discover config is needed") } for _, d := range c.Discovery { if err := d.Validate(); err != nil { - return bizerror.Wrap(err, bizerror.ConfigError, "Discovery Config validation failed") + return bizerror.Wrap(err, bizerror.ConfigError, "discovery config validation failed") } } discoveryIDList := slice.Map(c.Discovery, func(index int, item *discovery.Config) string { return item.ID }) if len(discoveryIDList) != len(slice.Unique(discoveryIDList)) { - return bizerror.New(bizerror.ConfigError, "Discovery ID must be unique") + return bizerror.New(bizerror.ConfigError, "discovery id must be unique") } if c.Engine == nil { c.Engine = engine.DefaultResourceEngineConfig() } else if err := c.Engine.Validate(); err != nil { - return bizerror.Wrap(err, bizerror.ConfigError, "Engine Config validation failed") + return bizerror.Wrap(err, bizerror.ConfigError, "engine config validation failed") } return nil } @@ -148,6 +173,7 @@ func (c AdminConfig) FindDiscovery(id string) *discovery.Config { return nil } +// Meshes return the mesh id list of discoveries func (c AdminConfig) Meshes() []string { return slice.Map(c.Discovery, func(index int, item *discovery.Config) string { return item.ID diff --git a/pkg/config/config.go b/pkg/config/base.go similarity index 100% rename from pkg/config/config.go rename to pkg/config/base.go diff --git a/pkg/config/console/config.go b/pkg/config/console/config.go index 77dbffc96..d3d526856 100644 --- a/pkg/config/console/config.go +++ b/pkg/config/console/config.go @@ -18,65 +18,113 @@ package console import ( - "errors" + "fmt" "net/url" + set "github.com/duke-git/lancet/v2/datastructure/set" "github.com/duke-git/lancet/v2/strutil" - "go.uber.org/multierr" + "github.com/gin-gonic/gin" "github.com/apache/dubbo-admin/pkg/common/bizerror" "github.com/apache/dubbo-admin/pkg/config" "github.com/apache/dubbo-admin/pkg/config/console/auth" - . "github.com/apache/dubbo-admin/pkg/config/console/observability" +) + +type GinRunningMode string + +var supportedGinRunningMode = set.New(DebugMode, ReleaseMode, TestMode) + +const ( + DebugMode GinRunningMode = gin.DebugMode + ReleaseMode GinRunningMode = gin.ReleaseMode + TestMode GinRunningMode = gin.TestMode ) type Config struct { config.BaseConfig - Port int `json:"port" envconfig:"DUBBO_ADMIN_PORT"` - MetricDashboards *MetricDashboardConfig `json:"metricDashboards"` - TraceDashboards *TraceDashboardConfig `json:"traceDashboards"` - Prometheus string `json:"prometheus"` - Grafana string `json:"grafana"` - Auth *auth.Config `json:"auth"` - PrometheusBaseURL *url.URL + GinMode GinRunningMode `json:"ginMode" yaml:"ginMode"` + Port int `json:"port" yaml:"port"` + MetricDashboards *GrafanaDashboardConfig `json:"metricDashboards" yaml:"metricDashboards"` + TraceDashboards *GrafanaDashboardConfig `json:"traceDashboards" yaml:"traceDashboards"` + Auth *auth.Config `json:"auth" yaml:"auth"` } -func (s *Config) PostProcess() error { - if strutil.IsNotBlank(s.Prometheus) { - prometheusBaseURL, err := url.Parse(s.Prometheus) - if err != nil { - return bizerror.Wrap(err, bizerror.ConfigError, "invalid prometheus url") - } - s.PrometheusBaseURL = prometheusBaseURL +func (c *Config) Validate() error { + if !supportedGinRunningMode.Contain(c.GinMode) { + return bizerror.New(bizerror.ConfigError, fmt.Sprintf("invalid gin mode: %s", c.GinMode)) } - return multierr.Combine( - s.MetricDashboards.PostProcess(), - s.TraceDashboards.PostProcess(), - ) -} - -func (s *Config) Validate() error { - if s.MetricDashboards != nil { - if err := s.MetricDashboards.Validate(); err != nil { + if c.Port < 1 || c.Port > 65535 { + return bizerror.New(bizerror.ConfigError, "port of console must between 1 to 65535") + } + if c.Auth == nil { + return bizerror.New(bizerror.ConfigError, "auth config is needed, but found empty") + } + if c.MetricDashboards != nil { + if err := c.MetricDashboards.Validate(); err != nil { return err } } - if s.TraceDashboards != nil { - if err := s.TraceDashboards.Validate(); err != nil { + if c.TraceDashboards != nil { + if err := c.TraceDashboards.Validate(); err != nil { return err } } - if s.Auth == nil { - return errors.New("auth config is needed, but found empty") - } - if err := s.Auth.Validate(); err != nil { + if err := c.Auth.Validate(); err != nil { return err } return nil } +type GrafanaDashboardConfig struct { + config.BaseConfig + // application level metrics panel + Application string `json:"application" yaml:"application"` + // instance level metrics panel + Instance string `json:"instance" yaml:"instance"` + // service level metrics panel + Service string `json:"service" yaml:"service"` + + AppDashboardURL *url.URL `json:"-" yaml:"-"` + InstanceDashboardURL *url.URL `json:"-" yaml:"-"` + ServiceDashboardURL *url.URL `json:"-" yaml:"-"` +} + +func (g *GrafanaDashboardConfig) Validate() error { + if strutil.IsNotBlank(g.Application) { + dashboardURL, err := url.Parse(g.Application) + if err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, + fmt.Sprintf("invalid application dashboard url: %s", g.Application)) + } + g.AppDashboardURL = dashboardURL + } + if strutil.IsNotBlank(g.Instance) { + dashboardURL, err := url.Parse(g.Instance) + if err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, + fmt.Sprintf("invalid instance dashboard url: %s", g.Instance)) + } + g.InstanceDashboardURL = dashboardURL + } + if strutil.IsNotBlank(g.Service) { + dashboardURL, err := url.Parse(g.Service) + if err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, + fmt.Sprintf("invalid service dashboard url: %s", g.Service)) + } + g.ServiceDashboardURL = dashboardURL + } + return nil +} + func DefaultConsoleConfig() *Config { return &Config{ - Port: 8888, + GinMode: ReleaseMode, + Port: 8888, + Auth: &auth.Config{ + User: "admin", + Password: "admin", + ExpirationTime: 3600, + }, } } diff --git a/pkg/config/console/observability/config.go b/pkg/config/console/observability/config.go deleted file mode 100644 index 288b96511..000000000 --- a/pkg/config/console/observability/config.go +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package observability - -import ( - "net/url" - "strings" - - "github.com/pkg/errors" - - "github.com/apache/dubbo-admin/pkg/config" -) - -// MetricDashboardConfig are grafana dashboards for metrics display -type MetricDashboardConfig struct { - config.BaseConfig - // application level metrics panel - Application string `json:"application"` - // instance level metrics panel - Instance string `json:"instance"` - // service level metrics panel - Service string `json:"service"` -} - -// TraceDashboardConfig are grafana dashboards for traces display -type TraceDashboardConfig struct { - config.BaseConfig - // application level traces panel - Application string `json:"application"` - // instance level traces panel - Instance string `json:"instance"` - // service level traces panel - Service string `json:"service"` -} - -// DashboardConfig grafana dashboard config TODO add dynamic variables -type DashboardConfig struct { - config.BaseConfig - BaseURL string `json:"baseURL"` -} - -func (c *DashboardConfig) PostProcess() error { - // trim suffix "/" of dashboard url - c.BaseURL = strings.TrimSuffix(c.BaseURL, "/") - return nil -} - -func (c *DashboardConfig) Validate() error { - _, err := url.Parse(c.BaseURL) - if err != nil { - return errors.Wrap(err, "invalid url"+c.BaseURL) - } - return nil -} - -// PrometheusConfig is used to query metrics data for frontend -type PrometheusConfig string diff --git a/pkg/config/diagnostics/config.go b/pkg/config/diagnostics/config.go index 9972d4739..b5fe1ac21 100644 --- a/pkg/config/diagnostics/config.go +++ b/pkg/config/diagnostics/config.go @@ -18,6 +18,7 @@ package diagnostics import ( + "github.com/apache/dubbo-admin/pkg/common/bizerror" "github.com/apache/dubbo-admin/pkg/config" ) @@ -25,12 +26,15 @@ type Config struct { config.BaseConfig // Port of Diagnostic Server for checking health and readiness of the Control Plane - ServerPort uint32 `json:"serverPort" envconfig:"DUBBO_DIAGNOSTICS_SERVER_PORT"` + ServerPort uint32 `json:"serverPort"` } var _ = &Config{} -func (d *Config) Validate() error { +func (c *Config) Validate() error { + if c.ServerPort < 1 || c.ServerPort > 65535 { + return bizerror.New(bizerror.ConfigError, "server port for diagnotics must between 1 to 65535") + } return nil } diff --git a/pkg/config/discovery/config.go b/pkg/config/discovery/config.go index 118f27748..d1df84013 100644 --- a/pkg/config/discovery/config.go +++ b/pkg/config/discovery/config.go @@ -41,22 +41,23 @@ const ( // Config defines Discovery configuration type Config struct { config.BaseConfig - ID string `json:"id"` - Name string `json:"name"` - Type Type `json:"type"` - Address AddressConfig `json:"address"` - Properties Properties `json:"properties"` + ID string `json:"id" yaml:"id"` + Name string `json:"name" yaml:"name"` + Type Type `json:"type" yaml:"type"` + Address AddressConfig `json:"address" yaml:"address"` + Properties Properties `json:"properties" yaml:"properties"` } // AddressConfig defines Discovery Engine address type AddressConfig struct { - Registry string `json:"registry"` - ConfigCenter string `json:"configCenter"` - MetadataReport string `json:"metadataReport"` + Registry string `json:"registry" yaml:"registry"` + ConfigCenter string `json:"configCenter" yaml:"configCenter"` + MetadataReport string `json:"metadataReport" yaml:"metadataReport"` } + type Properties struct { - ConfigWatchPeriod int `json:"configWatchPeriod"` - ServiceWatchPeriod int `json:"serviceWatchPeriod"` + ConfigWatchPeriod int `json:"configWatchPeriod" yaml:"configWatchPeriod"` + ServiceWatchPeriod int `json:"serviceWatchPeriod" yaml:"serviceWatchPeriod"` } func (c *Config) PreProcess() error { diff --git a/pkg/config/engine/config.go b/pkg/config/engine/config.go index 0adc0d520..cde1afbce 100644 --- a/pkg/config/engine/config.go +++ b/pkg/config/engine/config.go @@ -18,8 +18,11 @@ package engine import ( + "fmt" + set "github.com/duke-git/lancet/v2/datastructure/set" "github.com/duke-git/lancet/v2/strutil" + "github.com/google/uuid" "github.com/apache/dubbo-admin/pkg/common/bizerror" "github.com/apache/dubbo-admin/pkg/config" @@ -27,49 +30,69 @@ import ( type Type string +var supportedEngineTypes = set.New(Kubernetes, Mock) + const ( - VM Type = "vm" Kubernetes Type = "kubernetes" Mock Type = "mock" ) type Config struct { config.BaseConfig - ID string `json:"id"` - Name string `json:"name"` - Type Type `json:"type"` - Properties Properties `json:"properties"` + ID string `json:"id" yaml:"id"` + Name string `json:"name" yaml:"name"` + Type Type `json:"type" yaml:"type"` + Properties Properties `json:"properties" yaml:"properties"` } func (c *Config) Validate() error { if strutil.IsBlank(c.ID) { return bizerror.New(bizerror.ConfigError, "engine id can not be empty") } - return nil + if !supportedEngineTypes.Contain(c.Type) { + return bizerror.New(bizerror.ConfigError, fmt.Sprintf("engine type %s is not supported", c.Type)) + } + return c.Properties.Validate() } type Properties struct { - KubeConfigPath string `json:"kubeConfigPath"` - PodWatchSelector string `json:"podWatchSelector"` - DubboAppIdentifier *KubernetesIdentifier `json:"dubboAppIdentifier"` - DubboRPCPortIdentifier *KubernetesIdentifier `json:"dubboRPCPortIdentifier"` - DubboRegistryIdentifier *KubernetesIdentifier `json:"dubboRegistryIdentifier"` - MainContainerChooseStrategy *MainContainerChooseStrategy `json:"mainContainerChooseStrategy"` + config.BaseConfig + KubeConfigPath string `json:"kubeConfigPath" yaml:"kubeConfigPath"` + PodWatchSelector string `json:"podWatchSelector" yaml:"podWatchSelector"` + DubboAppIdentifier *KubernetesIdentifier `json:"dubboAppIdentifier" yaml:"dubboAppIdentifier"` + DubboRPCPortIdentifier *KubernetesIdentifier `json:"dubboRPCPortIdentifier" yaml:"dubboRPCPortIdentifier"` + DubboDiscoveryIdentifier *KubernetesIdentifier `json:"dubboDiscoveryIdentifier" yaml:"dubboDiscoveryIdentifier"` + MainContainerChooseStrategy *MainContainerChooseStrategy `json:"mainContainerChooseStrategy" yaml:"mainContainerChooseStrategy"` } -func (p *Properties) GetOrDefaultMainContainerChooseStrategy() *MainContainerChooseStrategy { - if p.MainContainerChooseStrategy == nil || - !mainContainerChooseStrategyTypes.Contain(p.MainContainerChooseStrategy.Type) { - return &MainContainerChooseStrategy{ - Type: ChooseByIndex, - Index: 0, +func (p *Properties) Validate() error { + if p.DubboAppIdentifier != nil { + if err := p.DubboAppIdentifier.Validate(); err != nil { + return err + } + } + if p.DubboRPCPortIdentifier != nil { + if err := p.DubboRPCPortIdentifier.Validate(); err != nil { + return err } } - return p.MainContainerChooseStrategy + if p.DubboDiscoveryIdentifier != nil { + if err := p.DubboDiscoveryIdentifier.Validate(); err != nil { + return err + } + } + if p.MainContainerChooseStrategy != nil { + if err := p.MainContainerChooseStrategy.Validate(); err != nil { + return err + } + } + return nil } type MainContainerChooseStrategyType string +var mainContainerChooseStrategyTypes = set.New(ChooseByLast, ChooseByIndex, ChooseByName, ChooseByAnnotation) + const ( ChooseByLast MainContainerChooseStrategyType = "ByLast" ChooseByIndex MainContainerChooseStrategyType = "ByIndex" @@ -77,32 +100,54 @@ const ( ChooseByAnnotation MainContainerChooseStrategyType = "ByAnnotation" ) -var mainContainerChooseStrategyTypes = set.New(ChooseByLast, ChooseByIndex, ChooseByName, ChooseByAnnotation) - type MainContainerChooseStrategy struct { + config.BaseConfig Type MainContainerChooseStrategyType `json:"type"` Index int `json:"index"` Name string `json:"name"` AnnotationKey string `json:"annotationKey"` } +func (m *MainContainerChooseStrategy) Validate() error { + if !mainContainerChooseStrategyTypes.Contain(m.Type) { + return bizerror.New(bizerror.ConfigError, fmt.Sprintf("unsupported main container choose strategy type: %s", m.Type)) + } + return nil +} + type IdentifierType string +var identifierTypes = set.New(IdentifyByLabel, IdentifyByAnnotation) + const ( IdentifyByLabel IdentifierType = "ByLabel" IdentifyByAnnotation IdentifierType = "ByAnnotation" ) type KubernetesIdentifier struct { + config.BaseConfig Type IdentifierType `json:"type"` LabelKey string `json:"labelKey"` AnnotationKey string `json:"annotationKey"` } +func (k *KubernetesIdentifier) Validate() error { + if !identifierTypes.Contain(k.Type) { + return bizerror.New(bizerror.ConfigError, fmt.Sprintf("unsupported identifier type: %s", k.Type)) + } + return nil +} + func DefaultResourceEngineConfig() *Config { return &Config{ - Name: "default", - Type: Mock, - Properties: Properties{}, + ID: uuid.New().String(), + Name: "default", + Type: Mock, + Properties: Properties{ + MainContainerChooseStrategy: &MainContainerChooseStrategy{ + Type: ChooseByIndex, + Index: 0, + }, + }, } } diff --git a/pkg/config/loader.go b/pkg/config/loader.go index 522908c5d..8c0d3bdbb 100644 --- a/pkg/config/loader.go +++ b/pkg/config/loader.go @@ -21,7 +21,6 @@ import ( "fmt" "os" - "github.com/kelseyhightower/envconfig" "github.com/pkg/errors" "sigs.k8s.io/yaml" @@ -29,10 +28,10 @@ import ( ) func Load(file string, cfg Config) error { - return LoadWithOption(file, cfg, false, true, true) + return LoadWithOption(file, cfg, false, true) } -func LoadWithOption(file string, cfg Config, strict bool, includeEnv bool, validate bool) error { +func LoadWithOption(file string, cfg Config, strict bool, validate bool) error { if file == "" { return bizerror.New(bizerror.ConfigError, "config file is needed") } @@ -44,12 +43,6 @@ func LoadWithOption(file string, cfg Config, strict bool, includeEnv bool, valid return fmt.Errorf("configuration pre processing failed, %w", err) } - if includeEnv { - if err := envconfig.Process("", cfg); err != nil { - return fmt.Errorf("configuration environment processing failed, %w", err) - } - } - if err := cfg.PostProcess(); err != nil { return fmt.Errorf("configuration post processing failed, %w", err) } diff --git a/pkg/config/log/config.go b/pkg/config/log/config.go new file mode 100644 index 000000000..591a0ea40 --- /dev/null +++ b/pkg/config/log/config.go @@ -0,0 +1,72 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package log + +import ( + "fmt" + + "github.com/duke-git/lancet/v2/slice" + + "github.com/apache/dubbo-admin/pkg/common/bizerror" + "github.com/apache/dubbo-admin/pkg/config" +) + +type Level string + +var supportLevels = []Level{LevelDebug, LevelInfo, LevelWarn, LevelError} + +const ( + LevelDebug Level = "debug" + LevelInfo Level = "info" + LevelWarn Level = "warn" + LevelError Level = "error" +) + +const ( + defaultLogLevel = LevelDebug + defaultOutputPath = "logs/dubbo-admin.log" + defaultMaxSize = 100 + defaultMaxBackups = 5 + defaultMaxAge = 3 +) + +type Config struct { + config.BaseConfig + Level Level `json:"level" yaml:"level"` + OutputPath string `json:"outputPath" yaml:"outputPath"` + MaxSize int `json:"maxSize" yaml:"maxSize"` + MaxBackups int `json:"maxBackups" yaml:"maxBackups"` + MaxAge int `json:"maxAge" yaml:"maxAge"` +} + +func (c *Config) Validate() error { + if !slice.Contain(supportLevels, c.Level) { + return bizerror.New(bizerror.ConfigError, fmt.Sprintf("unsupported log level: %s", c.Level)) + } + return nil +} + +func DefaultLogConfig() *Config { + return &Config{ + Level: defaultLogLevel, + OutputPath: defaultOutputPath, + MaxSize: defaultMaxSize, + MaxBackups: defaultMaxBackups, + MaxAge: defaultMaxAge, + } +} diff --git a/pkg/config/mode/config.go b/pkg/config/mode/config.go index b89e83eb9..ba9612605 100644 --- a/pkg/config/mode/config.go +++ b/pkg/config/mode/config.go @@ -21,18 +21,6 @@ import ( "github.com/pkg/errors" ) -// DeployMode 部署模型 -// 1. 纯Kubernetes -// 2. 半托管, 使用Kubernetes做平台, 服务注册的模型仍然使用zookeeper -// 3. vm, 使用vm机器传统服务注册模型 -type DeployMode = string - -const ( - KubernetesMode DeployMode = "k8s" // 全托管 - HalfHostMode DeployMode = "half" // 半托管 - UniversalMode DeployMode = "universal" // vm传统 -) - // Mode Control Plane mode type Mode = string diff --git a/pkg/config/observability/config.go b/pkg/config/observability/config.go new file mode 100644 index 000000000..879e22998 --- /dev/null +++ b/pkg/config/observability/config.go @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package observability + +import ( + "fmt" + "net/url" + + "github.com/duke-git/lancet/v2/strutil" + + "github.com/apache/dubbo-admin/pkg/common/bizerror" + "github.com/apache/dubbo-admin/pkg/config" +) + +type Config struct { + config.BaseConfig + // Grafana is the url of grafana + Grafana string `json:"grafana" yaml:"grafana"` + // Prometheus is the url of prometheus + Prometheus string `json:"prometheus" yaml:"prometheus"` + + GrafanaBaseURL *url.URL `json:"-" yaml:"-"` + PrometheusBaseURL *url.URL `json:"-" yaml:"-"` +} + +func (c *Config) Validate() error { + if strutil.IsNotBlank(c.Prometheus) { + prometheusBaseURL, err := url.Parse(c.Prometheus) + if err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, + fmt.Sprintf("invalid prometheus url: %s", c.Prometheus)) + } + c.PrometheusBaseURL = prometheusBaseURL + } + if strutil.IsNotBlank(c.Grafana) { + grafanaBaseURL, err := url.Parse(c.Grafana) + if err != nil { + return bizerror.Wrap(err, bizerror.ConfigError, + fmt.Sprintf("invalid grafana url: %s", c.Grafana)) + } + c.GrafanaBaseURL = grafanaBaseURL + } + return nil +} + +func DefaultObservabilityConfig() *Config { + return &Config{} +} diff --git a/pkg/config/store/config.go b/pkg/config/store/config.go index dbf617996..174f62ad6 100644 --- a/pkg/config/store/config.go +++ b/pkg/config/store/config.go @@ -18,6 +18,11 @@ package store import ( + "fmt" + + set "github.com/duke-git/lancet/v2/datastructure/set" + + "github.com/apache/dubbo-admin/pkg/common/bizerror" "github.com/apache/dubbo-admin/pkg/config" ) @@ -31,12 +36,21 @@ const ( Postgres Type = "postgres" ) +var supportTypes = set.New(Memory, MySQL, Postgres) + // Config defines the ResourceStore configuration type Config struct { config.BaseConfig // Type of Store used in Admin - Type Type `json:"type"` - Address string `json:"address"` + Type Type `json:"type" yaml:"type"` + Address string `json:"address" yaml:"address"` +} + +func (c *Config) Validate() error { + if !supportTypes.Contain(c.Type) { + return bizerror.New(bizerror.ConfigError, fmt.Sprintf("unsupported store type: %s", c.Type)) + } + return nil } func DefaultStoreConfig() *Config { diff --git a/pkg/console/component.go b/pkg/console/component.go index 8a9dd7771..c371ab908 100644 --- a/pkg/console/component.go +++ b/pkg/console/component.go @@ -67,7 +67,8 @@ func (c *consoleWebServer) Order() int { } func (c *consoleWebServer) Init(ctx runtime.BuilderContext) error { - r := gin.Default() + c.cfg = ctx.Config().Console + r := gin.New() // Admin UI r.StaticFS("/admin", http.FS(ui.FS())) r.NoRoute(func(c *gin.Context) { @@ -88,7 +89,7 @@ func (c *consoleWebServer) Init(ctx runtime.BuilderContext) error { r.Use(ginzap.Ginzap(logger.Logger(), time.RFC3339, true)) r.Use(ginzap.RecoveryWithZap(logger.Logger(), true)) c.Engine = r - c.cfg = ctx.Config().Console + gin.SetMode(string(c.cfg.GinMode)) return nil } diff --git a/pkg/console/handler/grafana.go b/pkg/console/handler/grafana.go deleted file mode 100644 index d8043fcb7..000000000 --- a/pkg/console/handler/grafana.go +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package handler - -// reverse proxy for grafana -import ( - "net/http" - "net/http/httputil" - "net/url" - - "github.com/gin-gonic/gin" - - consolectx "github.com/apache/dubbo-admin/pkg/console/context" -) - -func Grafana(ctx consolectx.Context) gin.HandlerFunc { - return func(c *gin.Context) { - baseUrl := ctx.Config().Console.Grafana - grafanaURL := baseUrl + "grafana" + c.Param("any") - proxyUrl, _ := url.Parse(grafanaURL) - director := func(req *http.Request) { - req.URL.Scheme = proxyUrl.Scheme - req.URL.Host = proxyUrl.Host - req.Host = proxyUrl.Host - req.URL.Path = proxyUrl.Path - } - proxy := &httputil.ReverseProxy{Director: director} - proxy.ServeHTTP(c.Writer, c.Request) - } -} diff --git a/pkg/console/handler/observability.go b/pkg/console/handler/observability.go index 23be11804..77044a928 100644 --- a/pkg/console/handler/observability.go +++ b/pkg/console/handler/observability.go @@ -18,17 +18,27 @@ package handler import ( + "fmt" "net/http" "github.com/gin-gonic/gin" + "github.com/apache/dubbo-admin/pkg/common/bizerror" "github.com/apache/dubbo-admin/pkg/common/constants" + consolecfg "github.com/apache/dubbo-admin/pkg/config/console" consolectx "github.com/apache/dubbo-admin/pkg/console/context" "github.com/apache/dubbo-admin/pkg/console/model" "github.com/apache/dubbo-admin/pkg/console/service" "github.com/apache/dubbo-admin/pkg/console/util" ) +type DashboardType string + +const ( + MetricDashboard DashboardType = "metric" + TraceDashboard DashboardType = "trace" +) + type Dimension string const ( @@ -37,63 +47,62 @@ const ( ServiceDimension Dimension = constants.Service ) -func GetMetricDashBoard(ctx consolectx.Context, dim Dimension) gin.HandlerFunc { +func GetGrafanaDashboard(ctx consolectx.Context, dim Dimension, dashboardType DashboardType) gin.HandlerFunc { return func(c *gin.Context) { - var req model.DashboardReq - var url string - switch dim { - case AppDimension: - req = &model.AppDashboardReq{} - url = ctx.Config().Console.MetricDashboards.Application - case InstanceDimension: - req = &model.InstanceDashboardReq{} - url = ctx.Config().Console.MetricDashboards.Instance - case ServiceDimension: - req = &model.ServiceDashboardReq{} - url = ctx.Config().Console.MetricDashboards.Service - } - if err := c.ShouldBindQuery(req); err != nil { - c.JSON(http.StatusBadRequest, model.NewErrorResp(err.Error())) - return + var grafanaDashboards *consolecfg.GrafanaDashboardConfig + switch dashboardType { + case MetricDashboard: + grafanaDashboards = ctx.Config().Console.MetricDashboards + case TraceDashboard: + grafanaDashboards = ctx.Config().Console.TraceDashboards } - resp := model.DashboardResp{ - BaseURL: url + req.GetKeyVariable(), + if grafanaDashboards == nil { + c.JSON(http.StatusOK, model.NewBizErrorResp(bizerror.New(bizerror.NotFoundError, + fmt.Sprintf("please configure grafana dashboard for %s %s in config yaml", dim, dashboardType)))) } - c.JSON(http.StatusOK, model.NewSuccessResp(resp)) - } -} - -func GetTraceDashBoard(ctx consolectx.Context, dim Dimension) gin.HandlerFunc { - return func(c *gin.Context) { - var req model.DashboardReq - var url string + var fullURL string + var err error switch dim { case AppDimension: - req = &model.AppDashboardReq{} - url = ctx.Config().Console.TraceDashboards.Application + var req model.AppDashboardReq + if err = c.ShouldBindQuery(&req); err != nil { + break + } + fullURL, err = service.GetAppDashboard(grafanaDashboards.AppDashboardURL, &req) case InstanceDimension: - req = &model.InstanceDashboardReq{} - url = ctx.Config().Console.TraceDashboards.Instance + var req model.InstanceDashboardReq + if err = c.ShouldBindQuery(&req); err != nil { + break + } + fullURL, err = service.GetInstanceDashboard(ctx, grafanaDashboards.InstanceDashboardURL, &req) case ServiceDimension: - req = &model.ServiceDashboardReq{} - url = ctx.Config().Console.TraceDashboards.Service + var req model.ServiceDashboardReq + if err = c.ShouldBindQuery(&req); err != nil { + break + } + fullURL, err = service.GetServiceDashboard(grafanaDashboards.ServiceDashboardURL, &req) } - if err := c.ShouldBindQuery(req); err != nil { - c.JSON(http.StatusBadRequest, model.NewErrorResp(err.Error())) + + if err != nil { + util.HandleServiceError(c, err) return } - resp := model.DashboardResp{ - BaseURL: url + req.GetKeyVariable(), - } - c.JSON(http.StatusOK, model.NewSuccessResp(resp)) + c.JSON(http.StatusOK, model.NewSuccessResp(model.DashboardResp{ + FullURL: fullURL, + })) } } func GetPrometheus(ctx consolectx.Context) gin.HandlerFunc { return func(c *gin.Context) { - resp := ctx.Config().Console.Prometheus + if ctx.Config().Observability.PrometheusBaseURL == nil { + c.JSON(http.StatusOK, model.NewSuccessResp(nil)) + return + } + resp := ctx.Config().Observability.PrometheusBaseURL.String() c.JSON(http.StatusOK, model.NewSuccessResp(resp)) + return } } @@ -101,7 +110,7 @@ func GetMetricsList(ctx consolectx.Context) gin.HandlerFunc { return func(c *gin.Context) { req := &model.MetricsReq{} if err := c.ShouldBindQuery(req); err != nil { - c.JSON(http.StatusBadRequest, model.NewErrorResp(err.Error())) + c.JSON(http.StatusOK, model.NewErrorResp(err.Error())) return } resp, err := service.GetInstanceMetrics(ctx, req) diff --git a/pkg/console/handler/overview.go b/pkg/console/handler/overview.go index 85cd6c633..d0ad7c010 100644 --- a/pkg/console/handler/overview.go +++ b/pkg/console/handler/overview.go @@ -45,12 +45,20 @@ func AdminMetadata(ctx consolectx.Context) gin.HandlerFunc { metadataAddr = d.Address.MetadataReport configAddr = d.Address.ConfigCenter } + var prometheusURL string + var grafanaURL string + if ctx.Config().Observability.PrometheusBaseURL != nil { + prometheusURL = ctx.Config().Observability.PrometheusBaseURL.String() + } + if ctx.Config().Observability.GrafanaBaseURL != nil { + grafanaURL = ctx.Config().Observability.GrafanaBaseURL.String() + } metadata := model.AdminMetadata{ Registry: registryAddr, Metadata: metadataAddr, Config: configAddr, - Prometheus: ctx.Config().Console.Prometheus, - Grafana: ctx.Config().Console.Grafana, + Prometheus: prometheusURL, + Grafana: grafanaURL, Tracing: "", } c.JSON(http.StatusOK, model.NewSuccessResp(metadata)) diff --git a/pkg/console/handler/prometheus.go b/pkg/console/handler/prometheus.go index 5c3e40fe8..f02625285 100644 --- a/pkg/console/handler/prometheus.go +++ b/pkg/console/handler/prometheus.go @@ -30,7 +30,7 @@ import ( func PromQL(ctx consolectx.Context) gin.HandlerFunc { return func(c *gin.Context) { - promBaseUrl := ctx.Config().Console.PrometheusBaseURL + promBaseUrl := ctx.Config().Observability.PrometheusBaseURL if promBaseUrl == nil { c.JSON(http.StatusOK, model.NewBizErrorResp( bizerror.New(bizerror.ConfigError, "Please configure prometheus url to retrieve metrics"))) diff --git a/pkg/console/handler/service.go b/pkg/console/handler/service.go index 5edc4a70f..936b796f5 100644 --- a/pkg/console/handler/service.go +++ b/pkg/console/handler/service.go @@ -95,6 +95,8 @@ func ServiceConfigTimeoutPUT(ctx consolectx.Context) gin.HandlerFunc { model.BaseServiceReq Timeout int32 `json:"timeout"` }{} + Mesh := c.Query("mesh") + param.Mesh = Mesh if err := c.Bind(¶m); err != nil { c.JSON(http.StatusBadRequest, model.NewErrorResp(err.Error())) return @@ -134,6 +136,8 @@ func ServiceConfigRetryPUT(ctx consolectx.Context) gin.HandlerFunc { model.BaseServiceReq RetryTimes int32 `json:"retryTimes"` }{} + Mesh := c.Query("mesh") + param.Mesh = Mesh if err := c.Bind(¶m); err != nil { util.HandleArgumentError(c, err) return @@ -172,6 +176,8 @@ func ServiceConfigRegionPriorityPUT(ctx consolectx.Context) gin.HandlerFunc { model.BaseServiceReq Enabled bool `json:"enabled"` }{} + Mesh := c.Query("mesh") + param.Mesh = Mesh if err := c.Bind(¶m); err != nil { c.JSON(http.StatusBadRequest, model.NewErrorResp(err.Error())) return @@ -208,6 +214,8 @@ func ServiceConfigArgumentRoutePUT(ctx consolectx.Context) gin.HandlerFunc { model.BaseServiceReq model.ServiceArgumentRoute }{} + Mesh := c.Query("mesh") + param.Mesh = Mesh if err := c.Bind(¶m); err != nil { util.HandleArgumentError(c, err) return diff --git a/pkg/console/model/observability.go b/pkg/console/model/observability.go index b52e20afb..d5ab9a877 100644 --- a/pkg/console/model/observability.go +++ b/pkg/console/model/observability.go @@ -17,37 +17,26 @@ package model -type DashboardReq interface { - GetKeyVariable() string -} - type AppDashboardReq struct { - Application string `form:"application"` -} - -func (req *AppDashboardReq) GetKeyVariable() string { - return req.Application + AppName string `form:"appName"` + Mesh string `form:"appName"` } type InstanceDashboardReq struct { - Instance string `form:"instance"` -} - -func (req *InstanceDashboardReq) GetKeyVariable() string { - return req.Instance + InstanceName string `form:"instanceName"` + Mesh string `form:"mesh"` } type ServiceDashboardReq struct { - Service string `form:"service"` -} - -func (req *ServiceDashboardReq) GetKeyVariable() string { - return req.Service + ServiceName string `form:"serviceName"` + Version string `form:"version"` + Group string `form:"group"` + ProviderAppName string `form:"providerAppName"` + Mesh string `form:"mesh"` } -// DashboardResp TODO add dynamic variables type DashboardResp struct { - BaseURL string `json:"baseURL"` + FullURL string `json:"fullURL"` } // Metric represents a single metric with its name, labels, and value. diff --git a/pkg/console/model/service.go b/pkg/console/model/service.go index 220c63807..83feea3d2 100644 --- a/pkg/console/model/service.go +++ b/pkg/console/model/service.go @@ -113,6 +113,7 @@ func (s *BaseServiceReq) Query(c *gin.Context) error { } s.Group = c.Query("group") s.Version = c.Query("version") + s.Mesh = c.Query("mesh") return nil } diff --git a/pkg/console/router/router.go b/pkg/console/router/router.go index 3abd45fc2..c68c763d1 100644 --- a/pkg/console/router/router.go +++ b/pkg/console/router/router.go @@ -25,11 +25,6 @@ import ( ) func InitRouter(r *gin.Engine, ctx consolectx.Context) { - grafanaRouter := r.Group("/grafana") - { - grafanaRouter.Any("/*any", handler.Grafana(ctx)) - } - router := r.Group("/api/v1") { prometheus := router.Group("/promQL") @@ -54,8 +49,8 @@ func InitRouter(r *gin.Engine, ctx consolectx.Context) { instanceConfig.GET("/operatorLog", handler.InstanceConfigOperatorLogGET(ctx)) instanceConfig.PUT("/operatorLog", handler.InstanceConfigOperatorLogPUT(ctx)) } - instance.GET("/metric-dashboard", handler.GetMetricDashBoard(ctx, handler.InstanceDimension)) - instance.GET("/trace-dashboard", handler.GetTraceDashBoard(ctx, handler.InstanceDimension)) + instance.GET("/metric-dashboard", handler.GetGrafanaDashboard(ctx, handler.InstanceDimension, handler.MetricDashboard)) + instance.GET("/trace-dashboard", handler.GetGrafanaDashboard(ctx, handler.InstanceDimension, handler.TraceDashboard)) instance.GET("/metrics-list", handler.GetMetricsList(ctx)) } @@ -76,8 +71,8 @@ func InitRouter(r *gin.Engine, ctx consolectx.Context) { applicationConfig.GET("/gray", handler.ApplicationConfigGrayGET(ctx)) applicationConfig.PUT("/gray", handler.ApplicationConfigGrayPUT(ctx)) } - application.GET("/metric-dashboard", handler.GetMetricDashBoard(ctx, handler.AppDimension)) - application.GET("/trace-dashboard", handler.GetTraceDashBoard(ctx, handler.AppDimension)) + application.GET("/metric-dashboard", handler.GetGrafanaDashboard(ctx, handler.AppDimension, handler.MetricDashboard)) + application.GET("/trace-dashboard", handler.GetGrafanaDashboard(ctx, handler.AppDimension, handler.TraceDashboard)) } { @@ -96,8 +91,8 @@ func InitRouter(r *gin.Engine, ctx consolectx.Context) { serviceConfig.GET("/argumentRoute", handler.ServiceConfigArgumentRouteGET(ctx)) serviceConfig.PUT("/argumentRoute", handler.ServiceConfigArgumentRoutePUT(ctx)) } - service.GET("/metric-dashboard", handler.GetMetricDashBoard(ctx, handler.ServiceDimension)) - service.GET("/trace-dashboard", handler.GetTraceDashBoard(ctx, handler.ServiceDimension)) + service.GET("/metric-dashboard", handler.GetGrafanaDashboard(ctx, handler.ServiceDimension, handler.MetricDashboard)) + service.GET("/trace-dashboard", handler.GetGrafanaDashboard(ctx, handler.ServiceDimension, handler.TraceDashboard)) } { diff --git a/pkg/console/service/observability.go b/pkg/console/service/observability.go new file mode 100644 index 000000000..e4df63e03 --- /dev/null +++ b/pkg/console/service/observability.go @@ -0,0 +1,96 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package service + +import ( + "fmt" + "net/url" + + "github.com/duke-git/lancet/v2/maputil" + + "github.com/apache/dubbo-admin/pkg/common/bizerror" + consolectx "github.com/apache/dubbo-admin/pkg/console/context" + "github.com/apache/dubbo-admin/pkg/console/model" + "github.com/apache/dubbo-admin/pkg/core/manager" + meshresource "github.com/apache/dubbo-admin/pkg/core/resource/apis/mesh/v1alpha1" + coremodel "github.com/apache/dubbo-admin/pkg/core/resource/model" +) + +func GetAppDashboard(baseURL *url.URL, req *model.AppDashboardReq) (string, error) { + if baseURL == nil { + return "", bizerror.New(bizerror.NotFoundError, "grafana url is not configured") + } + variables := map[string]string{ + "var-application": req.AppName, + } + fullURL := concatURLWithQueryVars(baseURL, variables) + return fullURL, nil +} + +func GetServiceDashboard(baseURL *url.URL, req *model.ServiceDashboardReq) (string, error) { + if baseURL == nil { + return "", bizerror.New(bizerror.NotFoundError, "grafana url is not configured") + } + variables := map[string]string{ + "var-service": req.ServiceName, + } + return concatURLWithQueryVars(baseURL, variables), nil +} + +func GetInstanceDashboard(ctx consolectx.Context, baseURL *url.URL, req *model.InstanceDashboardReq) (string, error) { + if baseURL == nil { + return "", bizerror.New(bizerror.NotFoundError, "grafana url is not configured") + } + variables, err := GetInstanceDashboardVariables(ctx, req) + if err != nil { + return "", err + } + return concatURLWithQueryVars(baseURL, variables), nil +} + +func GetInstanceDashboardVariables(ctx consolectx.Context, req *model.InstanceDashboardReq) (map[string]string, error) { + resKey := coremodel.BuildResourceKey(req.Mesh, req.InstanceName) + res, exists, err := manager.GetByKey[*meshresource.InstanceResource](ctx.ResourceManager(), meshresource.InstanceKind, resKey) + if err != nil { + return nil, err + } + if !exists { + return nil, bizerror.New(bizerror.NotFoundError, + fmt.Sprintf("instance %s not found", req.InstanceName)) + } + var instanceValue string + if res.Spec.QosPort != 0 { + instanceValue = fmt.Sprintf("%s:%d", res.Spec.Ip, res.Spec.QosPort) + } else { + instanceValue = fmt.Sprintf("%s:%d", res.Spec.Ip, 22222) + } + + return map[string]string{ + "var-application": res.Spec.AppName, + "var-instance": instanceValue, + }, nil +} + +func concatURLWithQueryVars(baseURL *url.URL, vars map[string]string) string { + q := baseURL.Query() + maputil.ForEach(vars, func(key string, value string) { + q.Set(key, value) + }) + baseURL.RawQuery = q.Encode() + return baseURL.String() +} diff --git a/pkg/console/service/service.go b/pkg/console/service/service.go index be851266e..85d58a1a8 100644 --- a/pkg/console/service/service.go +++ b/pkg/console/service/service.go @@ -391,7 +391,7 @@ func GetServiceRegionPriorityConfig(ctx consolectx.Context, req model.BaseServic } func UpInsertServiceRegionPriorityConfig(ctx consolectx.Context, req model.BaseServiceReq, enabled bool) error { - serviceConditionRuleName := req.ServiceKey() + constants.ConditionRuleSuffix + serviceConditionRuleName := req.ServiceKey() + constants.ConditionRuleDotSuffix res, err := GetConditionRule(ctx, serviceConditionRuleName, req.Mesh) if err != nil { logger.Errorf("get service condition rule %s failed, cause: %v", serviceConditionRuleName, err) diff --git a/pkg/core/alias.go b/pkg/core/alias.go deleted file mode 100644 index 228aa5356..000000000 --- a/pkg/core/alias.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package core - -import ( - "context" - "os" - "os/signal" - "syscall" - "time" - - "github.com/google/uuid" - kubelog "sigs.k8s.io/controller-runtime/pkg/log" - - dubbolog "github.com/apache/dubbo-admin/pkg/common/log" -) - -var ( - // TODO remove dependency on kubernetes see: https://github.com/apache/dubbo-admin/issues/2798 - Log = kubelog.Log - NewLogger = dubbolog.NewLogger - NewLoggerTo = dubbolog.NewLoggerTo - NewLoggerWithRotation = dubbolog.NewLoggerWithRotation - SetLogger = kubelog.SetLogger - Now = time.Now - - SetupSignalHandler = func() (context.Context, context.Context) { - gracefulCtx, gracefulCancel := context.WithCancel(context.Background()) - ctx, cancel := context.WithCancel(context.Background()) - c := make(chan os.Signal, 3) - signal.Notify(c, syscall.SIGINT, syscall.SIGTERM) - go func() { - logger := Log.WithName("runtime") - s := <-c - logger.Info("received signal, stopping instance gracefully", "signal", s.String()) - gracefulCancel() - s = <-c - logger.Info("received second signal, stopping instance", "signal", s.String()) - cancel() - s = <-c - logger.Info("received third signal, force exit", "signal", s.String()) - os.Exit(1) - }() - return gracefulCtx, ctx - } -) - -func NewUUID() string { - return uuid.NewString() -} diff --git a/pkg/core/cmd/helpers.go b/pkg/core/cmd/helpers.go deleted file mode 100644 index 0b710d309..000000000 --- a/pkg/core/cmd/helpers.go +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package cmd - -import ( - "fmt" - "strings" -) - -func UsageOptions(desc string, options ...interface{}) string { - values := make([]string, 0, len(options)) - for _, option := range options { - values = append(values, fmt.Sprintf("%v", option)) - } - return fmt.Sprintf("%s: one of %s", desc, strings.Join(values, "|")) -} diff --git a/pkg/core/cmd/util.go b/pkg/core/cmd/util.go deleted file mode 100644 index 3e8e27ceb..000000000 --- a/pkg/core/cmd/util.go +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package cmd - -import ( - "context" - - "github.com/apache/dubbo-admin/pkg/core" -) - -type RunCmdOpts struct { - // The first returned context is closed upon receiving first signal (SIGSTOP, SIGTERM). - // The second returned context is closed upon receiving second signal. - // We can start graceful shutdown when first context is closed and forcefully stop when the second one is closed. - SetupSignalHandler func() (context.Context, context.Context) -} - -var DefaultRunCmdOpts = RunCmdOpts{ - SetupSignalHandler: core.SetupSignalHandler, -} diff --git a/pkg/core/logger/log.go b/pkg/core/logger/log.go index 59c538cce..be74d3492 100644 --- a/pkg/core/logger/log.go +++ b/pkg/core/logger/log.go @@ -22,45 +22,52 @@ import ( grpcZap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap" "go.uber.org/zap" "go.uber.org/zap/zapcore" + "gopkg.in/natefinch/lumberjack.v2" + + logcfg "github.com/apache/dubbo-admin/pkg/config/log" ) var ( - mutex = &sync.Mutex{} - hasInit = false - encoder = zapcore.NewConsoleEncoder( + mutex = &sync.Mutex{} + hasInit = false + consoleEncoder = zapcore.NewConsoleEncoder( zapcore.EncoderConfig{ MessageKey: "msg", LevelKey: "level", TimeKey: "time", CallerKey: "line", NameKey: "logger", - FunctionKey: "", StacktraceKey: "stacktrace", EncodeLevel: zapcore.CapitalColorLevelEncoder, EncodeTime: zapcore.RFC3339TimeEncoder, EncodeCaller: zapcore.ShortCallerEncoder, EncodeDuration: zapcore.SecondsDurationEncoder, }) - logger *zap.Logger - sugar *zap.SugaredLogger - cmdLogger *zap.Logger - cmdSugar *CmdSugarLogger + jsonEncoder = zapcore.NewJSONEncoder( + zapcore.EncoderConfig{ + MessageKey: "msg", + LevelKey: "level", + TimeKey: "time", + CallerKey: "caller", + NameKey: "logger", + StacktraceKey: "stacktrace", + EncodeLevel: zapcore.LowercaseLevelEncoder, + EncodeTime: zapcore.ISO8601TimeEncoder, + EncodeDuration: zapcore.SecondsDurationEncoder, + EncodeCaller: zapcore.FullCallerEncoder, + }) + logger *zap.Logger + sugar *zap.SugaredLogger ) -// CmdSugarLogger wraps zap.SugaredLogger and zapcore.WriteSyncer in order to use Sugar -// while being able to use low-level writers. -type CmdSugarLogger struct { - *zap.SugaredLogger - // wrap ws to print directly - ws zapcore.WriteSyncer -} - -func (log *CmdSugarLogger) Print(s string) { - _, _ = log.ws.Write([]byte(s)) +var logLevelMap = map[logcfg.Level]zapcore.Level{ + logcfg.LevelDebug: zap.DebugLevel, + logcfg.LevelInfo: zap.InfoLevel, + logcfg.LevelWarn: zap.WarnLevel, + logcfg.LevelError: zap.ErrorLevel, } -// nolint -func Init() { +func Init(cfg *logcfg.Config) { mutex.Lock() defer mutex.Unlock() if hasInit { @@ -68,49 +75,36 @@ func Init() { } hasInit = true - core := zapcore.NewCore(encoder, os.Stdout, zap.DebugLevel) - logger = zap.New(core, zap.AddCaller(), zap.AddCallerSkip(2)) + var cores []zapcore.Core + + // output in terminal + cores = append(cores, zapcore.NewCore(consoleEncoder, zapcore.AddSync(os.Stdout), logLevelMap[cfg.Level])) + // output in file + fileWriter := &lumberjack.Logger{ + Filename: cfg.OutputPath, + MaxSize: cfg.MaxSize, + MaxBackups: cfg.MaxBackups, + MaxAge: cfg.MaxAge, + Compress: true, + } + cores = append(cores, zapcore.NewCore(jsonEncoder, zapcore.AddSync(fileWriter), logLevelMap[cfg.Level])) + combinedCore := zapcore.NewTee(cores...) + + logger = zap.New(combinedCore, zap.AddCaller(), zap.AddCallerSkip(2)) defer logger.Sync() // flushes buffer, if any sugar = logger.Sugar() // Create a separate logger for gRPC with higher log level to suppress INFO logs - grpcCore := zapcore.NewCore(encoder, os.Stdout, zap.WarnLevel) + grpcCore := zapcore.NewCore(consoleEncoder, os.Stdout, zap.WarnLevel) grpcLogger := zap.New(grpcCore, zap.AddCaller(), zap.AddCallerSkip(2)) // Make sure that log statements internal to gRPC library are logged using the zapLogger as well. grpcZap.ReplaceGrpcLoggerV2(grpcLogger) } -// nolint -func InitCmdSugar(ws zapcore.WriteSyncer) { - mutex.Lock() - defer mutex.Unlock() - - core := zapcore.NewCore(encoder, ws, zap.DebugLevel) - cmdLogger = zap.New(core) - defer cmdLogger.Sync() // flushes buffer, if any - cmdSugar = &CmdSugarLogger{ - SugaredLogger: cmdLogger.Sugar(), - ws: ws, - } -} - func Sugar() *zap.SugaredLogger { - if sugar == nil { - Init() - } return sugar } func Logger() *zap.Logger { - if logger == nil { - Init() - } return logger } - -func CmdSugar() *CmdSugarLogger { - if cmdSugar == nil { - InitCmdSugar(os.Stdout) - } - return cmdSugar -} diff --git a/pkg/core/runtime/builder.go b/pkg/core/runtime/builder.go index 68228d3be..191470b00 100644 --- a/pkg/core/runtime/builder.go +++ b/pkg/core/runtime/builder.go @@ -23,10 +23,10 @@ import ( "os" "time" + "github.com/google/uuid" "github.com/pkg/errors" "github.com/apache/dubbo-admin/pkg/config/app" - "github.com/apache/dubbo-admin/pkg/core" ) // BuilderContext provides access to Builder's interim state. @@ -59,7 +59,7 @@ func BuilderFor(appCtx context.Context, cfg app.AdminConfig) (*Builder, error) { if err != nil { return nil, errors.Wrap(err, "could not get hostname") } - suffix := core.NewUUID()[0:4] + suffix := uuid.NewString()[0:4] return &Builder{ cfg: cfg, appCtx: appCtx, @@ -67,7 +67,6 @@ func BuilderFor(appCtx context.Context, cfg app.AdminConfig) (*Builder, error) { instanceId: fmt.Sprintf("%s-%s", hostname, suffix), clusterId: fmt.Sprintf("%s-%s", hostname, suffix), startTime: time.Now(), - mode: cfg.Mode, }, components: make(map[ComponentType]Component), }, nil diff --git a/pkg/discovery/nacos2/factory.go b/pkg/discovery/nacos2/factory.go index 11ccff7ad..65d391a56 100644 --- a/pkg/discovery/nacos2/factory.go +++ b/pkg/discovery/nacos2/factory.go @@ -90,7 +90,6 @@ func (f *Factory) initListerWatchers( cfg *discoverycfg.Config, nacosConfigClient nacosconfigclient.IConfigClient, namingClient nacosnamingclient.INamingClient) ([]controller.ResourceListerWatcher, error) { - nacosServiceLW := listerwatcher.NewNacosServiceListerWatcher(cfg, namingClient) dynamicConfigLW, err := listerwatcher.NewConfigListerWatcher( meshresource.DynamicConfigKind, diff --git a/pkg/discovery/nacos2/listerwatcher/nacos_config.go b/pkg/discovery/nacos2/listerwatcher/nacos_config.go index 7f0ae8286..d764b9fd7 100644 --- a/pkg/discovery/nacos2/listerwatcher/nacos_config.go +++ b/pkg/discovery/nacos2/listerwatcher/nacos_config.go @@ -271,6 +271,7 @@ func (lw *ConfigListerWatcher[T]) ResourceKind() coremodel.ResourceKind { } func (lw *ConfigListerWatcher[T]) Stop() { + lw.configClient.CloseClient() lw.stopWatch = true } diff --git a/pkg/discovery/nacos2/listerwatcher/nacos_service.go b/pkg/discovery/nacos2/listerwatcher/nacos_service.go index ab7640120..53d486fe9 100644 --- a/pkg/discovery/nacos2/listerwatcher/nacos_service.go +++ b/pkg/discovery/nacos2/listerwatcher/nacos_service.go @@ -257,6 +257,7 @@ func (lw *NacosServiceListerWatcher) TransformFunc() cache.TransformFunc { } func (lw *NacosServiceListerWatcher) Stop() { + lw.namingClient.CloseClient() lw.stopWatch = true } diff --git a/pkg/engine/kubernetes/listerwatcher/runtime_instance.go b/pkg/engine/kubernetes/listerwatcher/runtime_instance.go index c6f497815..725b9218c 100644 --- a/pkg/engine/kubernetes/listerwatcher/runtime_instance.go +++ b/pkg/engine/kubernetes/listerwatcher/runtime_instance.go @@ -175,7 +175,7 @@ func (p *PodListerWatcher) TransformFunc() cache.TransformFunc { func (p *PodListerWatcher) getMainContainer(pod *v1.Pod) *v1.Container { containers := pod.Spec.Containers - strategy := p.cfg.Properties.GetOrDefaultMainContainerChooseStrategy() + strategy := p.cfg.Properties.MainContainerChooseStrategy switch strategy.Type { case enginecfg.ChooseByLast: return &containers[len(containers)-1] @@ -213,6 +213,9 @@ func (p *PodListerWatcher) getMainContainer(pod *v1.Pod) *v1.Container { func (p *PodListerWatcher) getDubboAppName(pod *v1.Pod) string { identifier := p.cfg.Properties.DubboAppIdentifier + if identifier == nil { + return "" + } switch identifier.Type { case enginecfg.IdentifyByAnnotation: return pod.Annotations[identifier.AnnotationKey] @@ -225,6 +228,9 @@ func (p *PodListerWatcher) getDubboAppName(pod *v1.Pod) string { func (p *PodListerWatcher) getDubboRPCPort(pod *v1.Pod) int64 { identifier := p.cfg.Properties.DubboRPCPortIdentifier + if identifier == nil { + return 0 + } var rpcPort int64 var err error switch identifier.Type { @@ -243,7 +249,10 @@ func (p *PodListerWatcher) getDubboRPCPort(pod *v1.Pod) int64 { } func (p *PodListerWatcher) getDubboMesh(pod *v1.Pod) string { - identifier := p.cfg.Properties.DubboRegistryIdentifier + identifier := p.cfg.Properties.DubboDiscoveryIdentifier + if identifier == nil { + return constants.DefaultMesh + } var mesh string switch identifier.Type { case enginecfg.IdentifyByAnnotation: diff --git a/pkg/governor/nacos2/governor.go b/pkg/governor/nacos2/governor.go index c05405493..626f665f4 100644 --- a/pkg/governor/nacos2/governor.go +++ b/pkg/governor/nacos2/governor.go @@ -20,6 +20,7 @@ package nacos2 import ( "fmt" "reflect" + "time" nacosconfigclient "github.com/nacos-group/nacos-sdk-go/v2/clients/config_client" nacosnamingclient "github.com/nacos-group/nacos-sdk-go/v2/clients/naming_client" @@ -79,7 +80,9 @@ func (g *RuleGovernor) CreateRule(r coremodel.Resource) error { return bizerror.Wrap(err, bizerror.NacosError, fmt.Sprintf("failed to publish config, res: %s", r.String())) } - //g.GetConfigAndUpdateStore(r) + // wait for the config to be published indeed + <-time.After(2 * time.Second) + g.GetConfigAndUpdateStore(r) return nil } @@ -104,6 +107,8 @@ func (g *RuleGovernor) DeleteRule(r coremodel.Resource) error { logger.Errorf("failed to get store in %s, res: %s, cause: %s", r.String(), r.ResourceMesh(), err) return nil } + // wait for the config to be deleted indeed + <-time.After(2 * time.Second) if err := st.Delete(r); err != nil { logger.Errorf("failed to delete resource in %s, res: %s, cause: %s", r.String(), r.ResourceMesh(), err) return nil diff --git a/pkg/version/cobra.go b/pkg/version/cobra.go deleted file mode 100644 index 8b8d2493e..000000000 --- a/pkg/version/cobra.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package version - -type Version struct { - ClientVersion *BuildInfo `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"` -} - -var ( - Info BuildInfo -) diff --git a/pkg/version/compatibility.go b/pkg/version/compatibility.go deleted file mode 100644 index e61b91cd0..000000000 --- a/pkg/version/compatibility.go +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package version - -import ( - "fmt" - "strings" - - "github.com/Masterminds/semver/v3" - - "github.com/apache/dubbo-admin/pkg/core" -) - -var log = core.Log.WithName("version").WithName("compatibility") - -var PreviewVersionPrefix = "preview" - -func IsPreviewVersion(version string) bool { - return strings.Contains(version, PreviewVersionPrefix) -} - -// DeploymentVersionCompatible returns true if the given component version -// is compatible with the installed version of dubbo CP. -// For all binaries which share a common version (dubbo DP, CP, Zone CP...), we -// support backwards compatibility of at most two prior minor versions. -func DeploymentVersionCompatible(dubboVersionStr, componentVersionStr string) bool { - if IsPreviewVersion(dubboVersionStr) || IsPreviewVersion(componentVersionStr) { - return true - } - - dubboVersion, err := semver.NewVersion(dubboVersionStr) - if err != nil { - // Assume some kind of dev version - log.Info("cannot parse semantic version", "version", dubboVersionStr) - return true - } - - componentVersion, err := semver.NewVersion(componentVersionStr) - if err != nil { - // Assume some kind of dev version - log.Info("cannot parse semantic version", "version", componentVersionStr) - return true - } - - minMinor := int64(dubboVersion.Minor()) - 2 - if minMinor < 0 { - minMinor = 0 - } - - maxMinor := dubboVersion.Minor() + 2 - - constraint, err := semver.NewConstraint( - fmt.Sprintf(">= %d.%d, <= %d.%d", dubboVersion.Major(), minMinor, dubboVersion.Major(), maxMinor), - ) - if err != nil { - // Programmer error - panic(err) - } - - return constraint.Check(componentVersion) -} diff --git a/pkg/version/version.go b/pkg/version/version.go index 56dce9065..ef968771c 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -19,40 +19,33 @@ package version import ( "fmt" - "runtime" "strings" ) var ( - buildVersion = "unknown" + buildVersion = "0.7.0" ) -// type BuildInfo struct { -// Version string `json:"version"` -// } - -func (b BuildInfo) String() string { - return fmt.Sprintf("%v", b.Version) -} - -func (b BuildInfo) LongForm() string { - return fmt.Sprintf("%#v", b) -} +var Build BuildInfo func init() { - Info = BuildInfo{ - Version: buildVersion, + Build = BuildInfo{ + Product: Product, + Version: version, + GitTag: gitTag, + GitCommit: gitCommit, + BuildDate: buildDate, + BasedOnDubbo: basedOnDubbo, } } var ( - Product = "Dubbo" - basedOndubbo = "" - version = "unknown" - gitTag = "unknown" - gitCommit = "unknown" - buildDate = "unknown" - Envoy = "unknown" + Product = "Dubbo Admin" + basedOnDubbo = "Dubbo3.x" + version = "0.7.0" + gitTag = "0.7.0" + gitCommit = "-" + buildDate = "2026-01" ) type BuildInfo struct { @@ -64,6 +57,14 @@ type BuildInfo struct { BasedOnDubbo string } +func (b BuildInfo) String() string { + return fmt.Sprintf("%v", b.Version) +} + +func (b BuildInfo) LongForm() string { + return fmt.Sprintf("%#v", b) +} + func (b BuildInfo) FormatDetailedProductInfo() string { base := []string{ fmt.Sprintf("Product: %s", b.Product), @@ -101,30 +102,3 @@ func (b BuildInfo) AsMap() map[string]string { } return res } - -func (b BuildInfo) UserAgent(component string) string { - commit := shortCommit(b.GitCommit) - if b.BasedOnDubbo != "" { - commit = fmt.Sprintf("%s/dubbo-%s", commit, b.BasedOnDubbo) - } - return fmt.Sprintf("%s/%s (%s; %s; %s/%s)", - component, - b.Version, - runtime.GOOS, - runtime.GOARCH, - b.Product, - commit) -} - -var Build BuildInfo - -func init() { - Build = BuildInfo{ - Product: Product, - Version: version, - GitTag: gitTag, - GitCommit: gitCommit, - BuildDate: buildDate, - BasedOnDubbo: basedOndubbo, - } -} diff --git a/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml b/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml index 606c42113..84507bbcd 100644 --- a/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml +++ b/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml @@ -92,6 +92,7 @@ spec: -Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" --- @@ -136,6 +137,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "orderVersion=v1" @@ -181,6 +183,7 @@ spec: -Ddubbo.application.qos-port=22222 -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "orderVersion=v2;" @@ -224,6 +227,7 @@ spec: -Ddubbo.application.qos-port=22222 -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" --- @@ -269,6 +273,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "detailVersion=v1; region=beijing" @@ -315,6 +320,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "detailVersion=v2; region=hangzhou;" @@ -361,6 +367,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "commentVersion=v1; region=beijing" @@ -407,6 +414,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "commentVersion=v2; region=hangzhou;" @@ -449,6 +457,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" @@ -494,6 +503,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" @@ -538,6 +548,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" @@ -582,6 +593,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true + -Ddubbo.traing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" From 396a99711a7854766f5ca32d9254491fc004e2ba Mon Sep 17 00:00:00 2001 From: robocanic Date: Sun, 18 Jan 2026 09:14:29 +0800 Subject: [PATCH 3/5] fix: instance disable traffic --- app/dubbo-admin/dubbo-admin.yaml | 10 +- .../dist/admin/assets/ByteUtil-YdHlSEeW.js | 1 - .../dist/admin/assets/ConfigModel-yjTa7EW2.js | 5 - .../dist/admin/assets/ConfigPage-HbXln963.js | 5 - .../dist/admin/assets/ConfigPage-cVEIcX7I.css | 1 - .../dist/admin/assets/DateUtil-OIUqM92a.js | 1 - .../dist/admin/assets/DateUtil-ed3saMVp.js | 1 - .../dist/admin/assets/GrafanaPage-Ib81UiBl.js | 1 - .../admin/assets/GrafanaPage-Ox7zYy20.css | 5 - .../dist/admin/assets/GrafanaPage-aw8SVm5P.js | 1 - .../dist/admin/assets/Login-WDB2yLVB.js | 5 - .../dist/admin/assets/Login-h2m9vUys.css | 1 - .../admin/assets/PromQueryUtil-mqYJCdcK.js | 5 - .../admin/assets/RoutingRuleList-S1X2ttk3.css | 1 - .../admin/assets/RoutingRuleList-hVzUyucI.js | 1 - .../dist/admin/assets/SearchUtil-FCBI7ppE.js | 5 - .../dist/admin/assets/SearchUtil-Fi_1zs66.css | 1 - .../dist/admin/assets/YAMLView-0MdW80fM.css | 1 - .../dist/admin/assets/YAMLView-UuHbt3WX.css | 1 - .../dist/admin/assets/YAMLView-l1kqynjo.js | 14 - .../dist/admin/assets/YAMLView-nAITJpmO.js | 1 - .../dist/admin/assets/YAMLView-qj8iQria.js | 5 - .../dist/admin/assets/YAMLView-zY3xQ2jU.css | 1 - .../dist/admin/assets/abap-ze8r6a4j.js | 6 - .../admin/assets/addByFormView-glwcLbZU.css | 1 - .../admin/assets/addByFormView-n4jb5xo4.js | 1 - .../admin/assets/addByFormView-rbd9XAeQ.js | 1 - .../admin/assets/addByFormView-xrHwB0pN.css | 1 - .../admin/assets/addByYAMLView-BPKme7-4.css | 1 - .../admin/assets/addByYAMLView-BmRR26Fc.js | 30 - .../admin/assets/addByYAMLView-QJbvZP1h.css | 1 - .../admin/assets/addByYAMLView-UzLeu456.js | 10 - .../dist/admin/assets/apex-l4wq3GX1.js | 6 - .../dist/admin/assets/app-4lFIb2G-.js | 5 - .../dist/admin/assets/azcli-bA_AuLZG.js | 6 - .../dist/admin/assets/bat-0sCTlecs.js | 6 - .../dist/admin/assets/bicep-qAe7PV0A.js | 7 - .../dist/admin/assets/cameligo-MxzRDM6f.js | 6 - .../dist/admin/assets/clojure-aJ1F8HHH.js | 6 - .../dist/admin/assets/codicon-wpoHPmsu.ttf | Bin 80340 -> 0 bytes .../dist/admin/assets/coffee-dz-c8Bgx.js | 6 - .../dist/admin/assets/config-6bc2RhwH.css | 1 - .../dist/admin/assets/config-L4QhBo2Y.js | 5 - .../admin/assets/configuration-mnhVbFFZ.js | 5 - .../dist/admin/assets/cpp-2U_pDMGk.js | 6 - .../dist/admin/assets/csharp-4Zs2zOBj.js | 6 - .../dist/admin/assets/csp-lGMKRGPG.js | 6 - .../dist/admin/assets/css-QeSqfO15.js | 8 - .../dist/admin/assets/cssMode-WATe-J7K.js | 13 - .../dist/admin/assets/cypher-5YIL2BCq.js | 6 - .../dist/admin/assets/dart-qjFgolkP.js | 6 - .../dist/admin/assets/detail-DO2x71pm.js | 1 - .../dist/admin/assets/detail-tPSvFGFf.js | 5 - .../admin/assets/distribution-Py-Du1W_.css | 1 - .../admin/assets/distribution-UiS_TbBu.js | 5 - .../dist/admin/assets/dockerfile-5toe0RAn.js | 6 - .../dist/admin/assets/ecl-1L3WRmRU.js | 6 - .../dist/admin/assets/elixir-4vH1gF-H.js | 6 - .../dist/admin/assets/event-0p00qhH9.css | 1 - .../dist/admin/assets/event-7tgH6sxi.js | 5 - .../dist/admin/assets/event-H3QxA0ip.js | 5 - .../dist/admin/assets/event-U8rWPJ_o.js | 5 - .../dist/admin/assets/event-lmBmBbXg.css | 1 - .../dist/admin/assets/flow9-7owDGJzV.js | 6 - .../dist/admin/assets/formView-4wdFbDyU.css | 1 - .../dist/admin/assets/formView-6c6ubrMh.js | 5 - .../dist/admin/assets/formView-PnVUxe2n.css | 1 - .../dist/admin/assets/formView-e13inb3H.js | 5 - .../dist/admin/assets/formView-ry7RXfv8.css | 1 - .../dist/admin/assets/formView-vI7S-3Yw.js | 21 - .../dist/admin/assets/freemarker2-GKVO7p5q.js | 12 - .../dist/admin/assets/fsharp-bDkC0eEG.js | 6 - .../admin/assets/globalSearch-_m3MXXfo.js | 5 - app/dubbo-ui/dist/admin/assets/go-B7tkULuP.js | 6 - .../dist/admin/assets/graphql-CtVT9S5J.js | 6 - .../dist/admin/assets/handlebars-LJs_OsPl.js | 10 - .../dist/admin/assets/hcl-rcnRcHhv.js | 6 - .../dist/admin/assets/html-5vla4NC_.js | 10 - .../dist/admin/assets/htmlMode-PobRrH1O.js | 13 - .../dist/admin/assets/index-3XSU6ywD.js | 5 - .../dist/admin/assets/index-75IgToXr.js | 1 - .../dist/admin/assets/index-D32qWHNQ.js | 1 - .../dist/admin/assets/index-HJqg-GcZ.js | 1 - .../dist/admin/assets/index-K34N7Hp4.css | 1 - .../dist/admin/assets/index-VMQ14q1L.css | 1 - .../dist/admin/assets/index-bUsyFe6h.css | 1 - .../dist/admin/assets/index-bVXendlO.css | 1 - .../dist/admin/assets/index-c7off0hr.css | 1 - .../dist/admin/assets/index-f3klQpXz.js | 5 - .../dist/admin/assets/index-fp33XqC9.css | 1 - .../dist/admin/assets/index-iEpzgnm5.js | 5 - .../dist/admin/assets/index-nvCr9_iI.js | 10 - .../dist/admin/assets/index-rD-ZU8dN.js | 55 -- .../dist/admin/assets/index-rpFThF7n.css | 1 - .../dist/admin/assets/index-rt1yTeew.js | 574 ------------ .../dist/admin/assets/index-upMhqAJg.css | 1 - .../dist/admin/assets/index-vRAqZ0qU.js | 5 - .../dist/admin/assets/index-vfibNA7v.js | 9 - .../dist/admin/assets/ini-B-F8H_48.js | 6 - .../dist/admin/assets/instance-90vfeE3E.css | 1 - .../dist/admin/assets/instance-ChxJL4oQ.js | 5 - .../dist/admin/assets/instance-jbHVDGq-.js | 8 - .../dist/admin/assets/java-QsCSWwE3.js | 6 - .../dist/admin/assets/javascript-Pd2mCcrq.js | 10 - .../dist/admin/assets/js-yaml-A63HP8_m.js | 819 ------------------ .../dist/admin/assets/js-yaml-TGthJqWD.css | 1 - .../dist/admin/assets/jsonMode-S2Y1HX7r.js | 19 - .../dist/admin/assets/julia-IAetV4Uj.js | 6 - .../dist/admin/assets/kotlin-alSTuGQa.js | 6 - .../dist/admin/assets/less-hZfaYD2w.js | 7 - .../dist/admin/assets/lexon-dAwoDiDP.js | 6 - .../admin/assets/linkTracking-CDmTO6CN.js | 1 - .../admin/assets/linkTracking-wjZ-ycSv.js | 1 - .../dist/admin/assets/liquid-eKUo_tln.js | 10 - .../dist/admin/assets/login-aBMy9l95.jpg | Bin 81368 -> 0 bytes .../dist/admin/assets/lua-oETFoaFl.js | 6 - app/dubbo-ui/dist/admin/assets/m3-pfNrzY-g.js | 6 - .../dist/admin/assets/markdown-8sLQQPwY.js | 6 - .../dist/admin/assets/mdx-j-hpKbwY.js | 10 - .../dist/admin/assets/mips-8z7PytKi.js | 6 - .../dist/admin/assets/monitor-0ZbTVcPs.js | 1 - .../dist/admin/assets/monitor-4MZElxdr.js | 1 - .../dist/admin/assets/monitor-Bile44jq.js | 1 - .../dist/admin/assets/monitor-LGJ7b0-x.js | 1 - .../dist/admin/assets/monitor-fKqC9Q7u.js | 1 - .../dist/admin/assets/monitor-ydtLS9P6.js | 1 - .../dist/admin/assets/msdax-J3g5vy9V.js | 6 - .../dist/admin/assets/mysql-HnGTccPx.js | 6 - .../dist/admin/assets/notFound-DMLJUJ6x.css | 1 - .../dist/admin/assets/notFound-U6T768yw.js | 5 - .../dist/admin/assets/objective-c-ozrejCV4.js | 6 - .../dist/admin/assets/pascal-pJZfFvIz.js | 6 - .../dist/admin/assets/pascaligo-0DtATwAu.js | 6 - .../dist/admin/assets/perl-do3rkI9Q.js | 6 - .../dist/admin/assets/pgsql-ryXbWXdn.js | 6 - .../dist/admin/assets/php-aHuupjla.js | 6 - .../dist/admin/assets/pla-h3tpWKqn.js | 6 - .../dist/admin/assets/postiats-wHg1rUaH.js | 6 - .../dist/admin/assets/powerquery-2Tt3HzPs.js | 6 - .../dist/admin/assets/powershell--E8XKnlp.js | 6 - .../dist/admin/assets/protobuf-5supJPAn.js | 7 - .../dist/admin/assets/pug-z8IO2Fo8.js | 6 - .../dist/admin/assets/python-dLDs41C4.js | 10 - .../dist/admin/assets/qsharp-CPlGHk-t.js | 6 - app/dubbo-ui/dist/admin/assets/r-fxI4Is36.js | 6 - .../dist/admin/assets/razor-FwGgO_k1.js | 10 - .../dist/admin/assets/redis-BX8G37Y7.js | 6 - .../dist/admin/assets/redshift-sRh-NLhN.js | 6 - .../dist/admin/assets/request-vlI2kaaR.js | 11 - .../admin/assets/restructuredtext-YfUmf862.js | 6 - .../dist/admin/assets/ruby-8wQ3Zh8u.js | 6 - .../dist/admin/assets/rust-v86rzylm.js | 6 - app/dubbo-ui/dist/admin/assets/sb-_rkMImWM.js | 6 - .../dist/admin/assets/scala-40tTdy2H.js | 6 - .../admin/assets/sceneConfig-2nmQ4eli.css | 1 - .../dist/admin/assets/sceneConfig-5xoznbCR.js | 1 - .../dist/admin/assets/scheme-5-wDu3JQ.js | 6 - .../dist/admin/assets/scss-pQydS_eS.js | 8 - .../dist/admin/assets/search-HhXTRztG.js | 5 - .../dist/admin/assets/serverInfo-T8wz3JrY.js | 5 - .../dist/admin/assets/service-5zrCbX1G.css | 1 - .../dist/admin/assets/service-RF66g7V7.js | 5 - .../dist/admin/assets/service-yecgep27.js | 1 - .../dist/admin/assets/shell-Ki-wZYQ1.js | 6 - .../dist/admin/assets/solidity-N2qlMzF2.js | 6 - .../dist/admin/assets/sophia-SjREo0Ok.js | 6 - .../dist/admin/assets/sparql-pazIw3FY.js | 6 - .../dist/admin/assets/sql-2toitEz_.js | 6 - app/dubbo-ui/dist/admin/assets/st-PaES2HSd.js | 6 - .../dist/admin/assets/swift-EwstTa4z.js | 8 - .../admin/assets/systemverilog-hLklPNsR.js | 6 - .../dist/admin/assets/tab1-krCLsB5L.js | 5 - .../dist/admin/assets/tab2-pkEoLefQ.js | 5 - .../dist/admin/assets/tcl-nuZs0K-6.js | 6 - .../dist/admin/assets/tracing-0saJ0bye.js | 1 - .../dist/admin/assets/tracing-cZerXPwx.js | 1 - .../dist/admin/assets/tracing-l8cxfZrK.js | 1 - .../dist/admin/assets/tracing-qOOaUDUW.js | 1 - .../dist/admin/assets/traffic-nmA_BhEL.js | 5 - .../dist/admin/assets/tsMode-8u_HsZum.js | 20 - .../dist/admin/assets/twig-mN8sjoV_.js | 6 - .../dist/admin/assets/typescript-RCkR-T-T.js | 10 - .../dist/admin/assets/typespec-W2nuLCQv.js | 6 - .../assets/updateByFormView-XZ0fbLEw.css | 1 - .../assets/updateByFormView-eUIRkJ4F.css | 1 - .../admin/assets/updateByFormView-n4N0yfp8.js | 1 - .../admin/assets/updateByFormView-x4LVel5f.js | 1 - .../assets/updateByYAMLView-dYnrZKoA.css | 1 - .../admin/assets/updateByYAMLView-ewo550Av.js | 10 - .../assets/updateByYAMLView-otue_Myk.css | 1 - .../admin/assets/updateByYAMLView-zslWiAmQ.js | 1 - app/dubbo-ui/dist/admin/assets/vb-z8sR6fTG.js | 6 - .../dist/admin/assets/wgsl-2VbyLW9i.js | 303 ------- .../dist/admin/assets/xml-lU0j0SNM.js | 10 - .../dist/admin/assets/yaml-m0OSq1I5.js | 10 - app/dubbo-ui/dist/admin/dubbo.ico | Bin 16958 -> 0 bytes app/dubbo-ui/dist/admin/index.html | 30 - pkg/console/service/instance.go | 4 +- 198 files changed, 8 insertions(+), 2725 deletions(-) delete mode 100644 app/dubbo-ui/dist/admin/assets/ByteUtil-YdHlSEeW.js delete mode 100644 app/dubbo-ui/dist/admin/assets/ConfigModel-yjTa7EW2.js delete mode 100644 app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js delete mode 100644 app/dubbo-ui/dist/admin/assets/ConfigPage-cVEIcX7I.css delete mode 100644 app/dubbo-ui/dist/admin/assets/DateUtil-OIUqM92a.js delete mode 100644 app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js delete mode 100644 app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js delete mode 100644 app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css delete mode 100644 app/dubbo-ui/dist/admin/assets/GrafanaPage-aw8SVm5P.js delete mode 100644 app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js delete mode 100644 app/dubbo-ui/dist/admin/assets/Login-h2m9vUys.css delete mode 100644 app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js delete mode 100644 app/dubbo-ui/dist/admin/assets/RoutingRuleList-S1X2ttk3.css delete mode 100644 app/dubbo-ui/dist/admin/assets/RoutingRuleList-hVzUyucI.js delete mode 100644 app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js delete mode 100644 app/dubbo-ui/dist/admin/assets/SearchUtil-Fi_1zs66.css delete mode 100644 app/dubbo-ui/dist/admin/assets/YAMLView-0MdW80fM.css delete mode 100644 app/dubbo-ui/dist/admin/assets/YAMLView-UuHbt3WX.css delete mode 100644 app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js delete mode 100644 app/dubbo-ui/dist/admin/assets/YAMLView-nAITJpmO.js delete mode 100644 app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js delete mode 100644 app/dubbo-ui/dist/admin/assets/YAMLView-zY3xQ2jU.css delete mode 100644 app/dubbo-ui/dist/admin/assets/abap-ze8r6a4j.js delete mode 100644 app/dubbo-ui/dist/admin/assets/addByFormView-glwcLbZU.css delete mode 100644 app/dubbo-ui/dist/admin/assets/addByFormView-n4jb5xo4.js delete mode 100644 app/dubbo-ui/dist/admin/assets/addByFormView-rbd9XAeQ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/addByFormView-xrHwB0pN.css delete mode 100644 app/dubbo-ui/dist/admin/assets/addByYAMLView-BPKme7-4.css delete mode 100644 app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js delete mode 100644 app/dubbo-ui/dist/admin/assets/addByYAMLView-QJbvZP1h.css delete mode 100644 app/dubbo-ui/dist/admin/assets/addByYAMLView-UzLeu456.js delete mode 100644 app/dubbo-ui/dist/admin/assets/apex-l4wq3GX1.js delete mode 100644 app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js delete mode 100644 app/dubbo-ui/dist/admin/assets/azcli-bA_AuLZG.js delete mode 100644 app/dubbo-ui/dist/admin/assets/bat-0sCTlecs.js delete mode 100644 app/dubbo-ui/dist/admin/assets/bicep-qAe7PV0A.js delete mode 100644 app/dubbo-ui/dist/admin/assets/cameligo-MxzRDM6f.js delete mode 100644 app/dubbo-ui/dist/admin/assets/clojure-aJ1F8HHH.js delete mode 100644 app/dubbo-ui/dist/admin/assets/codicon-wpoHPmsu.ttf delete mode 100644 app/dubbo-ui/dist/admin/assets/coffee-dz-c8Bgx.js delete mode 100644 app/dubbo-ui/dist/admin/assets/config-6bc2RhwH.css delete mode 100644 app/dubbo-ui/dist/admin/assets/config-L4QhBo2Y.js delete mode 100644 app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/cpp-2U_pDMGk.js delete mode 100644 app/dubbo-ui/dist/admin/assets/csharp-4Zs2zOBj.js delete mode 100644 app/dubbo-ui/dist/admin/assets/csp-lGMKRGPG.js delete mode 100644 app/dubbo-ui/dist/admin/assets/css-QeSqfO15.js delete mode 100644 app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js delete mode 100644 app/dubbo-ui/dist/admin/assets/cypher-5YIL2BCq.js delete mode 100644 app/dubbo-ui/dist/admin/assets/dart-qjFgolkP.js delete mode 100644 app/dubbo-ui/dist/admin/assets/detail-DO2x71pm.js delete mode 100644 app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js delete mode 100644 app/dubbo-ui/dist/admin/assets/distribution-Py-Du1W_.css delete mode 100644 app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js delete mode 100644 app/dubbo-ui/dist/admin/assets/dockerfile-5toe0RAn.js delete mode 100644 app/dubbo-ui/dist/admin/assets/ecl-1L3WRmRU.js delete mode 100644 app/dubbo-ui/dist/admin/assets/elixir-4vH1gF-H.js delete mode 100644 app/dubbo-ui/dist/admin/assets/event-0p00qhH9.css delete mode 100644 app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js delete mode 100644 app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js delete mode 100644 app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js delete mode 100644 app/dubbo-ui/dist/admin/assets/event-lmBmBbXg.css delete mode 100644 app/dubbo-ui/dist/admin/assets/flow9-7owDGJzV.js delete mode 100644 app/dubbo-ui/dist/admin/assets/formView-4wdFbDyU.css delete mode 100644 app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js delete mode 100644 app/dubbo-ui/dist/admin/assets/formView-PnVUxe2n.css delete mode 100644 app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js delete mode 100644 app/dubbo-ui/dist/admin/assets/formView-ry7RXfv8.css delete mode 100644 app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js delete mode 100644 app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js delete mode 100644 app/dubbo-ui/dist/admin/assets/fsharp-bDkC0eEG.js delete mode 100644 app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js delete mode 100644 app/dubbo-ui/dist/admin/assets/go-B7tkULuP.js delete mode 100644 app/dubbo-ui/dist/admin/assets/graphql-CtVT9S5J.js delete mode 100644 app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js delete mode 100644 app/dubbo-ui/dist/admin/assets/hcl-rcnRcHhv.js delete mode 100644 app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js delete mode 100644 app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-75IgToXr.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-D32qWHNQ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-HJqg-GcZ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-K34N7Hp4.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-VMQ14q1L.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-bUsyFe6h.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-bVXendlO.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-c7off0hr.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-fp33XqC9.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-rpFThF7n.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-upMhqAJg.css delete mode 100644 app/dubbo-ui/dist/admin/assets/index-vRAqZ0qU.js delete mode 100644 app/dubbo-ui/dist/admin/assets/index-vfibNA7v.js delete mode 100644 app/dubbo-ui/dist/admin/assets/ini-B-F8H_48.js delete mode 100644 app/dubbo-ui/dist/admin/assets/instance-90vfeE3E.css delete mode 100644 app/dubbo-ui/dist/admin/assets/instance-ChxJL4oQ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/instance-jbHVDGq-.js delete mode 100644 app/dubbo-ui/dist/admin/assets/java-QsCSWwE3.js delete mode 100644 app/dubbo-ui/dist/admin/assets/javascript-Pd2mCcrq.js delete mode 100644 app/dubbo-ui/dist/admin/assets/js-yaml-A63HP8_m.js delete mode 100644 app/dubbo-ui/dist/admin/assets/js-yaml-TGthJqWD.css delete mode 100644 app/dubbo-ui/dist/admin/assets/jsonMode-S2Y1HX7r.js delete mode 100644 app/dubbo-ui/dist/admin/assets/julia-IAetV4Uj.js delete mode 100644 app/dubbo-ui/dist/admin/assets/kotlin-alSTuGQa.js delete mode 100644 app/dubbo-ui/dist/admin/assets/less-hZfaYD2w.js delete mode 100644 app/dubbo-ui/dist/admin/assets/lexon-dAwoDiDP.js delete mode 100644 app/dubbo-ui/dist/admin/assets/linkTracking-CDmTO6CN.js delete mode 100644 app/dubbo-ui/dist/admin/assets/linkTracking-wjZ-ycSv.js delete mode 100644 app/dubbo-ui/dist/admin/assets/liquid-eKUo_tln.js delete mode 100644 app/dubbo-ui/dist/admin/assets/login-aBMy9l95.jpg delete mode 100644 app/dubbo-ui/dist/admin/assets/lua-oETFoaFl.js delete mode 100644 app/dubbo-ui/dist/admin/assets/m3-pfNrzY-g.js delete mode 100644 app/dubbo-ui/dist/admin/assets/markdown-8sLQQPwY.js delete mode 100644 app/dubbo-ui/dist/admin/assets/mdx-j-hpKbwY.js delete mode 100644 app/dubbo-ui/dist/admin/assets/mips-8z7PytKi.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-0ZbTVcPs.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-4MZElxdr.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-Bile44jq.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-LGJ7b0-x.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-fKqC9Q7u.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-ydtLS9P6.js delete mode 100644 app/dubbo-ui/dist/admin/assets/msdax-J3g5vy9V.js delete mode 100644 app/dubbo-ui/dist/admin/assets/mysql-HnGTccPx.js delete mode 100644 app/dubbo-ui/dist/admin/assets/notFound-DMLJUJ6x.css delete mode 100644 app/dubbo-ui/dist/admin/assets/notFound-U6T768yw.js delete mode 100644 app/dubbo-ui/dist/admin/assets/objective-c-ozrejCV4.js delete mode 100644 app/dubbo-ui/dist/admin/assets/pascal-pJZfFvIz.js delete mode 100644 app/dubbo-ui/dist/admin/assets/pascaligo-0DtATwAu.js delete mode 100644 app/dubbo-ui/dist/admin/assets/perl-do3rkI9Q.js delete mode 100644 app/dubbo-ui/dist/admin/assets/pgsql-ryXbWXdn.js delete mode 100644 app/dubbo-ui/dist/admin/assets/php-aHuupjla.js delete mode 100644 app/dubbo-ui/dist/admin/assets/pla-h3tpWKqn.js delete mode 100644 app/dubbo-ui/dist/admin/assets/postiats-wHg1rUaH.js delete mode 100644 app/dubbo-ui/dist/admin/assets/powerquery-2Tt3HzPs.js delete mode 100644 app/dubbo-ui/dist/admin/assets/powershell--E8XKnlp.js delete mode 100644 app/dubbo-ui/dist/admin/assets/protobuf-5supJPAn.js delete mode 100644 app/dubbo-ui/dist/admin/assets/pug-z8IO2Fo8.js delete mode 100644 app/dubbo-ui/dist/admin/assets/python-dLDs41C4.js delete mode 100644 app/dubbo-ui/dist/admin/assets/qsharp-CPlGHk-t.js delete mode 100644 app/dubbo-ui/dist/admin/assets/r-fxI4Is36.js delete mode 100644 app/dubbo-ui/dist/admin/assets/razor-FwGgO_k1.js delete mode 100644 app/dubbo-ui/dist/admin/assets/redis-BX8G37Y7.js delete mode 100644 app/dubbo-ui/dist/admin/assets/redshift-sRh-NLhN.js delete mode 100644 app/dubbo-ui/dist/admin/assets/request-vlI2kaaR.js delete mode 100644 app/dubbo-ui/dist/admin/assets/restructuredtext-YfUmf862.js delete mode 100644 app/dubbo-ui/dist/admin/assets/ruby-8wQ3Zh8u.js delete mode 100644 app/dubbo-ui/dist/admin/assets/rust-v86rzylm.js delete mode 100644 app/dubbo-ui/dist/admin/assets/sb-_rkMImWM.js delete mode 100644 app/dubbo-ui/dist/admin/assets/scala-40tTdy2H.js delete mode 100644 app/dubbo-ui/dist/admin/assets/sceneConfig-2nmQ4eli.css delete mode 100644 app/dubbo-ui/dist/admin/assets/sceneConfig-5xoznbCR.js delete mode 100644 app/dubbo-ui/dist/admin/assets/scheme-5-wDu3JQ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/scss-pQydS_eS.js delete mode 100644 app/dubbo-ui/dist/admin/assets/search-HhXTRztG.js delete mode 100644 app/dubbo-ui/dist/admin/assets/serverInfo-T8wz3JrY.js delete mode 100644 app/dubbo-ui/dist/admin/assets/service-5zrCbX1G.css delete mode 100644 app/dubbo-ui/dist/admin/assets/service-RF66g7V7.js delete mode 100644 app/dubbo-ui/dist/admin/assets/service-yecgep27.js delete mode 100644 app/dubbo-ui/dist/admin/assets/shell-Ki-wZYQ1.js delete mode 100644 app/dubbo-ui/dist/admin/assets/solidity-N2qlMzF2.js delete mode 100644 app/dubbo-ui/dist/admin/assets/sophia-SjREo0Ok.js delete mode 100644 app/dubbo-ui/dist/admin/assets/sparql-pazIw3FY.js delete mode 100644 app/dubbo-ui/dist/admin/assets/sql-2toitEz_.js delete mode 100644 app/dubbo-ui/dist/admin/assets/st-PaES2HSd.js delete mode 100644 app/dubbo-ui/dist/admin/assets/swift-EwstTa4z.js delete mode 100644 app/dubbo-ui/dist/admin/assets/systemverilog-hLklPNsR.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tab1-krCLsB5L.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tab2-pkEoLefQ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tcl-nuZs0K-6.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tracing-0saJ0bye.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tracing-cZerXPwx.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tracing-l8cxfZrK.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tracing-qOOaUDUW.js delete mode 100644 app/dubbo-ui/dist/admin/assets/traffic-nmA_BhEL.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tsMode-8u_HsZum.js delete mode 100644 app/dubbo-ui/dist/admin/assets/twig-mN8sjoV_.js delete mode 100644 app/dubbo-ui/dist/admin/assets/typescript-RCkR-T-T.js delete mode 100644 app/dubbo-ui/dist/admin/assets/typespec-W2nuLCQv.js delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByFormView-XZ0fbLEw.css delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByFormView-eUIRkJ4F.css delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByFormView-n4N0yfp8.js delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByFormView-x4LVel5f.js delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByYAMLView-dYnrZKoA.css delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByYAMLView-ewo550Av.js delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByYAMLView-otue_Myk.css delete mode 100644 app/dubbo-ui/dist/admin/assets/updateByYAMLView-zslWiAmQ.js delete mode 100644 app/dubbo-ui/dist/admin/assets/vb-z8sR6fTG.js delete mode 100644 app/dubbo-ui/dist/admin/assets/wgsl-2VbyLW9i.js delete mode 100644 app/dubbo-ui/dist/admin/assets/xml-lU0j0SNM.js delete mode 100644 app/dubbo-ui/dist/admin/assets/yaml-m0OSq1I5.js delete mode 100644 app/dubbo-ui/dist/admin/dubbo.ico delete mode 100644 app/dubbo-ui/dist/admin/index.html diff --git a/app/dubbo-admin/dubbo-admin.yaml b/app/dubbo-admin/dubbo-admin.yaml index 4da411d8a..1e74b47ea 100644 --- a/app/dubbo-admin/dubbo-admin.yaml +++ b/app/dubbo-admin/dubbo-admin.yaml @@ -42,13 +42,13 @@ console: # [Optional] dashboard for metrics. metricDashboards: application: http://101.34.253.152:30300/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed?kiosk=1&theme=light - instance: http://101.34.253.152:30300/d/dcf5defe-d198-4704-9edf-6520838880e9 - service: http://101.34.253.152:30300/d/ec689613-b4a1-45b1-b8bd-9d557059f970 + instance: http://101.34.253.152:30300/d/dcf5defe-d198-4704-9edf-6520838880e9?kiosk=1&theme=light + service: http://101.34.253.152:30300/d/ec689613-b4a1-45b1-b8bd-9d557059f970?kiosk=1&theme=light # [Optional] dashboard for traces. traceDashboards: - application: http://101.34.253.152:30300/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f - instance: http://101.34.253.152:30300/d/f5f48f75-13ec-489b-88ae-635ae38d8618 - service: http://101.34.253.152:30300/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662 + application: http://101.34.253.152:30300/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f?kiosk=1&theme=light + instance: http://101.34.253.152:30300/d/f5f48f75-13ec-489b-88ae-635ae38d8618?kiosk=1&theme=light + service: http://101.34.253.152:30300/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662?kiosk=1&theme=light # [Optional] typical user-pwd authentication, default user-pwd is admin-admin. auth: user: admin diff --git a/app/dubbo-ui/dist/admin/assets/ByteUtil-YdHlSEeW.js b/app/dubbo-ui/dist/admin/assets/ByteUtil-YdHlSEeW.js deleted file mode 100644 index 193c1c68e..000000000 --- a/app/dubbo-ui/dist/admin/assets/ByteUtil-YdHlSEeW.js +++ /dev/null @@ -1 +0,0 @@ -function u(n=0){const o=["B","KB","MB","GB","TB"];let t=0;for(;n>=1024&&te in f?h(f,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[e]=s;var n=(f,e,s)=>(p(f,typeof e!="symbol"?e+"":e,s),s);import{i as u}from"./index-rt1yTeew.js";class m{constructor(e){n(this,"enabled",!0);n(this,"hasMatch",!1);n(this,"side","provider");n(this,"matches",[]);n(this,"parameters",[]);n(this,"matchesKeys",[]);n(this,"parametersKeys",[]);n(this,"parametersValue",{retries:{type:"obj",relation:"=",value:""},timeout:{type:"obj",relation:"=",value:""},accesslog:{type:"obj",relation:"=",value:""},weight:{type:"obj",relation:"=",value:""},other:{type:"free",arr:[{key:"",relation:"=",value:""}]}});n(this,"matchesValue",{address:{type:"obj",relation:"",value:""},providerAddress:{type:"obj",relation:"",value:""},service:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},application:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},param:{type:"free",arr:[{key:"",relation:"",value:""}]}});if(e){for(const s of Object.keys(this))e[s]&&(this[s]=e[s]);this.hasMatch=this.matchesKeys.length>0}}descMatches(){const e=[];for(const s in this.matchesValue){const a=this.matchesValue[s];if(this.matchesKeys.includes(s))if(a.type==="obj")e.push(`${s} ${a.relation} ${a.value}`);else if(a.type==="arr"){const o=a.arr.map(t=>`${t.relation} ${t.value}`).join(", ");e.push(`${s} oneof [${o}]`)}else{const o=a.arr.map(t=>`${t.key} ${t.relation} ${t.value}`).join(", ");e.push(`${s} allof [${o}]`)}}return e}descParameters(){const e=[];for(const s in this.parametersValue){const a=this.parametersValue[s];this.parametersKeys.includes(s)&&(a.type==="obj"?e.push(`${s} = ${a.value}`):e.push(...a.arr.map(o=>`${o.key} ${o.relation} ${o.value}`)))}return e}delArrConfig(e,s,a){e[s].arr.splice(a,1)}addArrConfig(e,s,a,o){e[s].arr.splice(a+1,0,{key:"",relation:(o==null?void 0:o.relation)||"",value:""})}parseMatches(e){const s=this.matchesValue;for(const a in e){this.matchesKeys.push(a),this.hasMatch=!0;const o=e[a];if(s[a])if(s[a].type==="obj")for(const t in o)s[a].relation=t,s[a].value=o[t];else if(s[a].type==="arr"){s[a].arr=[];for(const t in o)for(const i of o[t])for(const r in i)s[a].arr.push({key:t,relation:r,value:i[r]})}else{s[a].arr=[];for(const t of o)for(const i in t.value)s[a].arr.push({key:t.key,relation:i,value:t.value[i]})}}}parseParameters(e){const s=this.parametersValue;for(const a in e){const o=e[a];if(this.parametersValue[a])this.parametersKeys.push(a),s[a].relation="=",s[a].value=o;else{const t="other";this.parametersKeys.push(t),s[t].arr=[],s[t].arr.push({key:a,relation:"=",value:o})}}}checkArrConfig(e,s,a,o){for(const t of s){const i=a[t];if(i.type==="obj"){if(i.relation===null||i.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(i.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}if(i.type==="arr")for(const r of i.arr){if(r.relation===null||r.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(r.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}else{let r=1;if(!i.arr)continue;for(const l of i.arr){if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录key为空`),console.log(`${e}: ${t} 下第${r}条记录key为空`),!1;if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录条件为空`),console.log(`${e}: ${t} 下第${r}条记录条件为空`),!1;if(l.value===null)return o.push(`${e}: ${t} 第${r}条记录值为空`),console.log(`${e}: ${t} 第${r}条记录值为空`),!1;r++}}}return!0}}class y{constructor(){n(this,"ruleName");n(this,"scope");n(this,"configVersion");n(this,"key");n(this,"effectTime");n(this,"enabled")}}class g{constructor(){n(this,"basicInfo",new y);n(this,"config",[]);n(this,"errorMsg",[]);n(this,"isAdd",!1)}fromData(e){this.basicInfo=e.basicInfo,this.config=e.config,this.isAdd=e.isAdd}fromApiOutput(e){this.basicInfo.configVerison=e.configVerison||"v3.0",this.basicInfo.scope=e.scope,this.basicInfo.key=e.key,this.basicInfo.enabled=e.enabled||!1,this.config=e.configs.map(s=>{const a=new m({enabled:s.enabled,side:s.side});return a.parseMatches(s.match),a.parseParameters(s.parameters),a})}toApiInput(e=!1){return this.errorMsg=[],{ruleName:this.basicInfo.ruleName==="_tmp"?this.basicInfo.key+".configurators":this.basicInfo.ruleName,scope:this.basicInfo.scope,key:this.basicInfo.key,enabled:this.basicInfo.enabled,configVersion:this.basicInfo.configVerison||"v3.0",configs:this.config.map((a,o)=>{const t={},i={};if(e){if(a.parametersKeys.length===0)throw this.errorMsg.push(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 不能为空`),loading.value=!1,new Error("数据检查失败");if(!(a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.matchType")} 检查失败`,a.matchesKeys,a.matchesValue,this.errorMsg)&&a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 检查失败`,a.parametersKeys,a.parametersValue,this.errorMsg)))throw new Error("数据检查失败")}for(const r of a.matchesKeys){const l=a.matchesValue[r];if(l)if(l.type==="obj")t[r]={[l.relation]:l.value};else if(l.type==="arr")t[r]={oneof:l.arr.map(c=>({[c.relation]:c.value}))};else{t[r]=[];for(const c of l.arr)t[r].push({key:c.key,value:{[c.relation]:c.value}})}}for(const r of a.parametersKeys){const l=a.parametersValue[r];if(l)if(l.type==="obj")i[r]=l.value;else{t[r]={};for(const c of l.arr)i[c.key]=c.value}}return{match:t,parameters:i,enabled:a.enabled,side:a.side}})}}}export{m as C,g as V}; -======== -var h=Object.defineProperty;var p=(f,e,s)=>e in f?h(f,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):f[e]=s;var n=(f,e,s)=>(p(f,typeof e!="symbol"?e+"":e,s),s);import{i as u}from"./index-JtaswhjV.js";class m{constructor(e){n(this,"enabled",!0);n(this,"hasMatch",!1);n(this,"side","provider");n(this,"matches",[]);n(this,"parameters",[]);n(this,"matchesKeys",[]);n(this,"parametersKeys",[]);n(this,"parametersValue",{retries:{type:"obj",relation:"=",value:""},timeout:{type:"obj",relation:"=",value:""},accesslog:{type:"obj",relation:"=",value:""},weight:{type:"obj",relation:"=",value:""},other:{type:"free",arr:[{key:"",relation:"=",value:""}]}});n(this,"matchesValue",{address:{type:"obj",relation:"",value:""},providerAddress:{type:"obj",relation:"",value:""},service:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},application:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},param:{type:"free",arr:[{key:"",relation:"",value:""}]}});if(e){for(const s of Object.keys(this))e[s]&&(this[s]=e[s]);this.hasMatch=this.matchesKeys.length>0}}descMatches(){const e=[];for(const s in this.matchesValue){const a=this.matchesValue[s];if(this.matchesKeys.includes(s))if(a.type==="obj")e.push(`${s} ${a.relation} ${a.value}`);else if(a.type==="arr"){const o=a.arr.map(t=>`${t.relation} ${t.value}`).join(", ");e.push(`${s} oneof [${o}]`)}else{const o=a.arr.map(t=>`${t.key} ${t.relation} ${t.value}`).join(", ");e.push(`${s} allof [${o}]`)}}return e}descParameters(){const e=[];for(const s in this.parametersValue){const a=this.parametersValue[s];this.parametersKeys.includes(s)&&(a.type==="obj"?e.push(`${s} = ${a.value}`):e.push(...a.arr.map(o=>`${o.key} ${o.relation} ${o.value}`)))}return e}delArrConfig(e,s,a){e[s].arr.splice(a,1)}addArrConfig(e,s,a,o){e[s].arr.splice(a+1,0,{key:"",relation:(o==null?void 0:o.relation)||"",value:""})}parseMatches(e){const s=this.matchesValue;for(const a in e){this.matchesKeys.push(a),this.hasMatch=!0;const o=e[a];if(s[a])if(s[a].type==="obj")for(const t in o)s[a].relation=t,s[a].value=o[t];else if(s[a].type==="arr"){s[a].arr=[];for(const t in o)for(const i of o[t])for(const r in i)s[a].arr.push({key:t,relation:r,value:i[r]})}else{s[a].arr=[];for(const t of o)for(const i in t.value)s[a].arr.push({key:t.key,relation:i,value:t.value[i]})}}}parseParameters(e){const s=this.parametersValue;for(const a in e){const o=e[a];if(this.parametersValue[a])this.parametersKeys.push(a),s[a].relation="=",s[a].value=o;else{const t="other";this.parametersKeys.push(t),s[t].arr=[],s[t].arr.push({key:a,relation:"=",value:o})}}}checkArrConfig(e,s,a,o){for(const t of s){const i=a[t];if(i.type==="obj"){if(i.relation===null||i.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(i.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}if(i.type==="arr")for(const r of i.arr){if(r.relation===null||r.relation==="")return o.push(`${e}: ${t} 条件为空`),console.log(`${e}: ${t} 条件为空`),!1;if(r.value===null)return o.push(`${e}: ${t} 值为空`),console.log(`${e}: ${t} 值为空`),!1}else{let r=1;if(!i.arr)continue;for(const l of i.arr){if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录key为空`),console.log(`${e}: ${t} 下第${r}条记录key为空`),!1;if(l.relation===null||l.relation==="")return o.push(`${e}: ${t} 下第${r}条记录条件为空`),console.log(`${e}: ${t} 下第${r}条记录条件为空`),!1;if(l.value===null)return o.push(`${e}: ${t} 第${r}条记录值为空`),console.log(`${e}: ${t} 第${r}条记录值为空`),!1;r++}}}return!0}}class y{constructor(){n(this,"ruleName");n(this,"scope");n(this,"configVersion");n(this,"key");n(this,"effectTime");n(this,"enabled")}}class g{constructor(){n(this,"basicInfo",new y);n(this,"config",[]);n(this,"errorMsg",[]);n(this,"isAdd",!1)}fromData(e){this.basicInfo=e.basicInfo,this.config=e.config,this.isAdd=e.isAdd}fromApiOutput(e){this.basicInfo.configVerison=e.configVerison||"v3.0",this.basicInfo.scope=e.scope,this.basicInfo.key=e.key,this.basicInfo.enabled=e.enabled||!1,this.config=e.configs.map(s=>{const a=new m({enabled:s.enabled,side:s.side});return a.parseMatches(s.match),a.parseParameters(s.parameters),a})}toApiInput(e=!1){return this.errorMsg=[],{ruleName:this.basicInfo.ruleName==="_tmp"?this.basicInfo.key+".configurators":this.basicInfo.ruleName,scope:this.basicInfo.scope,key:this.basicInfo.key,enabled:this.basicInfo.enabled,configVersion:this.basicInfo.configVerison||"v3.0",configs:this.config.map((a,o)=>{const t={},i={};if(e){if(a.parametersKeys.length===0)throw this.errorMsg.push(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 不能为空`),loading.value=!1,new Error("数据检查失败");if(!(a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.matchType")} 检查失败`,a.matchesKeys,a.matchesValue,this.errorMsg)&&a.checkArrConfig(`配置 ${o+1}${u.global.t("dynamicConfigDomain.configType")} 检查失败`,a.parametersKeys,a.parametersValue,this.errorMsg)))throw new Error("数据检查失败")}for(const r of a.matchesKeys){const l=a.matchesValue[r];if(l)if(l.type==="obj")t[r]={[l.relation]:l.value};else if(l.type==="arr")t[r]={oneof:l.arr.map(c=>({[c.relation]:c.value}))};else{t[r]=[];for(const c of l.arr)t[r].push({key:c.key,value:{[c.relation]:c.value}})}}for(const r of a.parametersKeys){const l=a.parametersValue[r];if(l)if(l.type==="obj")i[r]=l.value;else{t[r]={};for(const c of l.arr)i[c.key]=c.value}}return{match:t,parameters:i,enabled:a.enabled,side:a.side}})}}}export{m as C,g as V}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/ConfigModel-t29mQMqm.js diff --git a/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js b/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js deleted file mode 100644 index ca34fe479..000000000 --- a/app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/ConfigPage-HbXln963.js -import{d as F,l as J,B as V,a as M,c as k,b as n,w as t,e as r,o as l,j as C,n as e,I as h,f as _,t as u,L as O,M as U,J as m,T as b,aa as q,m as w,p as A,h as G,_ as H}from"./index-rt1yTeew.js";const Q=d=>(A("data-v-4c314c51"),d=d(),G(),d),W={class:"__container_common_config"},X={class:"title"},Y=Q(()=>C("div",{class:"bg"},null,-1)),Z={class:"truncate-text"},ee={key:0,style:{float:"right"}},te=F({__name:"ConfigPage",props:{options:{}},setup(d){let y=d,s=J(()=>y.options.list[y.options.current[0]]),x=V(null),g=V(!1),I=M();async function z(){g.value=!0,await x.value.validate().catch(c=>{w.error("submit failed [form check]: "+c),g.value=!1});let a=y.options.list[y.options.current[0]];await a.submit(a.form).catch(c=>{w.error("submit failed [server error]: "+c)}),g.value=!1,w.success("submit success")}function K(){s.value.reset(s.value.form)}return(a,c)=>{const L=r("a-tooltip"),P=r("a-menu-item"),R=r("a-menu"),$=r("a-card"),B=r("a-col"),v=r("a-button"),T=r("a-form"),j=r("a-form-item"),D=r("a-spin"),E=r("a-row");return l(),k("div",W,[n(E,{gutter:20},{default:t(()=>[n(B,{span:6},{default:t(()=>[n($,{class:"__opt"},{title:t(()=>[C("div",X,[Y,n(e(h),{class:"title-icon",icon:"icon-park-twotone:application-one"}),n(L,{placement:"topLeft"},{title:t(()=>{var o;return[_(u((o=e(I).params)==null?void 0:o.pathId),1)]}),default:t(()=>{var o;return[C("span",Z,u((o=e(I).params)==null?void 0:o.pathId),1)]}),_:1})])]),default:t(()=>[n(R,{selectedKeys:a.options.current,"onUpdate:selectedKeys":c[0]||(c[0]=o=>a.options.current=o)},{default:t(()=>[(l(!0),k(O,null,U(a.options.list,(o,i)=>(l(),m(P,{key:i},{default:t(()=>[i===a.options.current[0]?(l(),m(e(h),{key:0,style:{"margin-bottom":"-5px","font-size":"20px"},icon:"material-symbols:settings-b-roll-rounded"})):(l(),m(e(h),{key:1,style:{"margin-bottom":"-5px","font-size":"20px",color:"grey"},icon:"material-symbols:settings-b-roll-outline-rounded"})),_(" "+u(a.$t(o.title)),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys"])]),_:1})]),_:1}),n(B,{span:18},{default:t(()=>[n($,null,{title:t(()=>{var o;return[_(u(a.$t(e(s).title))+" ",1),(o=e(s))!=null&&o.ext?(l(),k("div",ee,[n(v,{type:"primary",onClick:c[1]||(c[1]=i=>{var p,f,S,N;return(N=(p=e(s))==null?void 0:p.ext)==null?void 0:N.fun((S=(f=e(s))==null?void 0:f.form)==null?void 0:S.rules)})},{default:t(()=>{var i,p;return[_(u((p=(i=e(s))==null?void 0:i.ext)==null?void 0:p.title),1)]}),_:1})])):b("",!0)]}),default:t(()=>[n(D,{spinning:e(g)},{default:t(()=>{var o,i;return[(l(),m(T,{style:{overflow:"auto","max-height":"calc(100vh - 450px)"},ref_key:"__config_form",ref:x,key:a.options.current,"wrapper-col":{span:14},model:e(s).form,"label-col":{style:{width:"100px"}},layout:"horizontal"},{default:t(()=>[q(a.$slots,"form_"+e(s).key,{current:e(s)},void 0,!0)]),_:3},8,["model"])),(o=e(s))!=null&&o.submit||(i=e(s))!=null&&i.reset?(l(),m(j,{key:0,style:{margin:"20px 0 0 100px"}},{default:t(()=>{var p,f;return[(p=e(s))!=null&&p.submit?(l(),m(v,{key:0,type:"primary",onClick:z},{default:t(()=>[_(u(a.$t("submit")),1)]),_:1})):b("",!0),(f=e(s))!=null&&f.reset?(l(),m(v,{key:1,style:{"margin-left":"10px"},onClick:K},{default:t(()=>[_(u(a.$t("reset")),1)]),_:1})):b("",!0)]}),_:1})):b("",!0)]}),_:3},8,["spinning"])]),_:3})]),_:3})]),_:3})])}}}),se=H(te,[["__scopeId","data-v-4c314c51"]]);export{se as C}; -======== -import{d as F,l as J,B as V,a as M,c as k,b as a,w as t,e as r,o as l,j as C,n as e,I as h,f as _,t as u,L as O,M as U,J as m,T as b,a9 as q,m as w,p as A,h as G,_ as H}from"./index-JtaswhjV.js";const Q=d=>(A("data-v-4c314c51"),d=d(),G(),d),W={class:"__container_common_config"},X={class:"title"},Y=Q(()=>C("div",{class:"bg"},null,-1)),Z={class:"truncate-text"},ee={key:0,style:{float:"right"}},te=F({__name:"ConfigPage",props:{options:{}},setup(d){let y=d,s=J(()=>y.options.list[y.options.current[0]]),x=V(null),g=V(!1),I=M();async function z(){g.value=!0,await x.value.validate().catch(c=>{w.error("submit failed [form check]: "+c),g.value=!1});let n=y.options.list[y.options.current[0]];await n.submit(n.form).catch(c=>{w.error("submit failed [server error]: "+c)}),g.value=!1,w.success("submit success")}function K(){s.value.reset(s.value.form)}return(n,c)=>{const L=r("a-tooltip"),P=r("a-menu-item"),R=r("a-menu"),$=r("a-card"),B=r("a-col"),v=r("a-button"),T=r("a-form"),j=r("a-form-item"),D=r("a-spin"),E=r("a-row");return l(),k("div",W,[a(E,{gutter:20},{default:t(()=>[a(B,{span:6},{default:t(()=>[a($,{class:"__opt"},{title:t(()=>[C("div",X,[Y,a(e(h),{class:"title-icon",icon:"icon-park-twotone:application-one"}),a(L,{placement:"topLeft"},{title:t(()=>{var o;return[_(u((o=e(I).params)==null?void 0:o.pathId),1)]}),default:t(()=>{var o;return[C("span",Z,u((o=e(I).params)==null?void 0:o.pathId),1)]}),_:1})])]),default:t(()=>[a(R,{selectedKeys:n.options.current,"onUpdate:selectedKeys":c[0]||(c[0]=o=>n.options.current=o)},{default:t(()=>[(l(!0),k(O,null,U(n.options.list,(o,i)=>(l(),m(P,{key:i},{default:t(()=>[i===n.options.current[0]?(l(),m(e(h),{key:0,style:{"margin-bottom":"-5px","font-size":"20px"},icon:"material-symbols:settings-b-roll-rounded"})):(l(),m(e(h),{key:1,style:{"margin-bottom":"-5px","font-size":"20px",color:"grey"},icon:"material-symbols:settings-b-roll-outline-rounded"})),_(" "+u(n.$t(o.title)),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys"])]),_:1})]),_:1}),a(B,{span:18},{default:t(()=>[a($,null,{title:t(()=>{var o;return[_(u(n.$t(e(s).title))+" ",1),(o=e(s))!=null&&o.ext?(l(),k("div",ee,[a(v,{type:"primary",onClick:c[1]||(c[1]=i=>{var p,f,S,N;return(N=(p=e(s))==null?void 0:p.ext)==null?void 0:N.fun((S=(f=e(s))==null?void 0:f.form)==null?void 0:S.rules)})},{default:t(()=>{var i,p;return[_(u((p=(i=e(s))==null?void 0:i.ext)==null?void 0:p.title),1)]}),_:1})])):b("",!0)]}),default:t(()=>[a(D,{spinning:e(g)},{default:t(()=>{var o,i;return[(l(),m(T,{style:{overflow:"auto","max-height":"calc(100vh - 450px)"},ref_key:"__config_form",ref:x,key:n.options.current,"wrapper-col":{span:14},model:e(s).form,"label-col":{style:{width:"100px"}},layout:"horizontal"},{default:t(()=>[q(n.$slots,"form_"+e(s).key,{current:e(s)},void 0,!0)]),_:3},8,["model"])),(o=e(s))!=null&&o.submit||(i=e(s))!=null&&i.reset?(l(),m(j,{key:0,style:{margin:"20px 0 0 100px"}},{default:t(()=>{var p,f;return[(p=e(s))!=null&&p.submit?(l(),m(v,{key:0,type:"primary",onClick:z},{default:t(()=>[_(u(n.$t("submit")),1)]),_:1})):b("",!0),(f=e(s))!=null&&f.reset?(l(),m(v,{key:1,style:{"margin-left":"10px"},onClick:K},{default:t(()=>[_(u(n.$t("reset")),1)]),_:1})):b("",!0)]}),_:1})):b("",!0)]}),_:3},8,["spinning"])]),_:3})]),_:3})]),_:3})])}}}),se=H(te,[["__scopeId","data-v-4c314c51"]]);export{se as C}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/ConfigPage-bt_br5PT.js diff --git a/app/dubbo-ui/dist/admin/assets/ConfigPage-cVEIcX7I.css b/app/dubbo-ui/dist/admin/assets/ConfigPage-cVEIcX7I.css deleted file mode 100644 index e5105e9f4..000000000 --- a/app/dubbo-ui/dist/admin/assets/ConfigPage-cVEIcX7I.css +++ /dev/null @@ -1 +0,0 @@ -.__container_common_config .truncate-text[data-v-4c314c51]{max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.__container_common_config[data-v-4c314c51] .ant-segmented-group{flex-flow:column}.__container_common_config .__opt .title[data-v-4c314c51]{padding:0 20px;font-size:30px;text-align:center;color:#605f5f;position:relative}.__container_common_config .__opt .title-icon[data-v-4c314c51]{margin-bottom:-5px}.__container_common_config .__opt[data-v-4c314c51] .ant-menu-item{width:80%}.__container_common_config .__opt[data-v-4c314c51] .ant-menu{border:none}.__container_common_config .__opt[data-v-4c314c51] .ant-card-head{border:none;background:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20321.39%2078.54'%20version='1.1'%3e%3ctitle%20id='title19'%3eDUBBO%20LOGO%3c/title%3e%3cpath%20class='cls-1'%20d='M68.46,50.38c0,14.06,11.39,22.11,25.45,22.11s25.45-8.05,25.45-22.11V7.25H68.46Zm21.24-28h8.6V31H89.7Zm0,22.25h8.6v8.6H89.7ZM33.24,7.25H4.06v64H33.24c10.95,0,19.3-7.18,23.29-17.15a45.12,45.12,0,0,0,2.38-14.87A45.12,45.12,0,0,0,56.53,24.4C52.84,14.62,44.19,7.25,33.24,7.25Zm.43,14.63H30.34a3.44,3.44,0,0,0-3.44,3.44V53.23a3.44,3.44,0,0,0,3.44,3.44h3.33v4.63h-8.3a6.87,6.87,0,0,1-6.87-6.87V24.12a6.87,6.87,0,0,1,6.87-6.87h8.3ZM285.51,6.06c-17.05,0-30.88,10.28-30.88,33.21s13.83,33.21,30.88,33.21,30.88-10.28,30.88-33.21S302.56,6.06,285.51,6.06Zm7.59,48.36a6.87,6.87,0,0,1-6.87,6.87h-8.3V56.67h3.33a3.44,3.44,0,0,0,3.44-3.44V25.31a3.44,3.44,0,0,0-3.44-3.44h-3.33V17.25h8.3a6.87,6.87,0,0,1,6.87,6.87Zm-53.4-17.56A17.39,17.39,0,0,0,227.31,7.25H195.1v64h32.21a19.44,19.44,0,0,0,12.38-34.44ZM211.63,61.29h-6.08l18.68-44h6.08ZM177,36.85A17.39,17.39,0,0,0,164.65,7.25H132.43v64h32.21A19.44,19.44,0,0,0,177,36.85ZM149,61.29h-6.08l18.68-44h6.08Z'%20style='fill:%23ffffff;fill-opacity:1'/%3e%3c/svg%3e") #fafafa;background-size:100% auto;padding:20px 0}.__container_common_config .__opt[data-v-4c314c51] .ant-menu-item-selected{transition:all .4s;translate:10px;transform:scale(1.1)} diff --git a/app/dubbo-ui/dist/admin/assets/DateUtil-OIUqM92a.js b/app/dubbo-ui/dist/admin/assets/DateUtil-OIUqM92a.js deleted file mode 100644 index 3da5b5a03..000000000 --- a/app/dubbo-ui/dist/admin/assets/DateUtil-OIUqM92a.js +++ /dev/null @@ -1 +0,0 @@ -import{ae as t}from"./index-rt1yTeew.js";const m=r=>r&&t(r).format("YYYY-MM-DD HH:mm:ss");export{m as f}; diff --git a/app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js b/app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js deleted file mode 100644 index b5e1fc829..000000000 --- a/app/dubbo-ui/dist/admin/assets/DateUtil-ed3saMVp.js +++ /dev/null @@ -1 +0,0 @@ -import{ac as t}from"./index-JtaswhjV.js";const m=r=>r&&t(r).format("YYYY-MM-DD HH:mm:ss");export{m as f}; diff --git a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js b/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js deleted file mode 100644 index 70da7d31d..000000000 --- a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ib81UiBl.js +++ /dev/null @@ -1 +0,0 @@ -import{d as m,y as l,z as _,B as d,a as f,D as u,e as p,o as r,c as s,b as h,w as y,j as g,n,T as v,_ as I}from"./index-JtaswhjV.js";const w={class:"__container_tabDemo3"},b={class:"__container_iframe_container"},q=["src"],D=m({__name:"GrafanaPage",setup(S){const a=l(_.GRAFANA);d(""),f(),u(async()=>{var t;let e=await a.api({});a.url=`${(t=e.data)==null?void 0:t.baseURL}?var-${a.type}=${a.name}&kiosk=1&theme=light`,a.showIframe=!0});function o(e){try{e()}catch(t){console.log(t)}}function c(){console.log("The iframe has been loaded."),setTimeout(()=>{try{let e=document.querySelector("#grafanaIframe").contentDocument;o(()=>{e.querySelector("header").remove()}),o(()=>{e.querySelector("[data-testid*='controls']").remove()}),setTimeout(()=>{o(()=>{e.querySelector("[data-testid*='navigation mega-menu']").remove()}),o(()=>{for(let t of e.querySelectorAll("[data-testid*='Panel menu']"))t.remove()})},2e3)}catch{}a.showIframe=!0},1e3)}return(e,t)=>{const i=p("a-spin");return r(),s("div",w,[h(i,{class:"spin",spinning:!n(a).showIframe},{default:y(()=>[g("div",b,[n(a).showIframe?(r(),s("iframe",{key:0,onload:c,id:"grafanaIframe",style:{"padding-top":"60px"},src:n(a).url,frameborder:"0"},null,8,q)):v("",!0)])]),_:1},8,["spinning"])])}}}),x=I(D,[["__scopeId","data-v-b1f28c38"]]);export{x as G}; diff --git a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css b/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css deleted file mode 100644 index 7d298c006..000000000 --- a/app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/GrafanaPage-Ox7zYy20.css -.__container_iframe_container[data-v-64faf1f0]{z-index:1;position:relative;width:calc(100vw - 332px);height:calc(100vh - 200px);clip-path:inset(0px 0px)}.__container_iframe_container #grafanaIframe[data-v-64faf1f0]{z-index:0;top:-112px;position:absolute;width:calc(100vw - 332px);height:calc(100vh - 200px)} -======== -.__container_iframe_container[data-v-b1f28c38]{z-index:1;position:relative;width:calc(100vw - 332px);height:calc(100vh - 200px);clip-path:inset(0px 0px)}.__container_iframe_container #grafanaIframe[data-v-b1f28c38]{z-index:0;top:-112px;position:absolute;width:calc(100vw - 332px);height:calc(100vh - 200px)} ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/GrafanaPage-kjWXhr_m.css diff --git a/app/dubbo-ui/dist/admin/assets/GrafanaPage-aw8SVm5P.js b/app/dubbo-ui/dist/admin/assets/GrafanaPage-aw8SVm5P.js deleted file mode 100644 index 69de841d5..000000000 --- a/app/dubbo-ui/dist/admin/assets/GrafanaPage-aw8SVm5P.js +++ /dev/null @@ -1 +0,0 @@ -import{d as m,y as d,z as l,D as _,m as s,e as u,o as c,c as i,b as p,w as h,j as g,n,T as y,_ as v}from"./index-rt1yTeew.js";const I={class:"__container_tabDemo3"},w={class:"__container_iframe_container"},G=["src"],D=m({__name:"GrafanaPage",setup(x){const r=d(l.GRAFANA);if(!r)throw new Error("Grafana state not provided");_(async()=>{var o;try{let e=await r.api(r.params||{});(o=e==null?void 0:e.data)!=null&&o.fullURL?(r.url=e.data.fullURL,r.showIframe=!0):s.error("获取Grafana仪表板URL失败")}catch(e){console.error("获取Grafana仪表板失败:",e),s.error("获取Grafana仪表板失败,请稍后重试")}});function t(o){try{o()}catch(e){console.log(e)}}function f(){console.log("The iframe has been loaded."),setTimeout(()=>{try{const o=document.querySelector("#grafanaIframe"),e=o==null?void 0:o.contentDocument;if(!e)return;t(()=>{var a;(a=e.querySelector("header"))==null||a.remove()}),t(()=>{var a;(a=e.querySelector("[data-testid*='controls']"))==null||a.remove()}),setTimeout(()=>{t(()=>{var a;(a=e.querySelector("[data-testid*='navigation mega-menu']"))==null||a.remove()}),t(()=>{for(let a of e.querySelectorAll("[data-testid*='Panel menu']"))a==null||a.remove()})},2e3)}catch{}r.showIframe=!0},1e3)}return(o,e)=>{const a=u("a-spin");return c(),i("div",I,[p(a,{class:"spin",spinning:!n(r).showIframe},{default:h(()=>[g("div",w,[n(r).showIframe?(c(),i("iframe",{key:0,onload:f,id:"grafanaIframe",style:{"padding-top":"60px"},src:n(r).url,frameborder:"0"},null,8,G)):y("",!0)])]),_:1},8,["spinning"])])}}}),N=v(D,[["__scopeId","data-v-64faf1f0"]]);export{N as G}; diff --git a/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js b/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js deleted file mode 100644 index 7567a68ea..000000000 --- a/app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/Login-WDB2yLVB.js -import{l as h,m as v}from"./globalSearch-_m3MXXfo.js";import{d as b,r as y,u as S,a as D,c as k,b as e,w as t,e as n,o as C,f as I,t as q,g as B,m as N,i as V,p as $,h as x,j as F,_ as L}from"./index-rt1yTeew.js";import{u as R}from"./request-vlI2kaaR.js";const U=l=>($("data-v-4610376f"),l=l(),x(),l),j={class:"background"},z=U(()=>F("div",null,"用户登录",-1)),A=b({__name:"Login",setup(l){const a=y({username:"",password:""}),c=S(),p=D().query.redirect||"/",i=R();function _(){let s=new FormData;s.append("user",a.username),s.append("password",a.password),h(s).then(async()=>{var r;B(!0,a.username);const{data:o}=await v();(!i.mesh||!o.some(u=>u.id===i.mesh))&&(i.mesh=(r=o[0])==null?void 0:r.id),c.replace(p)}).catch(o=>{N.error(V.global.t("loginDomain.authFail"))})}return(s,o)=>{const r=n("a-row"),u=n("a-input"),m=n("a-form-item"),f=n("a-button"),g=n("a-form"),w=n("a-card");return C(),k("div",j,[e(w,{class:"login"},{default:t(()=>[e(r,{class:"title"},{default:t(()=>[z]),_:1}),e(r,null,{default:t(()=>[e(g,{layout:"vertical",model:a,ref:"login-form-ref"},{default:t(()=>[e(m,{class:"item",label:s.$t("loginDomain.username"),name:"username",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"",value:a.username,"onUpdate:value":o[0]||(o[0]=d=>a.username=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:s.$t("loginDomain.password"),name:"password",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"password",value:a.password,"onUpdate:value":o[1]||(o[1]=d=>a.password=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:""},{default:t(()=>[e(f,{onClick:_,size:"large",type:"primary",class:"login-btn"},{default:t(()=>[I(q(s.$t("loginDomain.login")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})])}}}),G=L(A,[["__scopeId","data-v-4610376f"]]);export{G as default}; -======== -import{l as h,m as v}from"./globalSearch-tZ8VrkZD.js";import{d as b,r as y,u as S,a as D,c as k,b as e,w as t,e as n,o as C,f as I,t as q,g as B,m as N,i as V,p as $,h as x,j as F,_ as L}from"./index-JtaswhjV.js";import{u as R}from"./request--dYXBGM5.js";const U=l=>($("data-v-4610376f"),l=l(),x(),l),j={class:"background"},z=U(()=>F("div",null,"用户登录",-1)),A=b({__name:"Login",setup(l){const a=y({username:"",password:""}),c=S(),p=D().query.redirect||"/",i=R();function _(){let s=new FormData;s.append("user",a.username),s.append("password",a.password),h(s).then(async()=>{var r;B(!0,a.username);const{data:o}=await v();(!i.mesh||!o.some(u=>u.id===i.mesh))&&(i.mesh=(r=o[0])==null?void 0:r.id),c.replace(p)}).catch(o=>{N.error(V.global.t("loginDomain.authFail"))})}return(s,o)=>{const r=n("a-row"),u=n("a-input"),m=n("a-form-item"),f=n("a-button"),g=n("a-form"),w=n("a-card");return C(),k("div",j,[e(w,{class:"login"},{default:t(()=>[e(r,{class:"title"},{default:t(()=>[z]),_:1}),e(r,null,{default:t(()=>[e(g,{layout:"vertical",model:a,ref:"login-form-ref"},{default:t(()=>[e(m,{class:"item",label:s.$t("loginDomain.username"),name:"username",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"",value:a.username,"onUpdate:value":o[0]||(o[0]=d=>a.username=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:s.$t("loginDomain.password"),name:"password",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"password",value:a.password,"onUpdate:value":o[1]||(o[1]=d=>a.password=d)},null,8,["value"])]),_:1},8,["label"]),e(m,{class:"item",label:""},{default:t(()=>[e(f,{onClick:_,size:"large",type:"primary",class:"login-btn"},{default:t(()=>[I(q(s.$t("loginDomain.login")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})])}}}),G=L(A,[["__scopeId","data-v-4610376f"]]);export{G as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/Login-y1uh0mPf.js diff --git a/app/dubbo-ui/dist/admin/assets/Login-h2m9vUys.css b/app/dubbo-ui/dist/admin/assets/Login-h2m9vUys.css deleted file mode 100644 index 27dbe232c..000000000 --- a/app/dubbo-ui/dist/admin/assets/Login-h2m9vUys.css +++ /dev/null @@ -1 +0,0 @@ -.background[data-v-4610376f]{background:url(/admin/assets/login-aBMy9l95.jpg) no-repeat center center fixed;background-size:cover;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center}.background .login[data-v-4610376f]{background-color:#fff;padding:20px;border-radius:12px;box-shadow:0 0 10px #0000001a;display:flex;justify-content:center;width:22vw}.background .login .title[data-v-4610376f]{width:100%;display:flex;justify-content:center;font-size:20px;font-weight:500;margin-bottom:20px}.background .login .login-btn[data-v-4610376f]{width:100%} diff --git a/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js b/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js deleted file mode 100644 index 9a3fb4152..000000000 --- a/app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/PromQueryUtil-mqYJCdcK.js -import{r as u}from"./request-vlI2kaaR.js";import{r as i,a4 as l}from"./index-rt1yTeew.js";const f=async t=>u({url:"promQL/query",method:"get",params:t});async function q(t){var e,n;try{const r=(n=(e=await f({query:t}))==null?void 0:e.data)==null?void 0:n.result[0];return r!=null&&r.value&&r.value.length>0?Number(r.value[1]):"NA"}catch(r){console.error("fetch from prom error: ",r)}return"NA"}function p(t,e,n){var s;const r=i(t);for(const a of e){const o=(s=t==null?void 0:t.data)==null?void 0:s.list;for(const c of o)c[a]="skeleton-loading"}return l(async()=>{var a;try{const o=((a=r==null?void 0:r.data)==null?void 0:a.list)||[];for(const c of o)n(c)}catch(o){console.error(o)}}),r}export{p,q}; -======== -import{r as u}from"./request--dYXBGM5.js";import{r as i,a4 as l}from"./index-JtaswhjV.js";const f=async t=>u({url:"promQL/query",method:"get",params:t});async function q(t){var e,n;try{const r=(n=(e=await f({query:t}))==null?void 0:e.data)==null?void 0:n.result[0];return r!=null&&r.value&&r.value.length>0?Number(r.value[1]):"NA"}catch(r){console.error("fetch from prom error: ",r)}return"NA"}function p(t,e,n){var s;const r=i(t);for(const a of e){const o=(s=t==null?void 0:t.data)==null?void 0:s.list;for(const c of o)c[a]="skeleton-loading"}return l(async()=>{var a;try{const o=((a=r==null?void 0:r.data)==null?void 0:a.list)||[];for(const c of o)n(c)}catch(o){console.error(o)}}),r}export{p,q}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/PromQueryUtil-xm9pTL4M.js diff --git a/app/dubbo-ui/dist/admin/assets/RoutingRuleList-S1X2ttk3.css b/app/dubbo-ui/dist/admin/assets/RoutingRuleList-S1X2ttk3.css deleted file mode 100644 index 9cb956757..000000000 --- a/app/dubbo-ui/dist/admin/assets/RoutingRuleList-S1X2ttk3.css +++ /dev/null @@ -1 +0,0 @@ -.action-icon[data-v-054a0d72]{font-size:17px;margin-left:10px;cursor:pointer}.match-condition-type-label[data-v-054a0d72]{min-width:100px;text-align:center} diff --git a/app/dubbo-ui/dist/admin/assets/RoutingRuleList-hVzUyucI.js b/app/dubbo-ui/dist/admin/assets/RoutingRuleList-hVzUyucI.js deleted file mode 100644 index d7d7f277b..000000000 --- a/app/dubbo-ui/dist/admin/assets/RoutingRuleList-hVzUyucI.js +++ /dev/null @@ -1 +0,0 @@ -import{ab as he,l as X,B as ve,d as ye,e as j,o as p,c as H,L as Q,M as re,J as g,w as l,b as a,j as de,t as M,n as c,f as L,I as z,T as S,_ as ge}from"./index-rt1yTeew.js";const G={single:["host","application","method"],array:["arguments","attachments"],custom:["other"]};function me(){const{t:d}=he(),n=X(()=>[{label:"host",value:"host"},{label:"application",value:"application"},{label:"method",value:"method"},{label:"arguments",value:"arguments"},{label:"attachments",value:"attachments"},{label:d("routingRuleDomain.other"),value:"other"}]),ne=X(()=>[{label:"host",value:"host"},{label:d("routingRuleDomain.other"),value:"other"}]),ue=X(()=>[{label:"=",value:"="},{label:"!=",value:"!="}]),u=ve([{selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"",value:""},{type:"other",list:[]}]}]);function r(t,i,h){if(t=t.trim(),G.single.includes(h)){const s=t.match(new RegExp(`^${h}(!=|=)(.+)`));if(s)return i.push({type:h,condition:s[1],value:s[2].trim()}),!0}if(h==="arguments"){const s=t.match(/^arguments\[(\d+)\](!=|=)(.+)/);if(s){let b=i.find(R=>R.type==="arguments");return b||(b={type:"arguments",list:[]},i.push(b)),b.list.push({index:parseInt(s[1],10),condition:s[2],value:s[3].trim()}),!0}}if(h==="attachments"){const s=t.match(/^attachments\[(.+)\](!=|=)(.+)/);if(s){let b=i.find(R=>R.type==="attachments");return b||(b={type:"attachments",list:[]},i.push(b)),b.list.push({myKey:s[1].trim(),condition:s[2],value:s[3].trim()}),!0}}return!1}function se(t,i,h){const{availableTypes:s,isMatchCondition:b}=h,R=[],C=b?"selectedMatchConditionTypes":"selectedRouteDistributeMatchTypes";return u.value[i]&&(u.value[i][C]=[]),t?(t.split(" & ").forEach(_=>{if(!_.trim())return;let V=!1;for(const A of s)if(_.startsWith(A)&&r(_,R,A)){const E=u.value[i][C];E.includes(A)||E.push(A),V=!0;break}if(!V){const A=_.match(/^([^!=]+)(!?=)(.+)$/);if(A){const E="other";let W=R.find(T=>T.type===E);W||(W={type:E,list:[]},R.push(W)),W.list.push({myKey:A[1].trim(),condition:A[2],value:A[3].trim()});const q=u.value[i][C];q.includes(E)||q.push(E)}}}),s.forEach(_=>{R.find(V=>V.type===_)||(G.array.includes(_)||G.custom.includes(_)?R.push({type:_,list:[]}):R.push({type:_,condition:"",value:""}))}),R):s.map(_=>G.array.includes(_)||G.custom.includes(_)?{type:_,list:[]}:{type:_,condition:"",value:""})}function ce(t,i){return se(t,i,{availableTypes:[...G.single,...G.array,...G.custom],isMatchCondition:!0})}function D(t,i){return se(t||"",i,{availableTypes:["host","other"],isMatchCondition:!1})}function Y(t,i,h=" & "){const s=[];return t.forEach(b=>{const R=i.find(C=>C.type===b);R&&(R.list&&Array.isArray(R.list)?R.list.forEach(C=>{C.value!==void 0&&C.value!==""&&(b==="arguments"?s.push(`${b}[${C.index}]${C.condition}${C.value}`):b==="attachments"?s.push(`${b}[${C.myKey}]${C.condition}${C.value}`):b==="other"&&s.push(`${C.myKey}${C.condition}${C.value}`))}):R.value!==void 0&&R.value!==""&&s.push(`${R.type}${R.condition}${R.value}`))}),s.join(h)}function K(){const t=[];return u.value.forEach(i=>{const h=Y(i.selectedMatchConditionTypes,i.requestMatch),s=Y(i.selectedRouteDistributeMatchTypes,i.routeDistribute);h.length>0&&(s.length>0?t.push(`${h} => ${s}`):t.push(h))}),t}return{matchConditionTypeOptions:n,routeDistributionTypeOptions:ne,conditionOptions:ue,routeList:u,mergeConditions:K,parseConditionMatchStringToArray:ce,parseConditionToStringToArray:D,addRoute:()=>{u.value.push({selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"",value:""},{type:"other",list:[]}]})},deleteRoute:t=>{u.value.splice(t,1)},deleteRequestMatch:t=>{u.value[t].requestMatch=[],u.value[t].selectedMatchConditionTypes=[]},addRequestMatch:t=>{u.value[t].requestMatch=[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[]},{type:"attachments",list:[]},{type:"other",list:[]}]},deleteMatchConditionTypeItem:(t,i)=>{u.value[i].selectedMatchConditionTypes=u.value[i].selectedMatchConditionTypes.filter(h=>h!==t)},deleteRouteDistributeMatchTypeItem:(t,i)=>{u.value[i].selectedRouteDistributeMatchTypes=u.value[i].selectedRouteDistributeMatchTypes.filter(h=>h!==t)},addArgumentsItem:(t,i)=>{u.value[t].requestMatch[i].list.push({index:0,condition:"=",value:""})},deleteArgumentsItem:(t,i,h)=>{u.value[t].requestMatch[i].list.length===1&&(u.value[t].selectedMatchConditionTypes=u.value[t].selectedMatchConditionTypes.filter(s=>s!=="arguments")),u.value[t].requestMatch[i].list.splice(h,1)},addAttachmentsItem:(t,i)=>{u.value[t].requestMatch[i].list.push({myKey:"",condition:"=",value:""})},deleteAttachmentsItem:(t,i,h)=>{u.value[t].requestMatch[i].list.length===1&&(u.value[t].selectedMatchConditionTypes=u.value[t].selectedMatchConditionTypes.filter(s=>s!=="attachments")),u.value[t].requestMatch[i].list.splice(h,1)},addOtherItem:(t,i)=>{u.value[t].requestMatch[i].list.push({myKey:"",condition:"=",value:""})},deleteOtherItem:(t,i,h)=>{if(u.value[t].requestMatch[i].list.length===1){u.value[t].selectedMatchConditionTypes=u.value[t].selectedMatchConditionTypes.filter(s=>s!=="other");return}u.value[t].requestMatch[i].list.splice(h,1)},addRouteDistributeOtherItem:(t,i)=>{u.value[t].routeDistribute[i].list.push({myKey:"",condition:"=",value:""})},deleteRouteDistributeOtherItem:(t,i,h)=>{if(u.value[t].routeDistribute[i].list.length===1){u.value[t].selectedRouteDistributeMatchTypes=u.value[t].selectedRouteDistributeMatchTypes.filter(s=>s!=="other");return}u.value[t].routeDistribute[i].list.splice(h,1)},routeItemDes:(t,i)=>{var E,W;const h=u.value[t],{ruleGranularity:s,objectOfAction:b}=i,R=d(s==="service"?"routingRuleDomain.service":"routingRuleDomain.application"),C=d("routingRuleDomain.baseDesc",{type:R,value:b}),I=[];(E=h.selectedMatchConditionTypes)==null||E.forEach(q=>{var ae,le,P,F;const T=(ae=h.requestMatch)==null?void 0:ae.find(U=>U.type===q);if(!T)return;let w="";const ee=T.condition,te=T.value||d("serviceDomain.notSpecified");switch(q){case"host":w=d("routingRuleDomain.matchDesc",{condition:`IP ${ee} ${te}`});break;case"application":w=d("routingRuleDomain.matchDesc",{condition:`${d("routingRuleDomain.application")} ${ee} ${te}`});break;case"method":w=d("routingRuleDomain.matchDesc",{condition:`${d("routingRuleDomain.method")} ${ee} ${te}`});break;case"arguments":{const U=(le=T.list)==null?void 0:le.map($=>{const ie=$.value!==void 0&&$.value!==""?$.value:d("serviceDomain.notSpecified");return`${d("routingRuleDomain.arguments")}[${$.index}] ${$.condition} ${ie}`}).filter(Boolean);U&&U.length>0&&(w=U.join(" & "));break}case"attachments":{const U=(P=T.list)==null?void 0:P.map($=>{const ie=$.value!==void 0&&$.value!==""?$.value:d("serviceDomain.notSpecified");return`${d("routingRuleDomain.attachments")}[${$.myKey||d("serviceDomain.notSpecified")}] ${$.condition} ${ie}`}).filter(Boolean);U&&U.length>0&&(w=U.join(" & "));break}case"other":{const U=(F=T.list)==null?void 0:F.map($=>{const ie=$.value!==void 0&&$.value!==""?$.value:d("serviceDomain.notSpecified");return`${d("routingRuleDomain.other")}[${$.myKey||d("serviceDomain.notSpecified")}] ${$.condition} ${ie}`}).filter(Boolean);U&&U.length>0&&(w=U.join(" & "));break}}w&&((q==="host"||q==="application"||q==="method")&&!T.value?I.push(`${q} ${d("serviceDomain.notSpecified")}`):I.push(w))});const _=I.length>0?I.join(" & "):d("routingRuleDomain.anyRequest"),V=[];(W=h.selectedRouteDistributeMatchTypes)==null||W.forEach(q=>{var ae,le;const T=(ae=h.routeDistribute)==null?void 0:ae.find(P=>P.type===q);if(!T)return;let w="";const ee=T.condition,te=T.value||d("serviceDomain.notSpecified");switch(q){case"host":w=d("routingRuleDomain.distributeDesc",{condition:`IP ${ee} ${te}`});break;case"other":{const P=(le=T.list)==null?void 0:le.map(F=>{const U=F.value!==void 0&&F.value!==""?F.value:d("serviceDomain.notSpecified");return`${d("routingRuleDomain.other")}[${F.myKey||d("serviceDomain.notSpecified")}] ${F.condition} ${U}`}).filter(Boolean);P&&P.length>0&&(w=P.join(" & "));break}}w&&(q==="host"&&!T.value?V.push(`IP ${d("serviceDomain.notSpecified")}`):V.push(w))});const A=V.length>0?V.join(" & "):d("routingRuleDomain.route");return`${C}, ${d("routingRuleDomain.matchDesc",{condition:_})} -> ${d("routingRuleDomain.distributeDesc",{condition:A})}`}}}const fe={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Re=ye({__name:"RoutingRuleList",props:{routeList:{},baseInfo:{},routingRuleLogic:{}},setup(d){const{t:n}=he(),ne=X(()=>[{dataIndex:"index",key:"index",title:n("routingRuleDomain.paramIndex")},{dataIndex:"condition",key:"condition",title:n("routingRuleDomain.relation")},{dataIndex:"value",key:"value",title:n("routingRuleDomain.value")},{dataIndex:"operation",key:"operation",title:n("routingRuleDomain.operation")}]),ue=X(()=>[{dataIndex:"myKey",key:"myKey",title:n("routingRuleDomain.key")},{dataIndex:"condition",key:"condition",title:n("routingRuleDomain.relation")},{dataIndex:"value",key:"value",title:n("routingRuleDomain.value")},{dataIndex:"operation",key:"operation",title:n("routingRuleDomain.operation")}]),u=X(()=>[{dataIndex:"myKey",key:"myKey",title:n("routingRuleDomain.key")},{dataIndex:"condition",key:"condition",title:n("routingRuleDomain.relation")},{dataIndex:"value",key:"value",title:n("routingRuleDomain.value")},{dataIndex:"operation",key:"operation",title:n("routingRuleDomain.operation")}]);return(r,se)=>{const ce=j("a-tooltip"),D=j("a-space"),Y=j("a-flex"),K=j("a-select"),Z=j("a-form-item"),B=j("a-tag"),O=j("a-input"),J=j("a-button"),x=j("a-table"),oe=j("a-card"),pe=j("a-form");return p(),H(Q,null,[(p(!0),H(Q,null,re(r.routeList,(m,k)=>(p(),g(oe,{key:k},{title:l(()=>[a(Y,{justify:"space-between"},{default:l(()=>[a(D,{align:"center"},{default:l(()=>[de("div",null,M(c(n)("routingRuleDomain.route"))+"【"+M(k+1)+"】",1),a(ce,null,{title:l(()=>[L(M(r.routingRuleLogic.routeItemDes(k,r.baseInfo)),1)]),default:l(()=>[de("div",fe,M(r.routingRuleLogic.routeItemDes(k,r.baseInfo)),1)]),_:2},1024)]),_:2},1024),a(c(z),{onClick:e=>r.routingRuleLogic.deleteRoute(k),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)]),default:l(()=>[a(pe,{layout:"horizontal"},{default:l(()=>[a(D,{style:{width:"100%"},direction:"vertical",size:"large"},{default:l(()=>[a(Z,{label:c(n)("routingRuleDomain.matchRequest")},{default:l(()=>[m.requestMatch.length>0?(p(),g(oe,{key:0},{default:l(()=>[a(D,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[a(Y,{align:"center",justify:"space-between"},{default:l(()=>[a(Z,{label:c(n)("routingRuleDomain.matchConditionType")},{default:l(()=>[a(K,{value:m.selectedMatchConditionTypes,"onUpdate:value":e=>m.selectedMatchConditionTypes=e,options:r.routingRuleLogic.matchConditionTypeOptions,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1032,["label"]),a(c(z),{onClick:e=>r.routingRuleLogic.deleteRequestMatch(k),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),(p(!0),H(Q,null,re(m.requestMatch,(e,f)=>(p(),H(Q,null,[m.selectedMatchConditionTypes.includes("host")&&e.type==="host"?(p(),g(D,{key:"host-"+f,size:"large",align:"center"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M(e==null?void 0:e.type),1)]),_:2},1024),a(K,{value:e.condition,"onUpdate:value":o=>e.condition=o,style:{"min-width":"120px"},options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"]),a(O,{value:e.value,"onUpdate:value":o=>e.value=o,placeholder:c(n)("routingRuleDomain.host")},null,8,["value","onUpdate:value","placeholder"]),a(c(z),{onClick:o=>r.routingRuleLogic.deleteMatchConditionTypeItem(e==null?void 0:e.type,k),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):S("",!0),m.selectedMatchConditionTypes.includes("application")&&e.type==="application"?(p(),g(D,{key:"application-"+f,size:"large",align:"center"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M(e==null?void 0:e.type),1)]),_:2},1024),a(K,{value:e.condition,"onUpdate:value":o=>e.condition=o,style:{"min-width":"120px"},options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"]),a(O,{value:e.value,"onUpdate:value":o=>e.value=o,placeholder:c(n)("routingRuleDomain.application")},null,8,["value","onUpdate:value","placeholder"]),a(c(z),{onClick:o=>r.routingRuleLogic.deleteMatchConditionTypeItem(e==null?void 0:e.type,k),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):S("",!0),m.selectedMatchConditionTypes.includes("method")&&e.type==="method"?(p(),g(D,{key:"method-"+f,size:"large",align:"center"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M(e==null?void 0:e.type),1)]),_:2},1024),a(K,{value:e.condition,"onUpdate:value":o=>e.condition=o,style:{"min-width":"120px"},options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"]),a(O,{value:e.value,"onUpdate:value":o=>e.value=o,placeholder:c(n)("routingRuleDomain.method")},null,8,["value","onUpdate:value","placeholder"]),a(c(z),{onClick:o=>r.routingRuleLogic.deleteMatchConditionTypeItem(e==null?void 0:e.type,k),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):S("",!0),m.selectedMatchConditionTypes.includes("arguments")&&e.type==="arguments"?(p(),g(D,{key:"arguments-"+f,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M(e==null?void 0:e.type),1)]),_:2},1024),a(D,{direction:"vertical"},{default:l(()=>[a(J,{type:"primary",onClick:o=>r.routingRuleLogic.addArgumentsItem(k,f)},{default:l(()=>[L(M(c(n)("routingRuleDomain.addArgument")),1)]),_:2},1032,["onClick"]),a(x,{pagination:!1,columns:ne.value,"data-source":m.requestMatch[f].list},{bodyCell:l(({column:o,record:v,index:N})=>[o.key==="index"?(p(),g(O,{key:0,value:v.index,"onUpdate:value":y=>v.index=y,placeholder:c(n)("routingRuleDomain.paramIndex")},null,8,["value","onUpdate:value","placeholder"])):o.key==="condition"?(p(),g(K,{key:1,value:v.condition,"onUpdate:value":y=>v.condition=y,options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"])):o.key==="value"?(p(),g(O,{key:2,value:v.value,"onUpdate:value":y=>v.value=y,placeholder:c(n)("routingRuleDomain.value")},null,8,["value","onUpdate:value","placeholder"])):o.key==="operation"?(p(),g(D,{key:3,align:"center"},{default:l(()=>[a(c(z),{onClick:y=>r.routingRuleLogic.deleteArgumentsItem(k,f,N),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):S("",!0)]),_:2},1032,["columns","data-source"])]),_:2},1024)]),_:2},1024)):S("",!0),m.selectedMatchConditionTypes.includes("attachments")&&e.type==="attachments"?(p(),g(D,{key:"attachments-"+f,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M(e==null?void 0:e.type),1)]),_:2},1024),a(D,{direction:"vertical"},{default:l(()=>[a(J,{type:"primary",onClick:o=>r.routingRuleLogic.addAttachmentsItem(k,f)},{default:l(()=>[L(M(c(n)("routingRuleDomain.addAttachment")),1)]),_:2},1032,["onClick"]),a(x,{pagination:!1,columns:ue.value,"data-source":m.requestMatch[f].list},{bodyCell:l(({column:o,record:v,index:N})=>[o.key==="myKey"?(p(),g(O,{key:0,value:v.myKey,"onUpdate:value":y=>v.myKey=y,placeholder:c(n)("routingRuleDomain.key")},null,8,["value","onUpdate:value","placeholder"])):o.key==="condition"?(p(),g(K,{key:1,value:v.condition,"onUpdate:value":y=>v.condition=y,options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"])):o.key==="value"?(p(),g(O,{key:2,value:v.value,"onUpdate:value":y=>v.value=y,placeholder:c(n)("routingRuleDomain.value")},null,8,["value","onUpdate:value","placeholder"])):o.key==="operation"?(p(),g(D,{key:3,align:"center"},{default:l(()=>[a(c(z),{onClick:y=>r.routingRuleLogic.deleteAttachmentsItem(k,f,N),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):S("",!0)]),_:2},1032,["columns","data-source"])]),_:2},1024)]),_:2},1024)):S("",!0),m.selectedMatchConditionTypes.includes("other")&&e.type==="other"?(p(),g(D,{key:"other-"+f,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M((e==null?void 0:e.type)=="other"?c(n)("routingRuleDomain.other"):e==null?void 0:e.type),1)]),_:2},1024),a(D,{direction:"vertical"},{default:l(()=>[a(J,{type:"primary",onClick:o=>r.routingRuleLogic.addOtherItem(k,f)},{default:l(()=>[L(M(c(n)("routingRuleDomain.addOther")),1)]),_:2},1032,["onClick"]),a(x,{pagination:!1,columns:u.value,"data-source":m.requestMatch[f].list},{bodyCell:l(({column:o,record:v,index:N})=>[o.key==="myKey"?(p(),g(O,{key:0,value:v.myKey,"onUpdate:value":y=>v.myKey=y,placeholder:c(n)("routingRuleDomain.key")},null,8,["value","onUpdate:value","placeholder"])):o.key==="condition"?(p(),g(K,{key:1,value:v.condition,"onUpdate:value":y=>v.condition=y,options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"])):o.key==="value"?(p(),g(O,{key:2,value:v.value,"onUpdate:value":y=>v.value=y,placeholder:c(n)("routingRuleDomain.value")},null,8,["value","onUpdate:value","placeholder"])):o.key==="operation"?(p(),g(D,{key:3,align:"center"},{default:l(()=>[a(c(z),{onClick:y=>r.routingRuleLogic.deleteOtherItem(k,f,N),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):S("",!0)]),_:2},1032,["columns","data-source"])]),_:2},1024)]),_:2},1024)):S("",!0)],64))),256))]),_:2},1024)]),_:2},1024)):(p(),g(J,{key:1,onClick:e=>r.routingRuleLogic.addRequestMatch(k),type:"dashed",size:"large"},{icon:l(()=>[a(c(z),{icon:"tdesign:add"})]),default:l(()=>[L(" "+M(c(n)("routingRuleDomain.addMatchRequest")),1)]),_:2},1032,["onClick"]))]),_:2},1032,["label"]),a(Z,{label:c(n)("routingRuleDomain.routeDistribution"),required:""},{default:l(()=>[a(oe,null,{default:l(()=>[a(D,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[a(Y,null,{default:l(()=>[a(Z,{label:c(n)("routingRuleDomain.matchConditionType")},{default:l(()=>[a(K,{value:m.selectedRouteDistributeMatchTypes,"onUpdate:value":e=>m.selectedRouteDistributeMatchTypes=e,options:r.routingRuleLogic.routeDistributionTypeOptions,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1032,["label"])]),_:2},1024),(p(!0),H(Q,null,re(m.routeDistribute,(e,f)=>(p(),H(Q,{key:f},[m.selectedRouteDistributeMatchTypes.includes("host")&&e.type==="host"?(p(),g(D,{key:"dist-host-"+f,size:"large",align:"center"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M(e==null?void 0:e.type),1)]),_:2},1024),a(K,{value:e.condition,"onUpdate:value":o=>e.condition=o,style:{"min-width":"120px"},options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"]),a(O,{value:e.value,"onUpdate:value":o=>e.value=o,placeholder:c(n)("routingRuleDomain.host")},null,8,["value","onUpdate:value","placeholder"]),a(c(z),{onClick:o=>r.routingRuleLogic.deleteRouteDistributeMatchTypeItem(e==null?void 0:e.type,k),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):S("",!0),m.selectedRouteDistributeMatchTypes.includes("other")&&e.type==="other"?(p(),g(D,{key:"dist-other-"+f,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[a(B,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[L(M((e==null?void 0:e.type)=="other"?c(n)("routingRuleDomain.other"):e==null?void 0:e.type),1)]),_:2},1024),a(D,{direction:"vertical"},{default:l(()=>[a(J,{type:"primary",onClick:o=>r.routingRuleLogic.addRouteDistributeOtherItem(k,f)},{default:l(()=>[L(M(c(n)("routingRuleDomain.addOther")),1)]),_:2},1032,["onClick"]),a(x,{pagination:!1,columns:u.value,"data-source":m.routeDistribute[f].list},{bodyCell:l(({column:o,record:v,index:N})=>[o.key==="myKey"?(p(),g(O,{key:0,value:v.myKey,"onUpdate:value":y=>v.myKey=y,placeholder:c(n)("routingRuleDomain.key")},null,8,["value","onUpdate:value","placeholder"])):o.key==="condition"?(p(),g(K,{key:1,value:v.condition,"onUpdate:value":y=>v.condition=y,options:r.routingRuleLogic.conditionOptions},null,8,["value","onUpdate:value","options"])):o.key==="value"?(p(),g(O,{key:2,value:v.value,"onUpdate:value":y=>v.value=y,placeholder:c(n)("routingRuleDomain.value")},null,8,["value","onUpdate:value","placeholder"])):o.key==="operation"?(p(),g(D,{key:3,align:"center"},{default:l(()=>[a(c(z),{onClick:y=>r.routingRuleLogic.deleteRouteDistributeOtherItem(k,f,N),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):S("",!0)]),_:2},1032,["columns","data-source"])]),_:2},1024)]),_:2},1024)):S("",!0)],64))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),a(J,{onClick:r.routingRuleLogic.addRoute,type:"primary"},{default:l(()=>[L(M(c(n)("routingRuleDomain.addRoute")),1)]),_:1},8,["onClick"])],64)}}}),ke=ge(Re,[["__scopeId","data-v-054a0d72"]]);export{ke as R,me as u}; diff --git a/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js b/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js deleted file mode 100644 index a1e03dec7..000000000 --- a/app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/SearchUtil-FCBI7ppE.js -var G=Object.defineProperty;var Q=(m,o,u)=>o in m?G(m,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[o]=u;var _=(m,o,u)=>(Q(m,typeof o!="symbol"?o+"":o,u),u);import{d as W,v as Z,r as A,k as q,y as ee,z as te,l as I,c as p,j as g,b as i,w as n,n as s,e as c,P as ae,o as r,K as oe,L as b,M as C,J as y,f as P,t as S,ah as N,I as $,aa as U,$ as se,a1 as le,ai as ne,T as re,m as ie,_ as ce}from"./index-rt1yTeew.js";const ue={class:"__container_search_table"},de={class:"search-query-container"},_e={class:"custom-column button"},pe={class:"dropdown"},me={class:"body"},he=["onClick"],fe={class:"search-table-container"},ge={key:0},ye={key:1},be=W({__name:"SearchTable",setup(m){Z(a=>({"3d09cf76":s(ae)}));const o=A({customColumns:!1}),{appContext:{config:{globalProperties:u}}}=q(),e=ee(te.SEARCH_DOMAIN);e.table.columns.forEach(a=>{if(a.title){const d=a.title;a.title=I(()=>u.$t(d))}});const h=I(()=>e.noPaged?!1:{pageSize:e.paged.pageSize,current:e.paged.curPage,total:e.paged.total,showTotal:a=>u.$t("searchDomain.total")+": "+a+" "+u.$t("searchDomain.unit")}),f=(a,d,v)=>{e.paged.pageSize=a.pageSize,e.paged.curPage=a.current,e.onSearch()};function k(a){let d=e==null?void 0:e.table.columns.filter(v=>!v.__hide);if(!a.__hide&&d.length<=1){ie.warn("must show at least one column");return}a.__hide=!a.__hide}return(a,d)=>{var O,E,V,D;const v=c("a-radio-button"),R=c("a-radio-group"),B=c("a-select-option"),K=c("a-select"),M=c("a-input"),T=c("a-form-item"),j=c("a-button"),F=c("a-flex"),L=c("a-form"),x=c("a-col"),Y=c("a-card"),J=c("a-row"),H=c("a-skeleton-button"),X=c("a-table");return r(),p("div",ue,[g("div",de,[i(J,null,{default:n(()=>[i(x,{span:18},{default:n(()=>[i(L,{onKeyup:d[1]||(d[1]=oe(t=>s(e).onSearch(),["enter"]))},{default:n(()=>[i(F,{wrap:"wrap",gap:"large"},{default:n(()=>[(r(!0),p(b,null,C(s(e).params,t=>(r(),y(T,{label:a.$t(t.label)},{default:n(()=>[t.dict&&t.dict.length>0?(r(),p(b,{key:0},[t.dictType==="BUTTON"?(r(),y(R,{key:0,"button-style":"solid",value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C(t.dict,l=>(r(),y(v,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):(r(),y(K,{key:1,class:"select-type",style:N(t.style),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C([...t.dict,{label:"none",value:""}],l=>(r(),y(B,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["style","value","onUpdate:value"]))],64)):(r(),y(M,{key:1,style:N(t.style),placeholder:a.$t("placeholder."+(t.placeholder||"typeDefault")),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},null,8,["style","placeholder","value","onUpdate:value"]))]),_:2},1032,["label"]))),256)),i(T,{label:""},{default:n(()=>[i(j,{type:"primary",onClick:d[0]||(d[0]=t=>s(e).onSearch())},{default:n(()=>[i(s($),{style:{"margin-bottom":"-2px","font-size":"1.3rem"},icon:"ic:outline-manage-search"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{span:6},{default:n(()=>[i(F,{style:{"justify-content":"flex-end"}},{default:n(()=>[U(a.$slots,"customOperation",{},void 0,!0),g("div",{class:"common-tool",onClick:d[2]||(d[2]=t=>o.customColumns=!o.customColumns)},[g("div",_e,[i(s($),{icon:"material-symbols-light:format-list-bulleted-rounded"})]),se(g("div",pe,[i(Y,{style:{"max-width":"300px"},title:"Custom Column"},{default:n(()=>{var t;return[g("div",me,[(r(!0),p(b,null,C((t=s(e))==null?void 0:t.table.columns,(l,w)=>(r(),p("div",{class:"item",onClick:ne(z=>k(l),["stop"])},[i(s($),{style:{"margin-bottom":"-4px","font-size":"1rem","margin-right":"2px"},icon:l.__hide?"zondicons:view-hide":"zondicons:view-show"},null,8,["icon"]),P(" "+S(l.title),1)],8,he))),256))])]}),_:1})],512),[[le,o.customColumns]])])]),_:3})]),_:3})]),_:3})]),g("div",fe,[i(X,{loading:s(e).table.loading,pagination:h.value,scroll:{scrollToFirstRowOnChange:!0,y:((O=s(e).tableStyle)==null?void 0:O.scrollY)||"",x:((E=s(e).tableStyle)==null?void 0:E.scrollX)||""},columns:(V=s(e))==null?void 0:V.table.columns.filter(t=>!t.__hide),"data-source":(D=s(e))==null?void 0:D.result,onChange:f},{bodyCell:n(({text:t,record:l,index:w,column:z})=>[z.key==="idx"?(r(),p("span",ge,S(w+1),1)):re("",!0),t==="skeleton-loading"?(r(),p("span",ye,[i(H,{active:"",size:"small"})])):U(a.$slots,"bodyCell",{key:2,text:t,record:l,index:w,column:z},void 0,!0)]),_:3},8,["loading","pagination","scroll","columns","data-source"])])])}}}),Se=ce(be,[["__scopeId","data-v-e2b01919"]]);class ke{constructor(o,u,e,h,f,k){_(this,"noPaged");_(this,"queryForm");_(this,"params");_(this,"searchApi");_(this,"result");_(this,"handleResult");_(this,"tableStyle");_(this,"table",{columns:[]});_(this,"paged",{curPage:1,pageOffset:"0",total:0,pageSize:10});this.params=o,this.noPaged=f,this.queryForm=A({}),this.table.columns=e,o.forEach(a=>{a.defaultValue&&(this.queryForm[a.param]=a.defaultValue)}),h&&(this.paged={...this.paged,...h}),this.searchApi=u,this.handleResult=k}async onSearch(o){o&&(this.handleResult=o),this.table.loading=!0,setTimeout(()=>{this.table.loading=!1},1e4);const u={...this.queryForm,...this.noPaged?{}:{pageSize:this.paged.pageSize,pageOffset:(this.paged.curPage-1)*this.paged.pageSize}};this.searchApi(u).then(e=>{const{data:{list:h=[],pageInfo:f}}=e||{};this.result=o?o(h):h,this.noPaged||(this.paged.total=(f==null?void 0:f.total)||0)}).catch(e=>{console.error("Error fetching data:",e)}).finally(()=>{this.table.loading=!1})}}export{ke as S,Se as a}; -======== -var G=Object.defineProperty;var Q=(m,o,u)=>o in m?G(m,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[o]=u;var _=(m,o,u)=>(Q(m,typeof o!="symbol"?o+"":o,u),u);import{d as W,v as Z,r as A,k as q,y as ee,z as te,l as I,c as p,j as g,b as i,w as n,n as s,e as c,P as ae,o as r,K as oe,L as b,M as C,J as y,f as P,t as S,af as N,I as $,a9 as U,$ as se,a1 as le,ag as ne,T as re,m as ie,_ as ce}from"./index-JtaswhjV.js";const ue={class:"__container_search_table"},de={class:"search-query-container"},_e={class:"custom-column button"},pe={class:"dropdown"},me={class:"body"},he=["onClick"],fe={class:"search-table-container"},ge={key:0},ye={key:1},be=W({__name:"SearchTable",setup(m){Z(a=>({"3d09cf76":s(ae)}));const o=A({customColumns:!1}),{appContext:{config:{globalProperties:u}}}=q(),e=ee(te.SEARCH_DOMAIN);e.table.columns.forEach(a=>{if(a.title){const d=a.title;a.title=I(()=>u.$t(d))}});const h=I(()=>e.noPaged?!1:{pageSize:e.paged.pageSize,current:e.paged.curPage,total:e.paged.total,showTotal:a=>u.$t("searchDomain.total")+": "+a+" "+u.$t("searchDomain.unit")}),f=(a,d,v)=>{e.paged.pageSize=a.pageSize,e.paged.curPage=a.current,e.onSearch()};function k(a){let d=e==null?void 0:e.table.columns.filter(v=>!v.__hide);if(!a.__hide&&d.length<=1){ie.warn("must show at least one column");return}a.__hide=!a.__hide}return(a,d)=>{var O,E,V,D;const v=c("a-radio-button"),R=c("a-radio-group"),B=c("a-select-option"),K=c("a-select"),M=c("a-input"),T=c("a-form-item"),j=c("a-button"),F=c("a-flex"),L=c("a-form"),x=c("a-col"),Y=c("a-card"),J=c("a-row"),H=c("a-skeleton-button"),X=c("a-table");return r(),p("div",ue,[g("div",de,[i(J,null,{default:n(()=>[i(x,{span:18},{default:n(()=>[i(L,{onKeyup:d[1]||(d[1]=oe(t=>s(e).onSearch(),["enter"]))},{default:n(()=>[i(F,{wrap:"wrap",gap:"large"},{default:n(()=>[(r(!0),p(b,null,C(s(e).params,t=>(r(),y(T,{label:a.$t(t.label)},{default:n(()=>[t.dict&&t.dict.length>0?(r(),p(b,{key:0},[t.dictType==="BUTTON"?(r(),y(R,{key:0,"button-style":"solid",value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C(t.dict,l=>(r(),y(v,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):(r(),y(K,{key:1,class:"select-type",style:N(t.style),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),p(b,null,C([...t.dict,{label:"none",value:""}],l=>(r(),y(B,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["style","value","onUpdate:value"]))],64)):(r(),y(M,{key:1,style:N(t.style),placeholder:a.$t("placeholder."+(t.placeholder||"typeDefault")),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},null,8,["style","placeholder","value","onUpdate:value"]))]),_:2},1032,["label"]))),256)),i(T,{label:""},{default:n(()=>[i(j,{type:"primary",onClick:d[0]||(d[0]=t=>s(e).onSearch())},{default:n(()=>[i(s($),{style:{"margin-bottom":"-2px","font-size":"1.3rem"},icon:"ic:outline-manage-search"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{span:6},{default:n(()=>[i(F,{style:{"justify-content":"flex-end"}},{default:n(()=>[U(a.$slots,"customOperation",{},void 0,!0),g("div",{class:"common-tool",onClick:d[2]||(d[2]=t=>o.customColumns=!o.customColumns)},[g("div",_e,[i(s($),{icon:"material-symbols-light:format-list-bulleted-rounded"})]),se(g("div",pe,[i(Y,{style:{"max-width":"300px"},title:"Custom Column"},{default:n(()=>{var t;return[g("div",me,[(r(!0),p(b,null,C((t=s(e))==null?void 0:t.table.columns,(l,w)=>(r(),p("div",{class:"item",onClick:ne(z=>k(l),["stop"])},[i(s($),{style:{"margin-bottom":"-4px","font-size":"1rem","margin-right":"2px"},icon:l.__hide?"zondicons:view-hide":"zondicons:view-show"},null,8,["icon"]),P(" "+S(l.title),1)],8,he))),256))])]}),_:1})],512),[[le,o.customColumns]])])]),_:3})]),_:3})]),_:3})]),g("div",fe,[i(X,{loading:s(e).table.loading,pagination:h.value,scroll:{scrollToFirstRowOnChange:!0,y:((O=s(e).tableStyle)==null?void 0:O.scrollY)||"",x:((E=s(e).tableStyle)==null?void 0:E.scrollX)||""},columns:(V=s(e))==null?void 0:V.table.columns.filter(t=>!t.__hide),"data-source":(D=s(e))==null?void 0:D.result,onChange:f},{bodyCell:n(({text:t,record:l,index:w,column:z})=>[z.key==="idx"?(r(),p("span",ge,S(w+1),1)):re("",!0),t==="skeleton-loading"?(r(),p("span",ye,[i(H,{active:"",size:"small"})])):U(a.$slots,"bodyCell",{key:2,text:t,record:l,index:w,column:z},void 0,!0)]),_:3},8,["loading","pagination","scroll","columns","data-source"])])])}}}),Se=ce(be,[["__scopeId","data-v-e2b01919"]]);class ke{constructor(o,u,e,h,f,k){_(this,"noPaged");_(this,"queryForm");_(this,"params");_(this,"searchApi");_(this,"result");_(this,"handleResult");_(this,"tableStyle");_(this,"table",{columns:[]});_(this,"paged",{curPage:1,pageOffset:"0",total:0,pageSize:10});this.params=o,this.noPaged=f,this.queryForm=A({}),this.table.columns=e,o.forEach(a=>{a.defaultValue&&(this.queryForm[a.param]=a.defaultValue)}),h&&(this.paged={...this.paged,...h}),this.searchApi=u,this.handleResult=k}async onSearch(o){o&&(this.handleResult=o),this.table.loading=!0,setTimeout(()=>{this.table.loading=!1},1e4);const u={...this.queryForm,...this.noPaged?{}:{pageSize:this.paged.pageSize,pageOffset:(this.paged.curPage-1)*this.paged.pageSize}};this.searchApi(u).then(e=>{const{data:{list:h=[],pageInfo:f}}=e||{};this.result=o?o(h):h,this.noPaged||(this.paged.total=(f==null?void 0:f.total)||0)}).catch(e=>{console.error("Error fetching data:",e)}).finally(()=>{this.table.loading=!1})}}export{ke as S,Se as a}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/SearchUtil-euy68KhE.js diff --git a/app/dubbo-ui/dist/admin/assets/SearchUtil-Fi_1zs66.css b/app/dubbo-ui/dist/admin/assets/SearchUtil-Fi_1zs66.css deleted file mode 100644 index 99677997a..000000000 --- a/app/dubbo-ui/dist/admin/assets/SearchUtil-Fi_1zs66.css +++ /dev/null @@ -1 +0,0 @@ -.__container_search_table .search-query-container[data-v-e2b01919]{border-radius:10px 10px 0 0;border-bottom:1px solid rgba(220,219,219,.29);background:#fafafa;padding:20px 20px 0}.__container_search_table .select-type[data-v-e2b01919]{width:200px}.__container_search_table[data-v-e2b01919] .ant-pagination{padding:0 10px 20px 0}.__container_search_table[data-v-e2b01919] .ant-spin-container{background:#fafafa}.__container_search_table .common-tool[data-v-e2b01919]{margin-top:5px;width:100px;cursor:pointer;position:relative}.__container_search_table .common-tool .button[data-v-e2b01919]{vertical-align:center;line-height:24px;font-size:24px;float:right}.__container_search_table .common-tool .button[data-v-e2b01919]:hover{color:var(--3d09cf76)}.__container_search_table .common-tool .button svg[data-v-e2b01919]{margin-left:10px}.__container_search_table .common-tool .dropdown[data-v-e2b01919]{top:40px;right:-40px;position:absolute;height:auto;z-index:1000}.__container_search_table .common-tool .dropdown .body[data-v-e2b01919]{max-height:200px;overflow:auto}.__container_search_table .common-tool .dropdown .item[data-v-e2b01919]{line-height:30px}.__container_search_table .common-tool .dropdown .item[data-v-e2b01919]:hover{color:var(--3d09cf76)} diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-0MdW80fM.css b/app/dubbo-ui/dist/admin/assets/YAMLView-0MdW80fM.css deleted file mode 100644 index d3bdec974..000000000 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-0MdW80fM.css +++ /dev/null @@ -1 +0,0 @@ -.editorBox[data-v-b4beb481]{border-radius:.3rem;overflow:hidden;width:100%}.sliderBox[data-v-b4beb481]{margin-left:5px;max-height:530px;overflow:auto}[data-v-b4beb481] .left.ant-col,[data-v-b4beb481] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-UuHbt3WX.css b/app/dubbo-ui/dist/admin/assets/YAMLView-UuHbt3WX.css deleted file mode 100644 index 13521a165..000000000 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-UuHbt3WX.css +++ /dev/null @@ -1 +0,0 @@ -.editorBox[data-v-a343bf4a]{border-radius:.3rem;overflow:hidden;width:100%}.sliderBox[data-v-a343bf4a]{margin-left:5px;max-height:530px;overflow:auto}[data-v-a343bf4a] .left.ant-col,[data-v-a343bf4a] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js b/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js deleted file mode 100644 index 1fe921d58..000000000 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js +++ /dev/null @@ -1,14 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/YAMLView-l1kqynjo.js -import{y as k,_ as w}from"./js-yaml-A63HP8_m.js";import{e as T}from"./traffic-nmA_BhEL.js";import{d as B,a as b,B as s,D as C,J as y,w as e,e as n,o as u,b as a,j as _,c as A,M as I,f as v,L,T as M,p as N,h as D,_ as R}from"./index-rt1yTeew.js";import{H as Y}from"./request-vlI2kaaR.js";const x=o=>(N("data-v-cdabac6c"),o=o(),D(),o),j={class:"editorBox"},E=x(()=>_("p",null,"修改时间: 2024/3/20 15:20:31",-1)),H=x(()=>_("p",null,"版本号: xo842xqpx834",-1)),P=B({__name:"YAMLView",setup(o){const h=b(),g=s(!0),l=s(!1),p=s(8),i=s(`configVersion: v3.0 -======== -import{y as k,_ as w}from"./js-yaml-F_PXjql-.js";import{e as T}from"./traffic-BsDR0F4K.js";import{d as B,a as b,B as s,D as C,J as y,w as e,e as n,o as u,b as a,j as _,c as A,M as I,f as v,L,T as M,p as N,h as D,_ as R}from"./index-JtaswhjV.js";import{H as Y}from"./request--dYXBGM5.js";const x=o=>(N("data-v-cdabac6c"),o=o(),D(),o),j={class:"editorBox"},E=x(()=>_("p",null,"修改时间: 2024/3/20 15:20:31",-1)),H=x(()=>_("p",null,"版本号: xo842xqpx834",-1)),P=B({__name:"YAMLView",setup(o){const h=b(),g=s(!0),l=s(!1),p=s(8),i=s(`configVersion: v3.0 ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/YAMLView-ket2Aor6.js -force: true -enabled: true -key: shop-detail -tags: -  - name: gray -    match: -      - key: env -        value: -          exact: gray`),V=async()=>{var c;const t=await T((c=h.params)==null?void 0:c.ruleName);t.code===Y.SUCCESS&&(i.value=k.dump(t==null?void 0:t.data))};return C(()=>{V()}),(t,c)=>{const d=n("a-flex"),m=n("a-col"),f=n("a-button"),r=n("a-card");return u(),y(r,null,{default:e(()=>[a(d,{style:{width:"100%"}},{default:e(()=>[a(m,{span:l.value?24-p.value:24,class:"left"},{default:e(()=>[a(d,{vertical:"",align:"end"},{default:e(()=>[_("div",j,[a(w,{modelValue:i.value,theme:"vs-dark",height:500,language:"yaml",readonly:g.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(m,{span:l.value?p.value:0,class:"right"},{default:e(()=>[l.value?(u(),y(r,{key:0,class:"sliderBox"},{default:e(()=>[(u(),A(L,null,I(2,S=>a(r,{key:S},{default:e(()=>[E,H,a(d,{justify:"flex-end"},{default:e(()=>[a(f,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[v("查看")]),_:1}),a(f,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[v("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):M("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),O=R(P,[["__scopeId","data-v-cdabac6c"]]);export{O as default}; diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-nAITJpmO.js b/app/dubbo-ui/dist/admin/assets/YAMLView-nAITJpmO.js deleted file mode 100644 index 2f137d3c6..000000000 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-nAITJpmO.js +++ /dev/null @@ -1 +0,0 @@ -import{y as V,_ as J}from"./js-yaml-A63HP8_m.js";import{d as R,a as P,B as i,y as U,z as q,D as z,l as K,r as N,u as $,c as B,b as a,w as e,J as D,T as E,L as S,e as d,o as y,j as k,M as G,f as g,m as v,a4 as H,p as Q,h as W,_ as X}from"./index-rt1yTeew.js";import{k as Z,l as aa,m as ea}from"./traffic-nmA_BhEL.js";import{V as ta}from"./ConfigModel-yjTa7EW2.js";import"./request-vlI2kaaR.js";const b=p=>(Q("data-v-a343bf4a"),p=p(),W(),p),sa={class:"editorBox"},na=b(()=>k("p",null,"修改时间: 2024/3/20 15:20:31",-1)),oa=b(()=>k("p",null,"版本号: xo842xqpx834",-1)),la=R({__name:"YAMLView",setup(p){const m=P(),w=i(m.params.isEdit==="1"),C=i(!1),f=i(!1),I=i(8),c=U(q.TAB_LAYOUT_STATE),r=i(),T=i(),F=i("");z(async()=>{await h()}),K(()=>T.value!==JSON.stringify(r.value));const s=N(new ta);async function h(){var t,_,l;if((t=c.dynamicConfigForm)!=null&&t.data)s.fromData(c.dynamicConfigForm.data);else{if(((_=m.params)==null?void 0:_.pathId)==="_tmp")w.value=!0,s.isAdd=!0;else{console.log("666"),s.isAdd=!1;const u=await Z({name:(l=m.params)==null?void 0:l.pathId});s.fromApiOutput(u.data)}c.dynamicConfigForm=N({data:s})}const n=s.toApiInput();F.value=n.ruleName,n.ruleName=void 0;const o=V.dump(n);T.value=JSON.stringify(o),r.value=o}async function O(){f.value=!0;try{c.dynamicConfigForm.data=null,await h(),v.success("config reset success")}finally{f.value=!1}}const L=$();async function M(){var o;f.value=!0;let n=V.load(r.value);try{if(s.isAdd===!0){aa({name:s.basicInfo.key+".configurators"},n).then(t=>{c.dynamicConfigForm.data=null,H(()=>{L.replace("/traffic/dynamicConfig"),v.success("config add success")})}).catch(t=>{v.error("添加失败: "+t.msg)});return}await ea({name:(o=m.params)==null?void 0:o.pathId},n),v.success("config save success"),await new Promise(t=>setTimeout(t,2e3)),c.dynamicConfigForm.data=null,await h()}finally{f.value=!1}}function j(n){s.fromApiOutput(V.load(r.value))}return(n,o)=>{const t=d("a-col"),_=d("a-row"),l=d("a-flex"),u=d("a-button"),x=d("a-card"),Y=d("a-spin");return y(),B(S,null,[a(x,null,{default:e(()=>[a(Y,{spinning:f.value},{default:e(()=>[a(l,{style:{width:"100%"}},{default:e(()=>[a(t,{span:C.value?24-I.value:24,class:"left"},{default:e(()=>[a(l,{vertical:"",align:"end"},{default:e(()=>[a(_,{style:{width:"100%"},justify:"space-between"},{default:e(()=>[a(t,{span:12}),a(t,{span:12})]),_:1}),k("div",sa,[a(J,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=A=>r.value=A),onChange:j,theme:"vs-dark",height:"calc(100vh - 450px)",language:"yaml",readonly:!w.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(t,{span:C.value?I.value:0,class:"right"},{default:e(()=>[C.value?(y(),D(x,{key:0,class:"sliderBox"},{default:e(()=>[(y(),B(S,null,G(2,A=>a(x,{key:A},{default:e(()=>[na,oa,a(l,{justify:"flex-end"},{default:e(()=>[a(u,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[g("查看")]),_:1}),a(u,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[g("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):E("",!0)]),_:1},8,["span"])]),_:1})]),_:1},8,["spinning"])]),_:1}),w.value?(y(),D(l,{key:0,style:{"margin-top":"30px"}},{default:e(()=>[a(u,{type:"primary",onClick:M},{default:e(()=>[g("保存")]),_:1}),a(u,{style:{"margin-left":"30px"},onClick:O},{default:e(()=>[g("重置")]),_:1})]),_:1})):E("",!0)],64)}}}),fa=X(la,[["__scopeId","data-v-a343bf4a"]]);export{fa as default}; diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js b/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js deleted file mode 100644 index c20a35555..000000000 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/YAMLView-qj8iQria.js -import{y as S,_ as w}from"./js-yaml-A63HP8_m.js";import{g as B}from"./traffic-nmA_BhEL.js";import{d as C,a as k,B as s,D as T,J as x,w as e,e as n,o as p,b as a,j as i,c as A,M as I,f as y,L,T as M,p as N,h as R,_ as D}from"./index-rt1yTeew.js";import{H as U}from"./request-vlI2kaaR.js";const h=l=>(N("data-v-b4beb481"),l=l(),R(),l),Y={class:"editorBox"},j=h(()=>i("p",null,"修改时间: 2024/3/20 15:20:31",-1)),E=h(()=>i("p",null,"版本号: xo842xqpx834",-1)),H=C({__name:"YAMLView",setup(l){const g=k(),V=s(!0),d=s(!1),m=s(8),u=s("");async function b(){var o;let t=await B((o=g.params)==null?void 0:o.ruleName);(t==null?void 0:t.code)===U.SUCCESS&&t.data&&(u.value=S.dump(t==null?void 0:t.data))}return T(()=>{b()}),(t,o)=>{const c=n("a-flex"),f=n("a-col"),v=n("a-button"),r=n("a-card");return p(),x(r,null,{default:e(()=>[a(c,{style:{width:"100%"}},{default:e(()=>[a(f,{span:d.value?24-m.value:24,class:"left"},{default:e(()=>[a(c,{vertical:"",align:"end"},{default:e(()=>[i("div",Y,[a(w,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=_=>u.value=_),theme:"vs-dark",height:500,language:"yaml",readonly:V.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(f,{span:d.value?m.value:0,class:"right"},{default:e(()=>[d.value?(p(),x(r,{key:0,class:"sliderBox"},{default:e(()=>[(p(),A(L,null,I(2,_=>a(r,{key:_},{default:e(()=>[j,E,a(c,{justify:"flex-end"},{default:e(()=>[a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("查看")]),_:1}),a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):M("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),O=D(H,[["__scopeId","data-v-b4beb481"]]);export{O as default}; -======== -import{y as S,_ as w}from"./js-yaml-F_PXjql-.js";import{g as B}from"./traffic-BsDR0F4K.js";import{d as C,a as k,B as s,D as T,J as x,w as e,e as n,o as p,b as a,j as i,c as A,M as I,f as y,L,T as M,p as N,h as R,_ as D}from"./index-JtaswhjV.js";import{H as U}from"./request--dYXBGM5.js";const h=l=>(N("data-v-b4beb481"),l=l(),R(),l),Y={class:"editorBox"},j=h(()=>i("p",null,"修改时间: 2024/3/20 15:20:31",-1)),E=h(()=>i("p",null,"版本号: xo842xqpx834",-1)),H=C({__name:"YAMLView",setup(l){const g=k(),V=s(!0),d=s(!1),m=s(8),u=s("");async function b(){var o;let t=await B((o=g.params)==null?void 0:o.ruleName);(t==null?void 0:t.code)===U.SUCCESS&&t.data&&(u.value=S.dump(t==null?void 0:t.data))}return T(()=>{b()}),(t,o)=>{const c=n("a-flex"),f=n("a-col"),v=n("a-button"),r=n("a-card");return p(),x(r,null,{default:e(()=>[a(c,{style:{width:"100%"}},{default:e(()=>[a(f,{span:d.value?24-m.value:24,class:"left"},{default:e(()=>[a(c,{vertical:"",align:"end"},{default:e(()=>[i("div",Y,[a(w,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=_=>u.value=_),theme:"vs-dark",height:500,language:"yaml",readonly:V.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(f,{span:d.value?m.value:0,class:"right"},{default:e(()=>[d.value?(p(),x(r,{key:0,class:"sliderBox"},{default:e(()=>[(p(),A(L,null,I(2,_=>a(r,{key:_},{default:e(()=>[j,E,a(c,{justify:"flex-end"},{default:e(()=>[a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("查看")]),_:1}),a(v,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[y("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):M("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),O=D(H,[["__scopeId","data-v-b4beb481"]]);export{O as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/YAMLView-Eh-9j974.js diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-zY3xQ2jU.css b/app/dubbo-ui/dist/admin/assets/YAMLView-zY3xQ2jU.css deleted file mode 100644 index 6039475fc..000000000 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-zY3xQ2jU.css +++ /dev/null @@ -1 +0,0 @@ -.editorBox[data-v-cdabac6c]{border-radius:.3rem;overflow:hidden;width:100%}.sliderBox[data-v-cdabac6c]{margin-left:5px;max-height:530px;overflow:auto}[data-v-cdabac6c] .left.ant-col,[data-v-cdabac6c] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/abap-ze8r6a4j.js b/app/dubbo-ui/dist/admin/assets/abap-ze8r6a4j.js deleted file mode 100644 index b281b2a51..000000000 --- a/app/dubbo-ui/dist/admin/assets/abap-ze8r6a4j.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},t={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/addByFormView-glwcLbZU.css b/app/dubbo-ui/dist/admin/assets/addByFormView-glwcLbZU.css deleted file mode 100644 index 6827fb0ef..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByFormView-glwcLbZU.css +++ /dev/null @@ -1 +0,0 @@ -.__container_routingRule_detail[data-v-27fcfc73]{overflow:auto;max-height:calc(100vh - 200px)}.__container_routingRule_detail[data-v-27fcfc73]::-webkit-scrollbar{display:none}.__container_routingRule_detail .action-icon[data-v-27fcfc73]{font-size:17px;margin-left:10px;cursor:pointer}.__container_routingRule_detail .match-condition-type-label[data-v-27fcfc73]{min-width:100px;text-align:center}.__container_routingRule_detail .bottom-action-footer[data-v-27fcfc73]{width:100%;background-color:#fff;height:50px;display:flex;align-items:center;padding-left:20px;box-shadow:0 -2px 4px #0000001a}.__container_routingRule_detail .sliderBox[data-v-27fcfc73]{margin-left:5px;max-height:530px;overflow:auto}.__container_routingRule_detail[data-v-27fcfc73] .left.ant-col,.__container_routingRule_detail[data-v-27fcfc73] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/addByFormView-n4jb5xo4.js b/app/dubbo-ui/dist/admin/assets/addByFormView-n4jb5xo4.js deleted file mode 100644 index 7bbc4806c..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByFormView-n4jb5xo4.js +++ /dev/null @@ -1 +0,0 @@ -import{u as V}from"./index-nvCr9_iI.js";import{d as q,ab as $,y as z,z as F,D as J,H as A,k as Y,u as K,B as x,r as Q,F as G,l as W,c as X,b as e,w as t,e as u,o as h,f as H,t as M,n as l,J as k,ac as Z,ad as ee,T as L,j as D,m as te,_ as ne}from"./index-rt1yTeew.js";import{a as oe}from"./traffic-nmA_BhEL.js";import{H as le}from"./request-vlI2kaaR.js";import{u as ae,R as ie}from"./RoutingRuleList-hVzUyucI.js";const ue={class:"__container_routingRule_detail"},re=["innerHTML"],se=["innerHTML"],ce=["innerHTML"],de=["innerHTML"],fe=q({__name:"addByFormView",setup(pe){const{t:a}=$(),r=z(F.TAB_LAYOUT_STATE),O=ae(),{routeList:T,mergeConditions:S,parseConditionMatchStringToArray:U,parseConditionToStringToArray:B}=O;J(()=>{if(!A.isNil(r.conditionRule)){const{enabled:c=!0,key:o,scope:d,runtime:p=!0,conditions:m}=r.conditionRule;n.enable=c,n.objectOfAction=o,n.ruleGranularity=d,n.runtime=p,m&&m.length&&m.forEach((s,f)=>{var y,w;const _=s.split(" => "),b=(y=_[0])==null?void 0:y.trim(),v=(w=_[1])==null?void 0:w.trim();T.value[f].requestMatch=U(b,f),T.value[f].routeDistribute=B(v,f)})}if(!A.isNil(r.addConditionRuleSate)){const{version:c,group:o}=r.addConditionRuleSate;n.version=c,n.group=o}}),Y(),K();const g=x(!1),j=x(8);V().toClipboard;const n=Q({version:"",ruleGranularity:"",objectOfAction:"",enable:!0,faultTolerantProtection:!1,runtime:!0,priority:null,group:""});G(n,c=>{const{ruleGranularity:o,enable:d=!0,runtime:p=!0,objectOfAction:m}=c;r.conditionRule={...r.conditionRule,enabled:d,key:m,runtime:p,scope:o},r.addConditionRuleSate={version:c.version,group:c.group}},{immediate:!!A.isNil(r.conditionRule)});const E=W(()=>[{label:a("routingRuleDomain.application"),value:"application"},{label:a("routingRuleDomain.service"),value:"service"}]);G(T,c=>{r&&r.conditionRule&&(r.conditionRule={...r.conditionRule,conditions:S()})},{deep:!0});const I=async()=>{const{version:c,ruleGranularity:o,objectOfAction:d,enable:p,faultTolerantProtection:m,runtime:s,group:f}=n;let _=o==="service"?`${d}:${c}:${f}`:`${d}`;const b={configVersion:"v3.0",scope:o,key:d,enabled:p,force:m,runtime:s,conditions:S()},v=await oe(_,b);(v==null?void 0:v.code)===le.SUCCESS&&(te.success("add success"),await new Promise(y=>setTimeout(y,2e3)))};return(c,o)=>{const d=u("a-button"),p=u("a-flex"),m=u("a-select"),s=u("a-form-item"),f=u("a-input"),_=u("a-switch"),b=u("a-col"),v=u("a-input-number"),y=u("a-row"),w=u("a-form"),R=u("a-card"),N=u("a-space"),C=u("a-descriptions-item"),P=u("a-descriptions");return h(),X("div",ue,[e(p,{style:{width:"100%"}},{default:t(()=>[e(b,{span:g.value?24-j.value:24,class:"left"},{default:t(()=>[e(R,null,{default:t(()=>[e(N,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:t(()=>[e(y,null,{default:t(()=>[e(p,{justify:"end",style:{width:"100%"}},{default:t(()=>[e(d,{type:"text",style:{color:"#0a90d5"},onClick:o[0]||(o[0]=i=>g.value=!g.value)},{default:t(()=>[H(M(l(a)("routingRuleDomain.fieldDesc"))+" ",1),g.value?(h(),k(l(ee),{key:1})):(h(),k(l(Z),{key:0}))]),_:1})]),_:1}),e(R,{title:l(a)("basicInfo"),style:{width:"100%"},class:"_detail"},{default:t(()=>[e(w,{layout:"horizontal"},{default:t(()=>[e(y,{style:{width:"100%"}},{default:t(()=>[e(b,{span:12},{default:t(()=>[e(s,{label:l(a)("routingRuleDomain.ruleGranularity"),required:""},{default:t(()=>[e(m,{value:n.ruleGranularity,"onUpdate:value":o[1]||(o[1]=i=>n.ruleGranularity=i),style:{width:"120px"},options:E.value},null,8,["value","options"])]),_:1},8,["label"]),n.ruleGranularity==="service"?(h(),k(s,{key:0,label:l(a)("routingRuleDomain.version"),required:""},{default:t(()=>[e(f,{value:n.version,"onUpdate:value":o[2]||(o[2]=i=>n.version=i),style:{width:"300px"}},null,8,["value"])]),_:1},8,["label"])):L("",!0),e(s,{label:l(a)("routingRuleDomain.force")},{default:t(()=>[e(_,{checked:n.faultTolerantProtection,"onUpdate:checked":o[3]||(o[3]=i=>n.faultTolerantProtection=i),"checked-children":l(a)("flowControlDomain.on"),"un-checked-children":l(a)("flowControlDomain.off")},null,8,["checked","checked-children","un-checked-children"])]),_:1},8,["label"]),e(s,{label:l(a)("routingRuleDomain.runtime")},{default:t(()=>[e(_,{checked:n.runtime,"onUpdate:checked":o[4]||(o[4]=i=>n.runtime=i),"checked-children":l(a)("flowControlDomain.on"),"un-checked-children":l(a)("flowControlDomain.off")},null,8,["checked","checked-children","un-checked-children"])]),_:1},8,["label"])]),_:1}),e(b,{span:12},{default:t(()=>[e(s,{label:l(a)("routingRuleDomain.objectOfAction"),required:""},{default:t(()=>[e(f,{value:n.objectOfAction,"onUpdate:value":o[5]||(o[5]=i=>n.objectOfAction=i),style:{width:"300px"}},null,8,["value"])]),_:1},8,["label"]),n.ruleGranularity==="service"?(h(),k(s,{key:0,label:l(a)("routingRuleDomain.group"),required:""},{default:t(()=>[e(f,{value:n.group,"onUpdate:value":o[6]||(o[6]=i=>n.group=i),style:{width:"300px"}},null,8,["value"])]),_:1},8,["label"])):L("",!0),e(s,{label:l(a)("routingRuleDomain.enabled")},{default:t(()=>[e(_,{checked:n.enable,"onUpdate:checked":o[7]||(o[7]=i=>n.enable=i),"checked-children":l(a)("flowControlDomain.on"),"un-checked-children":l(a)("flowControlDomain.off")},null,8,["checked","checked-children","un-checked-children"])]),_:1},8,["label"]),e(s,{label:l(a)("routingRuleDomain.priority")},{default:t(()=>[e(v,{value:n.priority,"onUpdate:value":o[8]||(o[8]=i=>n.priority=i),min:"1"},null,8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1},8,["title"])]),_:1}),e(R,{title:l(a)("routingRuleDomain.routeList"),style:{width:"100%"},class:"_detail"},{default:t(()=>[e(ie,{routeList:l(T),baseInfo:n,routingRuleLogic:l(O)},null,8,["routeList","baseInfo","routingRuleLogic"])]),_:1},8,["title"])]),_:1})]),_:1})]),_:1},8,["span"]),e(b,{span:g.value?j.value:0,class:"right"},{default:t(()=>[g.value?(h(),k(R,{key:0,class:"sliderBox"},{default:t(()=>[D("div",null,[e(P,{title:l(a)("routingRuleDomain.fieldDesc"),column:1},{default:t(()=>[e(C,{label:"key"},{default:t(()=>[D("span",{innerHTML:l(a)("routingRuleDomain.desc.objectOfAction")},null,8,re)]),_:1}),e(C,{label:"scope"},{default:t(()=>[D("span",{innerHTML:l(a)("routingRuleDomain.desc.ruleGranularity")},null,8,se)]),_:1}),e(C,{label:"force"},{default:t(()=>[D("span",{innerHTML:l(a)("routingRuleDomain.desc.force")},null,8,ce)]),_:1}),e(C,{label:"runtime"},{default:t(()=>[D("span",{innerHTML:l(a)("routingRuleDomain.desc.runtime")},null,8,de)]),_:1})]),_:1},8,["title"])])]),_:1})):L("",!0)]),_:1},8,["span"])]),_:1}),e(R,{class:"footer"},{default:t(()=>[e(p,null,{default:t(()=>[e(d,{type:"primary",onClick:I},{default:t(()=>[H(M(l(a)("confirm")),1)]),_:1})]),_:1})]),_:1})])}}}),ge=ne(fe,[["__scopeId","data-v-27fcfc73"]]);export{ge as default}; diff --git a/app/dubbo-ui/dist/admin/assets/addByFormView-rbd9XAeQ.js b/app/dubbo-ui/dist/admin/assets/addByFormView-rbd9XAeQ.js deleted file mode 100644 index 689eff77f..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByFormView-rbd9XAeQ.js +++ /dev/null @@ -1 +0,0 @@ -import{u as ce}from"./index-nvCr9_iI.js";import{d as ue,y as de,z as re,D as pe,H as V,k as _e,a as fe,B as O,u as ye,r as ve,F as H,c as J,b as e,w as a,e as i,o as k,f as r,J as g,n as A,ac as he,ad as be,L as me,M as ke,j as x,t as L,I as z,T as P,p as ge,h as xe,_ as we}from"./index-rt1yTeew.js";import{f as Ce}from"./traffic-nmA_BhEL.js";import{H as $e}from"./request-vlI2kaaR.js";const R=E=>(ge("data-v-e40a8dd3"),E=E(),xe(),E),Te={class:"__container_tagRule_detail"},Ue={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Oe=R(()=>x("br",null,null,-1)),Se=R(()=>x("br",null,null,-1)),Ne=R(()=>x("br",null,null,-1)),Re=R(()=>x("br",null,null,-1)),Ke=R(()=>x("br",null,null,-1)),je=R(()=>x("br",null,null,-1)),Ae={class:"bottom-action-footer"},Ee=ue({__name:"addByFormView",setup(E){const w=de(re.TAB_LAYOUT_STATE);pe(()=>{if(!V.isNil(w.tagRule)){const{enabled:t=!0,key:l,scope:u,runtime:p=!0,tags:n}=w.tagRule;c.enable=t,c.objectOfAction=l,c.ruleGranularity=u,c.runtime=p,n&&n.length&&n.forEach((h,d)=>{m.value.push({tagName:h.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:_}=h;let s=[];_.forEach((y,f)=>{s.push({myKey:y.key,condition:Object.keys(y.value)[0],value:y.value[Object.keys(y.value)[0]]})}),m.value[d]&&m.value[d].scope&&(m.value[d].scope.labels=s)})}}),_e(),fe();const S=O(!1),q=O(8);ce().toClipboard;const M=ye(),F=(t,l)=>{var n,h,d,_;let u=`对于应用 ${l||"未指定"},将满足 `;const p=[];if(((n=t.scope)==null?void 0:n.type)==="labels"&&((h=t.scope.labels)==null?void 0:h.length)>0)t.scope.labels.forEach(s=>{var $,v;let y="";if(s.myKey==="method")y="请求方法";else if(($=s.myKey)!=null&&$.startsWith("args[")){const K=(v=s.myKey.match(/\[(\d+)\]/))==null?void 0:v[1];K!==void 0?y=`第 ${parseInt(K)+1} 个参数`:y=`标签 ${s.myKey||"未指定"}`}else y=`标签 ${s.myKey||"未指定"}`;let f="";const b=s.value||"未指定";switch(s.condition){case"exact":f=`exact ${b}`;break;case"regex":f=`regex ${b}`;break;case"prefix":f=`prefix ${b}`;break;case"noempty":f="noempty";break;case"empty":f="empty";break;case"wildcard":f=`wildcard ${b}`;break;case"!=":f=`!= ${b}`;break;default:f=`${s.condition||"未知关系"} ${b}`}s.condition!=="empty"&&s.condition!=="noempty"&&!s.value?p.push(`${y} 未填写`):p.push(`${y} ${f}`)});else if(((d=t.scope)==null?void 0:d.type)==="addresses"&&((_=t.scope.addresses)!=null&&_.addressesStr)){const s=t.scope.addresses.condition==="="?"等于":"不等于";p.push(`地址 ${s} [${t.scope.addresses.addressesStr}]`)}return p.length===0?u+="任意请求":u+=p.join(" 且 "),u+=` 的实例,打上 ${t.tagName||"未指定"} 标签,划入 ${t.tagName||"未指定"} 的隔离环境`,u},c=ve({ruleGranularity:"application",objectOfAction:"",enable:!0,faultTolerantProtection:!0,runtime:!0,priority:1,configVersion:"v3.0"});H(c,t=>{const{enable:l,objectOfAction:u,runtime:p,ruleGranularity:n}=t;w.tagRule={...w.tagRule,enabled:l,key:u,runtime:p,scope:n}},{immediate:!!V.isNil(w.tagRule)});const Y=O([{label:"labels",value:"labels"}]),W=O([{label:"exact",value:"exact"},{label:"regex",value:"regex"},{label:"prefix",value:"prefix"},{label:"noempty",value:"noempty"},{label:"empty",value:"empty"},{label:"wildcard",value:"wildcard"}]),Q=O([{label:"=",value:"="},{label:"!=",value:"!="}]),X=O([{title:"键",dataIndex:"myKey",key:"myKey"},{title:"关系",dataIndex:"condition",key:"condition"},{title:"值",dataIndex:"value",key:"value"},{title:"操作",dataIndex:"operation",key:"operation"}]),m=O([]);H(m,t=>{console.log(t);const l=[];t.forEach(u=>{const{tagName:p,scope:n}=u,h=n.labels,d={name:p,match:[]};h&&h.length>0&&h.forEach(_=>{d.match.push({key:_.myKey,value:{[_.condition]:_.value}})}),l.push(d)}),w.tagRule={...w.tagRule,tags:l}},{deep:!0,immediate:!!V.isNil(w.tagRule)});const Z=(t,l)=>{if(m.value[t].scope.labels.length===1){m.value[t].scope.type="addresses";return}m.value[t].scope.labels.splice(l,1)},I=t=>{m.value[t].scope.labels.push({myKey:"",condition:"exact",value:""})},ee=()=>{m.value.push({tagName:"",scope:{type:"labels",labels:[{myKey:"",condition:"",value:""}],addresses:{condition:"",addressesStr:""}}})},ae=t=>{m.value.splice(t,1)},te=async()=>{const{ruleGranularity:t,objectOfAction:l,enable:u,faultTolerantProtection:p,runtime:n,priority:h,configVersion:d}=c,_={configVersion:d,scope:t,key:l,enabled:u,runtime:n,tags:[]};m.value.forEach((f,b)=>{const $={name:f.tagName,match:[]};f.scope.labels.forEach((v,K)=>{const B={key:v.myKey,value:{}};B.value[v.condition]=v.value,$.match.push(B)}),_.tags.push($)});let s="";t=="application"?s=`${l}.tag-router`:s=`${l}:${d}.tag-router`,(await Ce(s,_)).code===$e.SUCCESS&&M.push("/traffic/tagRule")};return(t,l)=>{const u=i("a-button"),p=i("a-flex"),n=i("a-form-item"),h=i("a-switch"),d=i("a-col"),_=i("a-input"),s=i("a-input-number"),y=i("a-row"),f=i("a-form"),b=i("a-card"),$=i("a-tooltip"),v=i("a-space"),K=i("a-radio-group"),B=i("a-tag"),G=i("a-select"),le=i("a-table"),oe=i("a-textarea"),D=i("a-descriptions-item"),ne=i("a-descriptions"),se=i("a-affix");return k(),J("div",Te,[e(p,{style:{width:"100%"}},{default:a(()=>[e(d,{span:S.value?24-q.value:24,class:"left"},{default:a(()=>[e(b,null,{default:a(()=>[e(v,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:a(()=>[e(y,null,{default:a(()=>[e(p,{justify:"end",style:{width:"100%"}},{default:a(()=>[e(u,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=o=>S.value=!S.value)},{default:a(()=>[r(" 字段说明 "),S.value?(k(),g(A(be),{key:1})):(k(),g(A(he),{key:0}))]),_:1})]),_:1}),e(b,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:a(()=>[e(f,{layout:"horizontal"},{default:a(()=>[e(y,{style:{width:"100%"}},{default:a(()=>[e(d,{span:12},{default:a(()=>[e(n,{label:"规则粒度",required:""},{default:a(()=>[r(" 应用")]),_:1}),e(n,{label:"容错保护"},{default:a(()=>[e(h,{checked:c.faultTolerantProtection,"onUpdate:checked":l[1]||(l[1]=o=>c.faultTolerantProtection=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(n,{label:"运行时生效"},{default:a(()=>[e(h,{checked:c.runtime,"onUpdate:checked":l[2]||(l[2]=o=>c.runtime=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(d,{span:12},{default:a(()=>[e(n,{label:"作用对象",required:""},{default:a(()=>[e(_,{value:c.objectOfAction,"onUpdate:value":l[3]||(l[3]=o=>c.objectOfAction=o),style:{width:"200px"}},null,8,["value"])]),_:1}),e(n,{label:"立即启用"},{default:a(()=>[e(h,{checked:c.enable,"onUpdate:checked":l[4]||(l[4]=o=>c.enable=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(n,{label:"优先级"},{default:a(()=>[e(s,{min:"1",value:c.priority,"onUpdate:value":l[5]||(l[5]=o=>c.priority=o)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(b,{title:"标签列表",style:{width:"100%"},class:"_detail"},{default:a(()=>[(k(!0),J(me,null,ke(m.value,(o,j)=>(k(),g(b,{key:j},{title:a(()=>[e(v,{align:"center"},{default:a(()=>[x("div",null,"路由【"+L(j+1)+"】",1),e($,null,{title:a(()=>[r(L(F(o,c.objectOfAction)),1)]),default:a(()=>[x("div",Ue,L(F(o,c.objectOfAction)),1)]),_:2},1024)]),_:2},1024)]),default:a(()=>[e(f,{layout:"horizontal"},{default:a(()=>[e(v,{style:{width:"100%"},direction:"vertical",size:"large"},{default:a(()=>[e(p,{justify:"end"},{default:a(()=>[e(A(z),{onClick:T=>ae(j),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),e(n,{label:"标签名",required:""},{default:a(()=>[e(_,{placeholder:"隔离环境名",value:o.tagName,"onUpdate:value":T=>o.tagName=T},null,8,["value","onUpdate:value"])]),_:2},1024),e(n,{label:"作用范围",required:""},{default:a(()=>[e(b,null,{default:a(()=>[e(v,{style:{width:"100%"},direction:"vertical"},{default:a(()=>[e(n,{label:"匹配条件类型"},{default:a(()=>[e(K,{value:o.scope.type,"onUpdate:value":T=>o.scope.type=T,options:Y.value},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(v,{align:"start",style:{width:"100%"},direction:"horizontal"},{default:a(()=>{var T;return[e(B,{bordered:!1,color:"processing"},{default:a(()=>[r(L(o.scope.type),1)]),_:2},1024),o.scope.type==="labels"?(k(),g(le,{key:0,pagination:!1,columns:X.value,"data-source":(T=o.scope)==null?void 0:T.labels},{bodyCell:a(({column:C,record:N,text:Be,index:ie})=>[C.key==="myKey"?(k(),g(_,{key:0,placeholder:"label key",value:N.myKey,"onUpdate:value":U=>N.myKey=U},null,8,["value","onUpdate:value"])):P("",!0),C.key==="condition"?(k(),g(G,{key:1,value:N.condition,"onUpdate:value":U=>N.condition=U,style:{width:"120px"},options:W.value},null,8,["value","onUpdate:value","options"])):P("",!0),C.key==="value"?(k(),g(_,{key:2,placeholder:"label value",value:N.value,"onUpdate:value":U=>N.value=U},null,8,["value","onUpdate:value"])):C.key==="operation"?(k(),g(v,{key:3,align:"center"},{default:a(()=>[e(A(z),{icon:"tdesign:remove",class:"action-icon",onClick:U=>Z(j,ie)},null,8,["onClick"]),e(A(z),{class:"action-icon",icon:"tdesign:add",onClick:U=>I(j)},null,8,["onClick"])]),_:2},1024)):P("",!0)]),_:2},1032,["columns","data-source"])):(k(),g(v,{key:1,align:"start"},{default:a(()=>[e(G,{style:{width:"120px"},value:o.scope.addresses.condition,"onUpdate:value":C=>o.scope.addresses.condition=C,options:Q.value},null,8,["value","onUpdate:value","options"]),e(oe,{style:{width:"500px"},value:o.scope.addresses.addressesStr,"onUpdate:value":C=>o.scope.addresses.addressesStr=C,placeholder:'地址列表,如有多个用","隔开'},null,8,["value","onUpdate:value"])]),_:2},1024))]}),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(u,{onClick:ee,type:"primary"},{default:a(()=>[r(" 增加标签")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(d,{span:S.value?q.value:0,class:"right"},{default:a(()=>[S.value?(k(),g(b,{key:0,class:"sliderBox"},{default:a(()=>[x("div",null,[e(ne,{title:"字段说明",column:1},{default:a(()=>[e(D,{label:"key"},{default:a(()=>[r(" 作用对象"),Oe,r(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(D,{label:"scope"},{default:a(()=>[r(" 规则粒度"),Se,r(" 可能的值:application, service ")]),_:1}),e(D,{label:"force"},{default:a(()=>[r(" 容错保护"),Ne,r(" 可能的值:true, false"),Re,r(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(D,{label:"runtime"},{default:a(()=>[r(" 运行时生效"),Ke,r(" 可能的值:true, false"),je,r(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):P("",!0)]),_:1},8,["span"])]),_:1}),e(se,{"offset-bottom":10},{default:a(()=>[x("div",Ae,[e(v,{align:"center",size:"large"},{default:a(()=>[e(u,{type:"primary",onClick:te},{default:a(()=>[r(" 确认")]),_:1}),e(u,null,{default:a(()=>[r(" 取消")]),_:1})]),_:1})])]),_:1})])}}}),ze=we(Ee,[["__scopeId","data-v-e40a8dd3"]]);export{ze as default}; diff --git a/app/dubbo-ui/dist/admin/assets/addByFormView-xrHwB0pN.css b/app/dubbo-ui/dist/admin/assets/addByFormView-xrHwB0pN.css deleted file mode 100644 index 2cab39b72..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByFormView-xrHwB0pN.css +++ /dev/null @@ -1 +0,0 @@ -.__container_tagRule_detail .action-icon[data-v-e40a8dd3]{font-size:17px;margin-left:10px;cursor:pointer}.__container_tagRule_detail .match-condition-type-label[data-v-e40a8dd3]{min-width:100px;text-align:center}.__container_tagRule_detail .bottom-action-footer[data-v-e40a8dd3]{width:100%;background-color:#fff;height:50px;display:flex;align-items:center;padding-left:20px;box-shadow:0 -2px 4px #0000001a}.__container_tagRule_detail .sliderBox[data-v-e40a8dd3]{margin-left:5px;max-height:530px;overflow:auto}.__container_tagRule_detail[data-v-e40a8dd3] .left.ant-col,.__container_tagRule_detail[data-v-e40a8dd3] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView-BPKme7-4.css b/app/dubbo-ui/dist/admin/assets/addByYAMLView-BPKme7-4.css deleted file mode 100644 index 9d5250db7..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView-BPKme7-4.css +++ /dev/null @@ -1 +0,0 @@ -.editorBox[data-v-962b6819]{border-radius:.3rem;overflow:hidden;width:100%}.bottom-action-footer[data-v-962b6819]{width:100%;background-color:#fff;height:50px;display:flex;align-items:center;padding-left:20px;box-shadow:0 -2px 4px #0000001a}.sliderBox[data-v-962b6819]{margin-left:5px;max-height:530px;overflow:auto}[data-v-962b6819] .left.ant-col,[data-v-962b6819] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js b/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js deleted file mode 100644 index e87ff8e11..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js +++ /dev/null @@ -1,30 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/addByYAMLView-BmRR26Fc.js -import{y as C,_ as I}from"./js-yaml-A63HP8_m.js";import{d as D,y as $,z as L,u as O,B as h,D as Y,H as x,J as v,w as e,e as s,o as b,b as t,f as a,n as k,ac as M,ad as P,j as o,T as U,m as w,p as H,h as j,_ as z}from"./index-rt1yTeew.js";import{a as J}from"./traffic-nmA_BhEL.js";import{H as K}from"./request-vlI2kaaR.js";const d=p=>(H("data-v-93e60661"),p=p(),j(),p),q={class:"editorBox"},F={class:"bottom-action-footer"},G=d(()=>o("br",null,null,-1)),Q=d(()=>o("br",null,null,-1)),W=d(()=>o("br",null,null,-1)),X=d(()=>o("br",null,null,-1)),Z=d(()=>o("br",null,null,-1)),ee=d(()=>o("br",null,null,-1)),te=D({__name:"addByYAMLView",setup(p){const c=$(L.TAB_LAYOUT_STATE),A=O(),B=h(!1),r=h(!1),R=h(8),i=h(`conditions: -======== -import{y as C,_ as A}from"./js-yaml-F_PXjql-.js";import{d as D,y as $,z as O,u as P,B as h,D as Y,H as k,J as v,w as e,e as s,o as b,b as t,f as a,n as w,aa as L,ab as M,j as o,T as H,m as T,p as J,h as U,_ as j}from"./index-JtaswhjV.js";import{a as z}from"./traffic-BsDR0F4K.js";import{H as K}from"./request--dYXBGM5.js";const c=p=>(J("data-v-06ec3f5e"),p=p(),U(),p),q={class:"editorBox"},F={class:"bottom-action-footer"},G=c(()=>o("br",null,null,-1)),Q=c(()=>o("br",null,null,-1)),W=c(()=>o("br",null,null,-1)),X=c(()=>o("br",null,null,-1)),Z=c(()=>o("br",null,null,-1)),ee=c(()=>o("br",null,null,-1)),te=D({__name:"addByYAMLView",setup(p){const d=$(O.PROVIDE_INJECT_KEY),E=P(),B=h(!1),r=h(!1),R=h(8),i=h(`conditions: ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/addByYAMLView-dNFM9Bbo.js - - from: - match: >- - method=string & arguments[method]=string & - arguments[arguments[method]]=string & - arguments[arguments[arguments[method]]]=string & - arguments[arguments[arguments[arguments[string]]]]!=string - to: - - match: string!=string - weight: 0 - - from: - match: >- - method=string & arguments[method]=string & - arguments[arguments[method]]=string & - arguments[arguments[arguments[string]]]!=string - to: - - match: string!=lggbond - weight: 0 - - match: ss!=ss - weight: 0 -configVersion: v3.1 -enabled: true -force: false -key: org.apache.dubbo.samples.CommentService -runtime: true -scope: service`);Y(()=>{if(x.isNil(c.conditionRule))i.value="";else{const l=c.conditionRule;i.value=C.dump(l)}});const E=l=>{c.conditionRule=C.load(i.value)},N=async()=>{const l=C.load(i.value),{configVersion:_,scope:g,key:u,runtime:S,force:T,conditions:y}=l;let n="";if(u=="application")n=`${u}.condition-router`;else if(x.isNil(c.addConditionRuleSate)){w.error("请先填写版本和分组字段");return}else{const{version:m,group:f}=c.addConditionRuleSate;if(m==""||f==""){w.error("请先填写版本和分组字段");return}n=`${u}:${m}:${f}.condition-router`}l.configVersion="v3.0",(await J(n,l)).code===K.SUCCESS&&A.push("/traffic/routingRule")};return(l,_)=>{const g=s("a-button"),u=s("a-flex"),S=s("a-space"),T=s("a-affix"),y=s("a-col"),n=s("a-descriptions-item"),V=s("a-descriptions"),m=s("a-card");return b(),v(m,null,{default:e(()=>[t(u,{style:{width:"100%"}},{default:e(()=>[t(y,{span:r.value?24-R.value:24,class:"left"},{default:e(()=>[t(u,{vertical:"",align:"end"},{default:e(()=>[t(g,{type:"text",style:{color:"#0a90d5"},onClick:_[0]||(_[0]=f=>r.value=!r.value)},{default:e(()=>[a(" 字段说明 "),r.value?(b(),v(k(P),{key:1})):(b(),v(k(M),{key:0}))]),_:1}),o("div",q,[t(I,{onChange:E,modelValue:i.value,"onUpdate:modelValue":_[1]||(_[1]=f=>i.value=f),theme:"vs-dark",height:500,language:"yaml",readonly:B.value},null,8,["modelValue","readonly"])])]),_:1}),t(T,{"offset-bottom":10},{default:e(()=>[o("div",F,[t(S,{align:"center",size:"large"},{default:e(()=>[t(g,{type:"primary",onClick:N},{default:e(()=>[a(" 确认 ")]),_:1}),t(g,null,{default:e(()=>[a(" 取消 ")]),_:1})]),_:1})])]),_:1})]),_:1},8,["span"]),t(y,{span:r.value?R.value:0,class:"right"},{default:e(()=>[r.value?(b(),v(m,{key:0,class:"sliderBox"},{default:e(()=>[o("div",null,[t(V,{title:"字段说明",column:1},{default:e(()=>[t(n,{label:"key"},{default:e(()=>[a(" 作用对象"),G,a(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),t(n,{label:"scope"},{default:e(()=>[a(" 规则粒度"),Q,a(" 可能的值:application, service ")]),_:1}),t(n,{label:"force"},{default:e(()=>[a(" 容错保护"),W,a(" 可能的值:true, false"),X,a(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),t(n,{label:"runtime"},{default:e(()=>[a(" 运行时生效"),Z,a(" 可能的值:true, false"),ee,a(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):U("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),le=z(te,[["__scopeId","data-v-93e60661"]]);export{le as default}; diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView-QJbvZP1h.css b/app/dubbo-ui/dist/admin/assets/addByYAMLView-QJbvZP1h.css deleted file mode 100644 index 553a07391..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView-QJbvZP1h.css +++ /dev/null @@ -1 +0,0 @@ -.editorBox[data-v-93e60661]{border-radius:.3rem;overflow:hidden;width:100%}.bottom-action-footer[data-v-93e60661]{width:100%;background-color:#fff;height:50px;display:flex;align-items:center;padding-left:20px;box-shadow:0 -2px 4px #0000001a}.sliderBox[data-v-93e60661]{margin-left:5px;max-height:530px;overflow:auto}[data-v-93e60661] .left.ant-col,[data-v-93e60661] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView-UzLeu456.js b/app/dubbo-ui/dist/admin/assets/addByYAMLView-UzLeu456.js deleted file mode 100644 index a5c66b08e..000000000 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView-UzLeu456.js +++ /dev/null @@ -1,10 +0,0 @@ -import{y as g,_ as E}from"./js-yaml-A63HP8_m.js";import{f as I}from"./traffic-nmA_BhEL.js";import{d as N,y as D,z as O,u as L,a as Y,B as p,D as $,H as M,J as m,w as e,e as n,o as v,b as a,f as t,n as A,ac as P,ad as U,j as o,T as j,p as H,h as z,_ as J}from"./index-rt1yTeew.js";import{H as G}from"./request-vlI2kaaR.js";const d=f=>(H("data-v-962b6819"),f=f(),z(),f),K={class:"editorBox"},q={class:"bottom-action-footer"},F=d(()=>o("br",null,null,-1)),Q=d(()=>o("br",null,null,-1)),W=d(()=>o("br",null,null,-1)),X=d(()=>o("br",null,null,-1)),Z=d(()=>o("br",null,null,-1)),ee=d(()=>o("br",null,null,-1)),ae=N({__name:"addByYAMLView",setup(f){const y=D(O.TAB_LAYOUT_STATE),C=L();Y();const S=p(!1),s=p(!1),h=p(8),u=p(`configVersion: v3.0 -force: true -enabled: true -key: shop-detail -tags: -  - name: gray -    match: -      - key: env -        value: -          exact: gray`);$(()=>{if(M.isNil(y.tagRule))u.value="";else{const c=y.tagRule;u.value=g.dump(c)}});const B=c=>{y.tagRule=g.load(u.value)},w=async()=>{const c=g.load(u.value),{configVersion:r,scope:i,key:_,runtime:T,force:x,conditions:b}=c;let l="";i=="application"?l=`${_}.tag-router`:l=`${_}:${r}.tag-router`,(await I(l,c)).code===G.SUCCESS&&C.push("/traffic/tagRule")};return(c,r)=>{const i=n("a-button"),_=n("a-flex"),T=n("a-space"),x=n("a-affix"),b=n("a-col"),l=n("a-descriptions-item"),V=n("a-descriptions"),k=n("a-card");return v(),m(k,null,{default:e(()=>[a(_,{style:{width:"100%"}},{default:e(()=>[a(b,{span:s.value?24-h.value:24,class:"left"},{default:e(()=>[a(_,{vertical:"",align:"end"},{default:e(()=>[a(i,{type:"text",style:{color:"#0a90d5"},onClick:r[0]||(r[0]=R=>s.value=!s.value)},{default:e(()=>[t(" 字段说明 "),s.value?(v(),m(A(U),{key:1})):(v(),m(A(P),{key:0}))]),_:1}),o("div",K,[a(E,{onChange:B,modelValue:u.value,"onUpdate:modelValue":r[1]||(r[1]=R=>u.value=R),theme:"vs-dark",height:500,language:"yaml",readonly:S.value},null,8,["modelValue","readonly"])])]),_:1}),a(x,{"offset-bottom":10},{default:e(()=>[o("div",q,[a(T,{align:"center",size:"large"},{default:e(()=>[a(i,{type:"primary",onClick:w},{default:e(()=>[t(" 确认 ")]),_:1}),a(i,null,{default:e(()=>[t(" 取消 ")]),_:1})]),_:1})])]),_:1})]),_:1},8,["span"]),a(b,{span:s.value?h.value:0,class:"right"},{default:e(()=>[s.value?(v(),m(k,{key:0,class:"sliderBox"},{default:e(()=>[o("div",null,[a(V,{title:"字段说明",column:1},{default:e(()=>[a(l,{label:"key"},{default:e(()=>[t(" 作用对象"),F,t(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),a(l,{label:"scope"},{default:e(()=>[t(" 规则粒度"),Q,t(" 可能的值:application, service ")]),_:1}),a(l,{label:"force"},{default:e(()=>[t(" 容错保护"),W,t(" 可能的值:true, false"),X,t(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),a(l,{label:"runtime"},{default:e(()=>[t(" 运行时生效"),Z,t(" 可能的值:true, false"),ee,t(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):j("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),se=J(ae,[["__scopeId","data-v-962b6819"]]);export{se as default}; diff --git a/app/dubbo-ui/dist/admin/assets/apex-l4wq3GX1.js b/app/dubbo-ui/dist/admin/assets/apex-l4wq3GX1.js deleted file mode 100644 index 5818b396a..000000000 --- a/app/dubbo-ui/dist/admin/assets/apex-l4wq3GX1.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},s=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],o=e=>e.charAt(0).toUpperCase()+e.substr(1),t=[];s.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(o(e))});var i={defaultToken:"",tokenPostfix:".apex",keywords:t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};export{n as conf,i as language}; diff --git a/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js b/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js deleted file mode 100644 index 09edae434..000000000 --- a/app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/app-4lFIb2G-.js -import{r as a}from"./request-vlI2kaaR.js";const r=t=>a({url:"/application/search",method:"get",params:t}),p=t=>a({url:"/application/detail",method:"get",params:t}),i=t=>a({url:"/application/instance/info",method:"get",params:t}),n=t=>a({url:"/application/service/form",method:"get",params:t}),c=t=>a({url:"/application/metric-dashboard",method:"get",params:t}),s=t=>a({url:"/application/trace-dashboard",method:"get",params:t}),l=t=>a({url:"/application/event",method:"get",params:t}),g=t=>a({url:"/application/config/operatorLog",method:"get",params:{appName:t}}),u=(t,o)=>a({url:"/application/config/operatorLog",method:"put",params:{appName:t,operatorLog:o}}),d=t=>a({url:"/application/config/flowWeight",method:"get",params:{appName:t}}),h=(t,o)=>a({url:"/application/config/flowWeight",method:"put",params:{appName:t},data:{flowWeightSets:o}}),m=t=>a({url:"/application/config/gray",method:"get",params:{appName:t}}),f=(t,o)=>a({url:"/application/config/gray",method:"put",params:{appName:t},data:{graySets:o}});export{i as a,n as b,c,s as d,d as e,h as f,p as g,m as h,f as i,g as j,l,r as s,u}; -======== -import{r as a}from"./request--dYXBGM5.js";const r=t=>a({url:"/application/search",method:"get",params:t}),p=t=>a({url:"/application/detail",method:"get",params:t}),i=t=>a({url:"/application/instance/info",method:"get",params:t}),n=t=>a({url:"/application/service/form",method:"get",params:t}),c=t=>a({url:"/application/metric-dashboard",method:"get",params:t}),s=t=>a({url:"/application/trace-dashboard",method:"get",params:t}),l=t=>a({url:"/application/event",method:"get",params:t}),g=t=>a({url:"/application/config/operatorLog",method:"get",params:{appName:t}}),u=(t,o)=>a({url:"/application/config/operatorLog",method:"put",params:{appName:t,operatorLog:o}}),d=t=>a({url:"/application/config/flowWeight",method:"get",params:{appName:t}}),h=(t,o)=>a({url:"/application/config/flowWeight",method:"put",params:{appName:t},data:{flowWeightSets:o}}),m=t=>a({url:"/application/config/gray",method:"get",params:{appName:t}}),f=(t,o)=>a({url:"/application/config/gray",method:"put",params:{appName:t},data:{graySets:o}});export{i as a,n as b,c,s as d,d as e,h as f,p as g,m as h,f as i,g as j,l,r as s,u}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/app-PIImRajL.js diff --git a/app/dubbo-ui/dist/admin/assets/azcli-bA_AuLZG.js b/app/dubbo-ui/dist/admin/assets/azcli-bA_AuLZG.js deleted file mode 100644 index 4df3fd7ee..000000000 --- a/app/dubbo-ui/dist/admin/assets/azcli-bA_AuLZG.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"}},t={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/bat-0sCTlecs.js b/app/dubbo-ui/dist/admin/assets/bat-0sCTlecs.js deleted file mode 100644 index 514addfaa..000000000 --- a/app/dubbo-ui/dist/admin/assets/bat-0sCTlecs.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>`\\b${e}\\b`,t="[_a-zA-Z]",o="[_a-zA-Z0-9]",r=n(`${t}${o}*`),i=["targetScope","resource","module","param","var","output","for","in","if","existing"],a=["true","false","null"],s="[ \\t\\r\\n]",c="[0-9]+",g={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])' - `,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},l={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=>"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},o={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};export{e as conf,o as language}; diff --git a/app/dubbo-ui/dist/admin/assets/clojure-aJ1F8HHH.js b/app/dubbo-ui/dist/admin/assets/clojure-aJ1F8HHH.js deleted file mode 100644 index 09dc3ac5d..000000000 --- a/app/dubbo-ui/dist/admin/assets/clojure-aJ1F8HHH.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},t={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/codicon-wpoHPmsu.ttf b/app/dubbo-ui/dist/admin/assets/codicon-wpoHPmsu.ttf deleted file mode 100644 index 27ee4c68caef1cd22342f481420d6dbda1648012..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 80340 zcmeFa37lJ3c{hB{)zw{fudeQubR~_JnbAm^@oe^N(s&ui6FZB?ah$|)oW&E{S?mNS znSrcMfDjuRk`Tf+gg^-d8f=yVfu zfU*5JAYCl|3ZLhJuKm|se{*)j^UvXa#~D*=2d=wpPx$Vy?7&YlW1)9nv*+d+>0kM4 z@Ouj9w_m&Gnk(M&i%(54o_`F-emQg9E3UsRb=v0{Z~qu$=`M!4^FEx3_vfE~{&#$U zjx2xiW5E#|-Tv!e&0ZQ^`)|w?SKL%Q6ft30_o_<)8V1tM=`|{l%3WztOK8M>tcO zM`hm2?_*(n`*ZeJcwf;h?_)MQi=k@a5RSgYYulBZE@z*u@BRr7TGz%;M}LYZEu9^- zjDG(g{GZa``RD(8)A0Z6_W!=;|GwY{+0UI8hT^v@sXeK=b=5+ zch~Q#zp?(c`cn(=47vVEUgdA&C4Mcp z`Solo{{r95ujW^=H?c9klD&>S&3?x=@VBsAn9o1M-pTIdr}7++^8`P_zQ!JA^ZY&h zc6K*^6TgMu$zR70^4IhG_}%<4`wV|Ie*=^Z8Lc&-6GoT?y(5a2xU7xkSe_NwC2SX) zW|yLNm$6P(WL>Pp%B+X=f&%?)fDJ+;8e+q2gpIPbY@DrwezcyQ!Y0|N>@;=;JCjYZ z^Vtq|0o%#;v8&k2*tP8C?0R+syOG_*Ze|DBt?V}TO7<%DYW5m-2RqDO%l?49p54RV z$nIlrVQ*z`V{`27?0)tR_5gbqdpCQKy@$P*J;dI}{)io6N7)B)&WG5C*&nmV*r(X1 z*=N}o*_YT?*^|(vo??H&{+fM*{S7Glx9nT&@7TB5zp|gQpRu2_U$N)dui0-nAL7G&gpcwuzJ{;m>-Yp;&rjhS_$1%R zPvd9sGx-$X!ng9X(TnHsbNPk*B7QNygzw^)^2_-Z{7Sx`zl>kQXZg$dEBFokMt&>5 zjlYt=iob^6!4L7*@;~5r@q75a{O$aH{$BnNe?Nbie}Et5ALJk6ALbw7ALpOopX7hS zALF0mkMnu{Y5qn2CH`gp75-KJ6#ol$g8du&1^Xr2&GxVvwwled%lRAGb?g=F8g?|XXc_B_w< z)ocat;T^2XYHTxqD}R)KjQ=tJDEk;ckMH1Vc7T74|2cn>KfvF~-^KrszneeE-@#(+ zJl@6rkbjY`{d^~TKSqC&eV%=RS6DmiV83N? z{--?2{ulc$`$zVD_6++c_5=1W>_@D@j12v0Gy50FBf2+M0te(ucEwCfWHmpJ^@}rxnF=^i}ES~Zlkj6&JT_*sJ%IY%$;H|7aE5OE3zFYwOmepS&0M5(m z^gIAOnAL9(05@j!8wJ<~ls5^0L$mtL0^rrG-UQj3by(m8@NZU!wM_sgXZ70z*qta} zDZo!f`6>aPL-}d}9!Gh*08gNNjR2$otKT62dBEz21Rxn${jdO8>-E(z;GG1t9BK{apf(daVA3 z0+4^K{%!$CLRNoJ05Xx)i7o)7Bdfnx0CJMm9}Hqa0Hi#t|A_$PJ*z(|0Ljnle<}bS zfYreV2+#&t{Zj(a3t0Ve0cZ%U{)7N@1y-jq2S96J^-l{xe_(a$ZvdJEtN)n*bP87g ztN^qNR{xv;I|b$E1)y=T`WFPCd$9T!1)znn`j-TtkFffe1)!O*`d0*?qp~I0cbj`{#OFfd073g1)%+~`Zoli z2eJC!2tXrZ^=}G5H)8d_6@Zq+>faK8zQpQ(CjiZf)xRwO9g5ZeUI5w@tA9rTdKIhx zg8(!vR{yR5bS+l@M*(PEto}U#=wGb9AOKB_)t?c7PR8p0BmnJ<)xR$QJ&o1>SpXUv ztN%a%x*MziivYAZR{x;@^f^}lkpQ$dR<8>{$7A(|0JJ?;KP~{hkJbN|05m{W|FHmc zL011)0ceG+{;UA>LstKZ05nBb|EU0UMppls0DBM069Uj9S^eJxpi#2=&jp}cvidIs zpk=c9F9o1)vih$Cpn0*Ot0CZp0Pz9g`vxX)BeV8?L0cggo zVG2M;W{rpdv}M+?1fVywhAjXMnl+*V(4|?!5r9_B8ZiOr*R0_RK+|RoPXIbMYs3Yh zeX~YF0D3rUBn6<6vxYAK-JCU20?^V~BP{@Zoi#E74D@ZZ34mm*krm)XznlPRX^p%9 zCwdeFIMJhBfKyvL1UR*?Q-D+ZiUOS4*CoKIO(g+N^(_mK2fI-b;8d?}0Z#Sm5#aRv z6#|@|-z&iB+&%%avm5;a~5I#4-hw-@yK7!9p@KJnj zf{)>I6MPLmR|WW5lr;gq4&}H2pFp`-QE|kf0sd)}M0bFH5hc+b;9o*XbO-pCQNCJ$e+A|30{p8esXqYz6iVt30QNg; zP=5fhC5fGVLWy0Dlx~ z&@%vdrdZ=C0Y-KH3juhmSmT%gqkBFr01p;xd|d#(EY|o-0eH1o_E_V%0DOF`LEiy*`&i@0 z0`U8>#=i={1IQZB3cwf08b1+$SCBP+Dggf=Yy3=r(eqCTkb>R#HvxDLS>xvd@FTLu zF9aCT=9dESEwaY11Q?Bl=L9HAqVa11cph2fHv$yTZ&3RIcq3WkcLEgsZ#*vm4<$W1 z0DP6~I2VA|k{y=>;J;+YLjv$*vg5J<`wGgi0H+eqBf!tej^lX*cs$v0JdXh1Cp%8h z1KDL8Hlz%$B@M+Dd>P+9`;ma^lv0Na8xD!})kbOhi_WyfOz?CU690Z#Yx z1o-<1y6kvCfMM($Zx`T12aH_;yuR#srvUuF?08Xt-Hx(LfZvR=BmnO) zJ5Kcg;3sCsD+2Hsv*X`|0G0{n9*R|xRWqU;r5RL?#EegVpU0eG9)@c{w&o!Rk0 z0rmvSl>(f`1(VB* z59(R{8^)c+G2`c^W^Ob0n%A4JGw(OQXFeB+L{gEl$ll0(krUPmYr?wHy4U)RJz(Ev zKWcwHT8`cx{i-85W#SoH}^|ltz1{J6ycWMV{#g8riLu08i4)1~ z$w!mNeaG+iYyKJjc7MNrqyIoEl^RNINj;D@(qri}(s!hvO8+L4%uHl1%FJXQ%6u{N z!?tYONZTjdzMnO+JF_=t-<6%uelM5FjpcUc?#w-&`$1mIugqVPKb)U0#0ztUuNIzZ z&$Qp%{&+{e<6y@lopR@a&QEqeS6p3uPx14`XS<}XeAh!=pY8fi*Dp(_l@6C4EB&Cn zv;1UbvT|?bvF=*;bocjrZtgj;;+`QIaTV8wG+MCyYXYF(Awye8(-NWmSPq-696PqV4pSW*ge&U(+ z?)sOnzi0h3r=(7~{FHl7d2)laVRFNb8@{~Zmy_km-IK4H{QPA7)R|L1xUp;FwVTe} zbl0Z&(>hN(?X)~5a@NpU_n-CEvwpnww5@x$&YZpC?EB9CtrtFb(M1=1{bKFn$&250iF3)0OFqAA^RzQPFumo{)t4T)^o~o9 zT>8`9wcR^+-?jVLp6NZe?|FRBb9?i9H}5^L_o2&bmmRq5{>#35`P}87z2cNBZoA?K zSK3#eaph;Od~V;wzT5ZB@0a#(-T(0ZC$EZM_2H}K1M)SGU-N@&jcaeb_TAS$dF?aT zIoIvI?!N1unYn%D@tG%QzCBZ)d2aTi*#~C7{qnAtU;XlLze0Y+xv%)v_19nj{_B5! zL-!4r-|+Yizq#>@8~5M%?VIv9?Y`;po4$Q>>gJ6%zx(F-TW-JQ*@JJs)wp%*t&l6^ z!=~std;u}|cSlG+FO3ZFPMas<$pTLftw-ol?W|NM|Mb3L6r zWY|u^h~^SXNb1}vYnGdg*_vkSUR<;PK#oOpGc2oNgL5;U$z?oK(KI=1=#g01jThIR zv9{>V^=#_y-qh2vHeqBkMq=&WlxoCmBWxyYO;6pe$6ZU;Y&Q|JWn61t%(&?t~N9k>5 zhWfKvPYW@FB*|x9R1^L%{;H$+Q*l{B1uDhFFn3Pqx}hI4bUpjG3s29NXJ&X>uNe>O z`h!Mouv|VmH#ZBG-g>?ZzaFG?)mJN{cpI)%{e)Vn*1D})&FY>P#UT{dxZT}tkK+S~ z1-XG6sPK#Fs1c+^)yMO3eX&v%V@=Skf)Uj@z{OCxqT4ImHLLcq!tlg!K99G8m+l+t zO9yXn?LKgI*{W8fh2cW;ghIOcTN<+N1<&*;LQ$;@j~1&HkfMr#7`GvVCb*wi-eE7g zDaYNH?)t(S;Wt!?yGwO?!84of1dUa{I$BW`dR*{eUJ=7XJo)~mhUCR9U+~PYG^y~> z)^DK2@<+b-nd^CCc+{^}imKmiB%Z1+C-Y0SV;O0GPmLDGf*kZG`f?al9W5p*Yo@Jf zYpb{Q(5_wf)-Qf>YirEH_X_Q>N|X=!p!NGtalU<)w{+f5=)CnD)bfdLN2jOltzY=U z*6v;QE^DjXJP(n@1#v%&o?sk(ZO|ID3SQx^!9gp(e}6$d7uM3#!Fgh&CW`(+{9d@~ zs={UB{QODh1tS@gqwY+OKH%J@IlgwCq=lvHta6)mn_Vtv4a43a(!zM=5-(JV8vNQ@J+D>nd|y=iZEaro_YA%UwU3O_=Ew{q4FNkNIx&Y$LVR>`1wuW{m6l z8C%Z|$r7LP+^KuRx-P%oiX_^iemSPM_pP|l;pSG`O`Udj)b%@P7ziF~fUZ%&^-D`N zByx^bf{GW_>M#b=8Sad?SvHM%!@N@}cU@b_-H{u3L+~sk7Q0X0diLp4kzffg%?VGPodVge|nld=+FITcIic5ZZ?&bX7aNupqkWgz<;29j&seTp2A_M@Pg5y!Ubt8T#-l@P#totE(n(vJWoVxp>Yx zK8C9*s|KWAXer>C!7cq_lJw?06eKXrSxGTeS%SJB4hln&B;B#Vqlt^lp>SA17Nwy| z5)OnymZM8=l_Vt$RetGEa7J(w9`$2cOG$MWyp9vHW+-VTVnWH+%m_Xjn(Qi;rXeR& zbLbur03kPwXDg0IFAMV=hd4bJN4QFdyrug{F|W{>QmkwYY`7&i1pQt`e!KtoC7^0Dvn}!Cjwgs3OA+}6uRJ0Wz;8i4ew+ERTJEq)Ti}HT|c28nVOoLGHUwNq4KUN z*gaDVP;;{SoMFsmJoK8PeO!6(^mD^sXMYLlKRet4>+{fzY5F#_a~fa#=G? ztt?9yM=i)aJ)KSKwqaztik5`i7jXBqgHv$dMc$EtSK1`4&>IH*i$wcj^u}m03rq8a z?k(U2uCt))3zKtm9=SG~*QP+vRmjUallV2M3^`t;aZF`m4Trd*a1PTTm~GQl!vXi1046WQThy+yGe$ z*ZA#zPPdY6xok3`ealR?wM>1O;ZW&A3TzZJVrdc04(lN!mddtwb~r}NQfw_0Qe`G6g&T(VgzDbr%#hI08X^>Q0m{y0fDLvyQq`Gc6fC z1$z!-06h^gE9e#UO*niJ4pFyaFvwa!Qgp1oNj4)oD2%ho_@i!>O-r>4`K*j}9$=32jhEhRueL|-zVBRXn``u#QTq0ykDOA{xUNu$q7`MUm$QOQ{6i6nEm$2czqwwYUFxo?mF5{RqVoo3fRjX$L;U9O!^p z66k;n3LK-3^w_{hgR(;YA9C5yuP{i0Z>L$FWo7KPxy9FJtJBU{R=fCNP<;DV+_Kv2 zFnCbeEqnVrtc+!Ep<~uX^cge=>I@Ik=cvwL{M6#Pb0Ryv{gW$X>01aI zS4dM$BVyU-om|5%QFAWAK+&RUD_5|yNh3j-RO zM5;aEj28ZO6#^m<;ECapas_5GdLf8@Ahc3kyT!5|Oi!-qdd3zdPX{rV;O$Vn6>yz=O=ZtK^ zv4>^D)FfHA&4`+GOi!0%$;3TjS<)cQH+qaCh8M}V4$lV?Uh{vZlOZ5Rw`*G z$}*6I<`P~Rju}U1jhJc1j2iUqm|@%k%LE14@6hz>;(}zfw$LZL5THp1C?pZqG0I1q zSJ3&bzs0s;9+S52A>R$z4aC5~8v}M;=@{)u06x^y;RN31E$A)n?a_SR%729`zk7~A z?EMt{(E9C=H|0(0?l?F_OMWH6E0eI4`p834B{IPv0Ba-_pXf&993^unFkby2l%Rsb z6>#6c&t5rHoAZpUi}4e0GmH%|Tnq#QO)dPoxEHreR@ZG-$;L;ke55p}2fj5=pV$96 z41LNlj4<2`a^0hCj%*9`H5Dt-~%v*OXg6GC))@!E!SOTwK6R*e81xXb?1#v`Azr;m zY1NBtvLb;{v4VJ9I{ndfpMicN{*{a5qdWC5vV2bZ$i5Zd^2Qt zf+vmn6F8y<0TL3L-{bH~`q2b*0ZH-;ZHnTA!*R<{%#^L`c1Dk=W?Rg*^>T0F(v+97 zx)IOg?Sma&GN0s5G#Pem8`_y|WHXLunpUyX4~67-QYqY+y7CI&>h5mwO4N0T*4l`= z27aLz)|NQqvf5VRMW)KOx*MbywJnuiy1s*hsBcs@RX-clH&jTw|89l3)vU48>mptp z)Hr!Y`pPR(h)^!_chosSYmQoVhGDXtj7>-3N%S5T)x770)O+Mqk3lywNBbknAfZ!EEmzWK(FshZEt5zYz`zCv6 z$gVvWn~r^9)ld-R4T{~`6Qnwm)`YtEq3#LjiyM&ZxQlXUJ!BI2!;qFR#B(Ps)LQ3FT|qzG?toOnD?K^tlOR8)8)YKAcY<}At@6*b)}A9aciYUOFTE!;?_)d?E`8ftUSxbVnh zt{?`E@e8G!YDZf5a6v*0097Gr6UZQZs7!fD2US}zyklAY#v*;5)Agyz!#O><(`!qp zgYD;IWB9Q{f@o__eSkh=+&RUqeRf&zXHkxaNC z5hbTk04U>EaR7Y}_`~aPdKDGL{3iE}JA$er(Z!&Q;@fUD-cpbaaPwV+`~;dT^Qld+AvwjmK8r3AI!e z%^npQCxgz|t9ADvS~jqNdmhyX)iM3(gVYMLJ>cKPu37!yBYiFkR|h%bdxKJekNHE3K5?Pdd`MB;wt=kVx>Byct@)9| zgV5AyyKGCgs^u+hisg2>r$?K|^`C3cAmn++VEccn5$8j1 zz*RJs1Rrb3rXsDyt@?wU{)XW!da3RqXVYTm94&7tZwFa#k%(+3cf)jxgvGT-x0JVR z2LYE(Sx)bROV$Tu4()panL~Suq_7fyA0k(`qF#Y#9ST4B*?r+n4norv7&>Dx+%PVn zWCoE)Xd_5IfK3N86hep`VI+!RHx5_fi8#O5SuG>s3w?o; zl)yKQ#@>MJw1}qdptp!NB=JzJTy!i1m+WXrQdLt?BUaD3Jyt|jOjVUa@GOVImQyUB z$+;2fI;|^$Ot(n9!&PKiaXaFxwUyDx3Qr1E)R5$@h(uS;>Pi+*!J8hXxJ2;f5iW(i zue9V)>cSzf~5{^a@Q`;sf9^KO0 ztA)L8J04GJS~4EDyS*UXB6uwMJyhX|qCA*@^Anq=v??(CDesDna6TWcP0!7{?k(Pe zck0~`TD2#B=FWRiG#1AY`41HM#k&KW04glBVd#J~kKs@&7lUXD;GUsKk$Trv%?Ed@d=@UV5pQy6XPoR+ZQNi zvY?vgDdqAp*DX!Ync5*bhPN57X#+eh{3@i+P0!5C!B`Tyla5@T2rRK~%&pb5hTMZ< zEK#l+#w_{IK_Pt2!*i!112ITpQ%U`SH=?QrV|oG+Xjq;YmcEK8l7D8~hBaMsZfwKq zlAJAP+Ovb%WNGC;zQnj*x7IxvKWsrsYO$Zy@f6LEfmH8t;v? zaK939_PjG?qc0aMj}Z|dRUG5eoTEhAC_&yf{$3X3|kI=F%*u_ zmq<8tPn^?!7R~r#H)MMWTzVAIn$u8M6*5K%EW`u}_ay1Y6pbQ7ZVcMRC<2hx3It9O z90yef7r~Su?c7%rB>WMx@)NI*$?5jA9J7)k&*L&O4Af*QsV1zH%pu2{e-q- zU_R#}7?)Cmt?f8&3>zv__U%GLT zZ}jlKW}lq$U+s~qs6CXR>VMn-De;27cHNW9>L)18!$uz!z1F`NdUvfLTyOJR{7s;lh zl4ZI*DQz?5f_x()#X4IjOlwla&!#m~E3Q}r8&BxOO<$Np+E{hDbwFA%DV)nZVJ-~D zg(WZ8v@4uAflh~&PYak86)c&>7_T1kZpAad<=pKPe{Q5gFSleH_XO{w`5>e^@tO zS465yw%-`JAZ8_q6}*^%SOJ4cC^1K`Ne1?H11rG}W4Oh~r6{r{KYX!t3Ex*F_xgY_ zyvDIGl3i{rv6QriB*kDPgXJJtrr3I9yAjQ1iMt3IVs|UDWp#{WWEUYmO;*(?44Wy> zn}|jaC9i@k{2O&%-Q{Ro?r&ZbU3Lu!v3Sj3HhW1jdAMU2uK7E29sw(J@^JGS;#WHS zGO(!7<4wK;<_ghkBZmlKeh6QR^-st{d6_c2T5f^SX~A$32sk3%=KvD4EyNlPtQ9ge zMOL#(37fD<&$qbD?y#i>=LHw2mg&GdW+F<6i%e579EA6gV${-uW6*_Su#&437eG&9 zG-CRy6d)v(kv<^j4f2b^94daLGb#{f@NhIm$9fWMRDBxG%JZRc+RUhWJZ@^ab8@<@ z`60z!?IPkyOEdpIn=pq@kwB>_JK(|I#1{Mua z&w+8ko*gZTOu- z{-L6p8C(_h^uCl)EcxB`(F;$#*PDtLG}l%Av|1YK^Q^c(WO!H@l7BC{eND2TgiFw9 z%;poYaP%PN*&no4L82wnEqr)d6D9b*njP3WxTP zTl_0-Mu~N_>+zE2SSuuVM&W zNSe;?6c4;bgX>8k`OD{dU75BMNOFiOi7jAy!!lrM6?nhK-r5E0WJIgPB_~h$o zKSlH$1Z%(<;DM@cOU}(Dv)7(5FZVBxeB>=~8npZ$5gtK(+k;+3zfrChk}^lJQc3it zFCs&6r6cRCY|D+bOFSo~Dg!;{=vMazhvHVr&rS_`Nm!(CA$P`;Ue>*jj4uayEVPaX`29 zUv!T)aSxtu-DIJ8lat!p0h*#7WK)reOHr1gB>7CL$jyf8jkJ(qZoXuTsbLA{rJ9`J z$##U+gs+Eun&dBJ9!3uN+vx5mFtAW4+MdIDE_-kmYqD^@fjW zOrjBtk$i~why*U0V5^9a2JEsEB9wS%xk8}?O6$TkC?PNr-~f%tx`#hlMb3R*!n%Rc zk=~2TR(HiJ2k+NAT~=p=_YL5Vy;cvmyUJZQ?}@D7(J&wAGmCK5IJwST>}3~bN|}T2 zD2yVmk1=}s8d2gggin^{Nb>lYaylb~-IqnmQ<&f(g zi$uIkW{C4lHr?M5i*@v;b4_}Yzc4N`lF4U4o;Pw)LJJ^Q>EgKYr(%d7oG)^?UZxLp z)B2XYJ?MFe0EdzMYkb6e6TD_Pe9J8b3ppxHd6|J;MIL+%%92Qa#7!}X;D5uk#KX9` zPKRIdsJ_nLH8+PG|GzGF>-u3`FBkQfT{E+*V058KmBvZ83=@HPZVXo!hi z`4h$w1Ak5^^r^X!N<5yeKfQ}U*c3H#9^4>S;3oVhBPSBu^CtJ6eZ7wMg z;a+`V;b@B>LUz%8h=*n{wo15H0S@qBY$4C25(F+q!!S!o=+e)F{Lz|1B6@cAXl)iQ zW8|TDrRnLrd&4fT@p#Qf4&Z|Ovm@hE!7qorW4+cB-Z7|ROTM5G+759=8Uez!!81ud z&reUbD2NBlG>O+5qfMH@9kkeH(RXB2wpzSUs!dN5;e+`0!r|J~6rSADy{Hdc?freN z{aP*TQY~hVj?Yjt>2KGrmuev0zp48`7ZBr1WN$*oh~`yMQyL+y*+8wO?`32ZNKhieHKBtV1z$dF2M+b;KJ({*p~%)FkYb11a=^?JbVa(x}%f&^+GFj7ec#d7=fJOk@H*DA>gi%Jve()Z>+9=4Mu3H=$1?hoW)8F8D@G-My)>$l zkD}`TvhAIrzRX$S2af03oQ}B;o_-*FR;DlX&bB|VwHY|@f_o4jf!2pLXd-M9tRN-5 z2l;PcD#PfTH&Ckw5o-V0)ZEdme)th%yRN@o1LN8^JG*O2gX+>8E7-$M!~L)tbukTN zQLZh1n1aS_IOeoSRBje?(7lmhjAXxMMN9tBxHp5$1q^EpLh6fQic2-S1xycvaw?d_ zUd>yWot-@hp0p55>)-C%bqJYf#xV+B3cm6T_@{|hgAzhv7t)FJFOeuiB1cTkp|KAq zld;xc*OKMziK%&A>nEI(TuL~Ji<#V{OA_m667cqops&bGfK!^BT}X+A<~afTuR2yi zpdbGzW=^S?=*FhBtW@8d>~YHZXgRsE63;s!HClFiJId*_6pQA{UOC$CcXT>sx!>w< z{n3hKr>ELmaeY}&nw={K5(DW-1f&3lg+QDMkjPdJQ>UPOxxfZj8w~#6L!ij zcKBf{+u5E}BHA=h2X_)T)y$J_)BFm1utHB=X`3O10>rk-H9hRNxqJjxRkqlX3`g2J zJMzeA5xiE!aaHu2@ZgZ>hW!2yqPb;E{}-i-9CFLk)8I=l4C%J?1b8VlvaV^`Lir)~ znkfETpLOb~R^O))@jKdYZ9LWL_iBgGH-cx;8h+wgt$cIxNCYgI^vH0aXEeW~wvcvf zq|xG059tB)_q%`brd^~C9P?)3E5S!lPy7PIZU$-K^y5tMLu)L=d7QOl^^?ehRIs3n zhHjqIz^(eE0#p$(K{hd8RVjBOA_q;l+Nt`K`h-IK?K zNGZmJ*Z1jO`kb&68Ys%Lq{?l*slGuE4t&9nV#vWEeuM-NM2duh9Vjv+cq^FXSY}FT z?Bwx!mfav~UUw|4=_< z(2LYEFka(mN2<&*!8<#3{eIhV^Tk5Uv8*JB#yzA?Tii;y2HfIdB{}4^wN={Mz{GR7 zWIB~H^sHJ$X#L|lwkkjbrI^zdzuKrOPUyB>j&@cwt??ki{uj zsue`P*RWI2q9qLkqpzaIDKQ$!(uzMa6z>eACfbY!6UT-p532tQPxOxvf+{-|bZRxk7-jr2MD;Ss8ILKTe-JHBO2?$V3qe`_^Be_;PJU^*#?zDP(tS)-% zT&%&=_`;k%d2i9`!M}|*y+faduLE?V{*FQWr`6g$$P+*|9CCV~vJQ_9N+Juc2>Zzo zK0;$hsz9({56l&Y4+K$5DJ;+ElU`^-d6TYB)(+Kb`;eqCr@I9!*=<>8M|1gI-e5^+ z*`zIaJ?ex6HOgBUuLao?##BDp9jR=KX4|}h4T!Yh584#fk!WJ0mTBmb-SE3r5&Jl^ zWtmf&QBYkhrJ{f+lmL(i9SElz-iP43AUEpJh!3HKW5Ywx7RE5Uz`y7O(yzHp^@jgr z(wnM%Nyp9;hCV+(r&#d>77&DuNuB58aSM(-)6mXxt&X_+cc}foX=;Z&-fV$B?e401 zcg1p~bee6Y~e<%IPWe1qlyYbN1S z{UNxZCgTI%Y0Zpro~FHwYKrs_`e=CjG;QOowsDQ7&F=R$%)d-Sz7AGs+ps&J4IMSY zHga9Ub}bqmM{avJ@_nh6_flTd5* zH(@s94(a+KgZ3YBhpbf{H8C4JOoXZJ`qcQeLBHQJldW~EvWB4bLq_2hj5S(eaPrD1 zj5o3iFv7@$A%_CZ5ROWrQ_xX?v5b1+DC`B)6K~7PH8>LnZ!rN5gzG>IER@yZjhsR( zQ`bF1_sX6NiM)hYIJIcV11p?XVgZ@UPu%FJ+XoGF{@?;7%muF!T|q0SlFm8jMAd`0 zP&1nPZNLMg=-EXtmaw_uQ^V#Byk^Y??$D#t&_%xkg9I6QM~*B^xxpfPF*ZENZ!1_; z47Hio>^5mn(+o_3CJ?3^6~li&i{-xV+ub!zEuSyXjl=AigR#^H6&DVdarf={{K6A3 zI-aNrTO$~E;6flNC{@7@4ZEhMx!Qi={{0uWFX__c%Yil5I*Tk(B4lv(OnDlqI^qhb z2p1ylzUj02HQL@!`x+t)N~$Wji4PC=05YzizS8=wpddG?iZ9RxlaQ$uAL)NMLaD0d zijAN(3S1gwVkB1K$1*Pd5VplJUD?JOp^#z53o)!Cl6AwuvMB=#eXK&8uE;TR)9a-* z4&rf^Ax9A0$C@ALun|2j#dMfJx{M4~BdlaS+sx|GBpkq&X4`VA6jyPL6}2_Pj7H$N zNuFL(HG~DcQd>OpYSqGO_-s^$bGGQ{I#!^sNhUK^REql%!z~!_sUnlUsk51&1LaRL zPHuj5l_dP#arO5$Pesl#&w1ZjTO#L~=RUuAvw6-r$F^)S&pns;5cYc- zX!@a=e9=!(Ac`0e(ljx_0v@@@iI#M9(Il`U&Aic3&fhJ`*TL#l%|&LkJYZStk5*EV z_7lc-s9)elSZ;yII2Q1v$>p)jbJs*hJR7E=;7jCpA`VG8*`%L=7hu*0l}o&+ZkYVU z04RQfYPmOI+D>B~{jxeCH2_?^)tj;-FLp?oUVJHe!Q?rajq#Vha&@U zXc@=8e?(*c7q8co= zC5IDI$jNty^jy+5D3)1nn&+6Sq$g9DGBG9M#_?tWlh&W3w}Wz++4k;-lB$Q>tvL=694{aG6Fof_x7yI|XGFE&z1Xq8!ZxkvD21 z_zviW83&0GtPuv?FdnKE?79=I4X$8LA@~}Y%}AGqDH;S^tBZbzMR(hWjHF?eVyRGn ze>fE_MK!FlDMeG^zJ3K?VJVi|`up3;6=TGxlwhc)%N6YuKc7tIeOf9FH^sO6gHtWs zD7dos1vff1xMJDG_=sB`!m^LN?{^APwfd2CG1^^X9P#CCXk~G16zmnrJ+Mg>6(5l) z6)?>BqRNOtGg=%ij}qIhjt%)>weTrm*BbF1Ul5T{AxFuD^V>X@T*4KrA^S0ASut8j z2}@e$Ql4^R5AWJl!=@`pSd*eMxGa}EY`+jTLQyRo?58sZJ8?mann)_c1_@F)9*1u_ z1b!XDj%(y&e$N~-%&-Lt){^5&S}2Pb)@fp~Etcwrjj$vIOU)MNeFoz;i59OUe+Z^^ zlNCt;cLIa*D+$P?z@`O@3RZm6>TrCbm>8s0ZA#h!n?acfX(rT@`Pv5PWnerW0w%-Z z5|X(~(`A=qI!P1iN-UVtC$YQ6lxs{O?bmSOl9m(%3l;1lRISyTJaz$cIZB=|XzM{{ z5@u=O=3d+&<_&HZ`y&N!x>!8K`?iEutX>h?B8pqZDx>E3#s4OoMc)>nb)8B72MF2t zfvTq<>yT2qhJ&7?Xf`I}a3wi`*e5wn0)ZLq@PH1*%PAgmf*FjVoqE(_?0lRzuiy5hxi^u?RO7 z38_vkSXN=Dc-Gq=ieu$RNJ9iOmI>{P#NHW}?08hg4jj&{AtTaZM@$8$z;NFmaf0it zR9pNJ4nb=xp-9XzmgX<*Zxw1qDky^hvyu#8a&~~tlF|p)h(p_non=phh2w>2(lKl- z*4DPw-gN{^Zd$xRyaaT0cZ)yM$-e9@euqFNW};y3avNs6T!L@(06oq;Hbj22a}PMU~=Rp8M#gl*eY zPkXahp-@5NqV?gy>Tp^bgs^820>zG1pc6uaSi~q*k`&xVG7OQWl{8JmY}luuH{~3T zfyY+Kkz9eYag}CaQM=`+ma9htdNfCyYpF>b58969^?j;iY0cq;QD;+2G3HdmHB}5o zs=pJ@6|6$LRVY~P1?%e(MVbaXN!i%HQ5A#Dhxs=KIw5zbNhRTar9sdl(pXX@8j;`P zBqGsDmgVygN-e1=V8GDN6GbAAXJBD^Dz}U{UXFt{niUIi%$k#k<1WoYr0yacFz{Lj zGGo(Ibx^8q2}a}FgaQQ=|#C&5%IoGWwiBS`%8}u2jf1h z(0Cv&WMfAij1#a1oom+Dg=1+j62r2Y7&1}LD=>wjXOi*T)RD0IpSEuS)2ew#-Ehq=mBx=AYQ>gzdEmb_T2G|wwA6^W z=qxPIBQ`9*aqKx01ly*(ci=Qs&O=3UMvI>bKM}2%99Xg@%TPs8D|ph$GeHSv!7!sC zw`}PK3{4x(+RJt2{F!k>yS9RLH9@>m4gj9w-bO zW9u`efmx6A(~CM*9^G)Dy)9=>XJ%^GoIwsn81Ga8{GY5H^glMP>dct@|m;$ftgL*yQ)}M-D8-)Qf%LX)TpMr2#)XgQa zlZz{3KPOYdE+o2^Fmkadavq~bbdXHB3=|bj#;#Gc>zaZMDQUMI3rk95+frhw-fTRR zz|oL}Fg4WtFe2J4_`is;eycBt5<;*9n?aLRxkwY3G1xV86{TSjO@cinL6TKvn5#q+ zyn`xO2^!_14+0xDIZT3SfYWBrnSp#bY@66pCKSSEGa;SK3KJ!EsN!1QNjj=7Bf5u` zAu(+J4C;kBq8A11_Y=+!rh7KgM$|p+t5+DZoW?D}*dPWQHgW}voN1RJEH8*?vgK9$ zm=}lBDIAW3B<{trsI%f)a>zD%WZCFlT|iyX=GOe62pp}R#CU}+&=eudb0cP5thyZ^ zpM>Z8nC{Nc*XWx&P1gLeFU>c7NkqE{{ofxiSksBUlxSU2xq|g?w2czBpT-+xQdBCd zG}35+EV4_3!HCsy2pS=ZH3;1n$x(>UVRYuPupPTaVks?@K-$C`=MXi6J-NF#(GGiZ z*zz6hq=XK~uBkBBbhW)5wA8WX5%%0uKyd8106S5Qn%Hy8?;ET@?98LfRO;wWDA+bqZ*`8fOCiK| zu@@P71h<#4=NQ&SCDFxwt0#uC*`bNmeL79oz_18(-v~TMdFXYk5V_cZ^)qLY2gHK| zWHEq`fMW%8AX~afBWoBt5{`{vUmwh0e5NEbBoU8QgEe6|L=zSE2vnnT1w*o!tSaQQ ze6XX|(NUYEw^!sCd z8ddB+=lUg+r|B;3?R2XtB#ruQwXhtu3=Qi%4Hy=1njv*$Lq3zqx204>744kuVT0Js z$!s{CTa|2U%jVPJY_d82XkB5FRmh*;+;dncEZBr`fJ0${0+02m$Wsqo>yT7P<{h3b zle$8RijGClJQjhza_Nw_(;5$Z$N@Ss<<&l2!F~WKEO7RqucWLgQhD&xJVg0!+!Q|fpr{MLKVMRdy6ANK^qjS7HFCkBzD8nduyCutWRAU9 zle%`3wW%{*$PU(4wn?#I$yPkJ=Ok6CIgc{fTO`=yri8sL=pRpueJi*!54Rx3PAfJS zgV5e`n)V?r_KtVtUaM)Z)nhl@@XFnqwp)W+uUY4I%zXtsgw~o-x(zL& z0MUja=zNu@e~Y}dJyv0(J!KbmTV<=}>c2hl*q*{hYpSrP4EJ*@A0QLlr?rO@+^eno zLG>V?De1Igc^!#G?$M*42v&T1SiuqGIbe4tv2Rgp zZv^rb1^N`}RLeh4L;J-G+BUsTP&3N&!8_Wr6oYzUzmLLpUI*Sm-k#vD6oP`21-(wI zI+lN?IrI|8dnKAziQ#NHn=R`HX*}o%9o^Gf%f8`7M_k$fil=FT_lbSMz%krXunOKN z&57^cc(4{;FJt@YWig#BdKC?qlO*Bh!{PEXzo@Ww4L2 z3~qkibtwM|ya{`wAoziuWDM0opwm&Wy_P<-<_>%`IokXBm0Rk#TfAVC1#O*Su(1lV`C)RJ1%WvO-9YTA-oYFXCNEya&eD&V{{g2=O_a6=skyyC`mteNz(Fput0N%GG`3H|MYrjPvsUPe++~*8Ob_Q2m zIc?0XT;^vp{UZk^Jpva;OUuipYArri+l}-dA1NHTdY?ZwZjZFh;VF0N@)d+hc-}m< zJ9ES^z(vDhBON8Ad0-ripHg}a(aRru)D3v7Z63AnJ$k8pwpNsXpO*uqb_9ab$8+9& zx4e&qBk#ME+tG1CdjD7Hy<)|Sq?N8FV-Ibk)a}snJwbMh>M0bv0QH#aiOp*zO5AF1 z&t&GZ*|~dha>t<R!ul~ zajm<>_6T)!v7aZfQ$t2et|s!&a?2sFfF2^;FCJ6vuf+#flD6&&`#=X8EmLQA0EU*( zyNuqaSENHa_MVyS4E#mFT2|2Oh#uHS)@ST-YmuZ~(jMv1u#sLB5b_K*?6%`WB(Y%a zPA}O$%moEl39(>O%4_4jY^6gh+#WNU0ORe6@D6BTtVg{V1b#kpDqNweZ%?DoZ(j6lMR0??Wf?ip6eDW z)mXinYx{Ky8kJQg#+-iOP_EMa=fl3} z!8%uu{-OhcBIP@Y4$~rnS@YU#oH!Av{JXl1{Vh@t&Ya;~jd%T0*SzTf$I%L+#u^Bk zy@0Q0f*ET*WQOmRQ2nf8UJ~)FBJToEo44qfr6p?t5F2sqHksDK29K8*TK{o&;iEIa z;{2Ttp+q8;^_%wSRKoB0W@hZ5-Sl&r-KGzO-8V;b@*Ceeej=-X%Vw_%{ZQ|I!43sE zl$q9>U!9i&WfT4|$AZhthr?=cnmwUsY_pA;^pgUzV3~e~6+k9o4BE~nC}Insx7G1t z(=n#5{Adib0Rgn>th;l+Tfx>Fp4hRoRm&vry(sAY`+hW3eOqhw85 z``;agr@mB4?6W37yr%X_MIpyn-Jap^9=Yva4ijfJv1wSP|&2L4Xi0;;m}(qju= zZGWpW)$})-d-hMc<%Nb2%AeYF^l5v3=+Eg#NMlr~9vluDlc2c<@Ex>6O@CCKHEuIJ zW+T&VW00h&Pv*Euvu(!h-7vutx5|GoYXj#4rf8-M9}H|$`e-QcC7wHs)j^aFQ9lF! zDg#nxKu#5_lY0X`RKz~6a~ZGb!IIQc>X!cO`|M#mZC;mF2_s=*QcEWKbs!gpzwbTv zNb+C|v6U|bV&opOYtESSPHR3jjFZ41l4e2(Xq&^SdF!3_JMCrxCRyPuN2V8=((l7- z6TIqWQVSKG6rSZAmssWtXxvRT z;BimD!jVeA2XEuTI46Ygki)*>eikDoY(5!x zY+|DcGm|uOVe~ixx$lgT`vUSM9&eUIagcuh+WE&JPYj`mzRQDFXnoxoM=oIN7`{eM$tRlp0rN5p5H9lAM#4M zM%j)fCQ5KqzHxMf+I>MReuSGwEXFM;FGGD^+wC(%VnpvgBsCjbqG*d+Ls*di;xZLA zN8F~k`?@_QWO4Ov{z49IyVEtP&q7WgBd=KsS3m#)ef4TE%3vvDB^$~5o>sDDowa!1 zQ%|zCP6Xi#W+pAxc{_MpX|43Opxp>poTVI!Pa3O-(H*R;$7eEl#MYzlBb1OaE4x2j zt9@v94YZLqO(X^+*yKAUY{5f-4B2(-eIj)sT!O_=;XiQ}n~mgAY0n z|M4nX?)_u0J3gMVDxGAIExc~*ekUKFd_&O5?;i7FSlm@|1 zp+c6z=K84f@Wal7kF2iV{s;FvXU31e?ke3XXQHz#A3k`ncP01zcK%;Ekb9!r$w=Jf zE<-iy0^frP@7y_UZAp65#-^Nn$@Y>*5^lfo%+~hou%$c7@j=XOXGfFBOtcpXK->1) zkW;-#e+v2GUx3sfnB+Y=c&Og+exco7ZnaL3(PoD0HX>MJ)Q*E|m*c(QYKY$!M5~Uj zs1=+hnQPlct)P|Z>k6O8D;`JgYTKRZ;|vb-S&qT$<=RCI0v;(&CcXdQe%AeEQ3{2Y zkkjk)ziOLGn?!dY3_GMI@DMiwiqrXMJumY-Ug5m`V101j4bCjjV=#ZesIP2$_MA>% zsn31B+_^xAV>)zXk8Lfq;y*FC%!_i(uX3)fe)$CZgy+)z@>Sbp+qocJeXZx(c3-ed z56;Eay{2{un|Me@WhZk9l3Zs$v3^Iu>RZ*-xn1 zB&KLH4+NzEdGO4O&D%Q=6X&PIkv78AFQZbni}2XiN_Bt4f{3FUON=`is#$vJL^dd- z;jyyfYhf1I3E!_}>-FsQv9iAtWhtpL&M4+@s-7b&Ba0&Rn~~3beipsjs%E3+658P(=iuxyjc=<^gr|iaqoyC%Re+d z4NQ`dSV)z&@L7O<=xO41;mXT}fGbjp3E!b4LSj@1{}uXMEC$xB6(cYk@0yT9;qO7! zNjkv8;JUXh{`gk6O~7WRjm8%(Jchr4q^yLS!J6gJW-3GbK!xL!Tsb(NBME^K{{UjP z6I{V{WnjJpDH0}tkic_HplaxtKx81g(8s0xfK3E}kEqWN{R3?#83MvTErC7@P2%Mq z;5KfN|3Dy)z{DuoXZopSf+A0?=yrF?oyI-{naZf;5-xhVr!_jwgN(`Z+8T4h$sKtd z5hIKlxR(cL``V2w8$OUVEWmfW@4EAG8MZ5u8~*s6?{eQQKJ4f?cpD}(9#T3ScOr;S zTt9@}B=jy2Pr5)s*i!`py12Ow#+P2D>4P_cp}>UH4a>eHv=fCOp`GyPuqtFx2uD68 zZ@E3&f866&;hwsf8>PB3`A@@sTy}|PaWBLs%5m0THCPC@$@yE`a1UYs9q`ICYs<_f zDqoL=IJ0tQef``9QbY7PaX&@#-q!Y#h0N9k{uZ1 z*ga^>NV{wJ@Io6nyJo$`9g8KD$BuSgtNTp&`U7G{ioruCr>kV8tIGeNl}iy(4S&&A z5iB+QAg?&7T(TEED@N%Olu!b0L)P*x)4&tf53Z;0;|3*gM|PYxu-FwNvXFB3Fb)_n z{34Y_^l@b|&EdkM^KMd&gO&J)rH#X9Qr+~ohtGs4iae9x>{($tIe&iZsYE`(&F!@| zGH6nHD)Ky~m#v&VyS7H?^Za?dcY~)R8N$36jW6`?OZ6P=YI(941iZ_`k)z7z;5*vE z;MF?6^|}~UmN*xE4*E?~HFTV;3vQ5SkCKAf9zN$z8N7fP@(#Vb2zDJygNWfSG;TmdE@znG~VNsm;shMNv1DcEEI zb~2Jyx|%UzjJYm%mEDZR-OQ-zd6lU~P91J8^~Y2$R~!-em~kaZ2j!7rD{W6q?Ztx0 zB#p)(bLGVj>=qb6({3D%=x_^m8eRgTKo(K}H{-J&=ake^HE>Bh)-I0-QgC^Dw zcj&7si)U?gs3SHCxXI?+xCduyx2IE%_lmHfrVL00gau9#$=H;L^Pmy_tpg#{cwVLV zI(yS9byyi>7umD3wrY%1Dh<=sj7)zeyZlEVrAdZ8HCD>Hx8Lr< z|F9#Ww{+mniAG2mqXcSn6 zzzl$L&=Pogt0k1&cvc5}TKrIwdNIn85BKspdt%G)ZBMlzke2pa$|Z-^+y->E!0((lGMn+RjD8;pKQN@niK@(2Fx;2 z+l#+JosO!?peu#!(1W`Z%ns+~Ngq@{>b#4YW$oVTr^{C0R`o*W3{M-4|wr3ymPcbtJWF1?OfaR%eTaw<$&WGh3VW0jd z+Ftf4h&?HGHc&oX0)i8gGlwHF$)Eh(A?MT1 zXewhSvY?KgiT&tGX(O4OTK>@ffu8iYL;rx+{0Qx8c1(_pgGsPDsF2O^Me#sU7G8Ci zxb&`N;$aemiZ~n#QX#j9+nH6pB|IO$S*_>BDrx0WOLd}HsRPUg%b9aauAPa+a~b&7 zyh5u^rE~>+63VKpa;a?Gu6X{XpmNfchM(_@pl&utJEED4k3e6S%}@7dHl+Wgs8f?WX8$`ZZ1dCcGmKMNvB5gH^hP3Q#{wR zGSq0`w;(4-dU-uh-xqI0ldBDdjeyn|XXsJPS`;ObnhQ8@S>kc6BF*@lAyIv@66D7V zK2j~HOjf@lnLH~ZHlLEPG{0*0ihN~~F%^w7kmj6AabVuYslUSF^MC!4D~og$E!TC`d$J0& z#1o@jX98(?jzg)?Tn|VQI~5$acI>c@U-!i?)_+>)4q9Y^tgRVsuN7PAYxeZ5V>(C_ zrVpJX+d)?lD^q8mk{LD^jy9xVl#KD|N8;XF-|EF5DV#bLoI2I?rl;M}Govma^@mht z#rj-wWhMDJYvpH;tTTRjdp!lr*@jJ|l6m+%wH_2Oi;Rm$lv@E-%9N+YHfasSkvZKG zrf07xK_69lkNKWpGLu+I9y2osj~qUt+&OF3J$&lasV~jXKf0PLRFl^DcrsZjR4!Me zqpB!5u(=%+!H8rWXAEPZg0{4fKVcRl-9ALL!asmW(l<%%0+BGi<`>8OF?ZIReZUPD z7RL@B9&_jB?$Yn>*x@@HhYmFebbg;3E?n0L8s3~cyPK8noY#<^8|sbXdy-h6)JI@- z#9pz8rY%N57je7gXc4vVjF9usv?;Ih#MelGcbq5Jcq#HUNk(45S_#6;V+Y;PU)eg3 z#6zS$kVIDLy)9wt6nkDetQC?$FmgFtyBTtOOMPWX3cvwHKQAods6by49)#(Xz|~cD zZrzU7P$O||M%HGtXJ>4%-D)_vu`ihRQjV$hDMty=J%1+YA9q@I`zhHltP>ITw~8uh zERyIZxE5$;%t5-F`1kp4@dPA_M`84ZW7+Jn1^bGMeW!^!{-^8b^2Dy!LIHpRAW@IYn3*8tUX!9h4 zJjYY3I?FK#26>Knf#m354P&Hj24{?H>v$~&MY3@*Jgbrii)Qg`6lW)*MUbsP*jZb? z8{6aT&%%mOcW0ehx4tdTULE>hKpd;yDSz@(_XA!KsuL zWp>_oRKg8EK4HeM4&(Y)r?bzxdJA|?63X%Owi|x5UKH-%?Ej&zJMamIPAy$ObztSl z=YSyV-1<6fMrUv_TS5r;jD7a3@XS#DS@a3oUie_b`7S)-%U2V8yFWNV~-8=aLt5P43!>(&{0*Qh@E_`kIk;U}X_rTpiqDIq)^0Z2w z#nzBys9ukhLG{7mCf))IhXP&&3BnQ-4PoOtC=HfM>I#G<2hglo*~RY``WQL`mt%LZ zK*2bTRHlY#+VhY272i%+81sc(re3{axSq+ajb+Pe7d^r$5{fTSF)rt(%h@ZFaD}JS z(Z`pP&>Y|-Ae5YtGVm0*aFV6Q&T_#?CY?fgXX7zw-P4tTFs1k&utCv0Qt{aJxpHpv zFS=)`*&#Aq=dK8ggXEQKf0hK4OXC(I6$#c81De1jY6)R~!&7}kiF2ZGo7il>LG=T$ z?^EuSjbd%Z-2y3JI?W3g7!`W_lW}A9cMJZ73m48kL7FT&Ey z%fJ&ism5Ou@5UFX?N1!Oy~wvlrY2F=VhK;`ej=7AKjIHY9LYW;<+2wBo>uR5el^$#7fEl)<5c-!p3Z>Qwh}HmjWN@y7Qsfq>G+wzb;i@loo=4s zaAMb@VLa~Sy}ilw6ajo?q?1$Wo4{I=rLoU)#Ae=pSu1&(f ze!-RD^V>y{J@R_~uP?R{E+Mz$VEkUB2MP8_kR!~J5>`O-6G}69Zn0nS5oxvH)AyyV zhaWamZ;7ushn91{w7Pm`wH;g>vEOAk8oZ4_r=80r9erc6+fjO2>98S#{vNM|Xj zbScHaokaYEOIL+S%~(e;P#D(_aE+@=W3lV;kOSzCUvcdobz6yAxp5<#-rrA_*i)S8 z@e{j1X~yGL@|STI;#7>6f}atu;-%zTylyd`BC>Bgu|;j)Yg;M8-y?K;=>DNgg^L3a z)5AjER)#9)PP!A<*S&Q^D~h?a z)*6R@FpbWLN|?gJK^r`9E`9Djp&}?{#84Vf$gd@x8_0^yIfb?nS=JQfM^8f}r1Jxg z*b-pde01RM#gU~&%|KphFMqqYh^>a*hJ#cx1dnfGQE=LAiX0Ha$PXW3A=1RiWNZ(9 zKoy)}c5Ma!avMq|Zz_=!gk&nCM*~UtrjiUApAon=!+ze=bFm&*Ll@}t!o9Xru*JcE zeT|Ts06hq)X~~KMf%F6QDaScA_OA_Z8Ds-{LxJ?Dt5)+5-*!zNDpY7z5 z+2oQHAV(mLh+hpRJf1O4m?q-J)x-<|iJxBs{_8o36~|tI84Lv>4}{B1K*>sAHUAUmozB zP76jdcx~c5axoNMBh6{YJAT~r_q=w7)1OWDv;E{7ujzz+XXwAumYPpq&^%1+i>1pm znX{kyD3v5PlBct$ehmX@(C%MlY!t5?# z9lndg+}0o+s*j!r&9S}?gEP|xLQY^&Au~Md`+>j4`aY&p^c=p1*Hz=TM0^ZP$s^+I zf#mQBc(_@5>WL?K7GYa$$1Kr=FXEIYIuS+-2X^xY**0gWEh#W49kqCFBOv494A>s+ zOW?^~#DAeZzS8OirZI#*4vWSAG!`_AesOW1;}(PFuzktenRlLeoo~&*@rheZb_x5s z#FoDn>cveL;A`8;Dcq1Wxmrzj{A2>BvOq5c2Aj0w zxYQGAij45jNxA9OVkAQyB{80HS^(euJRMCO{1~P98eg*F1IbCBV1KNuK`oT z6qq-AfLRdlC0S#UB8*E6uppZXh@44KYZB8+!bK&1>1Q)uE`anclg(2qj{FjvkB^Zk z>_GSHx*p`BSSD1|mvxCphwJW)$>~9p>Y&$hKm2&HW&@pRsE?aDBKXUm@nSM@?o@acG>v0O_}AKKdhxlx{3=(xdT zE(F}qu#@CsS;?7jMPDm|=qSAOxOp{C6P{MlLATY+6PY2hA{wDuj&SudV#Qs=KP^Yl zxAZz063V)ebe!Y`N$$CD0oWJ@T<8y4J8^>SMIxf&J>rE&i4w9Gw~FtruSxCWzF^IK zEIqOOd~xT5coOZqB(rJ*sVCY!R!r2+FHim*sh&5yg!g+bR5FPhQ(j)zm>*DnM>e0# zg-OmJ*#hA?cz&;KN?ezs2^2&aeoZFMnXo>|XJ5086Z%rWrXpT?2~vl4g`|2t0y&At*ZedveTrR{gI-lug{*F8fAuzN436(o=#Jz7i?J=`U{5NKy~m~|QY z6vfV=XG=Gct{|V{l+@h@>`n8-lU{Y7#Kcmme65z>SM?^3KIS-&Iggz@c^M1yJ5E9& z9KB>ApWn5s_;vQmRs6hyqf4>N^WSzpG@H6<+||3Nt5C`!109H5Sr~WN$E*R&r&=Haz2e#tIkSeOBV8Uu;xK?EKC9 zqK(<(yEAMY?t!6e`$5hR*nacghyET(5^`D+Z{Y&U;p+i zS5nudue&Max7?h!&&mjs*lw8REoC*amU(I4ghr}VXDNwd*}o7K5!XC zE<4iOQRKoAiCNGqG39Av8KH#>gQ=NLY895|!E~`nnBtMgZzmTIKo$hGc>ox*nuyS7?W^}XiG*|ftRifagil)kD ziK+8PpgbF>VlHi3xfDhw^MQmB*4F-Na+e#7a_!mlXnqElz-TVjxoy~j12E^<>xq08 zsc$R zxhw9zY_@*6X?B*|!5)qQL^tY(J9Osm0;qzODDtA?F0_dUtve})nA3d0j$WWm2=VG( zh^%9%MxsyVcpZ2V6I^-{(t$RUCe-`lN|Br_$)mY=cI7(Lg#b6@n36LkJQ`%P{rt*t zM_NX|5{Z7Ibc6`sOyHvor{qKo1b?iG!URU#tcX52Dq9bUOi12;Y1+7{6XwR_!H~cF$aKb9Xd4)XS{7dAS}c{M{X^Ebp%%_rDJD|T@V@=D zm&U)z3UQ9eWX4p$96^ql{Ms1|Ole+SZeY{rDX!^KJnJPE77|`IUZ@rLlC-+AJW_~d z-FZr2XPyb`x||9%qe$P}$S~e&l~~@4RjV;GA1l|ux|d`5q!$}5$4j*!sFmX7DsnL& z%j3?Iy+4ie$Hzy)BS~9_F=yer5ROiskH{VzGMoKMSAoxdzh8=>Ze-?RmMKf)zz-l;GJlb97U zK>SrQaUn9~p0z5i1qOkAJ3w(?m#TyDToBaIpUq+%Pt`r&OB`!CYya; z@8WNl0X|9j=+zl2U4&ckwq?!HdGBpDwk2fwwDW})E2yqN^C@=j#v`XCA@!79-y#M3Ba${N^1GR^?Yt%r{3eq>y| z;M+8Ystx6VgSF}6MV%=(0)MQ0nvbASo`Dm+oINfm*VFR0E(HOhiwj2$!O?Bsj>b}u zbwSrDI(GcI>p(x5t9g*XK%s zb+0vCI&>&oXim(|#70XKr7K#&7fgz^yZl#`QZQ!sEz*atnP^SV94`;ELr|J494fQv zXl!P7qFKO|)c=^RcW@JtEEZmGsc5l?%>iC5ssYg@9}}u4G7Z~+{ppM|h-5v9Xen0^ zoZO~1ylHm_QYPR&rvUr+WmclQ`#uwz&l^usjlsE5qkOV$U3n!}r;f^zFx>Nn%cKm! zbovPh$@ zWN4>d`9+g+OQ(8;tCso^qL8ac;m$Wh!gl=Yt5)`vu32hHB%LR40-JaOxLk{y__0^H zg00{k-a8Ih@30Q6J-GPD;)C)^= zaB*>b{07=GoFf|aTk-F5oPmcIryi~&ZCZ_a-r1l0$gJS+g1W0J$qh^Ud?Dqi-+gyo z^D2e*RB7lNNagHM1A7W32W(*nY%$7+5JhpY5G*gL*MxKDxND)YE71gVMR5zWKGa=$ zPe1x2AGq^g@99gXKfp+Cd%2y{*-Vfu>;}~7lFU?WjsnQNvI#YJdSvE0?^NN|BcHSG z^>!EPw;uASZZ%a(2KnMJ_=vKj4A+EYeI)5O{9Mok=rI!AH^hSazR439+&586ebEct z^k+VL(@*~7M?SLU<$mk^*#}B*6leFVw3{ejdOjT&ANfc2zogwh61JOm4Gm%dQs=dX z%z$fEVa!toVbEUM`otLzXGaeHzum(AP7SugKn(Wvr7gIxb>TOK?< z_06iz(2`Zs<#e&)fEXApsAQ@ljg`!&a`j{|76jn<*`C{tWQDX>c%A6&|J>^YGKsB> zq0{TUmW!PtZ>*FqmgN1lUojh(^)97ydh5DHE{hH%@*=82f>74+N}?HJ-4d-UNdhRQ z11z_EQN^11DN5Eb-Oku6pY@URCn!%DtC_3cTl!`###&goX6#R$|LpQ|F$0&@s#%M* zB~UT&S61{a-$2VH9AB5pnD>`GEj0)eF<{Mau=u=Upc=~8edy!tI~-16-ia_H-4u?3MvD5YhDv1wS}aS%5F`O zw~J9cgS!w6s`jelf04#)vIgy{uQ4Tk2&4L6_m^>j!6?5$X&eXxpv%DtWFICuMO+S?L@tgDX`(<0|HYa87V0G(oOMUXrzX<>F;5- zi-c1MKrwZ|!seG<1r&(KOq7rOxh7 z>3B{T5|g+0?Wnm0u*UUjYk)T%R(0B0YRfXtdPF}!!{P2jl8OnZQ)aP2m^MuO{5aMC zj4gqOA(H^NO0Tp;wVCGleF5O1jG=4@1WSpD!$)>fy>Db@zLVWKQH=THJ0^-o&WBhv zbFEXp2IADQvj4ZiBJ@bM9W!APtQ_4_37{IF^np>`m3L02V*c2UiIS0H-#1WiCUuSH zmoK}P(Ab#tmC!#orFJvcKb4XZ4mnhXO??5~q513eZpF@@^iB?6(l6$FWB9U4 zo#}R|)Gn#1vHrf|!|8_#M*Gm=9nWYULwRFxh3AkwBJBqY^V2Y0dL715;CRb=lvh|Uco)Gz;^A98i-(H9y%qm#`@%&c82!z@9r87a zUU=isD(!>LqGf@M7E%7i1;!(83xJuJd$&M{2ZklYW(Spdll&8jzcPY7|V@k z6r5}OPw5p;hF@g$lRBjxM~&XXZ=ctsf(}r5dExI_)2xFwI2FFgD_Rl7SXj|w421K! z;EPM#kHqfK%wAew1rZ{O2H6Q6ODkJyzOk?{ zIysfvmzvr&vam3+OD|5&&Cgpk$ef*ulbs}Yp06YRWR|b2ti37a`j!0Xa4K0bO*?Hv z3ZMA(!6BlfO^(We?{g}t?FT?3*!FeBs`#0*>5Yu+hMGPFO+A`Zbk7#}uL@6bpY~@0 zebM1jLA44hMsQy}@Sok%0HX`t)JwJ@oXIv@o194(V)wvG9J@DGs1#x&_}=2NdaRH} zRS`=tc@-P5HX$q7;2wyIWm|EH$j^^wadsw@(9Hwc6x(wvkXM}SmhXi z<$NM%Ip*U*BN)r1GI6y7hUQ~e08WYh_}1KC1JiqS=yhECbONJ}ss%kRjCllgGREl2 z!+HS4!6*z|Fj&Qb;o=~XOzpPi#Uy$h`Ms>}k7jCBn6MRQbS`62^fI8BNkX!1v5|76 zN-c9=GE*qK%!F>a0F5AEq#V|fm$8W&JNMX5Jevo+2{6Uzrrq+SP3({%$sPKYqnbB57L z1^X&miDXWSwM|GEYe;fOXGo@y6cOY*Vsx=r0!@9^HdoW=9n0pWYgetT>^X7Us5d?1 z{-p|bInM9c4Lh)R1>Pr;dlmiZ*;Y zFFoUTt)9>+Pk%WQj1zGGSNfFW!Blk0Lvl)QdYfG}qDC}sVw}7jiBoM&`XO2zfcB;z zX44Z1P`U#cfN=+E;Oddf5AKLJ_8#SZbZ2GX(s+EhyO;OszR+P9v1lF1R+Cw$wX11o zt(uDE6ZO599qPnK_Z>a>g=}JYe*e-~e0YA};u|CPN%(OC1pxelDh5d}H)to(<&s2l zZ=szAJ|ZGKfciyYLpt{u{sp2P1%Ws2`&DVGVL7r<-?W=sK42_xzB-5OzM>lIDf~*qaEQP zF#|gil9c8Cz3B zhhXP;_dlmiP%Gq?0eE6@O4IS^C6D7(T6C+O^wuvr!au9+0NW=DUbX5K;4TFJ$x{Ap zuem*8IJ8~R_AysDYQm*|P8)wvP7D+^Jh5CtBLCa3((VvQs;zbx3j1v*)|U{?2l6Z; zuCoD4f*8T530)95zJI}AlcWc-XjzoZoC_B==aN_0cX4Z9y~AKv7+%Tl>EJwftf)e2yoVreqRlfj3Blq9NB5tSg!tB~z2F)7=f zQc=E45--IY55l*@0q|m@zlpFos7#R?y>Nf#RoR5^OY|(!DnbncM64cO7N-+^Ps{du zh@y~gH5yOkl8(v({EES<*kSnOO3;J6Gg~X#}aOfCrppS@|Ad=Y15X0AOrUO^@vIniC%@z#u{qRI2EaxD^k)AnWD~IF%4T7HS6- zOdVw^YmF$TMIiK>%1&48W(n3xbPON_(hyF}b_^(Z5-L?1$rf{z%(KBMqpTqntX$ED zGbtwU0xOovs$T{B59}K77X>iji!o4C60x#jI|XLYgp?{ntvAyFZn@-en)@SH1X1Hy zsZuhQ9(CRHY33lvX>c43d`IHDaj~OwXc|~Va6DK&9J@q!GY0A?LEbLl6RYm)orLY$d~EY7);RN&cklI^hq#<`?(SZ@ z)o%sk6+>T>$S;#)kA5S0e01JdOJKqHo_$Tou5&A|9n{4|MeU7WUgFVGe|%c5Yf)?b ziyB)eo&l7}5dD(hrf7w0MpfHKm#F#ANm$l?CenyPU7@AFDQ6>aKI`D2TIVy0^@bHZ zQ^Q;F+QD2WK34EK;*sV;aDZvc7M-bC;6yX6*0a2W(Y17y6ezwiEY9&@qW!rS3x5{R zNe4xEM6`00_dC!@B@!GFlUzJ=Rmbi3-5pmS>$tt1+c|dTIZaaX^kKexJ$Hw{Lw|M- z(_W!{o2Ng7HE8uy)LJlA!L%}rn!|O6+77A@`VOWpUB#L)dZj;d=PT~`YP0RGw7i0S zOWEUlbM@MOx~2bpth~SSwt2TQULN;aD{i}ZzwK1!y-IV%-j!;n`{{Q2vC4kJCj;H9 zN>7r=)#YS1+)4(cc%6WXh}tX3lVV|NKOR>?WRVO;!PJmWD8b+Zl65G)s7?J;>&~n$ zcIFAiiR98h$r}BW1d-OOvn@F6tNB`9p3{IYO0cJTw3S2^)gBb06zJf>ak;*JJ|r&;Hl*+e z#63b61fgT-pOHA5WOYg1d#SlP=vVYhIu6BG-7|7}&53CR84rF$Yc^??vQOaGu^!}p<4jh8YZsbtodx}>K+joA?>JuXC!f_&P zw^@q=rV8!i!Mg)qkwM+*F)9{&Dzlnfa~yg5)bZo?&F{R~di?RP%pA!b&&k`zcU{)b zb`DP6y#E*;`OpRp&me0gJo zWPwOd41?$mtCa!WV{mAk<5I6nnyus?4^sDy zgN;Vn&Bj2qfNseRd+}hjS<9W)^$G>>Gmx)eqcvOj_pThei=K!=(8EcM4vK0)H^LaC z)ED!BE`M&4e#c0~YNfq!Tg(>=Ob-#Pu)DY6pVo zetgg&JJ*F3$IOzn8w6RH7){Ez!f=>^EGHSi&dymz5*@@YdH9Y~wwVLQ1(zboe<%0^ zE)2?%+NCVo2h8D4F|hEPz0t(8oGVh@)k-aV)VvCn)TWS@i)%{dQmM2PF9MV&RNyFT zWGTPun+f}1wzN#LIhn&M2A#4ZfN5I!nrzAcq?Oy1MWAivl)RXm0DL%IT*fZ{^%$06 zAm8cx@|`;LCrI9aJPwMt)zhcfL42>BK5=401HM;jnIPx{r%wz^x94&kOn{ zo(tU0i@k512nd#}1}B`yZ@lrkTW`H}_4sipwX$cj^7a$+w@)8lT%5aP{w`+C=vj+@ zJ;~@5eB(~!vAD5$#Aq*;@CKI976%avabDnYLQJo$JNCI?2i3FR)<{k6$}}5!BRe`? z&l{PFQz>~y+R3(yxS>~6{Enx`cEMoK4^|#?jLc}W5g6H#@y2n>NENC@vd$U^sc@_E0ptTibG5u5jm)U~<;`b3b zeqMwzy;45p4eFoGZ%i61C#0UnU_8|Du1IeCPG=u`0Zx}DdNz*lgJKV2;vjv1?IS=KKTCLGNuI>VYB>V%l%y8(s*~=W zH~2GTr_S8xj*Sie_QcXz=t?XSgDjPUX%c;&J+RxK;zml6Iz-$p1<5JAt``1Wf+OL@5|H z65YrE#(^e&P7ogvAC6Y_&ikeWdYomn60u|a)4iHEKIZ*&ZP*(dKSxQqQ}IN=7N@A^ z(7LMTj(cO?@UT1Pjc+|md6JiKR^oO@VUf3tU8XD=xCn?#5=A?F^iZf+7`PiRMiyqidz1q4f}hjUX%c(5Q|^hjB%7?Z1h+n zk!cX5z#%?2J4;@0#c3b#Mm=HINGAHFrF5n-iW?e4_|ehiKcr#_ugxtVX;F8;hz+j* z(Wcyb0;rQ|O0k}>f5Mp<#+pLiI&#NJzuf*GSs5xo$WtnQZSs`2(2_#71fI>HZ-#c7 zk>I z>Lg#}LL^0T<0m3~eR>Fm@wOVTU;PCK~Bj*Dsx#(kSfwSI8&e*M5awgfn znaZS@Y%P29NR{AuIQA#OCg=1uFhetMGJA#?1nN^zPIcOl(Ix8XXiR48Q<>`ir3Mb) zPNtJ7sp{0+p-goTMouZy@pfd2M!7Tnz3!j6e@&I`TDM;GIy<~lc~@EeGSw_D@mQj+cYe(ma?cBed$plA_&Hg*q zaPE?tzT#*;lijng^YQQ`^%=KXOO1`@_RN&L9UZUO+7k>nQp4r!Y?PNGbN80^yq%$G zs~!X6Nc?Ohb}!19(o$c~F-!o_kOqiS_!gP58;-CY!v?y-e<98aKcUak|y* znD4yZ-R19Ul?;{7!T%s&`HXukX0(n!d|WD78oA+7?Oe}s$EOE-*WjTd@-f2#bO(&L% zP52QTsuDkus>YMGxJ3{wl}|b&$^VTt&DkVN{Hb9^I{^gn8@1q+F3pai%%!DkrQRKm^>wxo^^-q>_5Po5Yz zZx~5@0ndcl@1NC_WkZ>7f13;bdvHx8mXj~HTP@-XzfxVNu2(m!RduI2sUA>|&=1GS zc`7X}TB4W1Cc%>-wkDoU%k1`M#Sw4im*%WCEAY$Dfep~{P-^JLN^Jl>pnd8{QQmrH zsXMB=77i>C$W)yoKo6B_ySLC;1b#4w)r+w%S{7xd3Vh<3@Ad>9IuG5*Tv4#J`0`8h zvVaLT-=U&(sXbRHLi7R9DBq-$q5RG*%*px2sZLc8AnrIy0Rz%3!M8hCw3ZeCAaS7` zlV$Redb(S8G#L};M#n>i7Uw~!H@_(AcYzDBOzE79b8Qx9ml*<_$D}>x1?}7J6idDF z=6ta^+bNL|SQ4K21)>O2bt}()JnLSOL2GdJQjeHyuO6E$bqcfHxp~IV;*ymoS+4i~ zc+BvwfRtUS;jG&vdmN-LHOerE2<#*Q4J0!->gf_-2&C`oJS8|qh$4WN5Ffk(6+(e* z$@U;g5ZbOpJa5(JYaCKpXp->6Gh*T_!a?iO*)vd!aTuZwoCi8!x)?`*cAyHFfe3*q z2W4+LfV|88y1EvhawO;o*p88sZRZW2dJ9|&cq^*d+10YgFNL~Cm&6hv;gKsoZpKo+ zJzSRX0GU^IinS&uUE*-uS)5bKy;Tw>Xtb*8KxM_?U~Gz%P@&<)Kgjjqqa9$b_@Q9O~P3W5-DsXQSSX?VFj&Ve1pSK(0; zLx9%hT(G=zSNa+g78j)`!-!r(DRV2W9AY}D3g^uYrw~Y#*^VjdO3o>A&?sRjTk4(FqNxC??qyeaj=>S-=JR^s-!%d(Miy_;!1m>>#5_Qk{%&b2<{ z|Mf$^G;{$P70Hy)!DERbV}~N@!%AZUqA?gEdX#{_kZ_x^u(U{koe>&?KHU(jsIwp- zLuygrs%CHqUveSenP&kkFgk>|ujJ4~+z!STq)PdWhr+gl!yBPd$uRcHj^9*^D7` z7Y;SPjtkowL$oBbk0H~I{=@o1Vxa+XQwGA0U7CY^*k0sX#>f}{hm1U$l1C!_!Y0Nh z%tSoU_=qL0IYR1CvDtQoCyxST5zXUKS|n8_ZIwv*)JwC4=7%XHoqQJ$m|f_Ldi*K| zAZ8=DRYo+#9dt|SDx8a_2Rjc>S^{mX;pv9MP#(9Oo7f*K4C4NDw3q`$AjgP9%%8X< z&eibP6T1I$Fgb+uE+hdRJTHY+kRM685{8_xRMX|<3Sb0x4iR3YyE(9bv6Y1QkVEuE zu0bS$vfn`P56=QUo^H+E<7{BCMC6e|?8Hc+Z?cNQE(jg2-8L*IPwuHxhEmW>gXT{M zrL;>R+w|>x(RDt`9dW^Ow=(1qeN;M>hLE+@V`XBRK%YJWFZ!FX+Un+f&fF}s7VxC z?nLV7ay;6AjSEuD9?{7wnEUmLRb&5AcYeQ3$yWRC?U?i5{wDTk#*g_%Fw@I)I#`t9aYL+W zR5f+8s+%^6BXc1%6`nY8f{4Au?6o3r=G27?QS99mT|k9C&K!Do2hHVDq`?5;w3%zf zq}VY#65Q;z7dL+{AqLtVlR1_Do$IPT5zrVmNuVPIqbR>T|mC2+k4({AF&DA?G?{U^~F>J z`EnZCY5t87|U;c8woTy&{6e(@PryMixVQ3$Th0~Ti+`;`*4>JQmm8zKHu$zqR z2*7kpzxA@WU%elXyKisa=$&9UUA3?<|@$wh+doSMt`a+qpC0;#4?fR?nm)#@wnRtZTVr!J-$zZWl z_fzy)?0REC@GsaNd}RQey&}Fclu}6x(EcYPf*6-G3KbQiQzC=n5T!+By6rW5Xtq zklGh$IMbNAEN;bC-e0O`(v1wjn5GMVg6F#Rxvr;>e%?)F#L)^N-b zXyyH4a8@%?3s(`2LSdm;Thm=tzgg4m(j%qMY$``N!tdZv}FQ$whnPN$8OmqyuT8aC{t z$K}vVJl8VQPJxgCI)Tln&0pZCZS!0ht;ah;=vt7cI!e45GjC#RN4``XWD-FTN7}a< z2lEcK9_;*qF`(y;qxLL=dFngs{ngfaD5O?xeq6Cv!{msYZqlERFE6jPc*&#NnrAo9 zAI`JZ)>lBXjAo+N;cVx+%sQ z6zz2=LjbnNZj6H#wi}l;pe?0{f#2`rG(JbVPvdeaR3JaLoXZ=sG~Un~KO0bfhlG8u zDfH!rG5bI>mJw&KnM=Bi^t%h^+oVXGRSMkA5&BdnzqBG-Q-lNYu%%exm zYw%(2S-v)L^l0MRWfuFNr~2*~TX9yllZ8`3kAUy)-NE2fo{vt7)SN%!-xjZ`v{F~+ z-duwBim+QC7p5tdByJmCAALwC-Vj~DQMa|MMLI3`qV9$X-B5ym)s5+Vs6LX z;a)>)wxsC9Q}nIA4dD66OV;3aZM9UT;})+!UUoZwbN%&2x6^U&(5>wFEuDtrwARD# z!LsgxHXsve>S#`~z{?jvk4XI$C{Ic-#ESQ9(Bq|r7gwu0n^rzK4N;qZlvJVRARKQ6mB;ru6ICie0+aFqWp<}YZ<4;w0MlJbyrWWW0^DXnv}&mu-RYr$HWyKd zq#CCYTC>tv$aZmC>O^h4L(JH8&yTr{-44v%(+#&i-t zoxylim|a*~94n2W6X$~MB$ALjCJ~~TU-1)&{wQW7e#Il?UA-PO*xf_-@}w4)v{8J} zz+@h0q+!Eyvw#kp;~FbsiLosu1wbbt>c!Y@cf?{IZxhyFD(`ASQ9OD`c*uoGVR*3< z@-AjxabF0)1m@e=uy~*VkJtn=@nv9WA-^%yP+({Q>ULs&iFsz@SK-UULMG)>vFVdA zOyN|`UU;#?@;Ew>?45OoISm>S!PBHky>Mb~G>w@Y#~2k&2|JB^O>D7z9P~PV8j|qf zU~~#qujJSjw_0#2>EZnOZ63~0j|=+{&U(f=Bb+hLh(}6^e5404(nH4a9~(UQx*I*Z zgWhHCp{g4_&Zv8M^pn}kyu(#Dl7E9fDw^^?w}*yjer~Fg zziiqn@ zJDgB(nUI*Xm>ITT&-racj+ttPKcYs3VUj4}--EbL(nhyk+^H=>$hAy$w3->49=l{1 ze|vJ;PgaL@NIje@x32YN+vt_9^E+PKcfKBJDz4$%&qvQGWMyUy5a>h3Z#^eOC7M2j zs-pK3h}HH1D7H@F1y|ufttx&|!|^CoK}y`_Hy_pNh0T+A$u`j*4xmY{Ys=o!c+PM- zLl>t%if$v?gUSN*JJnyOvk<)J_|G^f+;oi3pWT#?;DalA#^1|)e}jxhNwLyIJmT@g z^%oZASXd$vQ=qisg$!d&k^!L2R+&LtqNj*Ia*&v{wcK4<7s?zfmjUqaWHLERzUsUz z%5`SFaW8A9En(xK&bbt;fm$^YpOLrq&83UF)S82D!*RyS1SErEW+huR$sMM)b9NQAg4)=T0$4EOGJa5rk!nz2v#MlnW z^A-t4Z>Hx69t5Y3ULzz6gD;lu2Res!32PXzr6Bi^0D>I3K18Lgqc^csmv8=+l*f27 znJp)uO#ZlmE%|mYfESA;Di-mQ)OdtqSPN)6No~nej_pgIlu*Ij;VksXw-Esl>N8@m z3m=Vm>O=xC`H=b`BT$&bKa%~fU-@7fHc(f^^`7_KnY!k*&YoMh{RK^T2L!iDn+ac`M|Pxe4D%qX8NyBPt8xIciQ&O z!2%l$h-^7&IL{4jaPFvnYJeYJi`0;Ej0?e4uX7khmD)HJR_&_+hVIvZ)8=bv#(2{- zI}*6)3#$~nAX_Ms-$VZ$Us{cOlDzUEy33gS$3SSB994qE0Dr7Svc?G_Xd(*<6Tkq) zxe9Zv7A^fQ_KM7EMnK?0pUn9HTh`C?^PD(jN$ zTg$DIp4iXAzcZ4ESHT^&@!?Wtz{z>TnIF0&KU}WX_j;~hD&&HEH0O)o?PYSKXoyf! z2}J=f8L(7utl@ zLs1+CN_wK}nIX7XZzXOW9=PEC45<5J;Ej>rawrWN_F@usMg>HfmrV%RaFu92o3#s% z5gQO ziih8%-gMHZ!a%}yJ%Jx0==eGQAEln$J38LdlGlFdYdZQCi{&Lvno8JAC5}%}&YH7Q zb#zH_$4fj8T^qp&Gihx45kd~|XlJt)S>miGBoKE1&7mDqvFJ^Bd5lB>GyrkC997_P zK;=Y*CW$d+U+u$H*>RW1_rRJD=i(M|uL+RbS1}T0($mfkWR(|}B*FwWNOVj~{N1?r z#IeYe7>$<>BuIr8SVl(Gjf3h3ljJ#BWP6sy@kLAb%8y~F(PO4liIO*zl7k2t~ zu~@MEokfS7uhEQTg8TMDGWoh%GHFau|Kbg5N^XZRrlGDZwwt5FB_b70X?T?KuvZbV zByiGKX&fZDMbc{7A8!no3%D~X!;NvjVyQQE49n`$W^bXNg|cRFe{UW-v+WK6^K9KA ziF5S1m%Bq8{F??7LQ1SnZ8OnTsW?JBt|=9hQ45NeI2!o6*$zdxm~}fq&heewA?Lga zU0(EhnG&J}Baxwh@SVQnWz12Q_B8dCyjbx@hEH(l}axRK^h~%41g zS1bp$gO|^q%+=E>4IhxEy*WyOyms)b`F8eN@4AvPdGts#z4#uNE$TVk%$hYwszhj5 z+NOLBucP^$ucL#u_NwPEpE&XACqJPbEX>Hi6?tKmM)HInS%YOOS|2h+h3n(2Ekx@R z%;&Xe*<}5WXxTx&%tXtA^}K<*0|&qw4+}nAHduZnT8^>&zGzw4^gb3XCx|kAGFmoS z|0~h5Lv6d?jFwYFZI!=v(x0(_Ife{N@KAXv|H|%|)w@ z-*Z<(wr|}1-~*5F_E6)dH$VK=+wW`K@W@+FzWKq%B@dpw>z+p*IlX6QMz*-?zWW}W zzVpHRhwdDDaOmXFoAu`d#2xM$IyLmxq5ELie&|KNy>QE$*zzG*xZlkF4-7T1*Tf2$ zd(l3}iDTTwuY=<^Xe-(N5!T7lLww%EuMcz1+c|54c723pxuOU8b_wq%Il?`xePrnL z&>o(_%;qufVvqaSVp^Z|{?PUq^nX5I^it>XZiq*Nd4&i~QrXH;DV0_(nn*@v@do+i z*5nl=5n!lL+ZaO-3Zwf9j-sK))VOM@3Dr_0$FB12VI;@VUOVp+6sJcvDuC7qWz-O(ftJKx%8g(s5t=ECox#V!Y~7-6Rj*fXP`9ZQ;J4nW-lT3VEZrdQhEK zXVgRLVfBc5t9qMyR6VBNt{zw4rQV_5sotgDt=^;FtKO&9)D!Cc>I3S7>buqVs1KFW>L=A_ z)K96OR-aX8)z7G(Ri9Hor+!}jg8D`EOX~CLm({;e|BLz+^#%1W)vv1mRXwB5ssBy= zn)-G1MfI=Lm(*{l-&D`4-%|ft{kHly>UY$?RllqL9Z%+h`aSh!_511%)E}xpQh%)e zM14j5srvWoKdAqx{*(IO)t{+9R~zc9>ic6W0rv6@iU0qcFp#D+)cl8bRKh!tX|E2y(eM>#BzHJOKqe?7GV`zXJBmvSnM#@MV zF63kxBWvUgg7HQk5CDN_qij@+sxfTTj1h`1){TZSW{ew6W5Q?|ZKGrCFm@Wdj7ek4 z*bRDR#+WtcjCrGLEEtQ%lF>8z#ZZd8*ZZU2(UT?g?xXn0WtQv1L-elZv++o~l zoHXt-?lw*t_ZV+B?ls|j~H(?-ex>%JZ8Mzc-;6d;~mC3 zjdvOEHr`{r*La_?W;|iM-}r#>Kl`|@CE0Nsy2X(?sKbPNy=zx(*?w@9pY&0b#Fltl z615E7qxk`+b*15gk17WP*5HuiS*4)!X0Cwmur zH+v6zFMA(*Kl=dtAo~#eF#8DmDEk=uIQsNQmH2VzuEc+b$Jo^IsBKs2iGW!bq zD*GDyI{OCuCi@oqHv10yF8dz)KKlXtA^Q>gG5ZPoDf=1wIr|0sCHocoHTw7( zw)O9MARz7d;-KN@Y|rPMUSf`XScDNb%(%6@Y}WkFY1l6gYA~s1Rt5GhbZ)E~W`SN5 zKyAF-ZaraIZW>~e$;+JKONWmRiSyg7nUY%CR*Sy^|H`X>`HC~ zD8(yKb`I)jguW_nU3GePTt+~viJNpj%$G< z)M683WGCBJR8Jy@%36y&$kykwiSdU#X$Rjv)b_GjnCjo*q(x|QT`dukT+{w%Wh;ka zgaCGj10iY)-c|k(TAcYhux=nG^~?grUF6D`gos(Gb~_=^8MG}Q!b%w!rSlHMbNHl? zy|}@%6Fs~vP3a6Z3Y(Kib0oyXxgLk3+JmTQF3s8EIdEfgpMzpGu?QGap&>j6*(wW@ zh7krHgyuCgwWzT35*tq{1m=={{5dQtZh1kWRSAR=?f-J3Z0^tRG-BTzM(#5|M^A%= zu?gPhuE*QtPKxT~|EKrHM}uU-+3eRmSK&>Mq&wFGix8;yFMi$sRC>dskyh1bGoLaW>#0IZig;5Fw)%T*bH$l)MO!8vP z>A4D`fjcwNT4>il335swu5G^4yc5x&D0^|zz{?PglVL9fF{YJ!KPv`PH0E9&-|W|q z5n-$t@&XgjdEmc_8}sA9oAY6cz-)S_8d6W zT&D`zimZ~mU5=_FsBT~wN?(T2#Q*CFe%Q`qQ?uXm7iq*lC4OH zo|8`~S14;X^n)yJ`G~zO0O4{l(yT={*fBrK9))S;aXL6X_4HiamaVHqCT<7bR~~3U zB61+Hgu;lMOpFmPs|%0|;73L0y8?+&F&q3^6g4~m!n44oyB0^Z+@V}~Z_Pag$fxIq zelR28(Kd3eMD^0+G^hsA({f%lsj*s81A3EMqKMZhI4DZMC!5uTP(V6KVowfSizU%J zVavu-h>u#lM6$u5)@kvILk@(ZQ$0tHCdG;uAL&;FwXc69u2pVTUN*e1g?ahWa4(M2 z;MIQ*UXlRWf~wDlp&d8({GbMJyB{Ta;|hOfs;5nRuC=rPk&<8(__B@spw%N(6n^%MHK*2*EfM;z%c zx8oqz4VJ{w`)Ei#GjHH7#8c9s&|fx6%RAs5pkE{QQW&pnD*Hm+&X5%-Sc&X+3N-o@ zJI7{s{QGFdIKZz_dTC{mkdip^2 z%o!_pGZh(c8-8tq>Hk`|+{Y)~y8Yxf4Js6lwK{#4x zur{3*plu!#_qwGnyl^do)LFHYw`UTAoZPo!dD7WCfsK?fTWzePj<34@l^LWBVaH1~R0i(WN14S--yofj~A(JBNmCS@S@0do@~XC1G5 zVV5131Pr`Nh{`%X#2|h`cyOzFT60JFi1TDWt}YJ z3Kt-k9Ra9??yQs4vadTJJ)+I`SP7M!t1i}|STao7IU~!Yb5<+}SSXn@Pk5x9gQN~1 z>s21fq*qp4(+}Mla*GOtbH(f^Sty|Wj+bIh`IHYD1ymf@O4q!XcmB*~@bdsy52!L| z3>O1O{VsXG@_l8<^@QjQm_PvzB_ff7RBmU1Ob5w(wHzd>7hGd62HCIi2b`y(W5-!w zRFbqex)nPJeqkmXxt3wYLc5*9Qiu}Ukac%V&QQfPDo#I*zQUr z76`152r>BDN0C{f-XU;uzytpGcc8-+ATS9cPh|i&gkWC^GY1J|fQv24 zG`e=7XMy*R1KudG1N129>oCvLmd2HePA91UImv@bzGBV8qSFEU5r^64u{Z|17Q++t_%t`B5a2pY$A<}Ma#PmbqFJO zcjGED{+1l*1Q*ci#(Q7qqCZGnG%35bQ3RjEFJ>0ljS&`|b8T|!7#0(kdOVn!MvAtY z8}xoCnhXC#c+U(a|}*VOJQcNij|_I7u!8 ziPkNE_hRBxi)b>b)v$hpgF;IiKf>K})R=5fW4>!xome-_EkYHh-B3H2Biqo{m(7^t zy7Bap2wvMh6wVyFzqWef`bWJbhJ3|#J(a)g{sO<9oR<4Jm&iDOm78`q@e2_C3bj0R zQ~L)hUZgXSKmuPrK?2Tt1PVKJ?4U0Xa4){wpdCeLrOhnx$q~1-`H^eVOphG*jqKP+ z8=@H`QZuI\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>{var _;(_=document.getElementById(G))==null||_.scrollIntoView({behavior:"smooth"})},fe={class:"__container_app_config"},pe={style:{float:"right"}},ye={style:{float:"right"}},ge=I({__name:"config",setup(G){const _=ee(),z=[{key:"key",title:"label"},{key:"condition",title:"condition"},{key:"value",title:"value"},{key:"operation",title:"操作"}];let f=ae({list:[{title:"applicationDomain.operatorLog",key:"log",form:{logFlag:!1},submit:e=>new Promise(a=>{a(B(e==null?void 0:e.logFlag))}),reset(e){e.logFlag=!1}},{title:"applicationDomain.flowWeight",key:"flow",ext:{title:"添加权重配置",fun(e){J(),te(()=>{var t;const a=((t=f.list.find(n=>n.key==="flow"))==null?void 0:t.form.rules.length)-1;a>=0&&de("flowWeight"+a)})}},form:{rules:[]},submit(e){return new Promise(a=>{a(P())})},reset(){T()}},{title:"applicationDomain.gray",key:"gray",ext:{title:"添加灰度环境",fun(){K()}},form:{rules:[]},submit(e){return new Promise(a=>{a(x())})},reset(){W()}}],current:[0]});const A=async()=>{var a;const e=await ce((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=e.data.operatorLog;return}})},B=async e=>{var t;const a=await ne((t=_.params)==null?void 0:t.pathId,e);(a==null?void 0:a.code)==U.SUCCESS&&await A()},T=async()=>{var a;const e=await se((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{t.key==="flow"&&(t.form.rules=JSON.parse(JSON.stringify(e.data.flowWeightSets)),t.form.rules.forEach(n=>{n.scope.forEach(r=>{r.label=r.key,r.condition=r.value?Object.keys(r.value)[0]:"",r.value=r.value?Object.values(r.value)[0]:""})}))})},P=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="flow"&&n.form.rules.forEach(r=>{let i={weight:r.weight,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label||$,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ie((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await T()},J=()=>{f.list.forEach(e=>{e.key==="flow"&&e.form.rules.push({weight:10,scope:[{key:"",condition:"",value:""}]})})},H=e=>{f.list.forEach(a=>{a.key==="flow"&&a.form.rules.splice(e,1)})},M=e=>{f.list.forEach(a=>{if(a.key==="flow"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},R=(e,a)=>{f.list.forEach(t=>{t.key==="flow"&&t.form.rules[e].scope.splice(a,1)})},q=[{key:"label",title:"label",dataIndex:"label"},{key:"condition",title:"condition",dataIndex:"condition"},{key:"value",title:"value",dataIndex:"value"},{key:"operation",title:"operation",dataIndex:"operation"}],W=async()=>{var a;const e=await re((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="gray"){const n=e.data.graySets;n.length>0&&n.forEach(r=>{r.scope.forEach(i=>{i.label=i.key,i.condition=i.value?Object.keys(i.value)[0]:"",i.value=i.value?Object.values(i.value)[0]:""})}),t.form.rules=n}})},x=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="gray"&&n.form.rules.forEach(r=>{let i={name:r.name,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ue((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await W()},K=()=>{f.list.forEach(e=>{e.key==="gray"&&e.form.rules.push({name:"",scope:[{key:"",condition:"",value:""}]})})},Q=e=>{f.list.forEach(a=>{if(a.key==="gray"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},X=(e,a)=>{f.list.forEach(t=>{t.key==="gray"&&t.form.rules[e].scope.splice(a,1)})},Y=e=>{f.list.forEach(a=>{a.key==="gray"&&a.form.rules.splice(e,1)})};return le(()=>{A(),T(),W()}),(e,a)=>{const t=w("a-switch"),n=w("a-form-item"),r=w("a-empty"),i=w("a-button"),k=w("a-space"),$=w("a-input-number"),v=w("a-input"),b=w("a-table"),C=w("a-card");return p(),D("div",fe,[o(Z,{options:L(f)},{form_log:l(({current:S})=>[o(n,{label:e.$t("applicationDomain.operatorLog"),name:"logFlag"},{default:l(()=>[o(t,{checked:S.form.logFlag,"onUpdate:checked":m=>S.form.logFlag=m},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flow:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",class:"flowWeight-box",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无流量权重配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,{id:"flowWeight"+s},{title:l(()=>[E(F(e.$t("applicationDomain.flowWeight"))+" "+F(s+1)+" ",1),O("div",pe,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>H(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].weight",label:"权重"},{default:l(()=>[o($,{min:"1",value:m.weight,"onUpdate:value":u=>m.weight=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(i,{type:"primary",onClick:u=>M(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:z,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="key"?(p(),g(n,{name:["rules",s,"scope",d,"key"],key:`key-${s}-${d}`},{default:l(()=>[o(v,{value:c.key,"onUpdate:value":y=>c.key=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>R(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1032,["id"]))),256))]),_:2},1024)]),form_gray:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无灰度环境配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,null,{title:l(()=>[E(F(e.$t("applicationDomain.gray"))+" "+F(s+1)+" ",1),O("div",ye,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>Y(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].name",label:"环境名称"},{default:l(()=>[o(v,{value:m.name,"onUpdate:value":u=>m.name=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(k,{direction:"vertical",size:"middle"},{default:l(()=>[o(i,{type:"primary",onClick:u=>Q(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:q,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="label"?(p(),g(n,{name:["rules",s,"scope",d,"label"],key:`label-${s}-${d}`},{default:l(()=>[o(v,{value:c.label,"onUpdate:value":y=>c.label=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`gray-condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`gray-value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`gray-operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>X(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:2},1024)]),_:1},8,["options"])])}}}),me=oe(ge,[["__scopeId","data-v-0ea8fab1"]]);export{me as default}; -======== -import{C as Z}from"./ConfigPage-bt_br5PT.js";import{d as I,a as ee,r as ae,a4 as te,D as le,c as D,b as o,w as l,n as L,e as w,o as p,J as g,T as h,L as j,M as N,f as E,t as F,j as O,I as V,_ as oe}from"./index-JtaswhjV.js";import{u as ne,e as se,f as ie,h as re,i as ue,j as ce}from"./app-PIImRajL.js";import{H as U}from"./request--dYXBGM5.js";const de=G=>{var _;(_=document.getElementById(G))==null||_.scrollIntoView({behavior:"smooth"})},fe={class:"__container_app_config"},pe={style:{float:"right"}},ye={style:{float:"right"}},ge=I({__name:"config",setup(G){const _=ee(),z=[{key:"key",title:"label"},{key:"condition",title:"condition"},{key:"value",title:"value"},{key:"operation",title:"操作"}];let f=ae({list:[{title:"applicationDomain.operatorLog",key:"log",form:{logFlag:!1},submit:e=>new Promise(a=>{a(B(e==null?void 0:e.logFlag))}),reset(e){e.logFlag=!1}},{title:"applicationDomain.flowWeight",key:"flow",ext:{title:"添加权重配置",fun(e){J(),te(()=>{var t;const a=((t=f.list.find(n=>n.key==="flow"))==null?void 0:t.form.rules.length)-1;a>=0&&de("flowWeight"+a)})}},form:{rules:[]},submit(e){return new Promise(a=>{a(P())})},reset(){T()}},{title:"applicationDomain.gray",key:"gray",ext:{title:"添加灰度环境",fun(){K()}},form:{rules:[]},submit(e){return new Promise(a=>{a(x())})},reset(){W()}}],current:[0]});const A=async()=>{var a;const e=await ce((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=e.data.operatorLog;return}})},B=async e=>{var t;const a=await ne((t=_.params)==null?void 0:t.pathId,e);(a==null?void 0:a.code)==U.SUCCESS&&await A()},T=async()=>{var a;const e=await se((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{t.key==="flow"&&(t.form.rules=JSON.parse(JSON.stringify(e.data.flowWeightSets)),t.form.rules.forEach(n=>{n.scope.forEach(r=>{r.label=r.key,r.condition=r.value?Object.keys(r.value)[0]:"",r.value=r.value?Object.values(r.value)[0]:""})}))})},P=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="flow"&&n.form.rules.forEach(r=>{let i={weight:r.weight,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label||$,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ie((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await T()},J=()=>{f.list.forEach(e=>{e.key==="flow"&&e.form.rules.push({weight:10,scope:[{key:"",condition:"",value:""}]})})},H=e=>{f.list.forEach(a=>{a.key==="flow"&&a.form.rules.splice(e,1)})},M=e=>{f.list.forEach(a=>{if(a.key==="flow"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},R=(e,a)=>{f.list.forEach(t=>{t.key==="flow"&&t.form.rules[e].scope.splice(a,1)})},q=[{key:"label",title:"label",dataIndex:"label"},{key:"condition",title:"condition",dataIndex:"condition"},{key:"value",title:"value",dataIndex:"value"},{key:"operation",title:"operation",dataIndex:"operation"}],W=async()=>{var a;const e=await re((a=_.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==U.SUCCESS&&f.list.forEach(t=>{if(t.key==="gray"){const n=e.data.graySets;n.length>0&&n.forEach(r=>{r.scope.forEach(i=>{i.label=i.key,i.condition=i.value?Object.keys(i.value)[0]:"",i.value=i.value?Object.values(i.value)[0]:""})}),t.form.rules=n}})},x=async()=>{var t;let e=[];f.list.forEach(n=>{n.key==="gray"&&n.form.rules.forEach(r=>{let i={name:r.name,scope:[]};r.scope.forEach(k=>{const{key:$,value:v,condition:b}=k;let C={key:k.label,value:{}};b&&(C.value[b]=v),i.scope.push(C)}),e.push(i)})}),(await ue((t=_.params)==null?void 0:t.pathId,e)).code===U.SUCCESS&&await W()},K=()=>{f.list.forEach(e=>{e.key==="gray"&&e.form.rules.push({name:"",scope:[{key:"",condition:"",value:""}]})})},Q=e=>{f.list.forEach(a=>{if(a.key==="gray"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},X=(e,a)=>{f.list.forEach(t=>{t.key==="gray"&&t.form.rules[e].scope.splice(a,1)})},Y=e=>{f.list.forEach(a=>{a.key==="gray"&&a.form.rules.splice(e,1)})};return le(()=>{A(),T(),W()}),(e,a)=>{const t=w("a-switch"),n=w("a-form-item"),r=w("a-empty"),i=w("a-button"),k=w("a-space"),$=w("a-input-number"),v=w("a-input"),b=w("a-table"),C=w("a-card");return p(),D("div",fe,[o(Z,{options:L(f)},{form_log:l(({current:S})=>[o(n,{label:e.$t("applicationDomain.operatorLog"),name:"logFlag"},{default:l(()=>[o(t,{checked:S.form.logFlag,"onUpdate:checked":m=>S.form.logFlag=m},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flow:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",class:"flowWeight-box",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无流量权重配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,{id:"flowWeight"+s},{title:l(()=>[E(F(e.$t("applicationDomain.flowWeight"))+" "+F(s+1)+" ",1),O("div",pe,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>H(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].weight",label:"权重"},{default:l(()=>[o($,{min:"1",value:m.weight,"onUpdate:value":u=>m.weight=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(i,{type:"primary",onClick:u=>M(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:z,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="key"?(p(),g(n,{name:["rules",s,"scope",d,"key"],key:`key-${s}-${d}`},{default:l(()=>[o(v,{value:c.key,"onUpdate:value":y=>c.key=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>R(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1032,["id"]))),256))]),_:2},1024)]),form_gray:l(({current:S})=>[o(k,{direction:"vertical",size:"middle",style:{width:"100%"}},{default:l(()=>[S.form.rules.length===0?(p(),g(r,{key:0,description:"暂无灰度环境配置",style:{width:"100%"}})):h("",!0),(p(!0),D(j,null,N(S.form.rules,(m,s)=>(p(),g(C,null,{title:l(()=>[E(F(e.$t("applicationDomain.gray"))+" "+F(s+1)+" ",1),O("div",ye,[o(k,null,{default:l(()=>[o(i,{danger:"",type:"dashed",onClick:u=>Y(s)},{default:l(()=>[o(L(V),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:l(()=>[o(n,{name:"rules["+s+"].name",label:"环境名称"},{default:l(()=>[o(v,{value:m.name,"onUpdate:value":u=>m.name=u},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),o(n,{label:"作用范围"},{default:l(()=>[o(k,{direction:"vertical",size:"middle"},{default:l(()=>[o(i,{type:"primary",onClick:u=>Q(s)},{default:l(()=>[E(" 添加")]),_:2},1032,["onClick"]),o(b,{style:{width:"40vw"},pagination:!1,columns:q,"data-source":m.scope,"row-key":(u,c)=>c},{bodyCell:l(({column:u,record:c,index:d})=>[u.key==="label"?(p(),g(n,{name:["rules",s,"scope",d,"label"],key:`label-${s}-${d}`},{default:l(()=>[o(v,{value:c.label,"onUpdate:value":y=>c.label=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="condition"?(p(),g(n,{name:["rules",s,"scope",d,"condition"],key:`gray-condition-${s}-${d}`},{default:l(()=>[o(v,{value:c.condition,"onUpdate:value":y=>c.condition=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="value"?(p(),g(n,{name:["rules",s,"scope",d,"value"],key:`gray-value-${s}-${d}`},{default:l(()=>[o(v,{value:c.value,"onUpdate:value":y=>c.value=y},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):h("",!0),u.key==="operation"?(p(),g(n,{key:`gray-operation-${s}-${d}`},{default:l(()=>[o(i,{type:"link",onClick:y=>X(s,d)},{default:l(()=>[E(" 删除")]),_:2},1032,["onClick"])]),_:2},1024)):h("",!0)]),_:2},1032,["data-source","row-key"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:2},1024)]),_:1},8,["options"])])}}}),me=oe(ge,[["__scopeId","data-v-0ea8fab1"]]);export{me as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/config-IKkzv5Nb.js diff --git a/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js b/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js deleted file mode 100644 index 2e96e1bbd..000000000 --- a/app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/configuration-mnhVbFFZ.js -import{C as _}from"./ConfigPage-HbXln963.js";import{d as h,a as u,r as S,D as b,c as D,b as c,w as l,n as I,e as g,o as k,_ as F}from"./index-rt1yTeew.js";import{u as C,c as U,d as y,e as P}from"./instance-ChxJL4oQ.js";import{H as i}from"./request-vlI2kaaR.js";const T={class:"__container_ins_config"},E=h({__name:"configuration",setup(L){const s=u();let r=S({list:[{title:"instanceDomain.operatorLog",key:"log",form:{logFlag:!1},submit:a=>new Promise(e=>{e(m(a==null?void 0:a.logFlag))}),reset(a){a.logFlag=!1}},{title:"instanceDomain.flowDisabled",form:{flowDisabledFlag:!1},key:"flowDisabled",submit:a=>new Promise(e=>{e(w(a==null?void 0:a.flowDisabledFlag))}),reset(a){a.logFlag=!1}}],current:[0]});const d=async()=>{var e,o;const a=await y((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=a.data.operatorLog;return}})},m=async a=>{var o,t;const e=await C((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await d()},p=async()=>{var e,o;const a=await P((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{t.key==="flowDisabled"&&(t.form.flowDisabledFlag=a.data.trafficDisable)})},w=async a=>{var o,t;const e=await U((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await p()};return b(()=>{d(),p()}),(a,e)=>{const o=g("a-switch"),t=g("a-form-item");return k(),D("div",T,[c(_,{options:I(r)},{form_log:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.operatorLog"),name:"logFlag"},{default:l(()=>[c(o,{checked:n.form.logFlag,"onUpdate:checked":f=>n.form.logFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flowDisabled:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.flowDisabled"),name:"flowDisabledFlag"},{default:l(()=>[c(o,{checked:n.form.flowDisabledFlag,"onUpdate:checked":f=>n.form.flowDisabledFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),_:1},8,["options"])])}}}),B=F(E,[["__scopeId","data-v-e97c3730"]]);export{B as default}; -======== -import{C as _}from"./ConfigPage-bt_br5PT.js";import{d as h,a as u,r as S,D as b,c as D,b as c,w as l,n as I,e as g,o as k,_ as F}from"./index-JtaswhjV.js";import{u as C,c as U,d as y,e as P}from"./instance-sa6ohjCn.js";import{H as i}from"./request--dYXBGM5.js";const T={class:"__container_ins_config"},E=h({__name:"configuration",setup(L){const s=u();let r=S({list:[{title:"instanceDomain.operatorLog",key:"log",form:{logFlag:!1},submit:a=>new Promise(e=>{e(m(a==null?void 0:a.logFlag))}),reset(a){a.logFlag=!1}},{title:"instanceDomain.flowDisabled",form:{flowDisabledFlag:!1},key:"flowDisabled",submit:a=>new Promise(e=>{e(w(a==null?void 0:a.flowDisabledFlag))}),reset(a){a.logFlag=!1}}],current:[0]});const d=async()=>{var e,o;const a=await y((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=a.data.operatorLog;return}})},m=async a=>{var o,t;const e=await C((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await d()},p=async()=>{var e,o;const a=await P((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)===i.SUCCESS&&r.list.forEach(t=>{t.key==="flowDisabled"&&(t.form.flowDisabledFlag=a.data.trafficDisable)})},w=async a=>{var o,t;const e=await U((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)===i.SUCCESS&&await p()};return b(()=>{console.log(333),d(),p()}),(a,e)=>{const o=g("a-switch"),t=g("a-form-item");return k(),D("div",T,[c(_,{options:I(r)},{form_log:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.operatorLog"),name:"logFlag"},{default:l(()=>[c(o,{checked:n.form.logFlag,"onUpdate:checked":f=>n.form.logFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flowDisabled:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.flowDisabled"),name:"flowDisabledFlag"},{default:l(()=>[c(o,{checked:n.form.flowDisabledFlag,"onUpdate:checked":f=>n.form.flowDisabledFlag=f},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),_:1},8,["options"])])}}}),B=F(E,[["__scopeId","data-v-28b52f55"]]);export{B as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/configuration-0U4sObwn.js diff --git a/app/dubbo-ui/dist/admin/assets/cpp-2U_pDMGk.js b/app/dubbo-ui/dist/admin/assets/cpp-2U_pDMGk.js deleted file mode 100644 index 293f73190..000000000 --- a/app/dubbo-ui/dist/admin/assets/cpp-2U_pDMGk.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},n={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m512","__m512d","__m512i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>="],symbols:/[=>\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/[^)]+/,"string.raw"],[/\)$S2\"/,{token:"string.raw.end",next:"@pop"}],[/\)/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}};export{e as conf,n as language}; diff --git a/app/dubbo-ui/dist/admin/assets/csharp-4Zs2zOBj.js b/app/dubbo-ui/dist/admin/assets/csharp-4Zs2zOBj.js deleted file mode 100644 index 258a1ed30..000000000 --- a/app/dubbo-ui/dist/admin/assets/csharp-4Zs2zOBj.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},t={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/csp-lGMKRGPG.js b/app/dubbo-ui/dist/admin/assets/csp-lGMKRGPG.js deleted file mode 100644 index 7475a4a4d..000000000 --- a/app/dubbo-ui/dist/admin/assets/csp-lGMKRGPG.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var t={brackets:[],autoClosingPairs:[],surroundingPairs:[]},r={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r -]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js b/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js deleted file mode 100644 index a50f084b2..000000000 --- a/app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js +++ /dev/null @@ -1,13 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/cssMode-WATe-J7K.js -import{m as tt}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- -======== -import{m as tt}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/cssMode-SOEcaa9z.js - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var rt=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,it=Object.getOwnPropertyNames,ot=Object.prototype.hasOwnProperty,Y=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of it(n))!ot.call(e,t)&&t!==i&&rt(e,t,{get:()=>n[t],enumerable:!(r=nt(n,t))||r.enumerable});return e},at=(e,n,i)=>(Y(e,n,"default"),i&&Y(i,n,"default")),d={};at(d,tt);var st=2*60*1e3,ut=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>st&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=d.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Z;(function(e){function n(i){return typeof i=="string"}e.is=n})(Z||(Z={}));var O;(function(e){function n(i){return typeof i=="string"}e.is=n})(O||(O={}));var T;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(T||(T={}));var M;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(M||(M={}));var w;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=M.MAX_VALUE),t===Number.MAX_VALUE&&(t=M.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(w||(w={}));var h;(function(e){function n(r,t,o,s){if(a.uinteger(r)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:w.create(r,t),end:w.create(o,s)};if(w.is(r)&&w.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${o}, ${s}]`)}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&w.is(t.start)&&w.is(t.end)}e.is=i})(h||(h={}));var C;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(C||(C={}));var K;(function(e){function n(r,t,o,s){return{targetUri:r,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.targetRange)&&a.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var S;(function(e){function n(r,t,o,s){return{red:r,green:t,blue:o,alpha:s}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(S||(S={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&h.is(t.range)&&S.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,o){return{label:r,textEdit:t,additionalTextEdits:o}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||E.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,E.is))}e.is=i})(te||(te={}));var A;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(A||(A={}));var re;(function(e){function n(r,t,o,s,u,f){const c={startLine:r,endLine:t};return a.defined(o)&&(c.startCharacter=o),a.defined(s)&&(c.endCharacter=s),a.defined(u)&&(c.kind=u),a.defined(f)&&(c.collapsedText=f),c}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(re||(re={}));var U;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&C.is(t.location)&&a.string(t.message)}e.is=i})(U||(U={}));var x;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(x||(x={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&a.string(r.href)}e.is=n})(ie||(ie={}));var y;(function(e){function n(r,t,o,s,u,f){let c={range:r,message:t};return a.defined(o)&&(c.severity=o),a.defined(s)&&(c.code=s),a.defined(u)&&(c.source=u),a.defined(f)&&(c.relatedInformation=f),c}e.create=n;function i(r){var t;let o=r;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}e.is=i})(y||(y={}));var I;(function(e){function n(r,t,...o){let s={title:r,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(I||(I={}));var E;(function(e){function n(o,s){return{range:o,newText:s}}e.replace=n;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function r(o){return{range:o,newText:""}}e.del=r;function t(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}e.is=t})(E||(E={}));var V;(function(e){function n(r,t,o){const s={label:r};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(V||(V={}));var L;(function(e){function n(i){const r=i;return a.string(r)}e.is=n})(L||(L={}));var oe;(function(e){function n(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=n;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function t(o){const s=o;return E.is(s)&&(V.is(s.annotationId)||L.is(s.annotationId))}e.is=t})(oe||(oe={}));var W;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var H;(function(e){function n(r,t,o){let s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(H||(H={}));var X;(function(e){function n(r,t,o,s){let u={kind:"rename",oldUri:r,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,o){let s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>a.string(t.kind)?H.is(t)||X.is(t)||$.is(t):W.is(t)))}e.is=n})(z||(z={}));var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)}e.is=i})(ae||(ae={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(se||(se={}));var B;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(B||(B={}));var ue;(function(e){function n(r,t,o,s){return{uri:r,languageId:t,version:o,text:s}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(ue||(ue={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){const r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var P;(function(e){function n(i){const r=i;return a.objectLiteral(i)&&q.is(r.kind)&&a.string(r.value)}e.is=n})(P||(P={}));var v;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(v||(v={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,o){return{newText:r,insert:t,replace:o}}e.create=n;function i(r){const t=r;return t&&a.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(de||(de={}));var le;(function(e){e.asIs=1,e.adjustIndentation=2})(le||(le={}));var fe;(function(e){function n(i){const r=i;return r&&(a.string(r.detail)||r.detail===void 0)&&(a.string(r.description)||r.description===void 0)}e.is=n})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var he;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(he||(he={}));var F;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){const t=r;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(F||(F={}));var ve;(function(e){function n(i){let r=i;return!!r&&a.objectLiteral(r)&&(P.is(r.contents)||F.is(r.contents)||a.typedArray(r.contents,F.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(ve||(ve={}));var pe;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(pe||(pe={}));var me;(function(e){function n(i,r,...t){let o={label:i};return a.defined(r)&&(o.documentation=r),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(me||(me={}));var R;(function(e){e.Text=1,e.Read=2,e.Write=3})(R||(R={}));var _e;(function(e){function n(i,r){let t={range:i};return a.number(r)&&(t.kind=r),t}e.create=n})(_e||(_e={}));var p;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(p||(p={}));var be;(function(e){e.Deprecated=1})(be||(be={}));var we;(function(e){function n(i,r,t,o,s){let u={name:i,kind:r,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=n})(we||(we={}));var ke;(function(e){function n(i,r,t,o){return o!==void 0?{name:i,kind:r,location:{uri:t,range:o}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(ke||(ke={}));var xe;(function(e){function n(r,t,o,s,u,f){let c={name:r,detail:t,kind:o,range:s,selectionRange:u};return f!==void 0&&(c.children=f),c}e.create=n;function i(r){let t=r;return t&&a.string(t.name)&&a.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(xe||(xe={}));var Ie;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ie||(Ie={}));var j;(function(e){e.Invoked=1,e.Automatic=2})(j||(j={}));var Ee;(function(e){function n(r,t,o){let s={diagnostics:r};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.typedArray(t.diagnostics,y.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===j.Invoked||t.triggerKind===j.Automatic)}e.is=i})(Ee||(Ee={}));var Le;(function(e){function n(r,t,o){let s={title:r},u=!0;return typeof t=="string"?(u=!1,s.kind=t):I.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,y.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||I.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||z.is(t.edit))}e.is=i})(Le||(Le={}));var Ae;(function(e){function n(r,t){let o={range:r};return a.defined(t)&&(o.data=t),o}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.command)||I.is(t.command))}e.is=i})(Ae||(Ae={}));var Re;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Re||(Re={}));var Pe;(function(e){function n(r,t,o){return{range:r,target:t,data:o}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(Pe||(Pe={}));var De;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(De||(De={}));var Me;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Me||(Me={}));var Ce;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var ye;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(ye||(ye={}));var Fe;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.string(t.text)}e.is=i})(Fe||(Fe={}));var je;(function(e){function n(r,t,o){return{range:r,variableName:t,caseSensitiveLookup:o}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(je||(je={}));var Ne;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ne||(Ne={}));var Oe;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){const t=r;return a.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Oe||(Oe={}));var G;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(G||(G={}));var J;(function(e){function n(r){return{value:r}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||I.is(t.command))}e.is=i})(J||(J={}));var Se;(function(e){function n(r,t,o){const s={position:r,label:t};return o!==void 0&&(s.kind=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&w.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,J.is))&&(t.kind===void 0||G.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,E.is)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Se||(Se={}));var Ue;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Ue||(Ue={}));var Ve;(function(e){function n(i,r,t,o){return{insertText:i,filterText:r,range:t,command:o}}e.create=n})(Ve||(Ve={}));var We;(function(e){function n(i){return{items:i}}e.create=n})(We||(We={}));var He;(function(e){e.Invoked=0,e.Automatic=1})(He||(He={}));var Xe;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&O.is(r.uri)&&a.string(r.name)}e.is=n})(ze||(ze={}));var Be;(function(e){function n(o,s,u,f){return new ct(o,s,u,f)}e.create=n;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function r(o,s){let u=o.getText(),f=t(s,(g,_)=>{let b=g.range.start.line-_.range.start.line;return b===0?g.range.start.character-_.range.start.character:b}),c=u.length;for(let g=f.length-1;g>=0;g--){let _=f[g],b=o.offsetAt(_.range.start),l=o.offsetAt(_.range.end);if(l<=c)u=u.substring(0,b)+_.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");c=b}return u}e.applyEdits=r;function t(o,s){if(o.length<=1)return o;const u=o.length/2|0,f=o.slice(0,u),c=o.slice(u);t(f,s),t(c,s);let g=0,_=0,b=0;for(;g0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return w.create(0,e);for(;ie?r=o:i=o+1}let t=i-1;return w.create(t,e-n[t])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1"u"}e.undefined=r;function t(l){return l===!0||l===!1}e.boolean=t;function o(l){return n.call(l)==="[object String]"}e.string=o;function s(l){return n.call(l)==="[object Number]"}e.number=s;function u(l,N,et){return n.call(l)==="[object Number]"&&N<=l&&l<=et}e.numberRange=u;function f(l){return n.call(l)==="[object Number]"&&-2147483648<=l&&l<=2147483647}e.integer=f;function c(l){return n.call(l)==="[object Number]"&&0<=l&&l<=2147483647}e.uinteger=c;function g(l){return n.call(l)==="[object Function]"}e.func=g;function _(l){return l!==null&&typeof l=="object"}e.objectLiteral=_;function b(l,N){return Array.isArray(l)&&l.every(N)}e.typedArray=b})(a||(a={}));var dt=class{constructor(e,n,i){this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);const r=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{d.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(d.editor.onDidCreateModel(r)),this._disposables.push(d.editor.onWillDisposeModel(t)),this._disposables.push(d.editor.onDidChangeModelLanguage(o=>{t(o.model),r(o.model)})),this._disposables.push(i(o=>{d.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{d.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),d.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(o=>ft(e,o));let t=d.editor.getModel(e);t&&t.getLanguageId()===n&&d.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function lt(e){switch(e){case x.Error:return d.MarkerSeverity.Error;case x.Warning:return d.MarkerSeverity.Warning;case x.Information:return d.MarkerSeverity.Info;case x.Hint:return d.MarkerSeverity.Hint;default:return d.MarkerSeverity.Info}}function ft(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:lt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var gt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),k(n))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(n),u=new d.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),f=o.items.map(c=>{const g={label:c.label,insertText:c.insertText||c.label,sortText:c.sortText,filterText:c.filterText,documentation:c.documentation,detail:c.detail,command:pt(c.command),range:u,kind:vt(c.kind)};return c.textEdit&&(ht(c.textEdit)?g.range={insert:m(c.textEdit.insert),replace:m(c.textEdit.replace)}:g.range=m(c.textEdit.range),g.insertText=c.textEdit.newText),c.additionalTextEdits&&(g.additionalTextEdits=c.additionalTextEdits.map(D)),c.insertTextFormat===Q.Snippet&&(g.insertTextRules=d.languages.CompletionItemInsertTextRule.InsertAsSnippet),g});return{isIncomplete:o.isIncomplete,suggestions:f}})}};function k(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ge(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(e)return new d.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ht(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function vt(e){const n=d.languages.CompletionItemKind;switch(e){case v.Text:return n.Text;case v.Method:return n.Method;case v.Function:return n.Function;case v.Constructor:return n.Constructor;case v.Field:return n.Field;case v.Variable:return n.Variable;case v.Class:return n.Class;case v.Interface:return n.Interface;case v.Module:return n.Module;case v.Property:return n.Property;case v.Unit:return n.Unit;case v.Value:return n.Value;case v.Enum:return n.Enum;case v.Keyword:return n.Keyword;case v.Snippet:return n.Snippet;case v.Color:return n.Color;case v.File:return n.File;case v.Reference:return n.Reference}return n.Property}function D(e){if(e)return{range:m(e.range),text:e.newText}}function pt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var mt=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),k(n))).then(t=>{if(t)return{range:m(t.range),contents:bt(t.contents)}})}};function _t(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function qe(e){return typeof e=="string"?{value:e}:_t(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` -`+e.value+"\n```\n"}}function bt(e){if(e)return Array.isArray(e)?e.map(qe):[qe(e)]}var wt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),k(n))).then(t=>{if(t)return t.map(o=>({range:m(o.range),kind:kt(o.kind)}))})}};function kt(e){switch(e){case R.Read:return d.languages.DocumentHighlightKind.Read;case R.Write:return d.languages.DocumentHighlightKind.Write;case R.Text:return d.languages.DocumentHighlightKind.Text}return d.languages.DocumentHighlightKind.Text}var xt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),k(n))).then(t=>{if(t)return[Je(t)]})}};function Je(e){return{uri:d.Uri.parse(e.uri),range:m(e.range)}}var It=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),k(n))).then(o=>{if(o)return o.map(Je)})}},Et=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),k(n),i)).then(o=>Lt(o))}};function Lt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=d.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var At=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>Rt(t)?Ye(t):{name:t.name,detail:"",containerName:t.containerName,kind:Ze(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]})})}};function Rt(e){return"children"in e}function Ye(e){return{name:e.name,detail:e.detail??"",kind:Ze(e.kind),range:m(e.range),selectionRange:m(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>Ye(n))}}function Ze(e){let n=d.languages.SymbolKind;switch(e){case p.File:return n.File;case p.Module:return n.Module;case p.Namespace:return n.Namespace;case p.Package:return n.Package;case p.Class:return n.Class;case p.Method:return n.Method;case p.Property:return n.Property;case p.Field:return n.Field;case p.Constructor:return n.Constructor;case p.Enum:return n.Enum;case p.Interface:return n.Interface;case p.Function:return n.Function;case p.Variable:return n.Variable;case p.Constant:return n.Constant;case p.String:return n.String;case p.Number:return n.Number;case p.Boolean:return n.Boolean;case p.Array:return n.Array}return n.Function}var Ot=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},Pt=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,Te(n)).then(o=>{if(!(!o||o.length===0))return o.map(D)}))}},Dt=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),Ge(n),Te(i)).then(s=>{if(!(!s||s.length===0))return s.map(D)}))}};function Te(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Mt=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Ge(n.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=D(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(D)),s})})}},Ct=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=yt(o.kind)),s})})}};function yt(e){switch(e){case A.Comment:return d.languages.FoldingRangeKind.Comment;case A.Imports:return d.languages.FoldingRangeKind.Imports;case A.Region:return d.languages.FoldingRangeKind.Region}}var Ft=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(k))).then(t=>{if(t)return t.map(o=>{const s=[];for(;o;)s.push({range:m(o.range)}),o=o.parent;return s})})}};function St(e){const n=[],i=[],r=new ut(e);n.push(r);const t=(...s)=>r.getLanguageServiceWorker(...s);function o(){const{languageId:s,modeConfiguration:u}=e;Ke(i),u.completionItems&&i.push(d.languages.registerCompletionItemProvider(s,new gt(t,["/","-",":"]))),u.hovers&&i.push(d.languages.registerHoverProvider(s,new mt(t))),u.documentHighlights&&i.push(d.languages.registerDocumentHighlightProvider(s,new wt(t))),u.definitions&&i.push(d.languages.registerDefinitionProvider(s,new xt(t))),u.references&&i.push(d.languages.registerReferenceProvider(s,new It(t))),u.documentSymbols&&i.push(d.languages.registerDocumentSymbolProvider(s,new At(t))),u.rename&&i.push(d.languages.registerRenameProvider(s,new Et(t))),u.colors&&i.push(d.languages.registerColorProvider(s,new Mt(t))),u.foldingRanges&&i.push(d.languages.registerFoldingRangeProvider(s,new Ct(t))),u.diagnostics&&i.push(new dt(s,t,e.onDidChange)),u.selectionRanges&&i.push(d.languages.registerSelectionRangeProvider(s,new Ft(t))),u.documentFormattingEdits&&i.push(d.languages.registerDocumentFormattingEditProvider(s,new Pt(t))),u.documentRangeFormattingEdits&&i.push(d.languages.registerDocumentRangeFormattingEditProvider(s,new Dt(t)))}return o(),n.push(Qe(i)),Qe(n)}function Qe(e){return{dispose:()=>Ke(e)}}function Ke(e){for(;e.length;)e.pop().dispose()}export{gt as CompletionAdapter,xt as DefinitionAdapter,dt as DiagnosticsAdapter,Mt as DocumentColorAdapter,Pt as DocumentFormattingEditProvider,wt as DocumentHighlightAdapter,Ot as DocumentLinkAdapter,Dt as DocumentRangeFormattingEditProvider,At as DocumentSymbolAdapter,Ct as FoldingRangeAdapter,mt as HoverAdapter,It as ReferenceAdapter,Et as RenameAdapter,Ft as SelectionRangeAdapter,ut as WorkerManager,k as fromPosition,Ge as fromRange,St as setupMode,m as toRange,D as toTextEdit}; diff --git a/app/dubbo-ui/dist/admin/assets/cypher-5YIL2BCq.js b/app/dubbo-ui/dist/admin/assets/cypher-5YIL2BCq.js deleted file mode 100644 index cc9d33651..000000000 --- a/app/dubbo-ui/dist/admin/assets/cypher-5YIL2BCq.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","-->","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}};export{e as conf,i as language}; diff --git a/app/dubbo-ui/dist/admin/assets/dart-qjFgolkP.js b/app/dubbo-ui/dist/admin/assets/dart-qjFgolkP.js deleted file mode 100644 index c1b8b7a97..000000000 --- a/app/dubbo-ui/dist/admin/assets/dart-qjFgolkP.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},n={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}};export{e as conf,n as language}; diff --git a/app/dubbo-ui/dist/admin/assets/detail-DO2x71pm.js b/app/dubbo-ui/dist/admin/assets/detail-DO2x71pm.js deleted file mode 100644 index 216afa971..000000000 --- a/app/dubbo-ui/dist/admin/assets/detail-DO2x71pm.js +++ /dev/null @@ -1 +0,0 @@ -import{u as H}from"./index-nvCr9_iI.js";import{d as K,a as Q,u as U,r as L,k as X,Z as x,D,c,b as t,w as o,e as u,o as p,f as a,t as l,n as f,J as _,j as g,a0 as k,T as y,L as B,M as V,m as ee,_ as oe}from"./index-rt1yTeew.js";import{g as te}from"./instance-ChxJL4oQ.js";import{f as j}from"./DateUtil-OIUqM92a.js";import"./request-vlI2kaaR.js";const le={class:"__container_instance_detail"},re={class:"white_space"},se={class:"white_space"},ae={class:"white_space"},de=K({__name:"detail",setup(pe){const A=Q(),M=U(),C=L({}),{appContext:{config:{globalProperties:E}}}=X();x("20");const e=L({});D(async()=>{const{name:r,pathId:d}=A.params;let b={instanceName:r,instanceIP:d};C.detail=await te(b),Object.assign(e,C.detail.data)});const F=r=>{M.push({path:"/resources/applications/detail/"+r})},J=H().toClipboard;function i(r){ee.success(E.$t("messageDomain.success.copy")),J(r)}const S=r=>r?"开启":"关闭";return(r,d)=>{const b=u("a-typography-paragraph"),s=u("a-descriptions-item"),P=u("a-descriptions"),m=u("a-card"),$=u("a-col"),Y=u("a-row"),w=u("a-typography-link"),Z=u("a-space"),q=u("a-tag"),z=u("a-card-grid"),G=u("a-flex");return p(),c("div",le,[t(G,null,{default:o(()=>[t(z,null,{default:o(()=>[t(Y,{gutter:10},{default:o(()=>[t($,{span:12},{default:o(()=>[t(m,{class:"_detail",style:{height:"100%"}},{default:o(()=>[t(P,{class:"description-column",column:1},{default:o(()=>[t(s,{label:r.$t("instanceDomain.registerState"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(b,{type:(e==null?void 0:e.registerState)==="Registered"?"success":"danger"},{default:o(()=>[a(l(e==null?void 0:e.registerState),1)]),_:1},8,["type"])]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.registerTime"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(b,null,{default:o(()=>[a(l(f(j)(e==null?void 0:e.registerTime)),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),t($,{span:12},{default:o(()=>[t(m,{class:"_detail",style:{height:"100%"}},{default:o(()=>[t(P,{class:"description-column",column:1},{default:o(()=>[t(s,{label:r.$t("instanceDomain.deployState"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[(e==null?void 0:e.deployState)==="Running"?(p(),_(b,{key:0,type:"success",style:{}},{default:o(()=>[a(" Running ")]),_:1})):(p(),_(b,{key:1,type:"danger"},{default:o(()=>[a(l(e==null?void 0:e.deployState),1)]),_:1}))]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.startTime_k8s"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(b,null,{default:o(()=>[a(l(f(j)(e==null?void 0:e.startTime)),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1}),t(m,{style:{"margin-top":"10px"},class:"_detail"},{default:o(()=>[t(P,{class:"description-column",column:1},{default:o(()=>[t(s,{label:r.$t("instanceDomain.instanceIP"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[g("p",{onClick:d[0]||(d[0]=n=>i(e==null?void 0:e.ip)),class:"description-item-content with-card"},[a(l(e==null?void 0:e.ip)+" ",1),t(f(k))])]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.deployCluster"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(b,null,{default:o(()=>[a(l(e==null?void 0:e.deployCluster),1)]),_:1})]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.dubboPort"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[e!=null&&e.rpcPort?(p(),c("p",{key:0,onClick:d[1]||(d[1]=n=>i(e==null?void 0:e.rpcPort)),class:"description-item-content with-card"},[a(l(e==null?void 0:e.rpcPort)+" ",1),t(f(k))])):y("",!0)]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.registerCluster"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(Z,null,{default:o(()=>[(p(!0),c(B,null,V(e==null?void 0:e.registerClusters,n=>(p(),_(w,null,{default:o(()=>[a(l(n),1)]),_:2},1024))),256))]),_:1})]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.whichApplication"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(w,{onClick:d[2]||(d[2]=n=>F(e==null?void 0:e.appName))},{default:o(()=>[a(l(e==null?void 0:e.appName),1)]),_:1})]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.node"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[e!=null&&e.node?(p(),c("p",{key:0,onClick:d[3]||(d[3]=n=>i(e==null?void 0:e.node)),class:"description-item-content with-card"},[a(l(e==null?void 0:e.node)+" ",1),t(f(k))])):y("",!0)]),_:1},8,["label"]),t(s,{label:r.$t("instanceDomain.owningWorkload_k8s"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(b,null,{default:o(()=>[a(l(e==null?void 0:e.workloadName),1)]),_:1})]),_:1},8,["label"]),e!=null&&e.image?(p(),_(s,{key:0,label:r.$t("instanceDomain.instanceImage_k8s"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(m,{class:"description-item-card"},{default:o(()=>[g("p",{onClick:d[4]||(d[4]=n=>i(e==null?void 0:e.image)),class:"description-item-content with-card"},[a(l(e==null?void 0:e.image)+" ",1),t(f(k))])]),_:1})]),_:1},8,["label"])):y("",!0),e!=null&&e.labels&&Object.keys(e==null?void 0:e.labels).length>0?(p(),_(s,{key:1,label:r.$t("instanceDomain.instanceLabel"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(m,{class:"description-item-card"},{default:o(()=>[(p(!0),c(B,null,V(e==null?void 0:e.labels,(n,h)=>(p(),_(q,null,{default:o(()=>[a(l(h)+" : "+l(n),1)]),_:2},1024))),256))]),_:1})]),_:1},8,["label"])):y("",!0),e!=null&&e.probes?(p(),_(s,{key:2,label:r.$t("instanceDomain.healthExamination_k8s"),labelStyle:{fontWeight:"bold"}},{default:o(()=>[t(m,{class:"description-item-card"},{default:o(()=>{var n,h,W,v,I,R,N,T,O;return[g("p",re," 启动探针(StartupProbe):"+l(S((n=e==null?void 0:e.probes)==null?void 0:n.startupProbe.open))+" 类型: "+l((h=e==null?void 0:e.probes)==null?void 0:h.startupProbe.type)+" 端口:"+l((W=e==null?void 0:e.probes)==null?void 0:W.startupProbe.port),1),g("p",se," 就绪探针(ReadinessProbe):"+l(S((v=e==null?void 0:e.probes)==null?void 0:v.readinessProbe.open))+" 类型: "+l((I=e==null?void 0:e.probes)==null?void 0:I.readinessProbe.type)+" 端口:"+l((R=e==null?void 0:e.probes)==null?void 0:R.readinessProbe.port),1),g("p",ae," 存活探针(LivenessProbe):"+l(S((N=e==null?void 0:e.probes)==null?void 0:N.livenessProbe.open))+" 类型: "+l((T=e==null?void 0:e.probes)==null?void 0:T.livenessProbe.type)+" 端口:"+l((O=e==null?void 0:e.probes)==null?void 0:O.livenessProbe.port),1)]}),_:1})]),_:1},8,["label"])):y("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])}}}),fe=oe(de,[["__scopeId","data-v-b3f3deae"]]);export{fe as default}; diff --git a/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js b/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js deleted file mode 100644 index f086f1d3a..000000000 --- a/app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/detail-tPSvFGFf.js -import{d as L,a as O,r as I,k as T,Z as V,D as W,c as s,b as a,w as e,e as c,o,L as u,M as m,$ as P,J as b,f as S,t as h,n as y,a0 as A,m as j,a1 as $,_ as E}from"./index-rt1yTeew.js";import{g as F}from"./app-4lFIb2G-.js";import{u as J}from"./index-nvCr9_iI.js";import"./request-vlI2kaaR.js";const Y={class:"__container_app_detail"},Z={class:"description-item-content no-card"},q=["onClick"],z=L({__name:"detail",setup(G){const M=O(),C=I({}),{appContext:{config:{globalProperties:N}}}=T();V("20");let r=I({left:{},right:{},bottom:{}});W(async()=>{var i;let l=(i=M.params)==null?void 0:i.pathId;C.detail=await F({appName:l}),console.log(C.detail);let{appName:w,rpcProtocols:p,dubboVersions:_,dubboPorts:d,serialProtocols:f,appTypes:x,images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g}=C.detail.data;r.left={appName:w,appTypes:x,serialProtocols:f},r.right={rpcProtocols:p,dubboPorts:d,dubboVersions:_},r.bottom={images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g},console.log(w)});const R=J().toClipboard;function B(l){j.success(N.$t("messageDomain.success.copy")),R(l)}return(l,w)=>{const p=c("a-descriptions-item"),_=c("a-descriptions"),d=c("a-card"),f=c("a-col"),x=c("a-row"),k=c("a-card-grid"),D=c("a-flex");return o(),s("div",Y,[a(D,null,{default:e(()=>[a(k,null,{default:e(()=>[a(x,{gutter:10},{default:e(()=>[a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).left,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(typeof t=="object"?t[0]:t),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1}),a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).right,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(t[0]),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1}),a(d,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).bottom,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold"},label:l.$t("applicationDomain."+n)},{default:e(()=>[(t==null?void 0:t.length)<3?(o(!0),s(u,{key:0},m(t,i=>(o(),s("p",Z,h(i),1))),256)):(o(),b(d,{key:1,class:"description-item-card"},{default:e(()=>[(o(!0),s(u,null,m(t,i=>(o(),s("p",{onClick:H=>B(i.toString()),class:"description-item-content with-card"},[S(h(i)+" ",1),a(y(A))],8,q))),256))]),_:2},1024))]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),v=E(z,[["__scopeId","data-v-2ded24e2"]]);export{v as default}; -======== -import{d as L,a as O,r as I,k as T,Z as V,D as W,c as s,b as a,w as e,e as c,o,L as u,M as m,$ as P,J as b,f as S,t as h,n as y,a0 as A,m as j,a1 as $,_ as E}from"./index-JtaswhjV.js";import{g as F}from"./app-PIImRajL.js";import{u as J}from"./index-mXj9VWUy.js";import"./request--dYXBGM5.js";const Y={class:"__container_app_detail"},Z={class:"description-item-content no-card"},q=["onClick"],z=L({__name:"detail",setup(G){const M=O(),C=I({}),{appContext:{config:{globalProperties:N}}}=T();V("20");let r=I({left:{},right:{},bottom:{}});W(async()=>{var i;let l=(i=M.params)==null?void 0:i.pathId;C.detail=await F({appName:l}),console.log(C.detail);let{appName:w,rpcProtocols:p,dubboVersions:_,dubboPorts:d,serialProtocols:f,appTypes:x,images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g}=C.detail.data;r.left={appName:w,appTypes:x,serialProtocols:f},r.right={rpcProtocols:p,dubboPorts:d,dubboVersions:_},r.bottom={images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g},console.log(w)});const R=J().toClipboard;function B(l){j.success(N.$t("messageDomain.success.copy")),R(l)}return(l,w)=>{const p=c("a-descriptions-item"),_=c("a-descriptions"),d=c("a-card"),f=c("a-col"),x=c("a-row"),k=c("a-card-grid"),D=c("a-flex");return o(),s("div",Y,[a(D,null,{default:e(()=>[a(k,null,{default:e(()=>[a(x,{gutter:10},{default:e(()=>[a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).left,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(typeof t=="object"?t[0]:t),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1}),a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).right,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(t[0]),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1}),a(d,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).bottom,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold"},label:l.$t("applicationDomain."+n)},{default:e(()=>[(t==null?void 0:t.length)<3?(o(!0),s(u,{key:0},m(t,i=>(o(),s("p",Z,h(i),1))),256)):(o(),b(d,{key:1,class:"description-item-card"},{default:e(()=>[(o(!0),s(u,null,m(t,i=>(o(),s("p",{onClick:H=>B(i.toString()),class:"description-item-content with-card"},[S(h(i)+" ",1),a(y(A))],8,q))),256))]),_:2},1024))]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),v=E(z,[["__scopeId","data-v-2ded24e2"]]);export{v as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/detail-Sj1Uzu8p.js diff --git a/app/dubbo-ui/dist/admin/assets/distribution-Py-Du1W_.css b/app/dubbo-ui/dist/admin/assets/distribution-Py-Du1W_.css deleted file mode 100644 index 612287163..000000000 --- a/app/dubbo-ui/dist/admin/assets/distribution-Py-Du1W_.css +++ /dev/null @@ -1 +0,0 @@ -.__container_services_tabs_distribution .service-filter[data-v-73c33bbf]{margin-bottom:20px}.__container_services_tabs_distribution .service-filter .service-filter-select[data-v-73c33bbf]{margin-left:10px;width:250px}.__container_services_tabs_distribution .service-filter .service-filter-input[data-v-73c33bbf]{margin-left:30px;width:300px}.__container_services_tabs_distribution .link[data-v-73c33bbf]{padding:4px 10px 4px 4px;border-radius:4px;color:var(--49ace5b1)}.__container_services_tabs_distribution .link[data-v-73c33bbf]:hover{cursor:pointer;background:#85838321} diff --git a/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js b/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js deleted file mode 100644 index fbac4e994..000000000 --- a/app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/distribution-UiS_TbBu.js -import{d as x,v as D,u as w,a as S,r as A,c as n,b as _,w as y,n as t,P as C,U as R,e as V,o as r,j as b,I as k,f as l,t as d,T as p,L as v,M as I,J as N,z as E,_ as B}from"./index-rt1yTeew.js";import{g as O}from"./service-RF66g7V7.js";import{S as T,a as L}from"./SearchUtil-FCBI7ppE.js";import"./request-vlI2kaaR.js";const M={class:"__container_services_tabs_distribution"},P=["onClick"],Y=["onClick"],J=x({__name:"distribution",setup($){D(u=>({"49ace5b1":t(C)}));const h=w(),i=S(),f=[{title:"servicesDomain.appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"servicesDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"servicesDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"servicesDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];function g(u){var m,o,s,e;return O({serviceName:(m=i.params)==null?void 0:m.pathId,side:"consumer",version:((o=i.params)==null?void 0:o.version)||"",group:((s=i.params)==null?void 0:s.group)||"",providerAppName:((e=i.query)==null?void 0:e.providerAppName)||"",...u})}const c=A(new T([{label:"servicesDomain.consumerAppName",param:"keywords",placeholder:"consumerAppName",style:{width:"300px"}}],g,f));return c.onSearch(),c.tableStyle={scrollX:"100",scrollY:"367px"},R(E.SEARCH_DOMAIN,c),(u,m)=>{const o=V("a-tag");return r(),n("div",M,[_(L,{"search-domain":c},{bodyCell:y(({column:s,text:e})=>[s.dataIndex==="appName"?(r(),n("span",{key:0,class:"link",onClick:a=>t(h).push("/resources/applications/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,P)):p("",!0),s.dataIndex==="instanceName"?(r(),n("span",{key:1,class:"link",onClick:a=>t(h).push("/resources/instances/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,Y)):p("",!0),s.dataIndex==="deployClusters"?(r(!0),n(v,{key:2},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0),s.dataIndex==="registryClusters"?(r(!0),n(v,{key:3},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0)]),_:1},8,["search-domain"])])}}}),H=B(J,[["__scopeId","data-v-73c33bbf"]]);export{H as default}; -======== -import{d as x,v as D,u as w,a as S,r as A,c as n,b as _,w as y,n as t,P as C,U as R,e as V,o as r,j as b,I as k,f as l,t as d,T as p,L as v,M as I,J as N,z as E,_ as B}from"./index-JtaswhjV.js";import{g as O}from"./service-1UmnLUvi.js";import{S as T,a as L}from"./SearchUtil-euy68KhE.js";import"./request--dYXBGM5.js";const M={class:"__container_services_tabs_distribution"},P=["onClick"],Y=["onClick"],J=x({__name:"distribution",setup($){D(u=>({"49ace5b1":t(C)}));const h=w(),i=S(),f=[{title:"servicesDomain.appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"servicesDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"servicesDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"servicesDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];function g(u){var m,o,s,e;return O({serviceName:(m=i.params)==null?void 0:m.pathId,side:"consumer",version:((o=i.params)==null?void 0:o.version)||"",group:((s=i.params)==null?void 0:s.group)||"",providerAppName:((e=i.query)==null?void 0:e.providerAppName)||"",...u})}const c=A(new T([{label:"servicesDomain.consumerAppName",param:"keywords",placeholder:"consumerAppName",style:{width:"300px"}}],g,f));return c.onSearch(),c.tableStyle={scrollX:"100",scrollY:"367px"},R(E.SEARCH_DOMAIN,c),(u,m)=>{const o=V("a-tag");return r(),n("div",M,[_(L,{"search-domain":c},{bodyCell:y(({column:s,text:e})=>[s.dataIndex==="appName"?(r(),n("span",{key:0,class:"link",onClick:a=>t(h).push("/resources/applications/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,P)):p("",!0),s.dataIndex==="instanceName"?(r(),n("span",{key:1,class:"link",onClick:a=>t(h).push("/resources/instances/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,Y)):p("",!0),s.dataIndex==="deployClusters"?(r(!0),n(v,{key:2},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0),s.dataIndex==="registryClusters"?(r(!0),n(v,{key:3},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0)]),_:1},8,["search-domain"])])}}}),H=B(J,[["__scopeId","data-v-73c33bbf"]]);export{H as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/distribution-iEzIExlH.js diff --git a/app/dubbo-ui/dist/admin/assets/dockerfile-5toe0RAn.js b/app/dubbo-ui/dist/admin/assets/dockerfile-5toe0RAn.js deleted file mode 100644 index 5add7f89e..000000000 --- a/app/dubbo-ui/dist/admin/assets/dockerfile-5toe0RAn.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}};export{e as conf,o as language}; diff --git a/app/dubbo-ui/dist/admin/assets/ecl-1L3WRmRU.js b/app/dubbo-ui/dist/admin/assets/ecl-1L3WRmRU.js deleted file mode 100644 index 917258a0a..000000000 --- a/app/dubbo-ui/dist/admin/assets/ecl-1L3WRmRU.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}};export{e as conf,o as language}; diff --git a/app/dubbo-ui/dist/admin/assets/elixir-4vH1gF-H.js b/app/dubbo-ui/dist/admin/assets/elixir-4vH1gF-H.js deleted file mode 100644 index a89389439..000000000 --- a/app/dubbo-ui/dist/admin/assets/elixir-4vH1gF-H.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},t={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)(\s+)/,["constant","constant.punctuation","white"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~([A-Z]+)@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-z]|[A-Z]+)\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-z]|[A-Z]+)\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-z]|[A-Z]+)\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-z]|[A-Z]+)\"}],[/~([a-z]|[A-Z]+)(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-z]|[A-Z]+)@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?'''/,{token:"comment.block.documentation",next:"@singleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc (~[sS])?'/,{token:"comment.block.documentation",next:"@singleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedHeredocDocstring:[[/'''/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],singleQuotedStringDocstring:[[/'/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/event-0p00qhH9.css b/app/dubbo-ui/dist/admin/assets/event-0p00qhH9.css deleted file mode 100644 index 7f95c237f..000000000 --- a/app/dubbo-ui/dist/admin/assets/event-0p00qhH9.css +++ /dev/null @@ -1 +0,0 @@ -.__container_app_event[data-v-e2aef936]{background:#fafafa;border-radius:10px;padding:80px 300px 20px}.__container_app_event[data-v-e2aef936] .ant-timeline-item-label{width:200px}.__container_app_event .box[data-v-e2aef936]{position:relative;height:100px;margin-bottom:20px}.__container_app_event .box .label[data-v-e2aef936]{position:absolute;height:100px;top:-40px}.__container_app_event .box .label.yellow .type[data-v-e2aef936]{border-right-color:#f8d347}.__container_app_event .box .label.yellow .body[data-v-e2aef936]{background:#f8d347}.__container_app_event .box .label.red .type[data-v-e2aef936]{border-right-color:#eb4325}.__container_app_event .box .label.red .body[data-v-e2aef936]{background:#eb4325}.__container_app_event .box .label.blue .type[data-v-e2aef936]{border-right-color:#3d89f6}.__container_app_event .box .label.blue .body[data-v-e2aef936]{background:#3d89f6}.__container_app_event .box .label.green .type[data-v-e2aef936]{border-right-color:#9cac35}.__container_app_event .box .label.green .body[data-v-e2aef936]{background:#9cac35}.__container_app_event .box .label .type[data-v-e2aef936]{position:absolute;width:50px;height:50px;border-style:solid;border-color:transparent;border-width:50px 26px 50px 0px;border-right-color:var(--f166166e);display:inline;border-radius:4px}.__container_app_event .box .label .body[data-v-e2aef936]{position:absolute;left:49px;width:50vw;border-radius:3px 5px 5px 3px;height:100%;display:inline;color:#fff;padding-left:20px;background:var(--f166166e);box-shadow:8px 5px 10px #9f9c9c}.__container_app_event .box .label .body .title[data-v-e2aef936]{font-size:30px;line-height:40px}.__container_app_event .box .time[data-v-e2aef936]{position:absolute;left:-200px} diff --git a/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js b/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js deleted file mode 100644 index 75836f11d..000000000 --- a/app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/event-7tgH6sxi.js -import{d as e,c as t,o as n}from"./index-rt1yTeew.js";const s=e({__name:"event",setup(o){return(a,c)=>(n(),t("div",null,"event todo"))}});export{s as default}; -======== -import{d as e,c as t,o as n}from"./index-JtaswhjV.js";const s=e({__name:"event",setup(o){return(a,c)=>(n(),t("div",null,"event todo"))}});export{s as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/event-hTbHcw_b.js diff --git a/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js b/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js deleted file mode 100644 index 93afce7ae..000000000 --- a/app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/event-H3QxA0ip.js -import{b as s,A as b,d as C,c as d,w as a,e as r,o as p,n as u,L as M,M as S,P as y,f as x,t as _,j as f,p as P,h as w,_ as I}from"./index-rt1yTeew.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const z=j;function m(e){for(var t=1;t(P("data-v-9245080e"),e=e(),w(),e),D={class:"__container_services_tabs_event"},L={class:"description"},R=N(()=>f("span",null,"过期事件不会存储",-1)),V=C({__name:"event",setup(e){const t=[{time:"2022-01-01",description:"description"},{time:"2022-01-02",description:"description"},{time:"2022-01-03",description:"description"},{time:"2022-01-04",description:"description"},{time:"2022-01-05",description:"description"}];return(n,c)=>{const i=r("a-timeline-item"),v=r("a-tag"),O=r("a-timeline"),g=r("a-card");return p(),d("div",D,[s(g,{class:"timeline-container"},{default:a(()=>[s(O,{class:"timeline"},{default:a(()=>[s(i,null,{dot:a(()=>[s(u(B),{style:{"font-size":"18px"}})]),_:1}),(p(),d(M,null,S(t,(l,h)=>s(i,{key:h},{default:a(()=>[s(v,{class:"time",color:u(y)},{default:a(()=>[x(_(l.time),1)]),_:2},1032,["color"]),f("span",L,_(l.description),1)]),_:2},1024)),64)),s(i,null,{dot:a(()=>[]),default:a(()=>[R]),_:1})]),_:1})]),_:1})])}}}),$=I(V,[["__scopeId","data-v-9245080e"]]);export{$ as default}; -======== -import{b as s,A as b,d as C,c as d,w as a,e as r,o as p,n as u,L as M,M as S,P as y,f as x,t as _,j as f,p as P,h as w,_ as I}from"./index-JtaswhjV.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const z=j;function m(e){for(var t=1;t(P("data-v-9245080e"),e=e(),w(),e),D={class:"__container_services_tabs_event"},L={class:"description"},R=N(()=>f("span",null,"过期事件不会存储",-1)),V=C({__name:"event",setup(e){const t=[{time:"2022-01-01",description:"description"},{time:"2022-01-02",description:"description"},{time:"2022-01-03",description:"description"},{time:"2022-01-04",description:"description"},{time:"2022-01-05",description:"description"}];return(n,c)=>{const i=r("a-timeline-item"),v=r("a-tag"),O=r("a-timeline"),g=r("a-card");return p(),d("div",D,[s(g,{class:"timeline-container"},{default:a(()=>[s(O,{class:"timeline"},{default:a(()=>[s(i,null,{dot:a(()=>[s(u(B),{style:{"font-size":"18px"}})]),_:1}),(p(),d(M,null,S(t,(l,h)=>s(i,{key:h},{default:a(()=>[s(v,{class:"time",color:u(y)},{default:a(()=>[x(_(l.time),1)]),_:2},1032,["color"]),f("span",L,_(l.description),1)]),_:2},1024)),64)),s(i,null,{dot:a(()=>[]),default:a(()=>[R]),_:1})]),_:1})]),_:1})])}}}),$=I(V,[["__scopeId","data-v-9245080e"]]);export{$ as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/event-LYJunMDL.js diff --git a/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js b/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js deleted file mode 100644 index a93827a68..000000000 --- a/app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/event-U8rWPJ_o.js -import{d as v,v as f,r as h,D as y,c as d,b as r,w as n,e as p,n as l,P as C,o as c,L as x,M as b,J as k,a5 as w,a6 as I,j as e,a7 as S,t as i,p as B,h as R,_ as g}from"./index-rt1yTeew.js";import{l as L}from"./app-4lFIb2G-.js";import"./request-vlI2kaaR.js";const M=t=>(B("data-v-e2aef936"),t=t(),R(),t),O={class:"__container_app_event"},V={class:"box"},z=M(()=>e("div",{class:"type"},null,-1)),A={class:"body"},D={class:"title"},E={class:"time"},N=v({__name:"event",setup(t){f(a=>({f166166e:l(C)}));let s=h({list:[]});return y(async()=>{let a=await L({});s.list=a.data.list,console.log(s)}),(a,P)=>{const m=p("a-timeline-item"),u=p("a-timeline");return c(),d("div",O,[r(u,{mode:"left"},{default:n(()=>[(c(!0),d(x,null,b(l(s).list,(o,_)=>(c(),k(m,null,w({default:n(()=>[e("div",V,[e("div",{class:S(["label",{yellow:_===0}])},[z,e("div",A,[e("b",D,i(o.type),1),e("p",null,i(o.desc),1)])],2),e("span",E,i(o.time),1)])]),_:2},[_===0?{name:"dot",fn:n(()=>[r(l(I),{style:{"font-size":"16px",color:"red"}})]),key:"0"}:void 0]),1024))),256))]),_:1})])}}}),Y=g(N,[["__scopeId","data-v-e2aef936"]]);export{Y as default}; -======== -import{d as v,v as f,r as h,D as y,c as d,b as r,w as n,e as p,n as l,P as C,o as c,L as x,M as b,J as k,a5 as w,a6 as I,j as e,a7 as S,t as i,p as B,h as R,_ as g}from"./index-JtaswhjV.js";import{l as L}from"./app-PIImRajL.js";import"./request--dYXBGM5.js";const M=t=>(B("data-v-e2aef936"),t=t(),R(),t),O={class:"__container_app_event"},V={class:"box"},z=M(()=>e("div",{class:"type"},null,-1)),A={class:"body"},D={class:"title"},E={class:"time"},N=v({__name:"event",setup(t){f(a=>({f166166e:l(C)}));let s=h({list:[]});return y(async()=>{let a=await L({});s.list=a.data.list,console.log(s)}),(a,P)=>{const m=p("a-timeline-item"),u=p("a-timeline");return c(),d("div",O,[r(u,{mode:"left"},{default:n(()=>[(c(!0),d(x,null,b(l(s).list,(o,_)=>(c(),k(m,null,w({default:n(()=>[e("div",V,[e("div",{class:S(["label",{yellow:_===0}])},[z,e("div",A,[e("b",D,i(o.type),1),e("p",null,i(o.desc),1)])],2),e("span",E,i(o.time),1)])]),_:2},[_===0?{name:"dot",fn:n(()=>[r(l(I),{style:{"font-size":"16px",color:"red"}})]),key:"0"}:void 0]),1024))),256))]),_:1})])}}}),Y=g(N,[["__scopeId","data-v-e2aef936"]]);export{Y as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/event-d_wQc3g_.js diff --git a/app/dubbo-ui/dist/admin/assets/event-lmBmBbXg.css b/app/dubbo-ui/dist/admin/assets/event-lmBmBbXg.css deleted file mode 100644 index 46cccc3b6..000000000 --- a/app/dubbo-ui/dist/admin/assets/event-lmBmBbXg.css +++ /dev/null @@ -1 +0,0 @@ -.__container_services_tabs_event[data-v-9245080e]{display:flex}.__container_services_tabs_event .timeline-container[data-v-9245080e]{width:100%}.__container_services_tabs_event .timeline-container .timeline[data-v-9245080e]{margin-left:30px}.__container_services_tabs_event .timeline-container .timeline .description[data-v-9245080e]{font-size:18px} diff --git a/app/dubbo-ui/dist/admin/assets/flow9-7owDGJzV.js b/app/dubbo-ui/dist/admin/assets/flow9-7owDGJzV.js deleted file mode 100644 index 064961d43..000000000 --- a/app/dubbo-ui/dist/admin/assets/flow9-7owDGJzV.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},o={defaultToken:"",tokenPostfix:".flow",keywords:["import","require","export","forbid","native","if","else","cast","unsafe","switch","default"],types:["io","mutable","bool","int","double","string","flow","void","ref","true","false","with"],operators:["=",">","<","<=",">=","==","!","!=",":=","::=","&&","||","+","-","*","/","@","&","%",":","->","\\","$","??","^"],symbols:/[@$=>](?!@symbols)/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}};export{e as conf,o as language}; diff --git a/app/dubbo-ui/dist/admin/assets/formView-4wdFbDyU.css b/app/dubbo-ui/dist/admin/assets/formView-4wdFbDyU.css deleted file mode 100644 index b1bb778d1..000000000 --- a/app/dubbo-ui/dist/admin/assets/formView-4wdFbDyU.css +++ /dev/null @@ -1 +0,0 @@ -.description-item-content.no-card[data-v-4613afa3]{padding-left:20px}.description-item-content.with-card[data-v-4613afa3]:hover{color:var(--5b433755)} diff --git a/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js b/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js deleted file mode 100644 index d181d99ff..000000000 --- a/app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/formView-6c6ubrMh.js -import{u as H}from"./index-nvCr9_iI.js";import{d as L,k as U,a as F,B as h,r as J,l as K,D as Q,c as C,b as o,w as e,e as i,o as c,f as n,j as m,t as s,n as D,a0 as S,J as f,T as b,L as V,M as j,m as X,p as Y,h as Z,_ as ee}from"./index-rt1yTeew.js";import{g as te}from"./traffic-nmA_BhEL.js";import{H as oe}from"./request-vlI2kaaR.js";const q=y=>(Y("data-v-f3c3c57f"),y=y(),Z(),y),ae={class:"__container_routingRule_detail"},le=q(()=>m("p",null,"修改时间: 2024/3/20 15:20:31",-1)),ne=q(()=>m("p",null,"版本号: xo842xqpx834",-1)),se=L({__name:"formView",setup(y){const{appContext:{config:{globalProperties:E}}}=U(),B=F(),k=h(!1),N=h(8),x=H().toClipboard;function g(t){X.success(E.$t("messageDomain.success.copy")),x(t)}const a=J({}),P=K(()=>{const t=a.key||"",l=typeof t=="string"?t.split(":"):[];return a.version=l[1]||"",a.group=l[2]||"",l[0]||""}),$=h([]),T=h([]);async function z(){var l;let t=await te((l=B.params)==null?void 0:l.ruleName);(t==null?void 0:t.code)===oe.SUCCESS&&(Object.assign(a,(t==null?void 0:t.data)||{}),a.conditions.forEach((u,v)=>{var p,w;const r=u.split(" => "),_=(p=r[1])==null?void 0:p.split(" & "),W=(w=r[0])==null?void 0:w.split(" & ");$.value=$.value.concat(W),T.value=T.value.concat(_)}))}const G=()=>{var l;const t=(l=B.params)==null?void 0:l.ruleName;if(t&&a.scope==="service"){const u=t==null?void 0:t.split(":");a.version=u[1],a.group=u[2].split(".")[0]}};return Q(async()=>{await z(),G()}),(t,l)=>{const u=i("a-typography-title"),v=i("a-flex"),r=i("a-descriptions-item"),_=i("a-typography-paragraph"),W=i("a-descriptions"),p=i("a-card"),w=i("a-row"),R=i("a-tag"),I=i("a-space"),A=i("a-col"),O=i("a-button");return c(),C("div",ae,[o(v,{style:{width:"100%"}},{default:e(()=>[o(A,{span:k.value?24-N.value:24,class:"left"},{default:e(()=>[o(w,null,{default:e(()=>[o(v,{justify:"space-between",style:{width:"100%"}},{default:e(()=>[o(u,{level:3},{default:e(()=>[n(" 基础信息")]),_:1})]),_:1}),o(p,{class:"_detail"},{default:e(()=>[o(W,{column:2,layout:"vertical",title:""},{default:e(()=>[o(r,{label:t.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[0]||(l[0]=d=>g(a.key))},[n(s(a.key)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.scope),1)]),_:1})]),_:1},8,["label"]),a.scope=="service"?(c(),f(r,{key:0,label:"版本",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[1]||(l[1]=d=>g(a.version))},[n(s(a.version)+" ",1),a.version.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),a.scope=="service"?(c(),f(r,{key:1,label:"分组",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[2]||(l[2]=d=>g(a.group))},[n(s(a.group)+" ",1),a.group.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),o(r,{label:t.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[3]||(l[3]=d=>g(P.value))},[n(s(P.value)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.faultTolerantProtection"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.force?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.enabled?t.$t("flowControlDomain.enabled"):t.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.runtime?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(p,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[o(I,{align:"start",style:{width:"100%"}},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.requestParameterMatching"))+": ",1)]),_:1}),o(I,{align:"center",direction:"horizontal",size:"middle",wrap:""},{default:e(()=>[(c(!0),C(V,null,j($.value,(d,M)=>(c(),f(R,{key:M,color:"#2db7f5"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(I,{align:"start",style:{width:"100%"},wrap:""},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.addressSubsetMatching"))+": ",1)]),_:1}),(c(!0),C(V,null,j(T.value,(d,M)=>(c(),f(R,{key:M,color:"#87d068"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["span"]),o(A,{span:k.value?N.value:0,class:"right"},{default:e(()=>[k.value?(c(),f(p,{key:0,class:"sliderBox"},{default:e(()=>[(c(),C(V,null,j(2,d=>o(p,{key:d},{default:e(()=>[le,ne,o(v,{justify:"flex-end"},{default:e(()=>[o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("查看")]),_:1}),o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):b("",!0)]),_:1},8,["span"])]),_:1})])}}}),ue=ee(se,[["__scopeId","data-v-f3c3c57f"]]);export{ue as default}; -======== -import{u as H}from"./index-mXj9VWUy.js";import{d as L,k as U,a as F,B as h,r as J,l as K,D as Q,c as C,b as o,w as e,e as i,o as c,f as n,j as m,t as s,n as D,a0 as S,J as f,T as b,L as V,M as j,m as X,p as Y,h as Z,_ as ee}from"./index-JtaswhjV.js";import{g as te}from"./traffic-BsDR0F4K.js";import{H as oe}from"./request--dYXBGM5.js";const q=y=>(Y("data-v-f3c3c57f"),y=y(),Z(),y),ae={class:"__container_routingRule_detail"},le=q(()=>m("p",null,"修改时间: 2024/3/20 15:20:31",-1)),ne=q(()=>m("p",null,"版本号: xo842xqpx834",-1)),se=L({__name:"formView",setup(y){const{appContext:{config:{globalProperties:E}}}=U(),B=F(),k=h(!1),N=h(8),x=H().toClipboard;function g(t){X.success(E.$t("messageDomain.success.copy")),x(t)}const a=J({}),P=K(()=>{const t=a.key||"",l=typeof t=="string"?t.split(":"):[];return a.version=l[1]||"",a.group=l[2]||"",l[0]||""}),$=h([]),T=h([]);async function z(){var l;let t=await te((l=B.params)==null?void 0:l.ruleName);(t==null?void 0:t.code)===oe.SUCCESS&&(Object.assign(a,(t==null?void 0:t.data)||{}),a.conditions.forEach((u,v)=>{var p,w;const r=u.split(" => "),_=(p=r[1])==null?void 0:p.split(" & "),W=(w=r[0])==null?void 0:w.split(" & ");$.value=$.value.concat(W),T.value=T.value.concat(_)}))}const G=()=>{var l;const t=(l=B.params)==null?void 0:l.ruleName;if(t&&a.scope==="service"){const u=t==null?void 0:t.split(":");a.version=u[1],a.group=u[2].split(".")[0]}};return Q(async()=>{await z(),G()}),(t,l)=>{const u=i("a-typography-title"),v=i("a-flex"),r=i("a-descriptions-item"),_=i("a-typography-paragraph"),W=i("a-descriptions"),p=i("a-card"),w=i("a-row"),R=i("a-tag"),I=i("a-space"),A=i("a-col"),O=i("a-button");return c(),C("div",ae,[o(v,{style:{width:"100%"}},{default:e(()=>[o(A,{span:k.value?24-N.value:24,class:"left"},{default:e(()=>[o(w,null,{default:e(()=>[o(v,{justify:"space-between",style:{width:"100%"}},{default:e(()=>[o(u,{level:3},{default:e(()=>[n(" 基础信息")]),_:1})]),_:1}),o(p,{class:"_detail"},{default:e(()=>[o(W,{column:2,layout:"vertical",title:""},{default:e(()=>[o(r,{label:t.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[0]||(l[0]=d=>g(a.key))},[n(s(a.key)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.scope),1)]),_:1})]),_:1},8,["label"]),a.scope=="service"?(c(),f(r,{key:0,label:"版本",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[1]||(l[1]=d=>g(a.version))},[n(s(a.version)+" ",1),a.version.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),a.scope=="service"?(c(),f(r,{key:1,label:"分组",labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[2]||(l[2]=d=>g(a.group))},[n(s(a.group)+" ",1),a.group.length?(c(),f(D(S),{key:0})):b("",!0)])]),_:1})):b("",!0),o(r,{label:t.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[m("p",{class:"description-item-content with-card",onClick:l[3]||(l[3]=d=>g(P.value))},[n(s(P.value)+" ",1),o(D(S))])]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.faultTolerantProtection"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.force?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.enabled?t.$t("flowControlDomain.enabled"):t.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),o(r,{label:t.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:e(()=>[o(_,null,{default:e(()=>[n(s(a.runtime?t.$t("flowControlDomain.opened"):t.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(p,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[o(I,{align:"start",style:{width:"100%"}},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.requestParameterMatching"))+": ",1)]),_:1}),o(I,{align:"center",direction:"horizontal",size:"middle",wrap:""},{default:e(()=>[(c(!0),C(V,null,j($.value,(d,M)=>(c(),f(R,{key:M,color:"#2db7f5"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(I,{align:"start",style:{width:"100%"},wrap:""},{default:e(()=>[o(u,{level:5},{default:e(()=>[n(s(t.$t("flowControlDomain.addressSubsetMatching"))+": ",1)]),_:1}),(c(!0),C(V,null,j(T.value,(d,M)=>(c(),f(R,{key:M,color:"#87d068"},{default:e(()=>[n(s(d),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["span"]),o(A,{span:k.value?N.value:0,class:"right"},{default:e(()=>[k.value?(c(),f(p,{key:0,class:"sliderBox"},{default:e(()=>[(c(),C(V,null,j(2,d=>o(p,{key:d},{default:e(()=>[le,ne,o(v,{justify:"flex-end"},{default:e(()=>[o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("查看")]),_:1}),o(O,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[n("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):b("",!0)]),_:1},8,["span"])]),_:1})])}}}),ue=ee(se,[["__scopeId","data-v-f3c3c57f"]]);export{ue as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/formView-ULhh7EIP.js diff --git a/app/dubbo-ui/dist/admin/assets/formView-PnVUxe2n.css b/app/dubbo-ui/dist/admin/assets/formView-PnVUxe2n.css deleted file mode 100644 index 68b79d551..000000000 --- a/app/dubbo-ui/dist/admin/assets/formView-PnVUxe2n.css +++ /dev/null @@ -1 +0,0 @@ -.__container_traffic_config_form[data-v-398f5048]{position:relative;width:100%}.__container_traffic_config_form .dynamic-config-card[data-v-398f5048]{margin-bottom:20px}.__container_traffic_config_form .dynamic-config-card[data-v-398f5048] .ant-descriptions-item-label{width:120px;text-align:right}.__container_traffic_config_form .dynamic-config-card[data-v-398f5048] .ant-card-head-title{overflow:unset!important}.__container_traffic_config_form .dynamic-config-card .desc-config[data-v-398f5048]{max-width:60vw;display:inline-flex;font-weight:400;font-size:12px;line-height:20px;flex-wrap:wrap;row-gap:2px}.__container_traffic_config_form .dynamic-config-card .description-item-content.no-card[data-v-398f5048]{padding-left:20px}.__container_traffic_config_form .dynamic-config-card .description-item-content.with-card[data-v-398f5048]:hover{color:var(--0bd66a46)} diff --git a/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js b/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js deleted file mode 100644 index 8235fc28a..000000000 --- a/app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/formView-e13inb3H.js -import{d as W,v as B,a as A,k as E,l as L,r as M,D as x,c as m,b as t,w as a,L as v,M as w,e as l,n as _,P as H,o as c,j as h,f as n,t as o,a0 as D,J as $,m as U,_ as F}from"./index-rt1yTeew.js";import{u as G}from"./index-nvCr9_iI.js";import{e as J}from"./traffic-nmA_BhEL.js";import{H as Y}from"./request-vlI2kaaR.js";const q={class:"__container_app_detail"},z=W({__name:"formView",setup(K){B(e=>({"5b433755":_(H)}));const k=A(),{appContext:{config:{globalProperties:S}}}=E(),O=G().toClipboard;function f(e){U.success(S.$t("messageDomain.success.copy")),O(e)}const b=L(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=M({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),R=async()=>{var r;const e=await J((r=k.params)==null?void 0:r.ruleName);e.code===Y.SUCCESS&&Object.assign(s,e.data||{})};return x(()=>{R()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),T=l("a-descriptions"),g=l("a-card"),N=l("a-flex"),V=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),j=l("a-tag");return c(),m("div",q,[t(N,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(T,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>f(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>f(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),m(v,null,w(s.tags,(p,I)=>(c(),$(g,{title:`标签【${I+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(V,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),m(v,null,w(p.match,(d,P)=>(c(),$(j,{key:P,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),te=F(z,[["__scopeId","data-v-4613afa3"]]);export{te as default}; -======== -import{d as W,v as B,a as A,k as E,l as L,r as M,D as x,c as m,b as t,w as a,L as v,M as w,e as l,n as _,P as H,o as c,j as h,f as n,t as o,a0 as D,J as $,m as U,_ as F}from"./index-JtaswhjV.js";import{u as G}from"./index-mXj9VWUy.js";import{e as J}from"./traffic-BsDR0F4K.js";import{H as Y}from"./request--dYXBGM5.js";const q={class:"__container_app_detail"},z=W({__name:"formView",setup(K){B(e=>({"5b433755":_(H)}));const k=A(),{appContext:{config:{globalProperties:S}}}=E(),O=G().toClipboard;function f(e){U.success(S.$t("messageDomain.success.copy")),O(e)}const b=L(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=M({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),R=async()=>{var r;const e=await J((r=k.params)==null?void 0:r.ruleName);e.code===Y.SUCCESS&&Object.assign(s,e.data||{})};return x(()=>{R()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),T=l("a-descriptions"),g=l("a-card"),N=l("a-flex"),V=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),j=l("a-tag");return c(),m("div",q,[t(N,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(T,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>f(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>f(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),m(v,null,w(s.tags,(p,I)=>(c(),$(g,{title:`标签【${I+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(V,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),m(v,null,w(p.match,(d,P)=>(c(),$(j,{key:P,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),te=F(z,[["__scopeId","data-v-4613afa3"]]);export{te as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/formView-lbEY3Kt0.js diff --git a/app/dubbo-ui/dist/admin/assets/formView-ry7RXfv8.css b/app/dubbo-ui/dist/admin/assets/formView-ry7RXfv8.css deleted file mode 100644 index 69b931f2e..000000000 --- a/app/dubbo-ui/dist/admin/assets/formView-ry7RXfv8.css +++ /dev/null @@ -1 +0,0 @@ -.__container_routingRule_detail .sliderBox[data-v-f3c3c57f]{margin-left:5px;max-height:530px;overflow:auto}.__container_routingRule_detail[data-v-f3c3c57f] .left.ant-col,.__container_routingRule_detail[data-v-f3c3c57f] .right.ant-col{transition:all .5s ease} diff --git a/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js b/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js deleted file mode 100644 index 12de9bb29..000000000 --- a/app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js +++ /dev/null @@ -1,21 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/formView-vI7S-3Yw.js -import{d as tn,v as en,y as rn,z as nn,k as sn,a as an,u as on,B as Ge,r as Ke,l as Fi,D as ln,c as Ct,b as D,w as P,J as $,T as zt,a4 as Ii,e as rt,n as G,P as Ft,o as E,j as Re,L as Wt,M as qt,f as nt,t as dt,ah as un,I as ne,ak as fn,m as ge,_ as hn}from"./index-rt1yTeew.js";import{u as _n}from"./index-nvCr9_iI.js";import{k as dn,l as cn,m as pn}from"./traffic-nmA_BhEL.js";import{V as mn,C as gn}from"./ConfigModel-yjTa7EW2.js";import"./request-vlI2kaaR.js";function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tr(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*! -======== -import{d as tn,v as en,y as rn,z as nn,k as sn,a as an,u as on,B as Ge,r as Ke,l as Fi,D as ln,c as Ct,b as D,w as S,J as $,T as zt,a4 as Ii,e as rt,n as G,P as Ft,o as E,j as Re,L as Wt,M as qt,f as nt,t as dt,af as un,I as ne,ai as fn,m as ge,_ as hn}from"./index-JtaswhjV.js";import{u as _n}from"./index-mXj9VWUy.js";import{k as dn,l as cn,m as pn}from"./traffic-BsDR0F4K.js";import{V as mn,C as gn}from"./ConfigModel-t29mQMqm.js";import"./request--dYXBGM5.js";function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tr(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*! ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/formView-IcrDVJjl.js - * GSAP 3.12.7 - * https://gsap.com - * - * @license Copyright 2008-2025, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license or for - * Club GSAP members, the agreement issued with that membership. - * @author: Jack Doyle, jack@greensock.com -*/var gt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},he={duration:.5,overwrite:!1,delay:0},yi,J,Y,wt=1e8,L=1/wt,ri=Math.PI*2,yn=ri/4,vn=0,er=Math.sqrt,bn=Math.cos,xn=Math.sin,H=function(t){return typeof t=="string"},q=function(t){return typeof t=="function"},Rt=function(t){return typeof t=="number"},vi=function(t){return typeof t>"u"},Dt=function(t){return typeof t=="object"},st=function(t){return t!==!1},bi=function(){return typeof window<"u"},Ee=function(t){return q(t)||H(t)},ir=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},et=Array.isArray,ni=/(?:-?\.?\d|\.)+/gi,rr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ae=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,je=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nr=/[+-]=-?[.\d]+/,sr=/[^,'"\[\]\s]+/gi,wn=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,X,kt,si,xi,yt={},Ve={},ar,or=function(t){return(Ve=_e(t,yt))&&ut},wi=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Ce=function(t,e){return!e&&console.warn(t)},lr=function(t,e){return t&&(yt[t]=e)&&Ve&&(Ve[t]=e)||yt},ke=function(){return 0},Tn={suppressEvents:!0,isStart:!0,kill:!1},ze={suppressEvents:!0,kill:!1},Cn={suppressEvents:!0},Ti={},Lt=[],ai={},ur,ct={},Qe={},Vi=30,Fe=[],Ci="",ki=function(t){var e=t[0],i,r;if(Dt(e)||q(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(r=Fe.length;r--&&!Fe[r].targetTest(e););i=Fe[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Er(t[r],i)))||t.splice(r,1);return t},Zt=function(t){return t._gsap||ki(Tt(t))[0]._gsap},fr=function(t,e,i){return(i=t[e])&&q(i)?t[e]():vi(i)&&t.getAttribute&&t.getAttribute(e)||i},at=function(t,e){return(t=t.split(",")).forEach(e)||t},K=function(t){return Math.round(t*1e5)/1e5||0},Z=function(t){return Math.round(t*1e7)/1e7||0},le=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+r:i==="-"?t-r:i==="*"?t*r:t/r},kn=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++ra;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Xe=function(t,e,i,r){i===void 0&&(i="_first"),r===void 0&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},Bt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ht=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Pn=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},oi=function(t,e,i,r){return t._startAt&&(J?t._startAt.revert(ze):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Dn=function l(t){return!t||t._ts&&l(t.parent)},Li=function(t){return t._repeat?de(t._tTime,t=t.duration()+t._rDelay)*t:0},de=function(t,e){var i=Math.floor(t=Z(t/e));return t&&i===t?i-1:i},Ne=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},We=function(t){return t._end=Z(t._start+(t._tDur/Math.abs(t._ts||t._rts||L)||0))},qe=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=Z(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),We(t),i._dirty||Ht(i,t)),t},pr=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._startL)&&e.render(i,!0)),Ht(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-L}},Ot=function(t,e,i,r){return e.parent&&Bt(e),e._start=Z((Rt(i)?i:i||t!==X?xt(t,i,e):t._time)+e._delay),e._end=Z(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),cr(t,e,"_first","_last",t._sort?"_start":0),li(e)||(t._recent=e),r||pr(t,e),t._ts<0&&qe(t,t._tTime),t},mr=function(t,e){return(yt.ScrollTrigger||wi("scrollTrigger",e))&&yt.ScrollTrigger.create(e,t)},gr=function(t,e,i,r,n){if(Si(t,e,n),!t._initted)return 1;if(!i&&t._pt&&!J&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ur!==pt.frame)return Lt.push(t),t._lazy=[n,r],1},Mn=function l(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||l(e))},li=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},An=function(t,e,i,r){var n=t.ratio,s=e<0||!e&&(!t._start&&Mn(t)&&!(!t._initted&&li(t))||(t._ts<0||t._dp._ts<0)&&!li(t))?0:1,a=t._rDelay,o=0,u,f,_;if(a&&t._repeat&&(o=Ae(0,t._tDur,e),f=de(o,a),t._yoyo&&f&1&&(s=1-s),f!==de(t._tTime,a)&&(n=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==n||J||r||t._zTime===L||!e&&t._zTime){if(!t._initted&&gr(t,e,r,i,o))return;for(_=t._zTime,t._zTime=e||(i?L:0),i||(i=e&&!_),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=o,u=t._pt;u;)u.r(s,u.d),u=u._next;e<0&&oi(t,e,i,!0),t._onUpdate&&!i&&mt(t,"onUpdate"),o&&t._repeat&&!i&&t.parent&&mt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&Bt(t,1),!i&&!J&&(mt(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Rn=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if(r.data==="isPause"&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(r.data==="isPause"&&r._start0&&!r&&qe(t,t._tTime=t._tDur*a),t.parent&&We(t),i||Ht(t.parent,t),t},Ni=function(t){return t instanceof it?Ht(t):ce(t,t._dur)},En={_start:0,endTime:ke,totalDuration:ke},xt=function l(t,e,i){var r=t.labels,n=t._recent||En,s=t.duration()>=wt?n.endTime(!1):t._dur,a,o,u;return H(e)&&(isNaN(e)||e in r)?(o=e.charAt(0),u=e.substr(-1)==="%",a=e.indexOf("="),o==="<"||o===">"?(a>=0&&(e=e.replace(/=/,"")),(o==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(e.substr(1))||0)*(u?(a<0?n:i).totalDuration()/100:1)):a<0?(e in r||(r[e]=s),r[e]):(o=parseFloat(e.charAt(a-1)+e.substr(a+1)),u&&i&&(o=o/100*(et(i)?i[0]:i).totalDuration()),a>1?l(t,e.substr(0,a-1),i)+o:s+o)):e==null?s:+e},we=function(t,e,i){var r=Rt(e[1]),n=(r?2:1)+(t<2?0:1),s=e[n],a,o;if(r&&(s.duration=e[1]),s.parent=i,t){for(a=s,o=i;o&&!("immediateRender"in a);)a=o.vars.defaults||{},o=st(o.vars.inherit)&&o.parent;s.immediateRender=st(a.immediateRender),t<2?s.runBackwards=1:s.startAt=e[n-1]}return new Q(e[0],s,e[n+1])},$t=function(t,e){return t||t===0?e(t):e},Ae=function(t,e,i){return ie?e:i},tt=function(t,e){return!H(t)||!(e=wn.exec(t))?"":e[1]},zn=function(t,e,i){return $t(i,function(r){return Ae(t,e,r)})},ui=[].slice,yr=function(t,e){return t&&Dt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Dt(t[0]))&&!t.nodeType&&t!==kt},Fn=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(r){var n;return H(r)&&!e||yr(r,1)?(n=i).push.apply(n,Tt(r)):i.push(r)})||i},Tt=function(t,e,i){return Y&&!e&&Y.selector?Y.selector(t):H(t)&&!i&&(si||!pe())?ui.call((e||xi).querySelectorAll(t),0):et(t)?Fn(t,i):yr(t)?ui.call(t,0):t?[t]:[]},fi=function(t){return t=Tt(t)[0]||Ce("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return Tt(e,i.querySelectorAll?i:i===t?Ce("Invalid scope")||xi.createElement("div"):t)}},vr=function(t){return t.sort(function(){return .5-Math.random()})},br=function(t){if(q(t))return t;var e=Dt(t)?t:{each:t},i=Jt(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},a=r>0&&r<1,o=isNaN(r)||a,u=e.axis,f=r,_=r;return H(r)?f=_={center:.5,edges:.5,end:1}[r]||0:!a&&o&&(f=r[0],_=r[1]),function(d,c,m){var h=(m||e).length,g=s[h],v,b,T,k,p,x,w,C,y;if(!g){if(y=e.grid==="auto"?0:(e.grid||[1,wt])[1],!y){for(w=-wt;w<(w=m[y++].getBoundingClientRect().left)&&yw&&(w=p),ph?h-1:u?u==="y"?h/y:y:Math.max(y,h/y))||0)*(r==="edges"?-1:1),g.b=h<0?n-h:n,g.u=tt(e.amount||e.each)||0,i=i&&h<0?Mr(i):i}return h=(g[d]-g.min)/g.max||0,Z(g.b+(i?i(h):h)*g.v)+g.u}},hi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=Z(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Rt(i)?0:tt(i))}},xr=function(t,e){var i=et(t),r,n;return!i&&Dt(t)&&(r=i=t.radius||wt,t.values?(t=Tt(t.values),(n=!Rt(t[0]))&&(r*=r)):t=hi(t.increment)),$t(e,i?q(t)?function(s){return n=t(s),Math.abs(n-s)<=r?n:s}:function(s){for(var a=parseFloat(n?s.x:s),o=parseFloat(n?s.y:0),u=wt,f=0,_=t.length,d,c;_--;)n?(d=t[_].x-a,c=t[_].y-o,d=d*d+c*c):d=Math.abs(t[_]-a),dr?n-s:s)})},Oe=function(t){for(var e=0,i="",r,n,s,a;~(r=t.indexOf("random(",e));)s=t.indexOf(")",r),a=t.charAt(r+7)==="[",n=t.substr(r+7,s-r-7).match(a?sr:ni),i+=t.substr(e,r-e)+wr(a?n:+n[0],a?0:+n[1],+n[2]||1e-5),e=s+1;return i+t.substr(e,t.length-e)},Cr=function(t,e,i,r,n){var s=e-t,a=r-i;return $t(n,function(o){return i+((o-t)/s*a||0)})},Bn=function l(t,e,i,r){var n=isNaN(t+e)?0:function(c){return(1-c)*t+c*e};if(!n){var s=H(t),a={},o,u,f,_,d;if(i===!0&&(r=1)&&(i=null),s)t={p:t},e={p:e};else if(et(t)&&!et(e)){for(f=[],_=t.length,d=_-2,u=1;u<_;u++)f.push(l(t[u-1],t[u]));_--,n=function(m){m*=_;var h=Math.min(d,~~m);return f[h](m-h)},i=e}else r||(t=_e(et(t)?[]:{},t));if(!f){for(o in e)Oi.call(a,t,o,"get",e[o]);n=function(m){return Mi(m,a)||(s?t.p:t)}}}return $t(i,n)},Bi=function(t,e,i){var r=t.labels,n=wt,s,a,o;for(s in r)a=r[s]-e,a<0==!!i&&a&&n>(a=Math.abs(a))&&(o=s,n=a);return o},mt=function(t,e,i){var r=t.vars,n=r[e],s=Y,a=t._ctx,o,u,f;if(n)return o=r[e+"Params"],u=r.callbackScope||t,i&&Lt.length&&Ue(),a&&(Y=a),f=o?n.apply(u,o):n.call(u),Y=s,f},ve=function(t){return Bt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!J),t.progress()<1&&mt(t,"onInterrupt"),t},oe,kr=[],Or=function(t){if(t)if(t=!t.name&&t.default||t,bi()||t.headless){var e=t.name,i=q(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:ke,render:Mi,add:Oi,kill:rs,modifier:is,rawVars:0},s={targetTest:0,get:0,getSetter:Di,aliases:{},register:0};if(pe(),t!==r){if(ct[e])return;vt(r,vt(Le(t,n),s)),_e(r.prototype,_e(n,Le(t,s))),ct[r.prop=e]=r,t.targetTest&&(Fe.push(r),Ti[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}lr(e,r),t.register&&t.register(ut,r,ot)}else kr.push(t)},U=255,be={aqua:[0,U,U],lime:[0,U,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,U],navy:[0,0,128],white:[U,U,U],olive:[128,128,0],yellow:[U,U,0],orange:[U,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[U,0,0],pink:[U,192,203],cyan:[0,U,U],transparent:[U,U,U,0]},Ze=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*U+.5|0},Sr=function(t,e,i){var r=t?Rt(t)?[t>>16,t>>8&U,t&U]:0:be.black,n,s,a,o,u,f,_,d,c,m;if(!r){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),be[t])r=be[t];else if(t.charAt(0)==="#"){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),a=t.charAt(3),t="#"+n+n+s+s+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return r=parseInt(t.substr(1,6),16),[r>>16,r>>8&U,r&U,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),r=[t>>16,t>>8&U,t&U]}else if(t.substr(0,3)==="hsl"){if(r=m=t.match(ni),!e)o=+r[0]%360/360,u=+r[1]/100,f=+r[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,r.length>3&&(r[3]*=1),r[0]=Ze(o+1/3,n,s),r[1]=Ze(o,n,s),r[2]=Ze(o-1/3,n,s);else if(~t.indexOf("="))return r=t.match(rr),i&&r.length<4&&(r[3]=1),r}else r=t.match(ni)||be.transparent;r=r.map(Number)}return e&&!m&&(n=r[0]/U,s=r[1]/U,a=r[2]/U,_=Math.max(n,s,a),d=Math.min(n,s,a),f=(_+d)/2,_===d?o=u=0:(c=_-d,u=f>.5?c/(2-_-d):c/(_+d),o=_===n?(s-a)/c+(st||v<0)&&(i+=v-e),r+=v,p=r-i,T=p-s,(T>0||b)&&(x=++_.frame,d=p-_.time*1e3,_.time=p=p/1e3,s+=T+(T>=n?4:n-T),k=1),b||(o=u(h)),k)for(c=0;c=v&&c--},_listeners:a},_}(),pe=function(){return!Se&&pt.wake()},R={},$n=/^[\d.\-M][\d.\-,\s]/,Xn=/["']/g,Wn=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),r=i[0],n=1,s=i.length,a,o,u;n1&&i.config?i.config.apply(null,~t.indexOf("{")?[Wn(e[1])]:qn(t).split(",").map(_r)):R._CE&&$n.test(t)?R._CE("",t):i},Mr=function(t){return function(e){return 1-t(1-e)}},Ar=function l(t,e){for(var i=t._first,r;i;)i instanceof it?l(i,e):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==e&&(i.timeline?l(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next},Jt=function(t,e){return t&&(q(t)?t:R[t]||Gn(t))||e},ie=function(t,e,i,r){i===void 0&&(i=function(o){return 1-e(1-o)}),r===void 0&&(r=function(o){return o<.5?e(o*2)/2:1-e((1-o)*2)/2});var n={easeIn:e,easeOut:i,easeInOut:r},s;return at(t,function(a){R[a]=yt[a]=n,R[s=a.toLowerCase()]=i;for(var o in n)R[s+(o==="easeIn"?".in":o==="easeOut"?".out":".inOut")]=R[a+"."+o]=n[o]}),n},Rr=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},He=function l(t,e,i){var r=e>=1?e:1,n=(i||(t?.3:.45))/(e<1?e:1),s=n/ri*(Math.asin(1/r)||0),a=function(f){return f===1?1:r*Math.pow(2,-10*f)*xn((f-s)*n)+1},o=t==="out"?a:t==="in"?function(u){return 1-a(1-u)}:Rr(a);return n=ri/n,o.config=function(u,f){return l(t,u,f)},o},Je=function l(t,e){e===void 0&&(e=1.70158);var i=function(s){return s?--s*s*((e+1)*s+e)+1:0},r=t==="out"?i:t==="in"?function(n){return 1-i(1-n)}:Rr(i);return r.config=function(n){return l(t,n)},r};at("Linear,Quad,Cubic,Quart,Quint,Strong",function(l,t){var e=t<5?t+1:t;ie(l+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});R.Linear.easeNone=R.none=R.Linear.easeIn;ie("Elastic",He("in"),He("out"),He());(function(l,t){var e=1/t,i=2*e,r=2.5*e,n=function(a){return a0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,ce(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,r){if(pe(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(qe(this,i),!n._dp||n.parent||pr(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i0||!this._tDur&&!i)&&Ot(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===L||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),hr(this,i,r)),this},t.time=function(i,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Li(this))%(this._dur+this._rDelay)||(i?this._dur:0),r):this._time},t.totalProgress=function(i,r){return arguments.length?this.totalTime(this.totalDuration()*i,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Li(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,r){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*n,r):this._repeat?de(this._tTime,n)+1:1},t.timeScale=function(i,r){if(!arguments.length)return this._rts===-L?0:this._rts;if(this._rts===i)return this;var n=this.parent&&this._ts?Ne(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-L?0:this._rts,this.totalTime(Ae(-Math.abs(this._delay),this._tDur,n),r!==!1),We(this),Pn(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(pe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==L&&(this._tTime-=L)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=i;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Ot(r,this,i-this._delay),this}return this._start},t.endTime=function(i){return this._start+(st(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var r=this.parent||this._dp;return r?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ne(r.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Cn);var r=J;return J=i,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),J=r,this},t.globalTime=function(i){for(var r=this,n=arguments.length?i:r.rawTime();r;)n=r._start+n/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(i):n},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Ni(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var r=this._time;return this._rDelay=i,Ni(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,r){return this.totalTime(xt(this,i),st(r))},t.restart=function(i,r){return this.play().totalTime(i?-this._delay:0,st(r)),this._dur||(this._zTime=-L),this},t.play=function(i,r){return i!=null&&this.seek(i,r),this.reversed(!1).paused(!1)},t.reverse=function(i,r){return i!=null&&this.seek(i||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(i,r){return i!=null&&this.seek(i,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-L:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-L,this},t.isActive=function(){var i=this.parent||this._dp,r=this._start,n;return!!(!i||this._ts&&this._initted&&i.isActive()&&(n=i.rawTime(!0))>=r&&n1?(r?(s[i]=r,n&&(s[i+"Params"]=n),i==="onUpdate"&&(this._onUpdate=r)):delete s[i],this):s[i]},t.then=function(i){var r=this;return new Promise(function(n){var s=q(i)?i:dr,a=function(){var u=r.then;r.then=null,q(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=u),n(s),r.then=u};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},t.kill=function(){ve(this)},l}();vt(Pe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-L,_prom:0,_ps:!1,_rts:1});var it=function(l){tr(t,l);function t(i,r){var n;return i===void 0&&(i={}),n=l.call(this,i)||this,n.labels={},n.smoothChildTiming=!!i.smoothChildTiming,n.autoRemoveChildren=!!i.autoRemoveChildren,n._sort=st(i.sortChildren),X&&Ot(i.parent||X,Mt(n),r),i.reversed&&n.reverse(),i.paused&&n.paused(!0),i.scrollTrigger&&mr(Mt(n),i.scrollTrigger),n}var e=t.prototype;return e.to=function(r,n,s){return we(0,arguments,this),this},e.from=function(r,n,s){return we(1,arguments,this),this},e.fromTo=function(r,n,s,a){return we(2,arguments,this),this},e.set=function(r,n,s){return n.duration=0,n.parent=this,xe(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Q(r,n,xt(this,s),1),this},e.call=function(r,n,s){return Ot(this,Q.delayedCall(0,r,n),s)},e.staggerTo=function(r,n,s,a,o,u,f){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Q(r,s,xt(this,o)),this},e.staggerFrom=function(r,n,s,a,o,u,f){return s.runBackwards=1,xe(s).immediateRender=st(s.immediateRender),this.staggerTo(r,n,s,a,o,u,f)},e.staggerFromTo=function(r,n,s,a,o,u,f,_){return a.startAt=s,xe(a).immediateRender=st(a.immediateRender),this.staggerTo(r,n,a,o,u,f,_)},e.render=function(r,n,s){var a=this._time,o=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=r<=0?0:Z(r),_=this._zTime<0!=r<0&&(this._initted||!u),d,c,m,h,g,v,b,T,k,p,x,w;if(this!==X&&f>o&&r>=0&&(f=o),f!==this._tTime||s||_){if(a!==this._time&&u&&(f+=this._time-a,r+=this._time-a),d=f,k=this._start,T=this._ts,v=!T,_&&(u||(a=this._zTime),(r||!n)&&(this._zTime=r)),this._repeat){if(x=this._yoyo,g=u+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,n,s);if(d=Z(f%g),f===o?(h=this._repeat,d=u):(p=Z(f/g),h=~~p,h&&h===p&&(d=u,h--),d>u&&(d=u)),p=de(this._tTime,g),!a&&this._tTime&&p!==h&&this._tTime-p*g-this._dur<=0&&(p=h),x&&h&1&&(d=u-d,w=1),h!==p&&!this._lock){var C=x&&p&1,y=C===(x&&h&1);if(h=a&&r>=0)for(c=this._first;c;){if(m=c._next,(c._act||d>=c._start)&&c._ts&&b!==c){if(c.parent!==this)return this.render(r,n,s);if(c.render(c._ts>0?(d-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(d-c._start)*c._ts,n,s),d!==this._time||!this._ts&&!v){b=0,m&&(f+=this._zTime=-L);break}}c=m}else{c=this._last;for(var M=r<0?r:d;c;){if(m=c._prev,(c._act||M<=c._end)&&c._ts&&b!==c){if(c.parent!==this)return this.render(r,n,s);if(c.render(c._ts>0?(M-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(M-c._start)*c._ts,n,s||J&&(c._initted||c._startAt)),d!==this._time||!this._ts&&!v){b=0,m&&(f+=this._zTime=M?-L:L);break}}c=m}}if(b&&!n&&(this.pause(),b.render(d>=a?0:-L)._zTime=d>=a?1:-1,this._ts))return this._start=k,We(this),this.render(r,n,s);this._onUpdate&&!n&&mt(this,"onUpdate",!0),(f===o&&this._tTime>=this.totalDuration()||!f&&a)&&(k===this._start||Math.abs(T)!==Math.abs(this._ts))&&(this._lock||((r||!u)&&(f===o&&this._ts>0||!f&&this._ts<0)&&Bt(this,1),!n&&!(r<0&&!a)&&(f||a||!o)&&(mt(this,f===o&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f0)&&this._prom())))}return this},e.add=function(r,n){var s=this;if(Rt(n)||(n=xt(this,n,r)),!(r instanceof Pe)){if(et(r))return r.forEach(function(a){return s.add(a,n)}),this;if(H(r))return this.addLabel(r,n);if(q(r))r=Q.delayedCall(0,r);else return this}return this!==r?Ot(this,r,n):this},e.getChildren=function(r,n,s,a){r===void 0&&(r=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-wt);for(var o=[],u=this._first;u;)u._start>=a&&(u instanceof Q?n&&o.push(u):(s&&o.push(u),r&&o.push.apply(o,u.getChildren(!0,n,s)))),u=u._next;return o},e.getById=function(r){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===r)return n[s]},e.remove=function(r){return H(r)?this.removeLabel(r):q(r)?this.killTweensOf(r):(r.parent===this&&Xe(this,r),r===this._recent&&(this._recent=this._last),Ht(this))},e.totalTime=function(r,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Z(pt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),l.prototype.totalTime.call(this,r,n),this._forcing=0,this):this._tTime},e.addLabel=function(r,n){return this.labels[r]=xt(this,n),this},e.removeLabel=function(r){return delete this.labels[r],this},e.addPause=function(r,n,s){var a=Q.delayedCall(0,n||ke,s);return a.data="isPause",this._hasPause=1,Ot(this,a,xt(this,r))},e.removePause=function(r){var n=this._first;for(r=xt(this,r);n;)n._start===r&&n.data==="isPause"&&Bt(n),n=n._next},e.killTweensOf=function(r,n,s){for(var a=this.getTweensOf(r,s),o=a.length;o--;)It!==a[o]&&a[o].kill(r,n);return this},e.getTweensOf=function(r,n){for(var s=[],a=Tt(r),o=this._first,u=Rt(n),f;o;)o instanceof Q?kn(o._targets,a)&&(u?(!It||o._initted&&o._ts)&&o.globalTime(0)<=n&&o.globalTime(o.totalDuration())>n:!n||o.isActive())&&s.push(o):(f=o.getTweensOf(a,n)).length&&s.push.apply(s,f),o=o._next;return s},e.tweenTo=function(r,n){n=n||{};var s=this,a=xt(s,r),o=n,u=o.startAt,f=o.onStart,_=o.onStartParams,d=o.immediateRender,c,m=Q.to(s,vt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale())||L,onStart:function(){if(s.pause(),!c){var g=n.duration||Math.abs((a-(u&&"time"in u?u.time:s._time))/s.timeScale());m._dur!==g&&ce(m,g,0,1).render(m._time,!0,!0),c=1}f&&f.apply(m,_||[])}},n));return d?m.render(0):m},e.tweenFromTo=function(r,n,s){return this.tweenTo(n,vt({startAt:{time:xt(this,r)}},s))},e.recent=function(){return this._recent},e.nextLabel=function(r){return r===void 0&&(r=this._time),Bi(this,xt(this,r))},e.previousLabel=function(r){return r===void 0&&(r=this._time),Bi(this,xt(this,r),1)},e.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+L)},e.shiftChildren=function(r,n,s){s===void 0&&(s=0);for(var a=this._first,o=this.labels,u;a;)a._start>=s&&(a._start+=r,a._end+=r),a=a._next;if(n)for(u in o)o[u]>=s&&(o[u]+=r);return Ht(this)},e.invalidate=function(r){var n=this._first;for(this._lock=0;n;)n.invalidate(r),n=n._next;return l.prototype.invalidate.call(this,r)},e.clear=function(r){r===void 0&&(r=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Ht(this)},e.totalDuration=function(r){var n=0,s=this,a=s._last,o=wt,u,f,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-r:r));if(s._dirty){for(_=s.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),f=a._start,f>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Ot(s,a,f-a._delay,1)._lock=0):o=f,f<0&&a._ts&&(n-=f,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),o=0),a._end>n&&a._ts&&(n=a._end),a=u;ce(s,s===X&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},t.updateRoot=function(r){if(X._ts&&(hr(X,Ne(r,X)),ur=pt.frame),pt.frame>=Vi){Vi+=gt.autoSleep||120;var n=X._first;if((!n||!n._ts)&>.autoSleep&&pt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||pt.sleep()}}},t}(Pe);vt(it.prototype,{_lock:0,_hasPause:0,_forcing:0});var Kn=function(t,e,i,r,n,s,a){var o=new ot(this._pt,t,e,0,1,Lr,null,n),u=0,f=0,_,d,c,m,h,g,v,b;for(o.b=i,o.e=r,i+="",r+="",(v=~r.indexOf("random("))&&(r=Oe(r)),s&&(b=[i,r],s(b,t,e),i=b[0],r=b[1]),d=i.match(je)||[];_=je.exec(r);)m=_[0],h=r.substring(u,_.index),c?c=(c+1)%5:h.substr(-5)==="rgba("&&(c=1),m!==d[f++]&&(g=parseFloat(d[f-1])||0,o._pt={_next:o._pt,p:h||f===1?h:",",s:g,c:m.charAt(1)==="="?le(g,m)-g:parseFloat(m)-g,m:c&&c<4?Math.round:0},u=je.lastIndex);return o.c=u")}),k.duration();else{x={};for(C in m)C==="ease"||C==="easeEach"||Hn(C,m[C],x,m.easeEach);for(C in x)for(A=x[C].sort(function(V,N){return V.t-N.t}),z=0,p=0;po-L&&!f?o:ru&&(d=u)),v=this._yoyo&&m&1,v&&(k=this._yEase,d=u-d),g=de(this._tTime,h),d===a&&!s&&this._initted&&m===g)return this._tTime=_,this;m!==g&&(T&&this._yEase&&Ar(T,v),this.vars.repeatRefresh&&!v&&!this._lock&&d!==h&&this._initted&&(this._lock=s=1,this.render(Z(h*m),!0).invalidate()._lock=0))}if(!this._initted){if(gr(this,f?r:d,s,n,_))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&m!==g))return this;if(u!==this._dur)return this.render(r,n,s)}if(this._tTime=_,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=b=(k||this._ease)(d/u),this._from&&(this.ratio=b=1-b),d&&!a&&!n&&!m&&(mt(this,"onStart"),this._tTime!==_))return this;for(c=this._pt;c;)c.r(b,c.d),c=c._next;T&&T.render(r<0?r:T._dur*T._ease(d/this._dur),n,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!n&&(f&&oi(this,r,n,s),mt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!n&&this.parent&&mt(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(f&&!this._onUpdate&&oi(this,r,!0,!0),(r||!u)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Bt(this,1),!n&&!(f&&!a)&&(_||a||v)&&(mt(this,_===o?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),l.prototype.invalidate.call(this,r)},e.resetTo=function(r,n,s,a,o){Se||pt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Si(this,u),f=this._ease(u/this._dur),Qn(this,r,n,s,a,f,u,o)?this.resetTo(r,n,s,a,1):(qe(this,0),this.parent||cr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(r,n){if(n===void 0&&(n="all"),!r&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?ve(this):this.scrollTrigger&&this.scrollTrigger.kill(!!J),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,n,It&&It.vars.overwrite!==!0)._first||ve(this),this.parent&&s!==this.timeline.totalDuration()&&ce(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,o=r?Tt(r):a,u=this._ptLookup,f=this._pt,_,d,c,m,h,g,v;if((!n||n==="all")&&Sn(a,o))return n==="all"&&(this._pt=0),ve(this);for(_=this._op=this._op||[],n!=="all"&&(H(n)&&(h={},at(n,function(b){return h[b]=1}),n=h),n=Zn(a,n)),v=a.length;v--;)if(~o.indexOf(a[v])){d=u[v],n==="all"?(_[v]=n,m=d,c={}):(c=_[v]=_[v]||{},m=n);for(h in m)g=d&&d[h],g&&((!("kill"in g.d)||g.d.kill(h)===!0)&&Xe(this,g,"_pt"),delete d[h]),c!=="all"&&(c[h]=1)}return this._initted&&!this._pt&&f&&ve(this),this},t.to=function(r,n){return new t(r,n,arguments[2])},t.from=function(r,n){return we(1,arguments)},t.delayedCall=function(r,n,s,a){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},t.fromTo=function(r,n,s){return we(2,arguments)},t.set=function(r,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(r,n)},t.killTweensOf=function(r,n,s){return X.killTweensOf(r,n,s)},t}(Pe);vt(Q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});at("staggerTo,staggerFrom,staggerFromTo",function(l){Q[l]=function(){var t=new it,e=ui.call(arguments,0);return e.splice(l==="staggerFromTo"?5:4,0,0),t[l].apply(t,e)}});var Pi=function(t,e,i){return t[e]=i},Vr=function(t,e,i){return t[e](i)},Jn=function(t,e,i,r){return t[e](r.fp,i)},ts=function(t,e,i){return t.setAttribute(e,i)},Di=function(t,e){return q(t[e])?Vr:vi(t[e])&&t.setAttribute?ts:Pi},Ur=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},es=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Lr=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(t===1&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},Mi=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},is=function(t,e,i,r){for(var n=this._pt,s;n;)s=n._next,n.p===r&&n.modifier(t,e,i),n=s},rs=function(t){for(var e=this._pt,i,r;e;)r=e._next,e.p===t&&!e.op||e.op===t?Xe(this,e,"_pt"):e.dep||(i=1),e=r;return!i},ns=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},Nr=function(t){for(var e=t._pt,i,r,n,s;e;){for(i=e._next,r=n;r&&r.pr>e.pr;)r=r._next;(e._prev=r?r._prev:s)?e._prev._next=e:n=e,(e._next=r)?r._prev=e:s=e,e=i}t._pt=n},ot=function(){function l(e,i,r,n,s,a,o,u,f){this.t=i,this.s=n,this.c=s,this.p=r,this.r=a||Ur,this.d=o||this,this.set=u||Pi,this.pr=f||0,this._next=e,e&&(e._prev=this)}var t=l.prototype;return t.modifier=function(i,r,n){this.mSet=this.mSet||this.set,this.set=ns,this.m=i,this.mt=n,this.tween=r},l}();at(Ci+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(l){return Ti[l]=1});yt.TweenMax=yt.TweenLite=Q;yt.TimelineLite=yt.TimelineMax=it;X=new it({sortChildren:!1,defaults:he,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});gt.stringFilter=Dr;var te=[],Ie={},ss=[],$i=0,as=0,ti=function(t){return(Ie[t]||ss).map(function(e){return e()})},di=function(){var t=Date.now(),e=[];t-$i>2&&(ti("matchMediaInit"),te.forEach(function(i){var r=i.queries,n=i.conditions,s,a,o,u;for(a in r)s=kt.matchMedia(r[a]).matches,s&&(o=1),s!==n[a]&&(n[a]=s,u=1);u&&(i.revert(),o&&e.push(i))}),ti("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(r){return i.add(null,r)})}),$i=t,ti("matchMedia"))},Br=function(){function l(e,i){this.selector=i&&fi(i),this.data=[],this._r=[],this.isReverted=!1,this.id=as++,e&&this.add(e)}var t=l.prototype;return t.add=function(i,r,n){q(i)&&(n=r,r=i,i=q);var s=this,a=function(){var u=Y,f=s.selector,_;return u&&u!==s&&u.data.push(s),n&&(s.selector=fi(n)),Y=s,_=r.apply(s,arguments),q(_)&&s._r.push(_),Y=u,s.selector=f,s.isReverted=!1,_};return s.last=a,i===q?a(s,function(o){return s.add(null,o)}):i?s[i]=a:a},t.ignore=function(i){var r=Y;Y=null,i(this),Y=r},t.getTweens=function(){var i=[];return this.data.forEach(function(r){return r instanceof l?i.push.apply(i,r.getTweens()):r instanceof Q&&!(r.parent&&r.parent.data==="nested")&&i.push(r)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,r){var n=this;if(i?function(){for(var a=n.getTweens(),o=n.data.length,u;o--;)u=n.data[o],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return a.splice(a.indexOf(f),1)}));for(a.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,_){return _.g-f.g||-1/0}).forEach(function(f){return f.t.revert(i)}),o=n.data.length;o--;)u=n.data[o],u instanceof it?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Q)&&u.revert&&u.revert(i);n._r.forEach(function(f){return f(i,n)}),n.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=te.length;s--;)te[s].id===this.id&&te.splice(s,1)},t.revert=function(i){this.kill(i||{})},l}(),os=function(){function l(e){this.contexts=[],this.scope=e,Y&&Y.data.push(this)}var t=l.prototype;return t.add=function(i,r,n){Dt(i)||(i={matches:i});var s=new Br(0,n||this.scope),a=s.conditions={},o,u,f;Y&&!s.selector&&(s.selector=Y.selector),this.contexts.push(s),r=s.add("onMatch",r),s.queries=i;for(u in i)u==="all"?f=1:(o=kt.matchMedia(i[u]),o&&(te.indexOf(s)<0&&te.push(s),(a[u]=o.matches)&&(f=1),o.addListener?o.addListener(di):o.addEventListener("change",di)));return f&&r(s,function(_){return s.add(null,_)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(r){return r.kill(i,!0)})},l}(),Be={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i1){var r=t.map(function(f){return ut.quickSetter(f,e,i)}),n=r.length;return function(f){for(var _=n;_--;)r[_](f)}}t=t[0]||{};var s=ct[e],a=Zt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(f){var _=new s;oe._pt=0,_.init(t,i?f+i:f,oe,0,[t]),_.render(1,_),oe._pt&&Mi(1,oe)}:a.set(t,o);return s?u:function(f){return u(t,o,i?f+i:f,a,1)}},quickTo:function(t,e,i){var r,n=ut.to(t,vt((r={},r[e]="+=0.1",r.paused=!0,r.stagger=0,r),i||{})),s=function(o,u,f){return n.resetTo(e,o,u,f)};return s.tween=n,s},isTweening:function(t){return X.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Jt(t.ease,he.ease)),Ui(he,t||{})},config:function(t){return Ui(gt,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!ct[a]&&!yt[a]&&Ce(e+" effect requires "+a+" plugin.")}),Qe[e]=function(a,o,u){return i(Tt(a),vt(o||{},n),u)},s&&(it.prototype[e]=function(a,o,u){return this.add(Qe[e](a,Dt(o)?o:(u=o)&&{},this),u)})},registerEase:function(t,e){R[t]=Jt(e)},parseEase:function(t,e){return arguments.length?Jt(t,e):R},getById:function(t){return X.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new it(t),r,n;for(i.smoothChildTiming=st(t.smoothChildTiming),X.remove(i),i._dp=0,i._time=i._tTime=X._time,r=X._first;r;)n=r._next,(e||!(!r._dur&&r instanceof Q&&r.vars.onComplete===r._targets[0]))&&Ot(i,r,r._start-r._delay),r=n;return Ot(X,i,0),i},context:function(t,e){return t?new Br(t,e):Y},matchMedia:function(t){return new os(t)},matchMediaRefresh:function(){return te.forEach(function(t){var e=t.conditions,i,r;for(r in e)e[r]&&(e[r]=!1,i=1);i&&t.revert()})||di()},addEventListener:function(t,e){var i=Ie[t]||(Ie[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Ie[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:Ln,wrapYoyo:Nn,distribute:br,random:wr,snap:xr,normalize:Un,getUnit:tt,clamp:zn,splitColor:Sr,toArray:Tt,selector:fi,mapRange:Cr,pipe:In,unitize:Vn,interpolate:Bn,shuffle:vr},install:or,effects:Qe,ticker:pt,updateRoot:it.updateRoot,plugins:ct,globalTimeline:X,core:{PropTween:ot,globals:lr,Tween:Q,Timeline:it,Animation:Pe,getCache:Zt,_removeLinkedListItem:Xe,reverting:function(){return J},context:function(t){return t&&Y&&(Y.data.push(t),t._ctx=Y),Y},suppressOverwrites:function(t){return yi=t}}};at("to,from,fromTo,delayedCall,set,killTweensOf",function(l){return Be[l]=Q[l]});pt.add(it.updateRoot);oe=Be.to({},{duration:0});var ls=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},us=function(t,e){var i=t._targets,r,n,s;for(r in e)for(n=i.length;n--;)s=t._ptLookup[n][r],s&&(s=s.d)&&(s._pt&&(s=ls(s,r)),s&&s.modifier&&s.modifier(e[r],t,i[n],r))},ei=function(t,e){return{name:t,rawVars:1,init:function(r,n,s){s._onInit=function(a){var o,u;if(H(n)&&(o={},at(n,function(f){return o[f]=1}),n=o),e){o={};for(u in n)o[u]=e(n[u]);n=o}us(a,n)}}}},ut=Be.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,a,o;this.tween=i;for(s in e)o=t.getAttribute(s)||"",a=this.add(t,"setAttribute",(o||0)+"",e[s],r,n,0,0,s),a.op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)J?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},ei("roundProps",hi),ei("modifiers"),ei("snap",xr))||Be;Q.version=it.version=ut.version="3.12.7";ar=1;bi()&&pe();R.Power0;R.Power1;R.Power2;R.Power3;R.Power4;R.Linear;R.Quad;R.Cubic;R.Quart;R.Quint;R.Strong;R.Elastic;R.Back;R.SteppedEase;R.Bounce;R.Sine;R.Expo;R.Circ;/*! - * CSSPlugin 3.12.7 - * https://gsap.com - * - * Copyright 2008-2025, GreenSock. All rights reserved. - * Subject to the terms at https://gsap.com/standard-license or for - * Club GSAP members, the agreement issued with that membership. - * @author: Jack Doyle, jack@greensock.com -*/var Xi,Vt,ue,Ai,Qt,Wi,Ri,fs=function(){return typeof window<"u"},Et={},jt=180/Math.PI,fe=Math.PI/180,se=Math.atan2,qi=1e8,Ei=/([A-Z])/g,hs=/(left|right|width|margin|padding|x)/i,_s=/[\s,\(]\S/,St={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ci=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},ds=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},cs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},ps=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Yr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},$r=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},ms=function(t,e,i){return t.style[e]=i},gs=function(t,e,i){return t.style.setProperty(e,i)},ys=function(t,e,i){return t._gsap[e]=i},vs=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},bs=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},xs=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},W="transform",lt=W+"Origin",ws=function l(t,e){var i=this,r=this.target,n=r.style,s=r._gsap;if(t in Et&&n){if(this.tfm=this.tfm||{},t!=="transform")t=St[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=At(r,a)}):this.tfm[t]=s.x?s[t]:At(r,t),t===lt&&(this.tfm.zOrigin=s.zOrigin);else return St.transform.split(",").forEach(function(a){return l.call(i,a,e)});if(this.props.indexOf(W)>=0)return;s.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(lt,e,"")),t=W}(n||e)&&this.props.push(t,e,n[t])},Xr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ts=function(){var t=this.props,e=this.target,i=e.style,r=e._gsap,n,s;for(n=0;n=0?Gi[s]:"")+t},mi=function(){fs()&&window.document&&(Xi=window,Vt=Xi.document,ue=Vt.documentElement,Qt=pi("div")||{style:{}},pi("div"),W=me(W),lt=W+"Origin",Qt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qr=!!me("perspective"),Ri=ut.core.reverting,Ai=1)},Ki=function(t){var e=t.ownerSVGElement,i=pi("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=t.cloneNode(!0),n;r.style.display="block",i.appendChild(r),ue.appendChild(i);try{n=r.getBBox()}catch{}return i.removeChild(r),ue.removeChild(i),n},ji=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Gr=function(t){var e,i;try{e=t.getBBox()}catch{e=Ki(t),i=1}return e&&(e.width||e.height)||i||(e=Ki(t)),e&&!e.width&&!e.x&&!e.y?{x:+ji(t,["x","cx","x1"])||0,y:+ji(t,["y","cy","y1"])||0,width:0,height:0}:e},Kr=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Gr(t))},ee=function(t,e){if(e){var i=t.style,r;e in Et&&e!==lt&&(e=W),i.removeProperty?(r=e.substr(0,2),(r==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(r==="--"?e:e.replace(Ei,"-$1").toLowerCase())):i.removeAttribute(e)}},Ut=function(t,e,i,r,n,s){var a=new ot(t._pt,e,i,0,1,s?$r:Yr);return t._pt=a,a.b=r,a.e=n,t._props.push(i),a},Qi={deg:1,rad:1,turn:1},Cs={grid:1,flex:1},Yt=function l(t,e,i,r){var n=parseFloat(i)||0,s=(i+"").trim().substr((n+"").length)||"px",a=Qt.style,o=hs.test(e),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(o?"Width":"Height"),_=100,d=r==="px",c=r==="%",m,h,g,v;if(r===s||!n||Qi[r]||Qi[s])return n;if(s!=="px"&&!d&&(n=l(t,e,i,"px")),v=t.getCTM&&Kr(t),(c||s==="%")&&(Et[e]||~e.indexOf("adius")))return m=v?t.getBBox()[o?"width":"height"]:t[f],K(c?n/m*_:n/100*m);if(a[o?"width":"height"]=_+(d?s:r),h=r!=="rem"&&~e.indexOf("adius")||r==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Vt||!h.appendChild)&&(h=Vt.body),g=h._gsap,g&&c&&g.width&&o&&g.time===pt.time&&!g.uncache)return K(n/g.width*_);if(c&&(e==="height"||e==="width")){var b=t.style[e];t.style[e]=_+r,m=t[f],b?t.style[e]=b:ee(t,e)}else(c||s==="%")&&!Cs[Pt(h,"display")]&&(a.position=Pt(t,"position")),h===t&&(a.position="static"),h.appendChild(Qt),m=Qt[f],h.removeChild(Qt),a.position="absolute";return o&&c&&(g=Zt(h),g.time=pt.time,g.width=h[f]),K(d?m*n/_:m&&n?_/m*n:0)},At=function(t,e,i,r){var n;return Ai||mi(),e in St&&e!=="transform"&&(e=St[e],~e.indexOf(",")&&(e=e.split(",")[0])),Et[e]&&e!=="transform"?(n=Me(t,r),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:$e(Pt(t,lt))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||r||~(n+"").indexOf("calc("))&&(n=Ye[e]&&Ye[e](t,e,i)||Pt(t,e)||fr(t,e)||(e==="opacity"?1:0))),i&&!~(n+"").trim().indexOf(" ")?Yt(t,e,n,i)+i:n},ks=function(t,e,i,r){if(!i||i==="none"){var n=me(e,t,1),s=n&&Pt(t,n,1);s&&s!==i?(e=n,i=s):e==="borderColor"&&(i=Pt(t,"borderTopColor"))}var a=new ot(this._pt,t.style,e,0,1,Lr),o=0,u=0,f,_,d,c,m,h,g,v,b,T,k,p;if(a.b=i,a.e=r,i+="",r+="",r==="auto"&&(h=t.style[e],t.style[e]=r,r=Pt(t,e)||r,h?t.style[e]=h:ee(t,e)),f=[i,r],Dr(f),i=f[0],r=f[1],d=i.match(ae)||[],p=r.match(ae)||[],p.length){for(;_=ae.exec(r);)g=_[0],b=r.substring(o,_.index),m?m=(m+1)%5:(b.substr(-5)==="rgba("||b.substr(-5)==="hsla(")&&(m=1),g!==(h=d[u++]||"")&&(c=parseFloat(h)||0,k=h.substr((c+"").length),g.charAt(1)==="="&&(g=le(c,g)+k),v=parseFloat(g),T=g.substr((v+"").length),o=ae.lastIndex-T.length,T||(T=T||gt.units[e]||k,o===r.length&&(r+=T,a.e+=T)),k!==T&&(c=Yt(t,e,h,T)||0),a._pt={_next:a._pt,p:b||u===1?b:",",s:c,c:v-c,m:m&&m<4||e==="zIndex"?Math.round:0});a.c=o-1;)a=n[u],Et[a]&&(o=1,a=a==="transformOrigin"?lt:W),ee(i,a);o&&(ee(i,W),s&&(s.svg&&i.removeAttribute("transform"),r.scale=r.rotate=r.translate="none",Me(i,1),s.uncache=1,Xr(r)))}},Ye={clearProps:function(t,e,i,r,n){if(n.data!=="isFromStart"){var s=t._pt=new ot(t._pt,e,i,0,0,Ss);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},De=[1,0,0,1,0,0],jr={},Qr=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Hi=function(t){var e=Pt(t,W);return Qr(e)?De:e.substr(7).match(rr).map(K)},zi=function(t,e){var i=t._gsap||Zt(t),r=t.style,n=Hi(t),s,a,o,u;return i.svg&&t.getAttribute("transform")?(o=t.transform.baseVal.consolidate().matrix,n=[o.a,o.b,o.c,o.d,o.e,o.f],n.join(",")==="1,0,0,1,0,0"?De:n):(n===De&&!t.offsetParent&&t!==ue&&!i.svg&&(o=r.display,r.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,a=t.nextElementSibling,ue.appendChild(t)),n=Hi(t),o?r.display=o:ee(t,"display"),u&&(a?s.insertBefore(t,a):s?s.appendChild(t):ue.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},gi=function(t,e,i,r,n,s){var a=t._gsap,o=n||zi(t,!0),u=a.xOrigin||0,f=a.yOrigin||0,_=a.xOffset||0,d=a.yOffset||0,c=o[0],m=o[1],h=o[2],g=o[3],v=o[4],b=o[5],T=e.split(" "),k=parseFloat(T[0])||0,p=parseFloat(T[1])||0,x,w,C,y;i?o!==De&&(w=c*g-m*h)&&(C=k*(g/w)+p*(-h/w)+(h*b-g*v)/w,y=k*(-m/w)+p*(c/w)-(c*b-m*v)/w,k=C,p=y):(x=Gr(t),k=x.x+(~T[0].indexOf("%")?k/100*x.width:k),p=x.y+(~(T[1]||T[0]).indexOf("%")?p/100*x.height:p)),r||r!==!1&&a.smooth?(v=k-u,b=p-f,a.xOffset=_+(v*c+b*h)-v,a.yOffset=d+(v*m+b*g)-b):a.xOffset=a.yOffset=0,a.xOrigin=k,a.yOrigin=p,a.smooth=!!r,a.origin=e,a.originIsAbsolute=!!i,t.style[lt]="0px 0px",s&&(Ut(s,a,"xOrigin",u,k),Ut(s,a,"yOrigin",f,p),Ut(s,a,"xOffset",_,a.xOffset),Ut(s,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",k+" "+p)},Me=function(t,e){var i=t._gsap||new Er(t);if("x"in i&&!e&&!i.uncache)return i;var r=t.style,n=i.scaleX<0,s="px",a="deg",o=getComputedStyle(t),u=Pt(t,lt)||"0",f,_,d,c,m,h,g,v,b,T,k,p,x,w,C,y,M,I,z,A,B,j,V,N,ft,re,Xt,O,bt,S,F,ht;return f=_=d=h=g=v=b=T=k=0,c=m=1,i.svg=!!(t.getCTM&&Kr(t)),o.translate&&((o.translate!=="none"||o.scale!=="none"||o.rotate!=="none")&&(r[W]=(o.translate!=="none"?"translate3d("+(o.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(o.rotate!=="none"?"rotate("+o.rotate+") ":"")+(o.scale!=="none"?"scale("+o.scale.split(" ").join(",")+") ":"")+(o[W]!=="none"?o[W]:"")),r.scale=r.rotate=r.translate="none"),w=zi(t,i.svg),i.svg&&(i.uncache?(ft=t.getBBox(),u=i.xOrigin-ft.x+"px "+(i.yOrigin-ft.y)+"px",N=""):N=!e&&t.getAttribute("data-svg-origin"),gi(t,N||u,!!N||i.originIsAbsolute,i.smooth!==!1,w)),p=i.xOrigin||0,x=i.yOrigin||0,w!==De&&(I=w[0],z=w[1],A=w[2],B=w[3],f=j=w[4],_=V=w[5],w.length===6?(c=Math.sqrt(I*I+z*z),m=Math.sqrt(B*B+A*A),h=I||z?se(z,I)*jt:0,b=A||B?se(A,B)*jt+h:0,b&&(m*=Math.abs(Math.cos(b*fe))),i.svg&&(f-=p-(p*I+x*A),_-=x-(p*z+x*B))):(ht=w[6],S=w[7],Xt=w[8],O=w[9],bt=w[10],F=w[11],f=w[12],_=w[13],d=w[14],C=se(ht,bt),g=C*jt,C&&(y=Math.cos(-C),M=Math.sin(-C),N=j*y+Xt*M,ft=V*y+O*M,re=ht*y+bt*M,Xt=j*-M+Xt*y,O=V*-M+O*y,bt=ht*-M+bt*y,F=S*-M+F*y,j=N,V=ft,ht=re),C=se(-A,bt),v=C*jt,C&&(y=Math.cos(-C),M=Math.sin(-C),N=I*y-Xt*M,ft=z*y-O*M,re=A*y-bt*M,F=B*M+F*y,I=N,z=ft,A=re),C=se(z,I),h=C*jt,C&&(y=Math.cos(C),M=Math.sin(C),N=I*y+z*M,ft=j*y+V*M,z=z*y-I*M,V=V*y-j*M,I=N,j=ft),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,v=180-v),c=K(Math.sqrt(I*I+z*z+A*A)),m=K(Math.sqrt(V*V+ht*ht)),C=se(j,V),b=Math.abs(C)>2e-4?C*jt:0,k=F?1/(F<0?-F:F):0),i.svg&&(N=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!Qr(Pt(t,W)),N&&t.setAttribute("transform",N))),Math.abs(b)>90&&Math.abs(b)<270&&(n?(c*=-1,b+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,b+=b<=0?180:-180)),e=e||i.uncache,i.x=f-((i.xPercent=f&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+s,i.y=_-((i.yPercent=_&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-_)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+s,i.z=d+s,i.scaleX=K(c),i.scaleY=K(m),i.rotation=K(h)+a,i.rotationX=K(g)+a,i.rotationY=K(v)+a,i.skewX=b+a,i.skewY=T+a,i.transformPerspective=k+s,(i.zOrigin=parseFloat(u.split(" ")[2])||!e&&i.zOrigin||0)&&(r[lt]=$e(u)),i.xOffset=i.yOffset=0,i.force3D=gt.force3D,i.renderTransform=i.svg?Ds:qr?Zr:Ps,i.uncache=0,i},$e=function(t){return(t=t.split(" "))[0]+" "+t[1]},ii=function(t,e,i){var r=tt(e);return K(parseFloat(e)+parseFloat(Yt(t,"x",i+"px",r)))+r},Ps=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Zr(t,e)},Gt="0deg",ye="0px",Kt=") ",Zr=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.z,u=i.rotation,f=i.rotationY,_=i.rotationX,d=i.skewX,c=i.skewY,m=i.scaleX,h=i.scaleY,g=i.transformPerspective,v=i.force3D,b=i.target,T=i.zOrigin,k="",p=v==="auto"&&t&&t!==1||v===!0;if(T&&(_!==Gt||f!==Gt)){var x=parseFloat(f)*fe,w=Math.sin(x),C=Math.cos(x),y;x=parseFloat(_)*fe,y=Math.cos(x),s=ii(b,s,w*y*-T),a=ii(b,a,-Math.sin(x)*-T),o=ii(b,o,C*y*-T+T)}g!==ye&&(k+="perspective("+g+Kt),(r||n)&&(k+="translate("+r+"%, "+n+"%) "),(p||s!==ye||a!==ye||o!==ye)&&(k+=o!==ye||p?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Kt),u!==Gt&&(k+="rotate("+u+Kt),f!==Gt&&(k+="rotateY("+f+Kt),_!==Gt&&(k+="rotateX("+_+Kt),(d!==Gt||c!==Gt)&&(k+="skew("+d+", "+c+Kt),(m!==1||h!==1)&&(k+="scale("+m+", "+h+Kt),b.style[W]=k||"translate(0, 0)"},Ds=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.rotation,u=i.skewX,f=i.skewY,_=i.scaleX,d=i.scaleY,c=i.target,m=i.xOrigin,h=i.yOrigin,g=i.xOffset,v=i.yOffset,b=i.forceCSS,T=parseFloat(s),k=parseFloat(a),p,x,w,C,y;o=parseFloat(o),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,o+=f),o||u?(o*=fe,u*=fe,p=Math.cos(o)*_,x=Math.sin(o)*_,w=Math.sin(o-u)*-d,C=Math.cos(o-u)*d,u&&(f*=fe,y=Math.tan(u-f),y=Math.sqrt(1+y*y),w*=y,C*=y,f&&(y=Math.tan(f),y=Math.sqrt(1+y*y),p*=y,x*=y)),p=K(p),x=K(x),w=K(w),C=K(C)):(p=_,C=d,x=w=0),(T&&!~(s+"").indexOf("px")||k&&!~(a+"").indexOf("px"))&&(T=Yt(c,"x",s,"px"),k=Yt(c,"y",a,"px")),(m||h||g||v)&&(T=K(T+m-(m*p+h*w)+g),k=K(k+h-(m*x+h*C)+v)),(r||n)&&(y=c.getBBox(),T=K(T+r/100*y.width),k=K(k+n/100*y.height)),y="matrix("+p+","+x+","+w+","+C+","+T+","+k+")",c.setAttribute("transform",y),b&&(c.style[W]=y)},Ms=function(t,e,i,r,n){var s=360,a=H(n),o=parseFloat(n)*(a&&~n.indexOf("rad")?jt:1),u=o-r,f=r+u+"deg",_,d;return a&&(_=n.split("_")[1],_==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),_==="cw"&&u<0?u=(u+s*qi)%s-~~(u/s)*s:_==="ccw"&&u>0&&(u=(u-s*qi)%s-~~(u/s)*s)),t._pt=d=new ot(t._pt,e,i,r,u,ds),d.e=f,d.u="deg",t._props.push(i),d},Ji=function(t,e){for(var i in e)t[i]=e[i];return t},As=function(t,e,i){var r=Ji({},i._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=i.style,a,o,u,f,_,d,c,m;r.svg?(u=i.getAttribute("transform"),i.setAttribute("transform",""),s[W]=e,a=Me(i,1),ee(i,W),i.setAttribute("transform",u)):(u=getComputedStyle(i)[W],s[W]=e,a=Me(i,1),s[W]=u);for(o in Et)u=r[o],f=a[o],u!==f&&n.indexOf(o)<0&&(c=tt(u),m=tt(f),_=c!==m?Yt(i,o,u,m):parseFloat(u),d=parseFloat(f),t._pt=new ot(t._pt,a,o,_,d-_,ci),t._pt.u=m||0,t._props.push(o));Ji(a,r)};at("padding,margin,Width,Radius",function(l,t){var e="Top",i="Right",r="Bottom",n="Left",s=(t<3?[e,i,r,n]:[e+n,e+i,r+i,r+n]).map(function(a){return t<2?l+a:"border"+a+l});Ye[t>1?"border"+l:l]=function(a,o,u,f,_){var d,c;if(arguments.length<4)return d=s.map(function(m){return At(a,m,u)}),c=d.join(" "),c.split(d[0]).length===5?d[0]:c;d=(f+"").split(" "),c={},s.forEach(function(m,h){return c[m]=d[h]=d[h]||d[(h-1)/2|0]}),a.init(o,c,_)}});var Hr={name:"css",register:mi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s=this._props,a=t.style,o=i.vars.startAt,u,f,_,d,c,m,h,g,v,b,T,k,p,x,w,C;Ai||mi(),this.styles=this.styles||Wr(t),C=this.styles.props,this.tween=i;for(h in e)if(h!=="autoRound"&&(f=e[h],!(ct[h]&&zr(h,e,i,r,t,n)))){if(c=typeof f,m=Ye[h],c==="function"&&(f=f.call(i,r,t,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=Oe(f)),m)m(this,t,h,f,i)&&(w=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",Nt.lastIndex=0,Nt.test(u)||(g=tt(u),v=tt(f)),v?g!==v&&(u=Yt(t,h,u,v)+v):g&&(f+=g),this.add(a,"setProperty",u,f,r,n,0,0,h),s.push(h),C.push(h,0,a[h]);else if(c!=="undefined"){if(o&&h in o?(u=typeof o[h]=="function"?o[h].call(i,r,t,n):o[h],H(u)&&~u.indexOf("random(")&&(u=Oe(u)),tt(u+"")||u==="auto"||(u+=gt.units[h]||tt(At(t,h))||""),(u+"").charAt(1)==="="&&(u=At(t,h))):u=At(t,h),d=parseFloat(u),b=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),b&&(f=f.substr(2)),_=parseFloat(f),h in St&&(h==="autoAlpha"&&(d===1&&At(t,"visibility")==="hidden"&&_&&(d=0),C.push("visibility",0,a.visibility),Ut(this,a,"visibility",d?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=St[h],~h.indexOf(",")&&(h=h.split(",")[0]))),T=h in Et,T){if(this.styles.save(h),k||(p=t._gsap,p.renderTransform&&!e.parseTransform||Me(t,e.parseTransform),x=e.smoothOrigin!==!1&&p.smooth,k=this._pt=new ot(this._pt,a,W,0,1,p.renderTransform,p,0,-1),k.dep=1),h==="scale")this._pt=new ot(this._pt,p,"scaleY",p.scaleY,(b?le(p.scaleY,b+_):_)-p.scaleY||0,ci),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){C.push(lt,0,a[lt]),f=Os(f),p.svg?gi(t,f,0,x,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==p.zOrigin&&Ut(this,p,"zOrigin",p.zOrigin,v),Ut(this,a,h,$e(u),$e(f)));continue}else if(h==="svgOrigin"){gi(t,f,1,x,0,this);continue}else if(h in jr){Ms(this,p,h,d,b?le(d,b+f):f);continue}else if(h==="smoothOrigin"){Ut(this,p,"smooth",p.smooth,f);continue}else if(h==="force3D"){p[h]=f;continue}else if(h==="transform"){As(this,f,t);continue}}else h in a||(h=me(h)||h);if(T||(_||_===0)&&(d||d===0)&&!_s.test(f)&&h in a)g=(u+"").substr((d+"").length),_||(_=0),v=tt(f)||(h in gt.units?gt.units[h]:g),g!==v&&(d=Yt(t,h,u,v)),this._pt=new ot(this._pt,T?p:a,h,d,(b?le(d,b+_):_)-d,!T&&(v==="px"||h==="zIndex")&&e.autoRound!==!1?ps:ci),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=cs);else if(h in a)ks.call(this,t,h,u,b?b+f:f);else if(h in t)this.add(t,h,u||t[h],b?b+f:f,r,n);else if(h!=="parseTransform"){wi(h,f);continue}T||(h in a?C.push(h,0,a[h]):typeof t[h]=="function"?C.push(h,2,t[h]()):C.push(h,1,u||t[h])),s.push(h)}}w&&Nr(this)},render:function(t,e){if(e.tween._time||!Ri())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:At,aliases:St,getSetter:function(t,e,i){var r=St[e];return r&&r.indexOf(",")<0&&(e=r),e in Et&&e!==lt&&(t._gsap.x||At(t,"x"))?i&&Wi===i?e==="scale"?vs:ys:(Wi=i||{})&&(e==="scale"?bs:xs):t.style&&!vi(t.style[e])?ms:~e.indexOf("-")?gs:Di(t,e)},core:{_removeProperty:ee,_getMatrix:zi}};ut.utils.checkPrefix=me;ut.core.getStyleSaver=Wr;(function(l,t,e,i){var r=at(l+","+t+","+e,function(n){Et[n]=1});at(t,function(n){gt.units[n]="deg",jr[n]=1}),St[r[13]]=l+","+t,at(i,function(n){var s=n.split(":");St[s[1]]=r[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");at("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(l){gt.units[l]="px"});ut.registerPlugin(Hr);var Jr=ut.registerPlugin(Hr)||ut;Jr.core.Tween;const Rs={class:"__container_traffic_config_form"},Es=tn({__name:"formView",setup(l){en(p=>({"0bd66a46":G(Ft)}));const t=rn(nn.TAB_LAYOUT_STATE);sn();const e=an(),i=on(),r=Ge(e.params.isEdit==="1");_n().toClipboard;const n=Ke(new mn),s=n,a=Ke([{label:"应用",value:"application"},{label:"服务",value:"service"}]),o=[{label:"provider",value:"provider"},{label:"consumer",value:"consumer"}],u=[{label:"wildcard",value:"wildcard"},{label:"cird",value:"cird"},{label:"exact",value:"exact"}],f=[{label:"exact",value:"exact"},{label:"prefix",value:"prefix"},{label:"regex",value:"regex"},{label:"noempty",value:"noempty"},{label:"empty",value:"empty"},{label:"wildcard",value:"wildcard"}],_=Fi(()=>p=>p.descMatches()),d=Fi(()=>p=>p.descParameters()),c=()=>{const p=document.getElementById("layout-tab-body");s.config.push(new gn(null)),Ii(()=>{Jr.to(p,{duration:1,scrollTop:p.scrollHeight,ease:"power2.out"})})},m=(p,x,w)=>{const C=n.config[p];C[x]=C[x].filter(y=>C[w].find(M=>M===y.key)),C[w].forEach(y=>{C[x].find(M=>M.key===y)||C[x].push({key:y,relation:x==="parameters"?"=":"exact",value:""})})};function h(p){p&&n.fromApiOutput(p)}Ge(!0),ln(async()=>{await T()});const g=p=>{fn.confirm({title:"确认删除该配置么?",onOk(){s.config.splice(p,1)}})},v=Ge(!1);async function b(){v.value=!0;try{t.dynamicConfigForm.data=null,await T(),ge.success("config reset success")}finally{v.value=!1}}async function T(){var p,x,w;if((p=t.dynamicConfigForm)!=null&&p.data)n.fromData(t.dynamicConfigForm.data);else{if(((x=e.params)==null?void 0:x.pathId)!=="_tmp"){const C=await dn({name:(w=e.params)==null?void 0:w.pathId});h(C.data)}else n.basicInfo.ruleName="_tmp",r.value=!0,n.isAdd=!0;t.dynamicConfigForm=Ke({data:n})}}async function k(){var p;v.value=!0;try{let x=s.toApiInput(!0);if(n.isAdd===!0){cn({name:s.basicInfo.key+".configurators"},x).then(w=>{t.dynamicConfigForm.data=null,Ii(()=>{i.replace("/traffic/dynamicConfig"),ge.success("config add success")})}).catch(w=>{ge.error("添加失败: "+w.msg)});return}await pn({name:(p=e.params)==null?void 0:p.pathId},x),ge.success("config save success"),await new Promise(w=>setTimeout(w,2e3)),t.dynamicConfigForm.data=null,await T()}catch(x){ge.error(s.errorMsg.join(";")),console.error(x)}finally{v.value=!1}}return(p,x)=>{const w=rt("a-select"),C=rt("a-descriptions-item"),y=rt("a-input"),M=rt("a-switch"),I=rt("a-descriptions"),z=rt("a-card"),A=rt("a-button"),B=rt("a-tag"),j=rt("a-radio-group"),V=rt("a-input-group"),N=rt("a-form-item"),ft=rt("a-form"),re=rt("a-spin"),Xt=rt("a-flex");return E(),Ct("div",Rs,[D(z,{title:"基础信息",class:"dynamic-config-card"},{default:P(()=>[Re("div",null,[D(I,{column:2,layout:"vertical"},{default:P(()=>[D(C,{label:p.$t("flowControlDomain.scope"),labelStyle:{fontWeight:"bold"}},{default:P(()=>[D(w,{value:G(s).basicInfo.scope,"onUpdate:value":x[0]||(x[0]=O=>G(s).basicInfo.scope=O),style:{"min-width":"120px"},options:a,disabled:!r.value},null,8,["value","options","disabled"])]),_:1},8,["label"]),D(C,{label:p.$t("flowControlDomain.key"),labelStyle:{fontWeight:"bold"}},{default:P(()=>[D(y,{value:G(s).basicInfo.key,"onUpdate:value":x[1]||(x[1]=O=>G(s).basicInfo.key=O),style:{"min-width":"300px"},disabled:!r.value},null,8,["value","disabled"])]),_:1},8,["label"]),D(C,{label:p.$t("flowControlDomain.enabled"),labelStyle:{fontWeight:"bold"}},{default:P(()=>[D(M,{checked:G(s).basicInfo.enabled,"onUpdate:checked":x[2]||(x[2]=O=>G(s).basicInfo.enabled=O),"checked-children":"是","un-checked-children":"否",disabled:!r.value},null,8,["checked","disabled"])]),_:1},8,["label"])]),_:1})])]),_:1}),D(re,{spinning:v.value},{default:P(()=>[D(ft,{ref:"formRef"},{default:P(()=>[(E(!0),Ct(Wt,null,qt(G(s).config,(O,bt)=>(E(),$(z,{class:"dynamic-config-card"},{title:P(()=>{var S;return[r.value?zt("",!0):(E(),$(A,{key:0,danger:"",size:"small",onClick:F=>g(bt),style:{"margin-right":"10px"}},{default:P(()=>[nt("删除 ")]),_:2},1032,["onClick"])),nt(" 配置【"+dt(bt+1)+"】 ",1),Re("div",{class:"desc-config",style:un({color:G(Ft)})},[nt(" 对于"+dt(((S=n==null?void 0:n.basicInfo)==null?void 0:S.scope)==="application"?"应用":"服务")+"的"+dt(O.side==="provider"?"提供者":"消费者")+",将满足 ",1),(E(!0),Ct(Wt,null,qt(_.value(O),F=>(E(),$(B,{color:G(Ft)},{default:P(()=>[nt(dt(F),1)]),_:2},1032,["color"]))),256)),nt(" 的实例,配置 "),(E(!0),Ct(Wt,null,qt(d.value(O),F=>(E(),$(B,{color:G(Ft)},{default:P(()=>[nt(dt(F),1)]),_:2},1032,["color"]))),256))],4)]}),default:P(()=>[D(I,{column:2},{default:P(()=>[D(C,{label:p.$t("flowControlDomain.enabled"),labelStyle:{fontWeight:"bold"}},{default:P(()=>[D(M,{disabled:!r.value,checked:O.enabled,"onUpdate:checked":S=>O.enabled=S,"checked-children":"是","un-checked-children":"否"},null,8,["disabled","checked","onUpdate:checked"])]),_:2},1032,["label"]),D(C,{label:p.$t("flowControlDomain.side"),labelStyle:{fontWeight:"bold"}},{default:P(()=>[D(j,{disabled:!r.value,value:O.side,"onUpdate:value":S=>O.side=S,options:o},null,8,["disabled","value","onUpdate:value"])]),_:2},1032,["label"]),D(C,{label:p.$t("flowControlDomain.matches"),labelStyle:{fontWeight:"bold"},span:2},{default:P(()=>[Re("div",null,[O.hasMatch?(E(),$(z,{key:1,style:{display:"block","margin-top":"10px",width:"60vw"}},{default:P(()=>[D(N,{"label-col":{style:{width:"9vw"}},label:p.$t("dynamicConfigDomain.matchType")},{default:P(()=>[D(V,{compact:""},{default:P(()=>[D(w,{disabled:!r.value,ref_for:!0,ref:"select",value:O.matchesKeys,"onUpdate:value":S=>O.matchesKeys=S,style:{width:"30vw"},onChange:S=>m(bt,"matches","matchesKeys"),mode:"multiple",options:Object.keys(O.matchesValue).map(S=>({value:S}))},null,8,["disabled","value","onUpdate:value","onChange","options"]),r.value?(E(),$(A,{key:0,onClick:S=>O.hasMatch=!1,style:{"margin-left":"10px",padding:"5px"},danger:""},{default:P(()=>[D(G(ne),{style:{"font-size":"20px","margin-bottom":"-2px"},icon:"mynaui:minus-solid"})]),_:2},1032,["onClick"])):zt("",!0)]),_:2},1024)]),_:2},1032,["label"]),(E(!0),Ct(Wt,null,qt(Object.keys(O.matchesValue).filter(S=>O.matchesKeys.includes(S)),S=>(E(),Ct("div",{key:S},[O.matchesValue[S].type==="obj"?(E(),$(N,{key:0,"label-col":{style:{width:"9vw"}}},{label:P(()=>[D(B,{color:G(Ft)},{default:P(()=>[nt(dt(S),1)]),_:2},1032,["color"])]),default:P(()=>[D(V,{compact:""},{default:P(()=>[D(y,{disabled:"",value:S,style:{width:"10vw","margin-bottom":"5px"}},null,8,["value"]),D(w,{disabled:!r.value,placeholder:"relation",options:u,value:O.matchesValue[S].relation,"onUpdate:value":F=>O.matchesValue[S].relation=F,style:{width:"8vw"}},null,8,["disabled","value","onUpdate:value"]),D(y,{disabled:!r.value,placeholder:"value",value:O.matchesValue[S].value,"onUpdate:value":F=>O.matchesValue[S].value=F,style:{width:"15vw"}},null,8,["disabled","value","onUpdate:value"])]),_:2},1024)]),_:2},1024)):(E(),$(N,{key:1,"label-col":{style:{width:"9vw"}}},{label:P(()=>[D(B,{color:G(Ft)},{default:P(()=>[nt(dt(S),1)]),_:2},1032,["color"])]),default:P(()=>[(E(!0),Ct(Wt,null,qt(O.matchesValue[S].arr,(F,ht)=>(E(),$(V,{disabled:!r.value,style:{"margin-bottom":"5px"},compact:""},{default:P(()=>[O.matchesValue[S].type==="arr"?(E(),$(y,{key:0,placeholder:"key",disabled:"",value:"oneof",style:{width:"10vw"}})):(E(),$(y,{key:1,placeholder:"key",disabled:!r.value||O.matchesValue[S].type==="arr",value:F.key,"onUpdate:value":_t=>F.key=_t,style:{width:"10vw"}},null,8,["disabled","value","onUpdate:value"])),D(w,{placeholder:"relation",disabled:!r.value,value:F.relation,"onUpdate:value":_t=>F.relation=_t,options:f,style:{width:"8vw"}},null,8,["disabled","value","onUpdate:value"]),D(y,{placeholder:"value",disabled:!r.value,value:F.value,"onUpdate:value":_t=>F.value=_t,style:{width:"15vw"}},null,8,["disabled","value","onUpdate:value"]),r.value?(E(),$(A,{key:2,disabled:O.matchesValue[S].arr.length===1,onClick:_t=>O.delArrConfig(O.matchesValue,S,ht),style:{"margin-left":"10px",padding:"5px"},danger:""},{default:P(()=>[D(G(ne),{style:{"font-size":"20px","margin-bottom":"-2px"},icon:"mynaui:minus-solid"})]),_:2},1032,["disabled","onClick"])):zt("",!0),r.value?(E(),$(A,{key:3,onClick:_t=>O.addArrConfig(O.matchesValue,S,ht),style:{"margin-left":"10px",padding:"5px"},type:"primary"},{default:P(()=>[D(G(ne),{style:{"font-size":"20px","margin-bottom":"-2px"},icon:"mynaui:plus-solid"})]),_:2},1032,["onClick"])):zt("",!0)]),_:2},1032,["disabled"]))),256))]),_:2},1024))]))),128))]),_:2},1024)):(E(),$(A,{key:0,disabled:!r.value,onClick:S=>O.hasMatch=!0,type:"dashed"},{default:P(()=>[D(G(ne),{style:{"margin-bottom":"-2px","font-size":"16px"},icon:"si:add-fill"}),nt(" "+dt(p.$t("dynamicConfigDomain.addMatches")),1)]),_:2},1032,["disabled","onClick"]))])]),_:2},1032,["label"]),D(C,{label:p.$t("flowControlDomain.configurationItem"),labelStyle:{fontWeight:"bold"},span:2},{default:P(()=>[Re("div",null,[D(z,{style:{display:"block","margin-top":"10px",width:"60vw"}},{default:P(()=>[D(N,{"label-col":{style:{width:"9vw"}},label:p.$t("dynamicConfigDomain.configType")},{default:P(()=>[D(V,{compact:""},{default:P(()=>[D(w,{ref_for:!0,ref:"select",disabled:!r.value,value:O.parametersKeys,"onUpdate:value":S=>O.parametersKeys=S,style:{width:"30vw"},onChange:S=>m(bt,"matches","matchesKeys"),mode:"multiple",options:Object.keys(O.parametersValue).map(S=>({value:S}))},null,8,["disabled","value","onUpdate:value","onChange","options"])]),_:2},1024)]),_:2},1032,["label"]),(E(!0),Ct(Wt,null,qt(Object.keys(O.parametersValue).filter(S=>O.parametersKeys.includes(S)),S=>(E(),Ct("div",{key:S},[O.parametersValue[S].type==="obj"?(E(),$(N,{key:0,"label-col":{style:{width:"9vw"}}},{label:P(()=>[D(B,{color:G(Ft)},{default:P(()=>[nt(dt(S),1)]),_:2},1032,["color"])]),default:P(()=>[D(V,{compact:""},{default:P(()=>[D(y,{disabled:"",value:S,style:{width:"10vw","margin-bottom":"5px"}},null,8,["value"]),D(y,{disabled:"",placeholder:"relation",value:"=",style:{width:"8vw"}}),D(y,{disabled:!r.value,placeholder:"value",value:O.parametersValue[S].value,"onUpdate:value":F=>O.parametersValue[S].value=F,style:{width:"15vw"}},null,8,["disabled","value","onUpdate:value"])]),_:2},1024)]),_:2},1024)):(E(),$(N,{key:1,"label-col":{style:{width:"9vw"}}},{label:P(()=>[D(B,{color:G(Ft)},{default:P(()=>[nt(dt(S),1)]),_:2},1032,["color"])]),default:P(()=>[(E(!0),Ct(Wt,null,qt(O.parametersValue[S].arr,(F,ht)=>(E(),$(V,{style:{"margin-bottom":"5px"},compact:""},{default:P(()=>[O.parametersValue[S].type==="arr"?(E(),$(y,{key:0,placeholder:"key",disabled:"",value:S,style:{width:"10vw"}},null,8,["value"])):(E(),$(y,{key:1,placeholder:"key",disabled:!r.value,value:F.key,"onUpdate:value":_t=>F.key=_t,style:{width:"10vw"}},null,8,["disabled","value","onUpdate:value"])),D(y,{disabled:"",placeholder:"relation",value:"=",style:{width:"8vw"}}),D(y,{placeholder:"value",disabled:!r.value,value:F.value,"onUpdate:value":_t=>F.value=_t,style:{width:"15vw"}},null,8,["disabled","value","onUpdate:value"]),r.value?(E(),$(A,{key:2,disabled:O.parametersValue[S].arr.length===1,onClick:_t=>O.delArrConfig(O.parametersValue,S,ht),style:{"margin-left":"10px",padding:"5px"},danger:""},{default:P(()=>[D(G(ne),{style:{"font-size":"20px","margin-bottom":"-2px"},icon:"mynaui:minus-solid"})]),_:2},1032,["disabled","onClick"])):zt("",!0),r.value?(E(),$(A,{key:3,onClick:_t=>O.addArrConfig(O.parametersValue,S,ht,{relation:"="}),style:{"margin-left":"10px",padding:"5px"},type:"primary"},{default:P(()=>[D(G(ne),{style:{"font-size":"20px","margin-bottom":"-2px"},icon:"mynaui:plus-solid"})]),_:2},1032,["onClick"])):zt("",!0)]),_:2},1024))),256))]),_:2},1024))]))),128))]),_:2},1024)])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024))),256))]),_:1},512)]),_:1},8,["spinning"]),r.value?(E(),$(A,{key:0,style:{"margin-bottom":"20px"},onClick:c},{default:P(()=>[nt(dt(p.$t("dynamicConfigDomain.addConfig")),1)]),_:1})):zt("",!0),D(z,{class:"footer"},{default:P(()=>[r.value?(E(),$(Xt,{key:0},{default:P(()=>[D(A,{type:"primary",onClick:k},{default:P(()=>[nt(dt(p.$t("dynamicConfigDomain.save")),1)]),_:1}),D(A,{style:{"margin-left":"30px"},onClick:b},{default:P(()=>[nt(dt(p.$t("dynamicConfigDomain.reset")),1)]),_:1})]),_:1})):zt("",!0)]),_:1})])}}}),Ls=hn(Es,[["__scopeId","data-v-398f5048"]]);export{Ls as default}; diff --git a/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js b/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js deleted file mode 100644 index 6cf1e1c38..000000000 --- a/app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js +++ /dev/null @@ -1,12 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/freemarker2-GKVO7p5q.js -import{m as F}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- -======== -import{m as F}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/freemarker2--tagdD0m.js - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,_,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!v.call(t,o)&&o!==_&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,_)=>(g(t,n,"default"),_&&g(_,n,"default")),r={};E(r,F);var d=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],s=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},u={close:"\\]",id:"bracket",open:"\\["},D={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` -\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${s.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` -\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${s.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${s.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${d.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function i(t,n){const _=`_${t.id}_${n.id}`,e=c=>c.replace(/__id__/g,_),o=c=>{const f=c.source.replace(/__id__/g,_);return new RegExp(f,c.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=i(a,t),_=i(u,t),e=i(D,t);return{...n,..._,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,..._.tokenizer,...e.tokenizer}}}var w={conf:l(a),language:i(a,k)},T={conf:l(u),language:i(u,k)},h={conf:l(a),language:i(a,p)},S={conf:l(u),language:i(u,p)},P={conf:A(),language:m(k)},y={conf:A(),language:m(p)};export{h as TagAngleInterpolationBracket,w as TagAngleInterpolationDollar,y as TagAutoInterpolationBracket,P as TagAutoInterpolationDollar,S as TagBracketInterpolationBracket,T as TagBracketInterpolationDollar}; diff --git a/app/dubbo-ui/dist/admin/assets/fsharp-bDkC0eEG.js b/app/dubbo-ui/dist/admin/assets/fsharp-bDkC0eEG.js deleted file mode 100644 index ce57a8942..000000000 --- a/app/dubbo-ui/dist/admin/assets/fsharp-bDkC0eEG.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},n={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}};export{e as conf,n as language}; diff --git a/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js b/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js deleted file mode 100644 index d3db41455..000000000 --- a/app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/globalSearch-_m3MXXfo.js -import{r as t}from"./request-vlI2kaaR.js";const r=e=>t({url:"/auth/login",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}}),s=()=>t({url:"/auth/logout",method:"post"}),a=()=>t({url:"/meshes",method:"get"});export{s as a,r as l,a as m}; -======== -import{r as t}from"./request--dYXBGM5.js";const r=e=>t({url:"/auth/login",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}}),s=()=>t({url:"/auth/logout",method:"post"}),a=()=>t({url:"/meshes",method:"get"});export{s as a,r as l,a as m}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/globalSearch-tZ8VrkZD.js diff --git a/app/dubbo-ui/dist/admin/assets/go-B7tkULuP.js b/app/dubbo-ui/dist/admin/assets/go-B7tkULuP.js deleted file mode 100644 index 4f410b21b..000000000 --- a/app/dubbo-ui/dist/admin/assets/go-B7tkULuP.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}};export{e as conf,n as language}; diff --git a/app/dubbo-ui/dist/admin/assets/graphql-CtVT9S5J.js b/app/dubbo-ui/dist/admin/assets/graphql-CtVT9S5J.js deleted file mode 100644 index a6a4e77ad..000000000 --- a/app/dubbo-ui/dist/admin/assets/graphql-CtVT9S5J.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},n={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}};export{e as conf,n as language}; diff --git a/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js b/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js deleted file mode 100644 index affaed315..000000000 --- a/app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js +++ /dev/null @@ -1,10 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/handlebars-LJs_OsPl.js -import{m as i}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- -======== -import{m as i}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/handlebars-tQKSlSHV.js - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,o=(t,e,r,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,r)=>(o(t,e,"default"),r&&o(r,e,"default")),a={};h(a,i);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:a.languages.IndentAction.Indent}}]},k={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{y as conf,k as language}; diff --git a/app/dubbo-ui/dist/admin/assets/hcl-rcnRcHhv.js b/app/dubbo-ui/dist/admin/assets/hcl-rcnRcHhv.js deleted file mode 100644 index 8f23e8f53..000000000 --- a/app/dubbo-ui/dist/admin/assets/hcl-rcnRcHhv.js +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},t={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}};export{e as conf,t as language}; diff --git a/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js b/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js deleted file mode 100644 index 95ae99401..000000000 --- a/app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js +++ /dev/null @@ -1,10 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/html-5vla4NC_.js -import{m as p}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- -======== -import{m as p}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/html-p0SFTXEz.js - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var d=Object.defineProperty,m=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!c.call(t,r)&&r!==n&&d(t,r,{get:()=>e[r],enumerable:!(o=m(e,r))||o.enumerable});return t},u=(t,e,n)=>(a(t,e,"default"),n&&a(n,e,"default")),i={};u(i,p);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],y={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},k={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{y as conf,k as language}; diff --git a/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js b/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js deleted file mode 100644 index d352fb746..000000000 --- a/app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js +++ /dev/null @@ -1,13 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/htmlMode-PobRrH1O.js -import{m as ft}from"./js-yaml-A63HP8_m.js";import"./index-rt1yTeew.js";/*!----------------------------------------------------------------------------- -======== -import{m as ft}from"./js-yaml-F_PXjql-.js";import"./index-JtaswhjV.js";/*!----------------------------------------------------------------------------- ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/htmlMode-AAgMy7ra.js - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var gt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyNames,pt=Object.prototype.hasOwnProperty,T=(e,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of vt(n))!pt.call(e,t)&&t!==i&>(e,t,{get:()=>n[t],enumerable:!(r=ht(n,t))||r.enumerable});return e},mt=(e,n,i)=>(T(e,n,"default"),i&&T(i,n,"default")),c={};mt(c,ft);var _t=2*60*1e3,Ge=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>_t&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},Y;(function(e){function n(i){return typeof i=="string"}e.is=n})(Y||(Y={}));var S;(function(e){function n(i){return typeof i=="string"}e.is=n})(S||(S={}));var Z;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(Z||(Z={}));var M;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function n(i){return typeof i=="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}e.is=n})(M||(M={}));var b;(function(e){function n(r,t){return r===Number.MAX_VALUE&&(r=M.MAX_VALUE),t===Number.MAX_VALUE&&(t=M.MAX_VALUE),{line:r,character:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&a.uinteger(t.line)&&a.uinteger(t.character)}e.is=i})(b||(b={}));var h;(function(e){function n(r,t,o,s){if(a.uinteger(r)&&a.uinteger(t)&&a.uinteger(o)&&a.uinteger(s))return{start:b.create(r,t),end:b.create(o,s)};if(b.is(r)&&b.is(t))return{start:r,end:t};throw new Error(`Range#create called with invalid arguments[${r}, ${t}, ${o}, ${s}]`)}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}e.is=i})(h||(h={}));var C;(function(e){function n(r,t){return{uri:r,range:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(a.string(t.uri)||a.undefined(t.uri))}e.is=i})(C||(C={}));var K;(function(e){function n(r,t,o,s){return{targetUri:r,targetRange:t,targetSelectionRange:o,originSelectionRange:s}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.targetRange)&&a.string(t.targetUri)&&h.is(t.targetSelectionRange)&&(h.is(t.originSelectionRange)||a.undefined(t.originSelectionRange))}e.is=i})(K||(K={}));var O;(function(e){function n(r,t,o,s){return{red:r,green:t,blue:o,alpha:s}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.numberRange(t.red,0,1)&&a.numberRange(t.green,0,1)&&a.numberRange(t.blue,0,1)&&a.numberRange(t.alpha,0,1)}e.is=i})(O||(O={}));var ee;(function(e){function n(r,t){return{range:r,color:t}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&h.is(t.range)&&O.is(t.color)}e.is=i})(ee||(ee={}));var te;(function(e){function n(r,t,o){return{label:r,textEdit:t,additionalTextEdits:o}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.undefined(t.textEdit)||E.is(t))&&(a.undefined(t.additionalTextEdits)||a.typedArray(t.additionalTextEdits,E.is))}e.is=i})(te||(te={}));var A;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(A||(A={}));var re;(function(e){function n(r,t,o,s,u,f){const d={startLine:r,endLine:t};return a.defined(o)&&(d.startCharacter=o),a.defined(s)&&(d.endCharacter=s),a.defined(u)&&(d.kind=u),a.defined(f)&&(d.collapsedText=f),d}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.uinteger(t.startLine)&&a.uinteger(t.startLine)&&(a.undefined(t.startCharacter)||a.uinteger(t.startCharacter))&&(a.undefined(t.endCharacter)||a.uinteger(t.endCharacter))&&(a.undefined(t.kind)||a.string(t.kind))}e.is=i})(re||(re={}));var U;(function(e){function n(r,t){return{location:r,message:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&C.is(t.location)&&a.string(t.message)}e.is=i})(U||(U={}));var x;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(x||(x={}));var ne;(function(e){e.Unnecessary=1,e.Deprecated=2})(ne||(ne={}));var ie;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&a.string(r.href)}e.is=n})(ie||(ie={}));var F;(function(e){function n(r,t,o,s,u,f){let d={range:r,message:t};return a.defined(o)&&(d.severity=o),a.defined(s)&&(d.code=s),a.defined(u)&&(d.source=u),a.defined(f)&&(d.relatedInformation=f),d}e.create=n;function i(r){var t;let o=r;return a.defined(o)&&h.is(o.range)&&a.string(o.message)&&(a.number(o.severity)||a.undefined(o.severity))&&(a.integer(o.code)||a.string(o.code)||a.undefined(o.code))&&(a.undefined(o.codeDescription)||a.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(a.string(o.source)||a.undefined(o.source))&&(a.undefined(o.relatedInformation)||a.typedArray(o.relatedInformation,U.is))}e.is=i})(F||(F={}));var I;(function(e){function n(r,t,...o){let s={title:r,command:t};return a.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.title)&&a.string(t.command)}e.is=i})(I||(I={}));var E;(function(e){function n(o,s){return{range:o,newText:s}}e.replace=n;function i(o,s){return{range:{start:o,end:o},newText:s}}e.insert=i;function r(o){return{range:o,newText:""}}e.del=r;function t(o){const s=o;return a.objectLiteral(s)&&a.string(s.newText)&&h.is(s.range)}e.is=t})(E||(E={}));var V;(function(e){function n(r,t,o){const s={label:r};return t!==void 0&&(s.needsConfirmation=t),o!==void 0&&(s.description=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&a.string(t.label)&&(a.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(a.string(t.description)||t.description===void 0)}e.is=i})(V||(V={}));var L;(function(e){function n(i){const r=i;return a.string(r)}e.is=n})(L||(L={}));var oe;(function(e){function n(o,s,u){return{range:o,newText:s,annotationId:u}}e.replace=n;function i(o,s,u){return{range:{start:o,end:o},newText:s,annotationId:u}}e.insert=i;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function t(o){const s=o;return E.is(s)&&(V.is(s.annotationId)||L.is(s.annotationId))}e.is=t})(oe||(oe={}));var W;(function(e){function n(r,t){return{textDocument:r,edits:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var H;(function(e){function n(r,t,o){let s={kind:"create",uri:r};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="create"&&a.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(H||(H={}));var X;(function(e){function n(r,t,o,s){let u={kind:"rename",oldUri:r,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(r){let t=r;return t&&t.kind==="rename"&&a.string(t.oldUri)&&a.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||a.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||a.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})(X||(X={}));var $;(function(e){function n(r,t,o){let s={kind:"delete",uri:r};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(s.options=t),o!==void 0&&(s.annotationId=o),s}e.create=n;function i(r){let t=r;return t&&t.kind==="delete"&&a.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||a.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||a.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||L.is(t.annotationId))}e.is=i})($||($={}));var z;(function(e){function n(i){let r=i;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(t=>a.string(t.kind)?H.is(t)||X.is(t)||$.is(t):W.is(t)))}e.is=n})(z||(z={}));var ae;(function(e){function n(r){return{uri:r}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)}e.is=i})(ae||(ae={}));var se;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.integer(t.version)}e.is=i})(se||(se={}));var B;(function(e){function n(r,t){return{uri:r,version:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&(t.version===null||a.integer(t.version))}e.is=i})(B||(B={}));var ue;(function(e){function n(r,t,o,s){return{uri:r,languageId:t,version:o,text:s}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.string(t.uri)&&a.string(t.languageId)&&a.integer(t.version)&&a.string(t.text)}e.is=i})(ue||(ue={}));var q;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function n(i){const r=i;return r===e.PlainText||r===e.Markdown}e.is=n})(q||(q={}));var P;(function(e){function n(i){const r=i;return a.objectLiteral(i)&&q.is(r.kind)&&a.string(r.value)}e.is=n})(P||(P={}));var v;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(v||(v={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var ce;(function(e){e.Deprecated=1})(ce||(ce={}));var de;(function(e){function n(r,t,o){return{newText:r,insert:t,replace:o}}e.create=n;function i(r){const t=r;return t&&a.string(t.newText)&&h.is(t.insert)&&h.is(t.replace)}e.is=i})(de||(de={}));var le;(function(e){e.asIs=1,e.adjustIndentation=2})(le||(le={}));var fe;(function(e){function n(i){const r=i;return r&&(a.string(r.detail)||r.detail===void 0)&&(a.string(r.description)||r.description===void 0)}e.is=n})(fe||(fe={}));var ge;(function(e){function n(i){return{label:i}}e.create=n})(ge||(ge={}));var he;(function(e){function n(i,r){return{items:i||[],isIncomplete:!!r}}e.create=n})(he||(he={}));var y;(function(e){function n(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(r){const t=r;return a.string(t)||a.objectLiteral(t)&&a.string(t.language)&&a.string(t.value)}e.is=i})(y||(y={}));var ve;(function(e){function n(i){let r=i;return!!r&&a.objectLiteral(r)&&(P.is(r.contents)||y.is(r.contents)||a.typedArray(r.contents,y.is))&&(i.range===void 0||h.is(i.range))}e.is=n})(ve||(ve={}));var pe;(function(e){function n(i,r){return r?{label:i,documentation:r}:{label:i}}e.create=n})(pe||(pe={}));var me;(function(e){function n(i,r,...t){let o={label:i};return a.defined(r)&&(o.documentation=r),a.defined(t)?o.parameters=t:o.parameters=[],o}e.create=n})(me||(me={}));var R;(function(e){e.Text=1,e.Read=2,e.Write=3})(R||(R={}));var _e;(function(e){function n(i,r){let t={range:i};return a.number(r)&&(t.kind=r),t}e.create=n})(_e||(_e={}));var p;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(p||(p={}));var we;(function(e){e.Deprecated=1})(we||(we={}));var be;(function(e){function n(i,r,t,o,s){let u={name:i,kind:r,location:{uri:o,range:t}};return s&&(u.containerName=s),u}e.create=n})(be||(be={}));var ke;(function(e){function n(i,r,t,o){return o!==void 0?{name:i,kind:r,location:{uri:t,range:o}}:{name:i,kind:r,location:{uri:t}}}e.create=n})(ke||(ke={}));var xe;(function(e){function n(r,t,o,s,u,f){let d={name:r,detail:t,kind:o,range:s,selectionRange:u};return f!==void 0&&(d.children=f),d}e.create=n;function i(r){let t=r;return t&&a.string(t.name)&&a.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(t.detail===void 0||a.string(t.detail))&&(t.deprecated===void 0||a.boolean(t.deprecated))&&(t.children===void 0||Array.isArray(t.children))&&(t.tags===void 0||Array.isArray(t.tags))}e.is=i})(xe||(xe={}));var Ie;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ie||(Ie={}));var j;(function(e){e.Invoked=1,e.Automatic=2})(j||(j={}));var Ee;(function(e){function n(r,t,o){let s={diagnostics:r};return t!=null&&(s.only=t),o!=null&&(s.triggerKind=o),s}e.create=n;function i(r){let t=r;return a.defined(t)&&a.typedArray(t.diagnostics,F.is)&&(t.only===void 0||a.typedArray(t.only,a.string))&&(t.triggerKind===void 0||t.triggerKind===j.Invoked||t.triggerKind===j.Automatic)}e.is=i})(Ee||(Ee={}));var Le;(function(e){function n(r,t,o){let s={title:r},u=!0;return typeof t=="string"?(u=!1,s.kind=t):I.is(t)?s.command=t:s.edit=t,u&&o!==void 0&&(s.kind=o),s}e.create=n;function i(r){let t=r;return t&&a.string(t.title)&&(t.diagnostics===void 0||a.typedArray(t.diagnostics,F.is))&&(t.kind===void 0||a.string(t.kind))&&(t.edit!==void 0||t.command!==void 0)&&(t.command===void 0||I.is(t.command))&&(t.isPreferred===void 0||a.boolean(t.isPreferred))&&(t.edit===void 0||z.is(t.edit))}e.is=i})(Le||(Le={}));var Ae;(function(e){function n(r,t){let o={range:r};return a.defined(t)&&(o.data=t),o}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.command)||I.is(t.command))}e.is=i})(Ae||(Ae={}));var Re;(function(e){function n(r,t){return{tabSize:r,insertSpaces:t}}e.create=n;function i(r){let t=r;return a.defined(t)&&a.uinteger(t.tabSize)&&a.boolean(t.insertSpaces)}e.is=i})(Re||(Re={}));var Pe;(function(e){function n(r,t,o){return{range:r,target:t,data:o}}e.create=n;function i(r){let t=r;return a.defined(t)&&h.is(t.range)&&(a.undefined(t.target)||a.string(t.target))}e.is=i})(Pe||(Pe={}));var De;(function(e){function n(r,t){return{range:r,parent:t}}e.create=n;function i(r){let t=r;return a.objectLiteral(t)&&h.is(t.range)&&(t.parent===void 0||e.is(t.parent))}e.is=i})(De||(De={}));var Me;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Me||(Me={}));var Ce;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var Fe;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=n})(Fe||(Fe={}));var ye;(function(e){function n(r,t){return{range:r,text:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.string(t.text)}e.is=i})(ye||(ye={}));var je;(function(e){function n(r,t,o){return{range:r,variableName:t,caseSensitiveLookup:o}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&a.boolean(t.caseSensitiveLookup)&&(a.string(t.variableName)||t.variableName===void 0)}e.is=i})(je||(je={}));var Ne;(function(e){function n(r,t){return{range:r,expression:t}}e.create=n;function i(r){const t=r;return t!=null&&h.is(t.range)&&(a.string(t.expression)||t.expression===void 0)}e.is=i})(Ne||(Ne={}));var Se;(function(e){function n(r,t){return{frameId:r,stoppedLocation:t}}e.create=n;function i(r){const t=r;return a.defined(t)&&h.is(r.stoppedLocation)}e.is=i})(Se||(Se={}));var G;(function(e){e.Type=1,e.Parameter=2;function n(i){return i===1||i===2}e.is=n})(G||(G={}));var J;(function(e){function n(r){return{value:r}}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.location===void 0||C.is(t.location))&&(t.command===void 0||I.is(t.command))}e.is=i})(J||(J={}));var Oe;(function(e){function n(r,t,o){const s={position:r,label:t};return o!==void 0&&(s.kind=o),s}e.create=n;function i(r){const t=r;return a.objectLiteral(t)&&b.is(t.position)&&(a.string(t.label)||a.typedArray(t.label,J.is))&&(t.kind===void 0||G.is(t.kind))&&t.textEdits===void 0||a.typedArray(t.textEdits,E.is)&&(t.tooltip===void 0||a.string(t.tooltip)||P.is(t.tooltip))&&(t.paddingLeft===void 0||a.boolean(t.paddingLeft))&&(t.paddingRight===void 0||a.boolean(t.paddingRight))}e.is=i})(Oe||(Oe={}));var Ue;(function(e){function n(i){return{kind:"snippet",value:i}}e.createSnippet=n})(Ue||(Ue={}));var Ve;(function(e){function n(i,r,t,o){return{insertText:i,filterText:r,range:t,command:o}}e.create=n})(Ve||(Ve={}));var We;(function(e){function n(i){return{items:i}}e.create=n})(We||(We={}));var He;(function(e){e.Invoked=0,e.Automatic=1})(He||(He={}));var Xe;(function(e){function n(i,r){return{range:i,text:r}}e.create=n})(Xe||(Xe={}));var $e;(function(e){function n(i,r){return{triggerKind:i,selectedCompletionInfo:r}}e.create=n})($e||($e={}));var ze;(function(e){function n(i){const r=i;return a.objectLiteral(r)&&S.is(r.uri)&&a.string(r.name)}e.is=n})(ze||(ze={}));var Be;(function(e){function n(o,s,u,f){return new wt(o,s,u,f)}e.create=n;function i(o){let s=o;return!!(a.defined(s)&&a.string(s.uri)&&(a.undefined(s.languageId)||a.string(s.languageId))&&a.uinteger(s.lineCount)&&a.func(s.getText)&&a.func(s.positionAt)&&a.func(s.offsetAt))}e.is=i;function r(o,s){let u=o.getText(),f=t(s,(g,_)=>{let w=g.range.start.line-_.range.start.line;return w===0?g.range.start.character-_.range.start.character:w}),d=u.length;for(let g=f.length-1;g>=0;g--){let _=f[g],w=o.offsetAt(_.range.start),l=o.offsetAt(_.range.end);if(l<=d)u=u.substring(0,w)+_.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");d=w}return u}e.applyEdits=r;function t(o,s){if(o.length<=1)return o;const u=o.length/2|0,f=o.slice(0,u),d=o.slice(u);t(f,s),t(d,s);let g=0,_=0,w=0;for(;g0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return b.create(0,e);for(;ie?r=o:i=o+1}let t=i-1;return b.create(t,e-n[t])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1"u"}e.undefined=r;function t(l){return l===!0||l===!1}e.boolean=t;function o(l){return n.call(l)==="[object String]"}e.string=o;function s(l){return n.call(l)==="[object Number]"}e.number=s;function u(l,N,lt){return n.call(l)==="[object Number]"&&N<=l&&l<=lt}e.numberRange=u;function f(l){return n.call(l)==="[object Number]"&&-2147483648<=l&&l<=2147483647}e.integer=f;function d(l){return n.call(l)==="[object Number]"&&0<=l&&l<=2147483647}e.uinteger=d;function g(l){return n.call(l)==="[object Function]"}e.func=g;function _(l){return l!==null&&typeof l=="object"}e.objectLiteral=_;function w(l,N){return Array.isArray(l)&&l.every(N)}e.typedArray=w})(a||(a={}));var jt=class{constructor(e,n,i){this._languageId=e,this._worker=n,this._disposables=[],this._listener=Object.create(null);const r=o=>{let s=o.getLanguageId();if(s!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,s),500)}),this._doValidate(o.uri,s)},t=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let s=o.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{t(o.model),r(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(t(s),r(s))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const r=i.map(o=>kt(e,o));let t=c.editor.getModel(e);t&&t.getLanguageId()===n&&c.editor.setModelMarkers(t,n,r)}).then(void 0,i=>{console.error(i)})}};function bt(e){switch(e){case x.Error:return c.MarkerSeverity.Error;case x.Warning:return c.MarkerSeverity.Warning;case x.Information:return c.MarkerSeverity.Info;case x.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function kt(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:bt(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var xt=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),k(n))).then(o=>{if(!o)return;const s=e.getWordUntilPosition(n),u=new c.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),f=o.items.map(d=>{const g={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:Lt(d.command),range:u,kind:Et(d.kind)};return d.textEdit&&(It(d.textEdit)?g.range={insert:m(d.textEdit.insert),replace:m(d.textEdit.replace)}:g.range=m(d.textEdit.range),g.insertText=d.textEdit.newText),d.additionalTextEdits&&(g.additionalTextEdits=d.additionalTextEdits.map(D)),d.insertTextFormat===Q.Snippet&&(g.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),g});return{isIncomplete:o.isIncomplete,suggestions:f}})}};function k(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Je(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function m(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function It(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function Et(e){const n=c.languages.CompletionItemKind;switch(e){case v.Text:return n.Text;case v.Method:return n.Method;case v.Function:return n.Function;case v.Constructor:return n.Constructor;case v.Field:return n.Field;case v.Variable:return n.Variable;case v.Class:return n.Class;case v.Interface:return n.Interface;case v.Module:return n.Module;case v.Property:return n.Property;case v.Unit:return n.Unit;case v.Value:return n.Value;case v.Enum:return n.Enum;case v.Keyword:return n.Keyword;case v.Snippet:return n.Snippet;case v.Color:return n.Color;case v.File:return n.File;case v.Reference:return n.Reference}return n.Property}function D(e){if(e)return{range:m(e.range),text:e.newText}}function Lt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Te=class{constructor(e){this._worker=e}provideHover(e,n,i){let r=e.uri;return this._worker(r).then(t=>t.doHover(r.toString(),k(n))).then(t=>{if(t)return{range:m(t.range),contents:Rt(t.contents)}})}};function At(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function qe(e){return typeof e=="string"?{value:e}:At(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` -`+e.value+"\n```\n"}}function Rt(e){if(e)return Array.isArray(e)?e.map(qe):[qe(e)]}var Ye=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDocumentHighlights(r.toString(),k(n))).then(t=>{if(t)return t.map(o=>({range:m(o.range),kind:Pt(o.kind)}))})}};function Pt(e){switch(e){case R.Read:return c.languages.DocumentHighlightKind.Read;case R.Write:return c.languages.DocumentHighlightKind.Write;case R.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var Nt=class{constructor(e){this._worker=e}provideDefinition(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.findDefinition(r.toString(),k(n))).then(t=>{if(t)return[Ze(t)]})}};function Ze(e){return{uri:c.Uri.parse(e.uri),range:m(e.range)}}var St=class{constructor(e){this._worker=e}provideReferences(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),k(n))).then(o=>{if(o)return o.map(Ze)})}},Ke=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),k(n),i)).then(o=>Dt(o))}};function Dt(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){const r=c.Uri.parse(i);for(let t of e.changes[i])n.push({resource:r,versionId:void 0,textEdit:{range:m(t.range),text:t.newText}})}return{edits:n}}var et=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentSymbols(i.toString())).then(r=>{if(r)return r.map(t=>Mt(t)?tt(t):{name:t.name,detail:"",containerName:t.containerName,kind:rt(t.kind),range:m(t.location.range),selectionRange:m(t.location.range),tags:[]})})}};function Mt(e){return"children"in e}function tt(e){return{name:e.name,detail:e.detail??"",kind:rt(e.kind),range:m(e.range),selectionRange:m(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map(n=>tt(n))}}function rt(e){let n=c.languages.SymbolKind;switch(e){case p.File:return n.File;case p.Module:return n.Module;case p.Namespace:return n.Namespace;case p.Package:return n.Package;case p.Class:return n.Class;case p.Method:return n.Method;case p.Property:return n.Property;case p.Field:return n.Field;case p.Constructor:return n.Constructor;case p.Enum:return n.Enum;case p.Interface:return n.Interface;case p.Function:return n.Function;case p.Variable:return n.Variable;case p.Constant:return n.Constant;case p.String:return n.String;case p.Number:return n.Number;case p.Boolean:return n.Boolean;case p.Array:return n.Array}return n.Function}var nt=class{constructor(e){this._worker=e}provideLinks(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentLinks(i.toString())).then(r=>{if(r)return{links:r.map(t=>({range:m(t.range),url:t.target}))}})}},it=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.format(r.toString(),null,at(n)).then(o=>{if(!(!o||o.length===0))return o.map(D)}))}},ot=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,n,i,r){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),Je(n),at(i)).then(s=>{if(!(!s||s.length===0))return s.map(D)}))}};function at(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Ot=class{constructor(e){this._worker=e}provideDocumentColors(e,n){const i=e.uri;return this._worker(i).then(r=>r.findDocumentColors(i.toString())).then(r=>{if(r)return r.map(t=>({color:t.color,range:m(t.range)}))})}provideColorPresentations(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getColorPresentations(r.toString(),n.color,Je(n.range))).then(t=>{if(t)return t.map(o=>{let s={label:o.label};return o.textEdit&&(s.textEdit=D(o.textEdit)),o.additionalTextEdits&&(s.additionalTextEdits=o.additionalTextEdits.map(D)),s})})}},st=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getFoldingRanges(r.toString(),n)).then(t=>{if(t)return t.map(o=>{const s={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(s.kind=Ct(o.kind)),s})})}};function Ct(e){switch(e){case A.Comment:return c.languages.FoldingRangeKind.Comment;case A.Imports:return c.languages.FoldingRangeKind.Imports;case A.Region:return c.languages.FoldingRangeKind.Region}}var ut=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){const r=e.uri;return this._worker(r).then(t=>t.getSelectionRanges(r.toString(),n.map(k))).then(t=>{if(t)return t.map(o=>{const s=[];for(;o;)s.push({range:m(o.range)}),o=o.parent;return s})})}},ct=class extends xt{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function Ut(e){const n=new Ge(e),i=(...t)=>n.getLanguageServiceWorker(...t);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new ct(i)),c.languages.registerHoverProvider(r,new Te(i)),c.languages.registerDocumentHighlightProvider(r,new Ye(i)),c.languages.registerLinkProvider(r,new nt(i)),c.languages.registerFoldingRangeProvider(r,new st(i)),c.languages.registerDocumentSymbolProvider(r,new et(i)),c.languages.registerSelectionRangeProvider(r,new ut(i)),c.languages.registerRenameProvider(r,new Ke(i)),r==="html"&&(c.languages.registerDocumentFormattingEditProvider(r,new it(i)),c.languages.registerDocumentRangeFormattingEditProvider(r,new ot(i)))}function Vt(e){const n=[],i=[],r=new Ge(e);n.push(r);const t=(...s)=>r.getLanguageServiceWorker(...s);function o(){const{languageId:s,modeConfiguration:u}=e;dt(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(s,new ct(t))),u.hovers&&i.push(c.languages.registerHoverProvider(s,new Te(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(s,new Ye(t))),u.links&&i.push(c.languages.registerLinkProvider(s,new nt(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(s,new et(t))),u.rename&&i.push(c.languages.registerRenameProvider(s,new Ke(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(s,new st(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(s,new ut(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(s,new it(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(s,new ot(t)))}return o(),n.push(Qe(i)),Qe(n)}function Qe(e){return{dispose:()=>dt(e)}}function dt(e){for(;e.length;)e.pop().dispose()}export{xt as CompletionAdapter,Nt as DefinitionAdapter,jt as DiagnosticsAdapter,Ot as DocumentColorAdapter,it as DocumentFormattingEditProvider,Ye as DocumentHighlightAdapter,nt as DocumentLinkAdapter,ot as DocumentRangeFormattingEditProvider,et as DocumentSymbolAdapter,st as FoldingRangeAdapter,Te as HoverAdapter,St as ReferenceAdapter,Ke as RenameAdapter,ut as SelectionRangeAdapter,Ge as WorkerManager,k as fromPosition,Je as fromRange,Vt as setupMode,Ut as setupMode1,m as toRange,D as toTextEdit}; diff --git a/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js b/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js deleted file mode 100644 index f893e8c60..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-3XSU6ywD.js -import{d as b,u as d,c as u,f as o,b as s,w as r,n as _,j as t,e as c,o as i}from"./index-rt1yTeew.js";const h={class:"__container_tab_index"},p=t("br",null,null,-1),f=t("a",{href:"/admin/common/tab/tab1/pathId1"},"to tab1 by href",-1),m=t("br",null,null,-1),x=t("a",{href:"tab2/pathId1"},"to tab2 by href",-1),C=t("br",null,null,-1),k=t("br",null,null,-1),B=b({__name:"index",setup(v){const n=d();return(y,e)=>{const a=c("a-button");return i(),u("div",h,[o(" tab page "),p,f,m,x,C,s(a,{onClick:e[0]||(e[0]=l=>_(n).push("/common/tab/tab1/pathId1"))},{default:r(()=>[o("to tab1 by href")]),_:1}),k,s(a,{onClick:e[1]||(e[1]=l=>_(n).push("tab2/pathId1"))},{default:r(()=>[o("to tab2 by href")]),_:1})])}}});export{B as default}; -======== -import{d as b,u as d,c as u,f as o,b as s,w as r,n as _,j as t,e as c,o as i}from"./index-JtaswhjV.js";const h={class:"__container_tab_index"},p=t("br",null,null,-1),f=t("a",{href:"/admin/common/tab/tab1/pathId1"},"to tab1 by href",-1),m=t("br",null,null,-1),x=t("a",{href:"tab2/pathId1"},"to tab2 by href",-1),C=t("br",null,null,-1),k=t("br",null,null,-1),B=b({__name:"index",setup(v){const n=d();return(y,e)=>{const a=c("a-button");return i(),u("div",h,[o(" tab page "),p,f,m,x,C,s(a,{onClick:e[0]||(e[0]=l=>_(n).push("/common/tab/tab1/pathId1"))},{default:r(()=>[o("to tab1 by href")]),_:1}),k,s(a,{onClick:e[1]||(e[1]=l=>_(n).push("tab2/pathId1"))},{default:r(()=>[o("to tab2 by href")]),_:1})])}}});export{B as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-1IoRy9d1.js diff --git a/app/dubbo-ui/dist/admin/assets/index-75IgToXr.js b/app/dubbo-ui/dist/admin/assets/index-75IgToXr.js deleted file mode 100644 index c51e66062..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-75IgToXr.js +++ /dev/null @@ -1 +0,0 @@ -import{d as N,v as T,u as D,y as S,z as h,r as k,D as A,c as o,b as e,w as a,n as i,P as R,U as E,e as x,o as r,f as t,j as $,I as O,t as y,T as f,L as C,_ as V}from"./index-rt1yTeew.js";import{i as B,j as G}from"./traffic-nmA_BhEL.js";import{S as Y,a as j}from"./SearchUtil-FCBI7ppE.js";import"./request-vlI2kaaR.js";const L={class:"__container_traffic_config_index"},M=["onClick"],P=N({__name:"index",setup(F){T(n=>({"330d1fc1":i(R)}));const s=D(),v=S(h.TAB_LAYOUT_STATE);v.dynamicConfigForm=k({});let w=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",width:200,ellipsis:!0},{title:"ruleGranularity",key:"ruleGranularity",dataIndex:"ruleGranularity",render:(n,l)=>l.isService?"服务":"应用",width:100},{title:"createTime",key:"createTime",dataIndex:"createTime",width:200},{title:"enabled",key:"enabled",dataIndex:"enabled",render:(n,l)=>l.enabled?"是":"否",width:120},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const c=k(new Y([{label:"serviceGovernance",param:"keywords",placeholder:"typeRoutingRules",style:{width:"200px"}}],B,w)),I=()=>{s.push("/traffic/dynamicConfig/formview/_tmp/1")};A(async()=>{await c.onSearch()});const b=async n=>{await G({name:n.ruleName}),await c.onSearch()};return E(h.SEARCH_DOMAIN,c),(n,l)=>{const d=x("a-button"),g=x("a-popconfirm");return r(),o("div",L,[e(j,{"search-domain":c},{customOperation:a(()=>[e(d,{type:"primary",onClick:I},{default:a(()=>[t("新增动态配置")]),_:1})]),bodyCell:a(({text:p,column:m,record:u})=>[m.dataIndex==="ruleName"?(r(),o("span",{key:0,class:"config-link",onClick:_=>i(s).push(`/traffic/dynamicConfig/formview/${u.ruleName}/0`)},[$("b",null,[e(i(O),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),t(" "+y(p),1)])],8,M)):f("",!0),m.dataIndex==="ruleGranularity"?(r(),o(C,{key:1},[t(y(p?"服务":"应用"),1)],64)):f("",!0),m.dataIndex==="enabled"?(r(),o(C,{key:2},[t(y(p?"启用":"禁用"),1)],64)):f("",!0),m.dataIndex==="operation"?(r(),o(C,{key:3},[e(d,{type:"link",onClick:_=>i(s).push(`/traffic/dynamicConfig/formview/${u.ruleName}/0`)},{default:a(()=>[t("查看")]),_:2},1032,["onClick"]),e(d,{type:"link",onClick:_=>i(s).push(`/traffic/dynamicConfig/formview/${u.ruleName}/1`)},{default:a(()=>[t(" 修改 ")]),_:2},1032,["onClick"]),e(g,{title:"确认删除该动态配置?","ok-text":"Yes","cancel-text":"No",onConfirm:_=>b(u)},{default:a(()=>[e(d,{type:"link"},{default:a(()=>[t("删除")]),_:1})]),_:2},1032,["onConfirm"])],64)):f("",!0)]),_:1},8,["search-domain"])])}}}),K=V(P,[["__scopeId","data-v-b413a419"]]);export{K as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-D32qWHNQ.js b/app/dubbo-ui/dist/admin/assets/index-D32qWHNQ.js deleted file mode 100644 index d8e325e1f..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-D32qWHNQ.js +++ /dev/null @@ -1 +0,0 @@ -import{d as I,v as S,ab as D,y as g,z as x,r as N,D as A,c as d,b as o,w as i,n as e,P as E,U as V,e as h,o as u,Y as f,f as a,t as n,j as $,I as B,T as p,L as y,_ as O}from"./index-rt1yTeew.js";import{s as Y,d as G}from"./traffic-nmA_BhEL.js";import{S as P,a as U}from"./SearchUtil-FCBI7ppE.js";import{f as F}from"./DateUtil-OIUqM92a.js";import{H}from"./request-vlI2kaaR.js";const L={class:"routing-rule-container"},M=["onClick"],j=I({__name:"index",setup(z){S(r=>({"0a56e764":e(E)}));const{t}=D(),C=g(x.TAB_LAYOUT_STATE);let w=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",width:140},{title:"ruleGranularity",key:"ruleGranularity",dataIndex:"ruleGranularity",render:(r,m)=>m.isService?t("routingRuleDomain.service"):t("routingRuleDomain.application"),width:100},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120},{title:"enabled",key:"enabled",dataIndex:"enabled",width:120},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const c=N(new P([{label:"serviceGovernance",param:"keywords",placeholder:"typeRoutingRules",style:{width:"200px"}}],Y,w)),v=async r=>{(await G(r)).code===H.SUCCESS&&await c.onSearch()};A(()=>{C.conditionRule=null,C.addConditionRuleSate=null,c.onSearch(),c.tableStyle={scrollX:"100",scrollY:"367px"}});const T=r=>{v(r)};return V(x.SEARCH_DOMAIN,c),(r,m)=>{const _=h("a-button"),b=h("a-popconfirm");return u(),d("div",L,[o(U,{"search-domain":c},{customOperation:i(()=>[o(_,{type:"primary",onClick:m[0]||(m[0]=R=>e(f).push("/traffic/addRoutingRule/addByFormView"))},{default:i(()=>[a(n(e(t)("routingRuleDomain.createNewRoutingRule")),1)]),_:1})]),bodyCell:i(({text:R,column:l,record:s})=>[l.dataIndex==="ruleName"?(u(),d("span",{key:0,class:"rule-link",onClick:k=>e(f).push(`formview/${s[l.key]}`)},[$("b",null,[o(e(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),a(" "+n(R),1)])],8,M)):p("",!0),l.dataIndex==="ruleGranularity"?(u(),d(y,{key:1},[a(n(s.scope==="service"?e(t)("routingRuleDomain.service"):e(t)("routingRuleDomain.application")),1)],64)):p("",!0),l.dataIndex==="enabled"?(u(),d(y,{key:2},[a(n(R?e(t)("flowControlDomain.enabled"):e(t)("flowControlDomain.disabled")),1)],64)):p("",!0),l.dataIndex==="createTime"?(u(),d(y,{key:3},[a(n(e(F)(s.createTime)),1)],64)):p("",!0),l.dataIndex==="operation"?(u(),d(y,{key:4},[o(_,{type:"link",onClick:k=>e(f).push(`formview/${s.ruleName}`)},{default:i(()=>[a(n(e(t)("view")),1)]),_:2},1032,["onClick"]),o(_,{type:"link",onClick:k=>e(f).push(`/traffic/updateRoutingRule/updateByFormView/${s.ruleName}`)},{default:i(()=>[a(n(e(t)("edit")),1)]),_:2},1032,["onClick"]),o(b,{title:e(t)("routingRuleDomain.warnDeleteRouteRule"),"ok-text":"Yes","cancel-text":"No",onConfirm:k=>T(s.ruleName)},{default:i(()=>[o(_,{type:"link"},{default:i(()=>[a(n(e(t)("delete")),1)]),_:1})]),_:2},1032,["title","onConfirm"])],64)):p("",!0)]),_:1},8,["search-domain"])])}}}),W=O(j,[["__scopeId","data-v-3bebe42c"]]);export{W as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-HJqg-GcZ.js b/app/dubbo-ui/dist/admin/assets/index-HJqg-GcZ.js deleted file mode 100644 index a519412ba..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-HJqg-GcZ.js +++ /dev/null @@ -1 +0,0 @@ -import{d as R,v as S,y as N,z as T,D as C,a as g,r as A,c as l,b as a,w as t,n as o,P as $,U as D,e as h,o as i,Y as u,f as n,j as E,I as V,t as y,T as p,L as k,_ as B}from"./index-rt1yTeew.js";import{b as O,c as Y}from"./traffic-nmA_BhEL.js";import{S as P,a as U}from"./SearchUtil-FCBI7ppE.js";import{f as F}from"./DateUtil-OIUqM92a.js";import{H}from"./request-vlI2kaaR.js";const L={class:"tag-rule-container"},M=["onClick"],j=R({__name:"index",setup(z){S(e=>({"1bfcaf96":o($)}));const b=N(T.TAB_LAYOUT_STATE);C(()=>{b.tagRule=null}),g();let w=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",width:140},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120},{title:"enable",key:"enabled",dataIndex:"enabled",width:120},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const r=A(new P([{label:"serviceGovernance",param:"keywords",placeholder:"typeRoutingRules",style:{width:"200px"}}],O,w)),x=async e=>{(await Y(e)).code===H.SUCCESS&&await r.onSearch()};C(()=>{r.onSearch(),r.tableStyle={scrollX:"100",scrollY:"367px"}});const I=e=>{x(e)};return D(T.SEARCH_DOMAIN,r),(e,f)=>{const c=h("a-button"),v=h("a-popconfirm");return i(),l("div",L,[a(U,{"search-domain":r},{customOperation:t(()=>[a(c,{type:"primary",onClick:f[0]||(f[0]=d=>o(u).push("/traffic/addTagRule/addByFormView"))},{default:t(()=>[n(" 新增标签路由规则 ")]),_:1})]),bodyCell:t(({text:d,column:s,record:m})=>[s.dataIndex==="ruleName"?(i(),l("span",{key:0,class:"rule-link",onClick:_=>o(u).push(`/traffic/tagRule/formview/${m[s.key]}`)},[E("b",null,[a(o(V),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),n(" "+y(d),1)])],8,M)):p("",!0),s.dataIndex==="createTime"?(i(),l(k,{key:1},[n(y(o(F)(d)),1)],64)):p("",!0),s.dataIndex==="enabled"?(i(),l(k,{key:2},[n(y(d?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)],64)):p("",!0),s.dataIndex==="operation"?(i(),l(k,{key:3},[a(c,{type:"link",onClick:_=>o(u).push(`formview/${m.ruleName}`)},{default:t(()=>[n(" 查看 ")]),_:2},1032,["onClick"]),a(c,{onClick:_=>o(u).push(`/traffic/updateTagRule/updateByFormView/${m.ruleName}`),type:"link"},{default:t(()=>[n(" 修改 ")]),_:2},1032,["onClick"]),a(v,{title:"确认删除该标签路由规则?","ok-text":"Yes","cancel-text":"No",onConfirm:_=>I(m.ruleName)},{default:t(()=>[a(c,{type:"link"},{default:t(()=>[n(" 删除 ")]),_:1})]),_:2},1032,["onConfirm"])],64)):p("",!0)]),_:1},8,["search-domain"])])}}}),Q=B(j,[["__scopeId","data-v-87117f6c"]]);export{Q as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-K34N7Hp4.css b/app/dubbo-ui/dist/admin/assets/index-K34N7Hp4.css deleted file mode 100644 index 3d6c211f7..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-K34N7Hp4.css +++ /dev/null @@ -1 +0,0 @@ -.routing-rule-container[data-v-3bebe42c],.routing-rule-container .search-table-container[data-v-3bebe42c]{height:100%}.routing-rule-container .search-table-container .rule-link[data-v-3bebe42c]{padding:4px 10px 4px 4px;border-radius:4px;color:var(--0a56e764)}.routing-rule-container .search-table-container .rule-link[data-v-3bebe42c]:hover{cursor:pointer;background:#85838321} diff --git a/app/dubbo-ui/dist/admin/assets/index-VMQ14q1L.css b/app/dubbo-ui/dist/admin/assets/index-VMQ14q1L.css deleted file mode 100644 index f7c589647..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-VMQ14q1L.css +++ /dev/null @@ -1 +0,0 @@ -.tag-rule-container[data-v-87117f6c]{height:100%}.tag-rule-container .search-table-container[data-v-87117f6c]{min-height:60vh}.tag-rule-container .search-table-container .rule-link[data-v-87117f6c]{padding:4px 10px 4px 4px;border-radius:4px;color:var(--1bfcaf96)}.tag-rule-container .search-table-container .rule-link[data-v-87117f6c]:hover{cursor:pointer;background:#85838321} diff --git a/app/dubbo-ui/dist/admin/assets/index-bUsyFe6h.css b/app/dubbo-ui/dist/admin/assets/index-bUsyFe6h.css deleted file mode 100644 index 4761d8cd0..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-bUsyFe6h.css +++ /dev/null @@ -1 +0,0 @@ -.__container_traffic_config_index[data-v-b413a419]{min-height:60vh}.__container_traffic_config_index .config-link[data-v-b413a419]{padding:4px 10px 4px 4px;border-radius:4px;color:var(--330d1fc1)}.__container_traffic_config_index .config-link[data-v-b413a419]:hover{cursor:pointer;background:#85838321} diff --git a/app/dubbo-ui/dist/admin/assets/index-bVXendlO.css b/app/dubbo-ui/dist/admin/assets/index-bVXendlO.css deleted file mode 100644 index ee4ab4071..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-bVXendlO.css +++ /dev/null @@ -1 +0,0 @@ -.__container_home_index[data-v-a6d34c3f]{max-height:calc(100vh - 60px);overflow:auto}.__container_home_index .statistic[data-v-a6d34c3f]{width:16vw}.__container_home_index .statistic-card[data-v-a6d34c3f]{border:1px solid var(--a8c0aff4)}.__container_home_index .statistic-icon[data-v-a6d34c3f]{color:var(--db6f68ac);margin-bottom:-3px}.__container_home_index .statistic-icon-big[data-v-a6d34c3f]{width:40px;height:40px;background:var(--db6f68ac);line-height:44px;vertical-align:middle;text-align:center;border-radius:5px;font-size:56px;color:#fff}.__container_home_index .card[data-v-a6d34c3f]{margin-top:10px} diff --git a/app/dubbo-ui/dist/admin/assets/index-c7off0hr.css b/app/dubbo-ui/dist/admin/assets/index-c7off0hr.css deleted file mode 100644 index 01c3f39b6..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-c7off0hr.css +++ /dev/null @@ -1 +0,0 @@ -.__container_router_tab_index[data-v-a080a530] .tab-spin{margin-top:20vh}.__container_router_tab_index[data-v-a080a530] .ant-tabs-nav{margin:0}.__container_router_tab_index .header[data-v-a080a530]{background:#fafafa;padding:20px 20px 0;border-radius:10px;margin-bottom:20px}.__container_router_tab_index .back[data-v-a080a530]{font-size:24px;margin-bottom:-2px;color:var(--7e5c7278)}.__container_AppTabHeaderSlot .header-desc[data-v-d9202124],.__container_ServiceTabHeaderSlot .header-desc[data-v-3de51f62],.__container_AppTabHeaderSlot .header-desc[data-v-0332e378],.__container_AppTabHeaderSlot .header-desc[data-v-c4649548],.__container_AppTabHeaderSlot .header-desc[data-v-8b847dc2],.__container_AppTabHeaderSlot .header-desc[data-v-0fc7d06d],.__container_AppTabHeaderSlot .header-desc[data-v-0f780945],.__container_AppTabHeaderSlot .header-desc[data-v-49f86476],.__container_AppTabHeaderSlot .header-desc[data-v-91777569],.__container_AppTabHeaderSlot .header-desc[data-v-e3a937b1],.__container_AppTabHeaderSlot .header-desc[data-v-4d4ee463]{line-height:30px;vertical-align:center}.__global_float_button_question{right:24px}#nprogress .bar{background:#000!important}._detail{box-shadow:8px 8px 4px #a2a2a230}.description-item-card{width:80%;margin-left:20px;border:1px dashed rgba(162,162,162,.19)}.description-item-card :deep(.ant-card-body){padding:10px}.description-item-content.no-card{padding-left:20px}.description-item-content.with-card:hover{color:var(--36551263)}.__container_tabDemo3 .option{padding-left:16px}.__container_tabDemo3 .option .btn{margin-right:10px}.__container_tabDemo3 :deep(.spin){margin-top:30px}.app-link{display:inline-block;max-width:100%;padding:4px 10px 4px 4px;border-radius:4px;color:var(--36551263);cursor:pointer;word-wrap:break-word;word-break:break-all}.app-link:hover{background:#85838321}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}.small-alpha-slider{height:10px!important}.small-alpha-slider .small-bar{height:10px!important;width:10px!important}.small-alpha-slider .small-bar div{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.bee-alpha-slider{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.bee-alpha-slider.is-vertical{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.bee-alpha-slider.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-alpha-slider__bar{position:relative;width:100%;height:100%;border-radius:15px}.bee-alpha-slider__bar-pointer{position:absolute;width:14px;height:14px}.bee-alpha-slider__bar-handle{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.bee-alpha-slider__bar-handle.vertical{transform:translateY(-7px);margin-top:0}.bee-compact{margin-bottom:15px;width:auto;box-shadow:3px 0 5px #00000014;display:inline-block}.bee-compact__row{position:relative;width:100%;margin:0}.bee-compact__row>*{display:inline-block;vertical-align:middle}.bee-compact__color_cube{width:100%;height:100%}.bee-compact__color_cube.transparent:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#fff}.bee-compact__color_cube.transparent:after{content:"";position:absolute;top:100%;left:0;transform:rotate(-45deg);transform-origin:0 0;width:35px;height:1px;background:red}.bee-compact__color_cube.advance{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAYAAAC9pNwMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABqVJREFUeNrEl11yHDUQx1ua2Zlde2M7jqESqnjg45kjcBwOwQG4BY+8cwWK17xBUUARICQhTmI7tte7Ozs7o+bXLTleuACpKNJqJP3789+doKoSPxfVGxFZioS1iK5Yd0nCJko9iLTVVvZSlCOp5FBF7vP5RFTelyDHvmYvMPPtiP19fu+HIHPetrllX2TLMJAOgEehti3ZY/Axap51ZB5ZDEnGMUoCNCmDbRv+2Q4CDJ5Mymj4OmE0CNj6b5WJlkel3xkiGXjOc0imDH/JDid1AXQEfKgccHg3lN+uhh+v2WkkOvCUnT3GjP2WOfrJzjUNPq/ugPUej1TiwME3+DfVUhWkEQF6LZraJxsp6xHLIzW/DNyAW75PGJVrOxbQFSeWzOsdjQ/tZHTxtSgdzAimMfOAdbas7crUvIWAqZg5+gg8FBzYTOygbo1tAb1xTYMs/q1xAFgnvBx5JrKO2X9pzJrJhr+b5BaY8vjG3O+w7HFnypkZ+zP3K8AWL7FHiRsJappe4knA9fo/pj7WrIrdshBs8cukcu0ljhK2lZt1Q8B1msMj5WCQKoibd8q8p1J8i6aWJnrJCcDljDX2Cm8Jn2WJC9PtIHpYeowza125Dc3c6CQ1MbEdooxoPQw54Ak9jigaKcAMk9ddgUi68ZxMmNbNG8hTXXjOZrPf+vg4C+RpRRJqO0ps8FxtzhoJLiSIHCWtLi9u5LiZyqKv0UvlHmaccukoVjJLFu2YUy946FRidS7beCXN9i3gKzd1Yo53ps7ppTnqEYD0mYNldpuxnvIo2nZb/L+ay9tulA/sJpE/Tfchj1H2kW2KpsFYSK4YgI1vZDJe57XmIAu642N5kCxUJfQ8bA48IKpWGNKi/T7rPWRMBMkp5lhz5mUlV0O+fGAGC5XMkTzoG349I/D+Qis0jpeZBt0CXaZGnwtwdcS7A/4ycOIi3bNI0pzfxoVHQYYDIu+A9djJ5bKX+c2BVKnHS5Xcw8QTecWlXxi/khgvYMFzHlp4/g74WREshg3zpuS9mfowShxyrnv6wFS2Dl12QUDwaO54xIWTKZem8up7M0ojn5BzdftEdPMzII9ljE8kVde8Z5y89PSJYcACAJhWTigFOO1rpqRbWs0pKjp4Nkl6OMiGQiFnKsOnLQNqJNe33yV5iFml/4YLfzB+wwpvuNoT+eq0F+JWYtp50MlXLBvUAkLlXXbdloHkUsREDsc6y9LDvs2pTNJD6eM5+x/KAslqWK/pOo/WEIvw3PC3q8rZz3IzWBqqp2CpTvjAACIVyFhLMQmlwXPU9gYrC+lCZs0VtPkc0Jfc+Va+XK/lK3Pr10XhF8ToAjf1VKktAH0hd3srqesSMmCJaiNwJB/IzNviF9Uor8NnndSkyRBfExbPpdHfKRg/yqH8JCPxdvbZVE6+6GTzmCD9Af45RfhzLGZZtEaIVQVdDpLwVByAHeIu8DXWGTySUil8wSNw6fMoliZnfHsqfXiC2M+gjJXX7wuEOvm4gWUBa9h4xrAAtwy6hHyWo1QQGc9gDkD7sAt8VjqETSnUHaArd0Gupc8ZBv4n4ymUfiEPxEu4/A3eyayX+x+ZZjjoIEl6D+2zrJJgyOoKf68RCKJXOpt4B3xZQNclwVeSbXVd2hXzKXlpqsC3c0ttyR3La6rTW2yyP1dpSbdowUtBji1+aAioxTZXD+ORZcrs+A5YF9kWnnfWeJUSZgnswKeZ7FNHkaeXgjTmowVhkhuQ1pQxCE1aik2A16OVVwtvayxmW6fdeDNKKcs79Zhy5eaFwIOXsxu3grolVsUVS0y0pAKN3tpMStdlheJajZ1V5rxWHxoJjR6crr51frlg59K73AFWf7h3gs8BlWtpsHpqwrioa6nJj5lphgim1C3XdPGuuZm2hYIB90QCrKqxDnPkm81hN6pvAyqElRdvN3exjdXeYGQS8oXGmjgoICQjhUh6jdSYmvQdpakSFArIfg6bqiqZW6t3N6HaNbUX7M4Lt4NK8bX3SblJM9Mas+65xuodpVFRj58HfLyAdPZjftCittnLXaHWKQdczNE4trkfK8GFiT3RVqU523gaBbeC04/3zW3pp0yJWFqfofjZejBfw3bGE3WNO8jrmLtDt5ahVyHt+DiUDv/WtFpAQ+4MrDFvC3Bb+uXiI2f1TXGURfesNPc11mjacki1dK/JKTnsUmYGLnnM/2MycWRt7dCtedrSyhqPe39tPBecjV3rrTWDweqzSl2hsfVwM3lX+UL+f0CuTv/Hn38EGAAvCnNy1JKVIQAAAABJRU5ErkJggg==)}.bee-compact__color_cube .alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-compact__color-cube--wrap{position:relative;width:25px;height:25px;cursor:pointer;overflow:hidden}.bee-compact__color-cube--wrap:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.bee-colorPicker__record{display:flex;align-items:center;margin-top:20px}.bee-colorPicker__record .text{width:48px;margin-right:10px;text-align:right;font-size:12px;color:#666}.bee-colorPicker__record .color-list{width:auto;display:flex;position:relative;margin:0}.bee-colorPicker__record .color-list .color-item{position:relative;width:25px;height:25px;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:1px;box-shadow:3px 0 5px #00000014}.bee-colorPicker__record .color-list .color-item__round{border-radius:50%}.bee-colorPicker__record .color-list .color-item.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-colorPicker__record .color-list .color-item:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.bee-colorPicker__record .color-list .color-item__display{width:100%;height:100%}.small-hue-slider{height:10px!important}.small-hue-slider .small-bar{height:10px!important;width:10px!important}.small-hue-slider .small-bar div{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.bee-hue-colorPicker{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.bee-hue-colorPicker.is-vertical{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.bee-hue-colorPicker.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-hue-colorPicker__inner{position:relative;width:100%;height:100%;border-radius:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMkAAAAdCAYAAAAAaUg8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNrs09EKgjAUgOGzEFfv/7CVBceiLiJiLnf7fSAbDoUj/iWnyKgRcXxf9Wtt7Vvntf8854jLY3uN19qzf67nH/e2nmmdZ8xjg2x+sI533qf9g4wM/3GvLPumOHVMWf/4SiWWsUG6/6bG+/NWDgE0iQREAiIBkYBIQCQgEhAJiAQQCYgERAIiAZGASEAkIBJAJCASEAmIBEQCIgGRgEgAkYBIYNAqwAD5oWo3bpsiKwAAAABJRU5ErkJggg==);background-size:100%}.bee-hue-colorPicker__inner-pointer{position:absolute;width:14px;height:14px}.bee-hue-colorPicker__inner-handle{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.bee-hue-colorPicker__inner-handle.vertical{transform:translate(-1px,-7px);margin-top:0}.small-light-slider{height:10px!important}.small-light-slider .small-bar{height:10px!important;width:10px!important}.small-light-slider .small-bar div{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.bee-light-colorPicker{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.bee-light-colorPicker.is-vertical{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.bee-light-colorPicker.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-light-colorPicker__inner{position:relative;width:100%;height:100%;border-radius:15px}.bee-light-colorPicker__inner-pointer{position:absolute;width:14px;height:14px}.bee-light-colorPicker__inner-handle{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.bee-light-colorPicker__inner-handle.vertical{transform:translateY(-7px);margin-top:0}.bee-saturation{position:relative;margin-bottom:15px;width:100%;height:125px}.bee-saturation__chrome{border-top-left-radius:5px;border-top-right-radius:5px;border-color:transparent}.bee-saturation__hidden{overflow:hidden}.bee-saturation__white,.bee-saturation__black{position:absolute;top:0;left:0;right:0;bottom:0}.bee-saturation__black{background:linear-gradient(0deg,#000,transparent)}.bee-saturation__white{background:linear-gradient(90deg,#fff,#fff0)}.bee-saturation__cursor{position:absolute}.bee-saturation__cursor div{transform:translate(-5px,-5px);box-shadow:0 1px 4px #0000005e;width:10px;height:10px;border:1px solid white;border-radius:50%;cursor:pointer}.inputs-controls{display:flex;font-size:16px;margin-bottom:5px}.inputs-controls .formatBtn{position:relative;display:inline-flex;justify-content:center;align-items:center;padding:1px;border:0;text-align:center;cursor:pointer;background-color:transparent;font-weight:700;outline:none;margin-right:5px}.inputs-controls .formatBtn:hover{color:#1a3aff}.inputs-controls .format-group{display:flex;flex-grow:1}.inputs-controls .format-group input{padding:5px;margin:0 3px;min-width:0;text-align:center;border-width:0 0 1px 0;-webkit-appearance:none;appearance:none;-moz-appearance:textfield;outline:none;flex:1}.inputs-controls .format-group input::-webkit-outer-spin-button,.inputs-controls .format-group input::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0}.bee-fk-colorPicker{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;width:249px;padding-bottom:10px}.bee-fk-colorPicker__inner{padding:12px}.bee-fk-colorPicker__header{margin-bottom:12px;z-index:999;text-align:left}.bee-fk-colorPicker__header .back{border:solid black;border-width:0 1px 1px 0;display:inline-block;padding:4px;margin-left:2px;transform:rotate(135deg);-webkit-transform:rotate(135deg)}.bee-fk-colorPicker__display{position:relative;width:100%;margin:0;text-align:left}.bee-fk-colorPicker__display .transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-fk-colorPicker__display .current-color{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.bee-fk-colorPicker__display .current-color .color-cube{width:100%;height:100%}.bee-fk-colorPicker__display .hexColor-prefix{position:relative;padding:0 4px;font-size:14px;display:inline-block;vertical-align:middle}.bee-fk-colorPicker__display input{width:25px;text-align:center;outline:0;border-top:0;border-right:0;border-left:none;display:inline-block;vertical-align:middle;padding-bottom:3px;border-bottom:1px solid #e3e2e8}.bee-fk-colorPicker__display .hexColor-input{width:64px}.bee-fk-colorPicker__display .action{float:right;vertical-align:middle}.bee-fk-colorPicker__display .action .clear-btn{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0;display:inline-block;vertical-align:middle;cursor:pointer}.bee-fk-colorPicker__display .action .copy-btn{border-color:transparent;color:#13ce66cc;background:transparent;padding-left:0;padding-right:0;display:inline-block;margin-left:10px;vertical-align:middle;cursor:pointer}.bee-ele-colorPicker{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;padding:10px;width:300px}.bee-ele-colorPicker .bee-ele-row{display:flex}.bee-ele-colorPicker .bee-ele-row .bee-ele-saturation{width:280px;height:180px}.bee-ele-colorPicker .bee-ele-row .bee-ele-hue{margin-left:10px;height:180px}.bee-chrome-colorPicker{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;width:250px;padding-bottom:20px}.bee-chrome-colorPicker-body{padding:0 12px;background-color:#fff}.bee-chrome-colorPicker-body .chrome-controls{display:flex}.bee-chrome-colorPicker-body .chrome-controls .chrome-color-wrap{position:relative;width:36px;height:36px;border-radius:50%;overflow:hidden;z-index:1}.bee-chrome-colorPicker-body .chrome-controls .chrome-color-wrap .current-color{width:100%;height:100%}.bee-chrome-colorPicker-body .chrome-controls .chrome-sliders{flex:1;margin-left:10px}.bee-color-wrap{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.bee-color-wrap.transparent{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.bee-color-wrap.round{width:22px;height:22px;border-radius:50%;border:1px solid #d8d8d8}.bee-color-wrap .current-color{width:100%;height:100%}.vc-alpha-slider[data-v-18925ba6]{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.vc-alpha-slider.is-vertical[data-v-18925ba6]{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.vc-alpha-slider.transparent[data-v-18925ba6]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-alpha-slider__bar[data-v-18925ba6]{position:relative;width:100%;height:100%;border-radius:15px}.vc-alpha-slider__bar-pointer[data-v-18925ba6]{position:absolute;width:14px;height:14px}.vc-alpha-slider__bar-handle[data-v-18925ba6]{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.vc-alpha-slider__bar-handle.vertical[data-v-18925ba6]{transform:translateY(-7px);margin-top:0}.vc-alpha-slider.small-slider[data-v-18925ba6]{height:10px!important}.vc-alpha-slider.small-slider .small-bar[data-v-18925ba6]{height:10px!important;width:10px!important}.vc-alpha-slider.small-slider .small-bar div[data-v-18925ba6]{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.vc-compact[data-v-b969fd48]{margin-bottom:15px;width:auto;box-shadow:3px 0 5px #00000014;display:inline-block}.vc-compact__row[data-v-b969fd48]{position:relative;width:100%;margin:0;height:27px}.vc-compact__row>*[data-v-b969fd48]{display:inline-block;vertical-align:middle}.vc-compact__color_cube[data-v-b969fd48]{width:100%;height:100%}.vc-compact__color_cube.transparent[data-v-b969fd48]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#fff}.vc-compact__color_cube.transparent[data-v-b969fd48]:after{content:"";position:absolute;top:100%;left:0;transform:rotate(-45deg);transform-origin:0 0;width:35px;height:1px;background:red}.vc-compact__color_cube.advance[data-v-b969fd48]{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAYAAAC9pNwMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABqVJREFUeNrEl11yHDUQx1ua2Zlde2M7jqESqnjg45kjcBwOwQG4BY+8cwWK17xBUUARICQhTmI7tte7Ozs7o+bXLTleuACpKNJqJP3789+doKoSPxfVGxFZioS1iK5Yd0nCJko9iLTVVvZSlCOp5FBF7vP5RFTelyDHvmYvMPPtiP19fu+HIHPetrllX2TLMJAOgEehti3ZY/Axap51ZB5ZDEnGMUoCNCmDbRv+2Q4CDJ5Mymj4OmE0CNj6b5WJlkel3xkiGXjOc0imDH/JDid1AXQEfKgccHg3lN+uhh+v2WkkOvCUnT3GjP2WOfrJzjUNPq/ugPUej1TiwME3+DfVUhWkEQF6LZraJxsp6xHLIzW/DNyAW75PGJVrOxbQFSeWzOsdjQ/tZHTxtSgdzAimMfOAdbas7crUvIWAqZg5+gg8FBzYTOygbo1tAb1xTYMs/q1xAFgnvBx5JrKO2X9pzJrJhr+b5BaY8vjG3O+w7HFnypkZ+zP3K8AWL7FHiRsJappe4knA9fo/pj7WrIrdshBs8cukcu0ljhK2lZt1Q8B1msMj5WCQKoibd8q8p1J8i6aWJnrJCcDljDX2Cm8Jn2WJC9PtIHpYeowza125Dc3c6CQ1MbEdooxoPQw54Ak9jigaKcAMk9ddgUi68ZxMmNbNG8hTXXjOZrPf+vg4C+RpRRJqO0ps8FxtzhoJLiSIHCWtLi9u5LiZyqKv0UvlHmaccukoVjJLFu2YUy946FRidS7beCXN9i3gKzd1Yo53ps7ppTnqEYD0mYNldpuxnvIo2nZb/L+ay9tulA/sJpE/Tfchj1H2kW2KpsFYSK4YgI1vZDJe57XmIAu642N5kCxUJfQ8bA48IKpWGNKi/T7rPWRMBMkp5lhz5mUlV0O+fGAGC5XMkTzoG349I/D+Qis0jpeZBt0CXaZGnwtwdcS7A/4ycOIi3bNI0pzfxoVHQYYDIu+A9djJ5bKX+c2BVKnHS5Xcw8QTecWlXxi/khgvYMFzHlp4/g74WREshg3zpuS9mfowShxyrnv6wFS2Dl12QUDwaO54xIWTKZem8up7M0ojn5BzdftEdPMzII9ljE8kVde8Z5y89PSJYcACAJhWTigFOO1rpqRbWs0pKjp4Nkl6OMiGQiFnKsOnLQNqJNe33yV5iFml/4YLfzB+wwpvuNoT+eq0F+JWYtp50MlXLBvUAkLlXXbdloHkUsREDsc6y9LDvs2pTNJD6eM5+x/KAslqWK/pOo/WEIvw3PC3q8rZz3IzWBqqp2CpTvjAACIVyFhLMQmlwXPU9gYrC+lCZs0VtPkc0Jfc+Va+XK/lK3Pr10XhF8ToAjf1VKktAH0hd3srqesSMmCJaiNwJB/IzNviF9Uor8NnndSkyRBfExbPpdHfKRg/yqH8JCPxdvbZVE6+6GTzmCD9Af45RfhzLGZZtEaIVQVdDpLwVByAHeIu8DXWGTySUil8wSNw6fMoliZnfHsqfXiC2M+gjJXX7wuEOvm4gWUBa9h4xrAAtwy6hHyWo1QQGc9gDkD7sAt8VjqETSnUHaArd0Gupc8ZBv4n4ymUfiEPxEu4/A3eyayX+x+ZZjjoIEl6D+2zrJJgyOoKf68RCKJXOpt4B3xZQNclwVeSbXVd2hXzKXlpqsC3c0ttyR3La6rTW2yyP1dpSbdowUtBji1+aAioxTZXD+ORZcrs+A5YF9kWnnfWeJUSZgnswKeZ7FNHkaeXgjTmowVhkhuQ1pQxCE1aik2A16OVVwtvayxmW6fdeDNKKcs79Zhy5eaFwIOXsxu3grolVsUVS0y0pAKN3tpMStdlheJajZ1V5rxWHxoJjR6crr51frlg59K73AFWf7h3gs8BlWtpsHpqwrioa6nJj5lphgim1C3XdPGuuZm2hYIB90QCrKqxDnPkm81hN6pvAyqElRdvN3exjdXeYGQS8oXGmjgoICQjhUh6jdSYmvQdpakSFArIfg6bqiqZW6t3N6HaNbUX7M4Lt4NK8bX3SblJM9Mas+65xuodpVFRj58HfLyAdPZjftCittnLXaHWKQdczNE4trkfK8GFiT3RVqU523gaBbeC04/3zW3pp0yJWFqfofjZejBfw3bGE3WNO8jrmLtDt5ahVyHt+DiUDv/WtFpAQ+4MrDFvC3Bb+uXiI2f1TXGURfesNPc11mjacki1dK/JKTnsUmYGLnnM/2MycWRt7dCtedrSyhqPe39tPBecjV3rrTWDweqzSl2hsfVwM3lX+UL+f0CuTv/Hn38EGAAvCnNy1JKVIQAAAABJRU5ErkJggg==)}.vc-compact__color_cube .alpha[data-v-b969fd48]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-compact__color-cube--wrap[data-v-b969fd48]{position:relative;width:27px;height:27px;cursor:pointer;overflow:hidden}.vc-compact__color-cube--wrap[data-v-b969fd48]:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.vc-saturation[data-v-058e5db2]{position:relative;margin-bottom:15px;width:100%;height:125px}.vc-saturation__chrome[data-v-058e5db2]{border-top-left-radius:5px;border-top-right-radius:5px;border-color:transparent}.vc-saturation__hidden[data-v-058e5db2]{overflow:hidden}.vc-saturation__white[data-v-058e5db2],.vc-saturation__black[data-v-058e5db2]{position:absolute;top:0;left:0;right:0;bottom:0}.vc-saturation__black[data-v-058e5db2]{background:linear-gradient(0deg,#000,transparent)}.vc-saturation__white[data-v-058e5db2]{background:linear-gradient(90deg,#fff,#fff0)}.vc-saturation__cursor[data-v-058e5db2]{position:absolute}.vc-saturation__cursor div[data-v-058e5db2]{transform:translate(-5px,-5px);box-shadow:0 1px 4px #0000005e;width:10px;height:10px;border:1px solid white;border-radius:50%;cursor:pointer}.vc-hue-slider[data-v-e1a08576]{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.vc-hue-slider.is-vertical[data-v-e1a08576]{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.vc-hue-slider.transparent[data-v-e1a08576]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-hue-slider__bar[data-v-e1a08576]{position:relative;width:100%;height:100%;border-radius:15px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);background:-webkit-linear-gradient(left,rgb(255,0,0) 0%,rgb(255,255,0) 16.66%,rgb(0,255,0) 33.33%,rgb(0,255,255) 50%,rgb(0,0,255) 66.66%,rgb(255,0,255) 83.33%,rgb(255,0,0) 100%);background:-moz-linear-gradient(left,rgb(255,0,0) 0%,rgb(255,255,0) 16.66%,rgb(0,255,0) 33.33%,rgb(0,255,255) 50%,rgb(0,0,255) 66.66%,rgb(255,0,255) 83.33%,rgb(255,0,0) 100%);background:-ms-linear-gradient(left,rgb(255,0,0) 0%,rgb(255,255,0) 16.66%,rgb(0,255,0) 33.33%,rgb(0,255,255) 50%,rgb(0,0,255) 66.66%,rgb(255,0,255) 83.33%,rgb(255,0,0) 100%)}.vc-hue-slider__bar-pointer[data-v-e1a08576]{position:absolute;width:14px;height:14px}.vc-hue-slider__bar-handle[data-v-e1a08576]{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.vc-hue-slider__bar-handle.vertical[data-v-e1a08576]{transform:translateY(-7px);margin-top:0}.vc-hue-slider.small-slider[data-v-e1a08576]{height:10px!important}.vc-hue-slider.small-slider .small-bar[data-v-e1a08576]{height:10px!important;width:10px!important}.vc-hue-slider.small-slider .small-bar div[data-v-e1a08576]{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.vc-lightness-slider[data-v-94a50a9e]{position:relative;margin-bottom:15px;width:100%;height:14px;box-shadow:2px 0 8px #00000014;border-radius:15px}.vc-lightness-slider.is-vertical[data-v-94a50a9e]{width:14px;height:100%;display:inline-block;transform:rotate(180deg)}.vc-lightness-slider.transparent[data-v-94a50a9e]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-lightness-slider__bar[data-v-94a50a9e]{position:relative;width:100%;height:100%;border-radius:15px}.vc-lightness-slider__bar-pointer[data-v-94a50a9e]{position:absolute;width:14px;height:14px}.vc-lightness-slider__bar-handle[data-v-94a50a9e]{width:14px;height:14px;border-radius:6px;transform:translate(-7px,-2px);background-color:#f8f8f8;margin-top:2px;box-shadow:0 1px 4px #0000005e;cursor:pointer}.vc-lightness-slider__bar-handle.vertical[data-v-94a50a9e]{transform:translateY(-7px);margin-top:0}.vc-lightness-slider.small-slider[data-v-94a50a9e]{height:10px!important}.vc-lightness-slider.small-slider .small-bar[data-v-94a50a9e]{height:10px!important;width:10px!important}.vc-lightness-slider.small-slider .small-bar div[data-v-94a50a9e]{width:12px!important;height:12px!important;border-radius:5px!important;transform:translate(-6px,-2px);margin-top:1px!important}.vc-colorPicker__record[data-v-0f657238]{display:flex;align-items:center;margin-top:15px}.vc-colorPicker__record .text[data-v-0f657238]{width:48px;margin-right:10px;text-align:right;font-size:12px;color:#666}.vc-colorPicker__record .color-list[data-v-0f657238]{width:100%;display:flex;position:relative;margin:0;gap:2px}.vc-colorPicker__record .color-list .color-item[data-v-0f657238]{position:relative;flex:1;max-width:26px;height:26px;border-radius:2px;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle;box-shadow:3px 0 5px #0000001a}.vc-colorPicker__record .color-list .color-item__round[data-v-0f657238]{border-radius:50%}.vc-colorPicker__record .color-list .color-item.transparent[data-v-0f657238]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-colorPicker__record .color-list .color-item[data-v-0f657238]:hover{transform:scale(1.2);z-index:299;transition:transform .2s}.vc-colorPicker__record .color-list .color-item__display[data-v-0f657238]{width:100%;height:100%}.vc-display[data-v-80d589ba]{height:28px;display:flex;align-items:center;gap:8px}.vc-display .vc-current-color[data-v-80d589ba]{width:50px;height:100%;box-shadow:3px 0 5px #00000014;border-radius:2px;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.vc-display .vc-current-color.vc-transparent[data-v-80d589ba]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-display .vc-current-color .color-cube[data-v-80d589ba]{width:100%;height:100%}.vc-display .vc-color-input[data-v-80d589ba]{height:100%;flex:1;flex-shrink:0;box-sizing:border-box;position:relative}.vc-display .vc-color-input input[data-v-80d589ba]{padding:0;border:0;outline:none;cursor:pointer;font-size:14px;text-align:center;box-sizing:border-box;background-color:#c8c8c840;color:#666;border-radius:2px;height:100%;width:100%}.vc-display .vc-rgb-input[data-v-80d589ba]{flex:1;font-size:12px;color:#666;text-align:center}.vc-display .vc-rgb-input input[data-v-80d589ba]{padding:4px 0;margin-bottom:2px;border:0;outline:none;cursor:pointer;font-size:14px;text-align:center;background-color:#c8c8c840;color:#666;border-radius:2px;width:100%}.vc-display .vc-alpha-input[data-v-80d589ba]{width:56px;height:100%;border:none;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:2px;font-size:14px}.vc-display .vc-alpha-input>input[data-v-80d589ba]{width:100%;height:100%;padding:0;text-align:center;background-color:#c8c8c840;color:#666;font-size:inherit}.vc-display .vc-alpha-input__inner[data-v-80d589ba]{padding:10px 16px;border-radius:4px;color:#000;font-size:14px;line-height:20px;outline:none;border:none;display:block;box-sizing:border-box;cursor:pointer}.vc-display .vc-input-toggle[data-v-80d589ba]{cursor:pointer;font-size:12px;line-height:12px;width:24px;border-radius:4px;padding:2px}.vc-display .vc-input-toggle[data-v-80d589ba]:hover{background-color:#efefef}.vc-display .vc-input-toggle[data-v-80d589ba]:before{height:0;width:0;margin:auto auto 2px;content:"";display:block;border-bottom:4px solid #888;border-left:4px solid transparent;border-right:4px solid transparent}.vc-display .vc-input-toggle[data-v-80d589ba]:after{height:0;width:0;margin:2px auto auto;content:"";display:block;border-top:4px solid #888;border-left:4px solid transparent;border-right:4px solid transparent}.vc-fk-colorPicker[data-v-0d5bef46]{position:relative;box-sizing:border-box;border-radius:3px;-webkit-user-select:none;user-select:none;background-color:initial}.vc-fk-colorPicker__inner[data-v-0d5bef46]{position:relative}.vc-fk-colorPicker__header[data-v-0d5bef46]{margin-bottom:12px;z-index:999;text-align:left}.vc-fk-colorPicker__header .back[data-v-0d5bef46]{border:2px solid rgba(150,150,150,.6);border-width:0 1px 1px 0;display:inline-block;padding:4px;margin-left:2px;transform:rotate(135deg)}.vc-fk-colorPicker__display[data-v-0d5bef46]{position:relative;width:100%;margin:0;text-align:left}.vc-fk-colorPicker__display .transparent[data-v-0d5bef46]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-fk-colorPicker__display .current-color[data-v-0d5bef46]{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.vc-fk-colorPicker__display .current-color .color-cube[data-v-0d5bef46]{width:100%;height:100%}.vc-fk-colorPicker__display .hexColor-prefix[data-v-0d5bef46]{position:relative;padding:0 4px;font-size:14px;display:inline-block;vertical-align:middle}.vc-fk-colorPicker__display input[data-v-0d5bef46]{width:25px;text-align:center;outline:0;border-top:0;border-right:0;border-left:none;display:inline-block;vertical-align:middle;padding-bottom:3px;border-bottom:1px solid #e3e2e8}.vc-fk-colorPicker__display .hexColor-input[data-v-0d5bef46]{width:64px}.vc-fk-colorPicker__display .action[data-v-0d5bef46]{float:right;vertical-align:middle}.vc-fk-colorPicker__display .action .clear-btn[data-v-0d5bef46]{border-color:transparent;color:#409eff;background:transparent;padding-left:0;padding-right:0;display:inline-block;vertical-align:middle;cursor:pointer}.vc-fk-colorPicker__display .action .copy-btn[data-v-0d5bef46]{border-color:transparent;color:#13ce66cc;background:transparent;padding-left:0;padding-right:0;display:inline-block;margin-left:10px;vertical-align:middle;cursor:pointer}.vc-chrome-colorPicker[data-v-33636434]{position:relative;box-sizing:border-box;border-radius:3px;-webkit-user-select:none;user-select:none;background-color:initial}.vc-chrome-colorPicker-body[data-v-33636434]{position:relative}.vc-chrome-colorPicker-body .chrome-controls[data-v-33636434]{display:flex}.vc-chrome-colorPicker-body .chrome-controls .chrome-color-wrap[data-v-33636434]{position:relative;width:36px;height:36px;border-radius:50%;overflow:hidden;z-index:1}.vc-chrome-colorPicker-body .chrome-controls .chrome-color-wrap.transparent[data-v-33636434]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-chrome-colorPicker-body .chrome-controls .chrome-color-wrap .current-color[data-v-33636434]{width:100%;height:100%}.vc-chrome-colorPicker-body .chrome-controls .chrome-sliders[data-v-33636434]{flex:1;margin-left:10px}.bee-angle{transform:rotate(90deg)}.bee-angle>*{display:inline-block;vertical-align:middle}.bee-angle.zero-right{transform:rotate(180deg)}.bee-angle.zero-bottom{transform:rotate(270deg)}.bee-angle__round{position:relative;width:16px;height:16px;border:1px solid #666;border-radius:50%;cursor:pointer;display:inline-block;vertical-align:middle}.bee-angle__round:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);width:50%;height:1px;background-color:#666}.vc-gradient-picker[data-v-431cadee]{position:relative}.vc-gradient-picker__header[data-v-431cadee]{margin-bottom:12px;z-index:999;text-align:left;display:flex;justify-content:space-between;align-items:center}.vc-gradient-picker__header .back[data-v-431cadee]{border:2px solid rgba(150,150,150,.65);border-width:0 1px 1px 0;display:inline-block;padding:4px;margin-left:2px;transform:rotate(135deg);margin-right:8px}.vc-gradient-picker .vc-gradient__types[data-v-431cadee]{display:flex;width:100%;justify-content:space-between}.vc-gradient-picker .vc-gradient__types .vc-gradient-wrap__types[data-v-431cadee]{display:flex;background-color:#c8c8c840;border-radius:4px;overflow:hidden;align-items:center}.vc-gradient-picker .vc-gradient__types .vc-gradient__type[data-v-431cadee]{padding:4px 8px;color:#666;cursor:pointer;font-size:12px}.vc-gradient-picker .vc-gradient__types .vc-gradient__type.active[data-v-431cadee]{color:#000;background-color:#c8c8c8cc}.vc-gradient-picker__body[data-v-431cadee]{margin-bottom:12px;display:-ms-flexbox;display:flex;align-items:center}.vc-gradient-picker__body .vc-color-range[data-v-431cadee]{flex:1}.vc-gradient-picker__body .vc-color-range__container[data-v-431cadee]{position:relative;height:16px;border-radius:5px}.vc-gradient-picker__body .vc-color-range__container .vc-background[data-v-431cadee]{height:100%;border-radius:4px;box-shadow:inset 0 0 0 1px #0000000f}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container[data-v-431cadee]{position:absolute;width:100%;top:0;height:100%;left:0}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container .vc-gradient__stop[data-v-431cadee]{position:absolute;top:-2px;width:14px;height:16px;overflow:hidden;border:2px solid #fff;border-radius:2px;cursor:pointer;box-shadow:0 0 2px 1px #00000059;box-sizing:content-box;transform:translate(-9px)}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container .vc-gradient__stop--inner[data-v-431cadee]{display:inline-block;height:100%}.vc-gradient-picker__body .vc-color-range__container .vc-gradient__stop__container .vc-gradient__stop--current[data-v-431cadee]{position:relative;z-index:1;box-shadow:0 0 2px 2px #2253f4,0 0 1px 1px #2253f480}.vc-gradient-picker .vc-degree-input[data-v-431cadee]{position:relative;z-index:2;font-size:12px;border-radius:4px;display:flex}.vc-gradient-picker .vc-degree-input:hover .vc-degree-input__panel[data-v-431cadee]{display:block}.vc-gradient-picker .vc-degree-input__control[data-v-431cadee]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border-radius:4px;background-color:#c8c8c840;color:#666;padding:0 6px 0 0}.vc-gradient-picker .vc-degree-input__control input[data-v-431cadee]{max-width:28px;text-align:center;border:none;outline:none;background-color:transparent;color:#666;font-size:inherit;overflow:visible}.vc-gradient-picker .vc-degree-input__panel[data-v-431cadee]{display:none;z-index:10;position:absolute;top:20px;left:0}.vc-gradient-picker .vc-degree-input__panel .vc-degree-input__disk[data-v-431cadee]{padding:4px;background-color:#f1f1f1;box-shadow:0 0 2px #00000029,0 1px 8px #0000000f,0 4px 12px #00000014;border-radius:4px;display:flex;justify-content:center;align-items:center;position:relative;transform:translate(0)}.vc-gradient-picker .vc-picker-degree-input[data-v-431cadee]{margin-left:8px}.vc-colorpicker[data-v-0492277d]{position:relative;box-sizing:border-box;border-radius:3px;box-shadow:0 0 10px #00000026;-webkit-user-select:none;user-select:none;width:276px;z-index:10000}.vc-colorpicker *[data-v-0492277d]{outline:none;line-height:1}.vc-colorpicker--container[data-v-0492277d]{padding:16px}.vc-colorpicker--tabs[data-v-0492277d]{padding:2px;background:#f6f7f9;border-radius:6px;position:relative;margin-bottom:12px}.vc-colorpicker--tabs__inner[data-v-0492277d]{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0;background:#f6f7f9;border-bottom:none;position:relative;box-sizing:border-box}.vc-colorpicker--tabs__btn[data-v-0492277d]{-ms-flex:1;flex:1;z-index:2;color:#636c78;font-size:14px;border-radius:4px;cursor:pointer}.vc-colorpicker--tabs__btn.vc-btn-active[data-v-0492277d]{color:#33383e;font-weight:600}.vc-colorpicker--tabs__btn button[data-v-0492277d]{width:100%;background-color:initial;padding:6px 0;font-size:14px;line-height:20px;color:#636c78;border:0;border-radius:0;outline:0;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;font-weight:inherit}.vc-colorpicker--tabs__btn button .vc-btn__content[data-v-0492277d]{position:relative;white-space:nowrap}.vc-colorpicker--tabs__bg[data-v-0492277d]{position:absolute;top:0;bottom:0;background:#fff;box-shadow:0 1px 4px #0000001f;border-radius:4px;z-index:1;transition:left .2s ease-in-out}.vc-colorpicker.black[data-v-0492277d]{background-color:#000;color:#fff}.vc-colorpicker.white[data-v-0492277d]{background-color:#fff;color:#333}.vc-color-wrap[data-v-3ba84123]{margin-right:10px;width:50px;height:24px;box-shadow:3px 0 5px #00000014;position:relative;cursor:pointer;overflow:hidden;display:inline-block;vertical-align:middle}.vc-color-wrap.transparent[data-v-3ba84123]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);background-repeat:repeat}.vc-color-wrap.round[data-v-3ba84123]{width:22px;height:22px;border-radius:50%;border:1px solid #d8d8d8}.vc-color-wrap .current-color[data-v-3ba84123]{width:100%;height:100%}#nprogress{pointer-events:none}#nprogress .bar{background:#29d;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #29d,0 0 5px #29d;opacity:1;-webkit-transform:rotate(3deg) translate(0px,-4px);-ms-transform:rotate(3deg) translate(0px,-4px);transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border:solid 2px transparent;border-top-color:#29d;border-left-color:#29d;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .spinner,.nprogress-custom-parent #nprogress .bar{position:absolute}@-webkit-keyframes nprogress-spinner{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes nprogress-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}} diff --git a/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js b/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js deleted file mode 100644 index dc910184c..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-f3klQpXz.js -import{s as b}from"./app-4lFIb2G-.js";import{S as g,a as D}from"./SearchUtil-FCBI7ppE.js";import{d as S,a as q,r as v,D as V,F as E,c as l,b as _,w as r,U as A,e as m,o as a,L as y,M as h,J as i,f as c,t as p,j as C,n as f,I as B,Y as T,T as F,z as M,_ as R}from"./index-rt1yTeew.js";import"./request-vlI2kaaR.js";const Y={class:"__container_resources_application_index"},J=["onClick"],L=S({__name:"index",setup(O){let d=q(),k=d.query.query,x=[{title:"appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const e=v(new g([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],b,x));return V(()=>{e.onSearch(),e.tableStyle={scrollX:"100",scrollY:"367px"}}),A(M.SEARCH_DOMAIN,e),E(d,(n,I)=>{e.queryForm.keywords=n.query.query,e.onSearch(),console.log(n)}),(n,I)=>{const u=m("a-tag"),N=m("a-tooltip");return a(),l("div",Y,[_(D,{"search-domain":e},{bodyCell:r(({text:t,record:w,index:$,column:s})=>[s.dataIndex==="registryClusters"?(a(!0),l(y,{key:0},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="deployClusters"?(a(!0),l(y,{key:1},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="appName"?(a(),i(N,{key:2,title:t},{default:r(()=>[C("span",{class:"app-link",onClick:o=>f(T).push(`/resources/applications/detail/${w[s.key]}`)},[C("b",null,[_(f(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),c(" "+p(t),1)])],8,J)]),_:2},1032,["title"])):F("",!0)]),_:1},8,["search-domain"])])}}}),P=R(L,[["__scopeId","data-v-fcc0f0eb"]]);export{P as default}; -======== -import{s as b}from"./app-PIImRajL.js";import{S as g,a as D}from"./SearchUtil-euy68KhE.js";import{d as S,a as q,r as v,D as V,F as E,c as l,b as _,w as r,U as A,e as m,o as a,L as y,M as h,J as i,f as c,t as p,j as C,n as f,I as B,Y as T,T as F,z as M,_ as R}from"./index-JtaswhjV.js";import"./request--dYXBGM5.js";const Y={class:"__container_resources_application_index"},J=["onClick"],L=S({__name:"index",setup(O){let d=q(),k=d.query.query,x=[{title:"appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const e=v(new g([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],b,x));return V(()=>{e.onSearch(),e.tableStyle={scrollX:"100",scrollY:"367px"}}),A(M.SEARCH_DOMAIN,e),E(d,(n,I)=>{e.queryForm.keywords=n.query.query,e.onSearch(),console.log(n)}),(n,I)=>{const u=m("a-tag"),N=m("a-tooltip");return a(),l("div",Y,[_(D,{"search-domain":e},{bodyCell:r(({text:t,record:w,index:$,column:s})=>[s.dataIndex==="registryClusters"?(a(!0),l(y,{key:0},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="deployClusters"?(a(!0),l(y,{key:1},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="appName"?(a(),i(N,{key:2,title:t},{default:r(()=>[C("span",{class:"app-link",onClick:o=>f(T).push(`/resources/applications/detail/${w[s.key]}`)},[C("b",null,[_(f(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),c(" "+p(t),1)])],8,J)]),_:2},1032,["title"])):F("",!0)]),_:1},8,["search-domain"])])}}}),P=R(L,[["__scopeId","data-v-fcc0f0eb"]]);export{P as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-97iE2q1l.js diff --git a/app/dubbo-ui/dist/admin/assets/index-fp33XqC9.css b/app/dubbo-ui/dist/admin/assets/index-fp33XqC9.css deleted file mode 100644 index e9f784867..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-fp33XqC9.css +++ /dev/null @@ -1 +0,0 @@ -.instances-container[data-v-40f5e4f1]{width:100%;height:100%}.instances-container .search-table-container[data-v-40f5e4f1]{min-height:60vh} diff --git a/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js b/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js deleted file mode 100644 index ea7c65541..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-iEpzgnm5.js -import{b as n,A as I,d as V,k as ue,a as X,l as Y,r as G,u as k,e as u,o as g,c as B,n as i,q as we,s as ie,I as de,_ as Z,v as pe,P as C,x as ze,y as q,z as S,B as z,C as Ye,D as je,E as Be,F as ae,G as Re,H as Ke,w as s,J as j,K as Ue,L as J,M as me,f as U,t as Q,S as Le,N as Fe,j as L,O as oe,Q as Ce,R as Se,p as He,h as Ne,T as fe,U as se,V as Ee,W as Te}from"./index-rt1yTeew.js";import{s as Ge}from"./app-4lFIb2G-.js";import{s as Qe}from"./instance-ChxJL4oQ.js";import{s as Ve}from"./service-RF66g7V7.js";import{m as Xe,a as Ze}from"./globalSearch-_m3MXXfo.js";import{u as qe}from"./request-vlI2kaaR.js";var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ke=Ie;function ce(a){for(var e=1;e[v(c.meta)]),P=G([]);function v(l){var d;return l.tab||l.hidden?v((d=l.parent)==null?void 0:d.meta):l._router_key}function A(){var d,h;let l=c.meta.parent;for(;l;)P.push((d=l.meta)==null?void 0:d._router_key),l=(h=l.meta)==null?void 0:h.parent}A();function y(l){o[0]=l.key}function b(l,d,h,O,K,D){return O&&(O=ie(de,{icon:O})),{key:h,title:d,icon:O,children:K,label:Y(()=>e.$t(l)),type:D}}const R=G([]);function x(l,d,h="root"){var O,K,D,N,F,E,p,m,_;if(!(!l||l.length===0))for(let r of l){if((O=r.meta)!=null&&O.skip){x(r.children,d,r.name);continue}if(!((K=r.meta)!=null&&K.hidden))if(!r.children||r.children.length===0||(D=r.meta)!=null&&D.tab_parent)d.push(b(r.name,r.path,(N=r.meta)==null?void 0:N._router_key,(F=r.meta)==null?void 0:F.icon));else if(r.children.length===1)d.push(b(r.children[0].name,r.path,(E=r.meta)==null?void 0:E._router_key,(p=r.children[0].meta)==null?void 0:p.icon));else{const w=G([]);x(r.children,w,r.name),d.push(b(r.name,r.path,(m=r.meta)==null?void 0:m._router_key,(_=r.meta)==null?void 0:_.icon,w))}}}x(t,R);const M=k(),H=l=>{var d;M.push((d=l.item)==null?void 0:d.title)};return(l,d)=>{const h=u("a-menu");return g(),B("div",rt,[n(h,{mode:"inline",selectedKeys:i(o),"open-keys":i(P),onSelect:y,items:R,onClick:H},null,8,["selectedKeys","open-keys","items"])])}}}),ut=Z(lt,[["__scopeId","data-v-0c21c672"]]),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAAENCAYAAAAVEjAIAAAOg0lEQVR4Xu3dYXXjSBSE0YUwEAJhIQjCQDCEgSAIA8EQBoIhLARDWAa17mQzZ1KJbcVx8rq7vnuO/3eXyi+SLDt//XVHkhYB0r+n1+H/18/Taz29dnrqxzfvDYL9Xwrgmueh0gZKGyZ/e5cQQgwNfEwbJO2sZPFuYVLtYFsJgI9oQ+TH6fXgXcMkxNDA5znq6XKGS5mZiKGBr9EGSLuMefAOYjBiaODrtUuYnXcRgxBDA3XaJzLt8uXBe4mOiaGBPuzFJzBjaAfKjx5QqF26LN5TdKQdID9qQAcYHr1qB8aPFtCRNjz4yLYnYmhgDO2eB9+B6YEYGhhH+7Rl9Q7ji4mhgfEcxf2OOi18PyLAINozHlyyfDUxNDA2zjq+WgvcjwIwIM46vooYGpjHP+Lj2c8nhgbm88N7jjsSQwNz2ovLlc8hhgbmxeXKZxBDA3NrD4Qt3nt8QAvUUwYmtPPu40ZiaCDH3vuPG4ihgSx7fw/gncTQQJ52g5RPVm4lhgYyMThuJYYGcjE4biGGBrIxON5LDA2AwfEeYmgADYNjKzE0gGcMji3E0AD+tPf3CIwYGoDb+/sEfxBDA3gLv8lxjhgawDk7f7/gL4YGcEH7Wj2/x+HE0AAuOYpPVF4SQwO45uDvm2hiaABbrP7eiSWGxmdp18OHDl+43Xd//0QSQ+Me2oDYn16702vxjHti68b7tOPM/Q0xNG71PCiGurvum8C7HTzTOGJovFcbFqsG/Yvjm8FNsh/8EkNjq6GHxTPfFG421BnmXYmhscXh9Hrw7EbkG8PN/vFsY4ihcc3qmY3MN4cPWT3fCGJonDPlf+byTeLD8i5TxNB4y7TfOfCN4sMOnvH0xNBw0w6MxjeLu8j6NEUMjT9NPTAa3zDuIuuhLzE0/rTzfGbjG8bd7D3raYmh8eynZzMj3zTuauqz1N/E0GiOCjm99I3jrg6e95TE0GgWz2VWvnHc3eKZT6dt0ncdZu+ZzMw3j7s7eubTEUPjwTOZmW8en2LnuU9F2UNj73nMzgPApzh67lNR9tDIuNv9Bw8An2bn2U9DuUNjyG8pntb9t56O2a0vfI2jH7tpKLdIQzz6e1rnQ1urnv45Mcay8+M5BeUOja4vTU7r+6annxPEuI5+XKegzKHxr+fQk9P6vrc1+qIxpJ0f3+Epc2j88hx6oaefFMQ8Dn6Mh6fMobF6Dj3Q070LzGfxYz20tiHfYYDvnkO1tiZfJKax9+M9NGUOjcVzqKSnm57cw5jbPF+IFEOjnLiPkWD14z4sBQ4Nz6CSOMtIcfRjPywxNErp6f+/IsPix39IbSO+s9l5BpVOy/nl68O09n78hySGRilxaZKk64cKNxNDo5SvDdPr7uP+dxNDo4yevrGKLHvvwXDE0CijwOwxwSWKAovrGVRRYPZ4NPYligKL6xlUUWD2eLT3LgxFgcX1DKooMHs8OnoXhqLA4noGVRSYPX7r+kegLlJgcT2DKgrMHr+t3odhKLC4nkEVBWaP34b8YetHCiyuZ1BFgdnjhTG/Lq/A4noGVRSYPV4Y86NXBRbXM6iiwOzxwk/vxBAUWFzPoIoCs8cLY97XUGBxPYMqCswer4x3X0OBxfUMqigwe7wy3n0NBRbXM6iiwOzxynj3NRRYXM+gigKzxysH70X3FFhcz6CKArPHa96L7imwuJ5BFQVmjzct3o2utQX7DmbnGVRRYPZ40w/vRtcUWFzPoIoCs8eb9t6NrimwuJ5BFQVmjzeN9ZCXAovrGVRRYPZ4m3ejawosrmdQRYHZ46zF+9Gttlhf/ew8gyoKzB5n7bwf3VJgcT2DKgrMHmeN82SoAovrGVRRYPY46+D96JYCi+sZVFFg9jhrnH+ipMDiegZVFJg9zvN+dEuBxfUMqigwe1y0eEe61BbqK5+dZ1BFgdnjop13pEsKLK5nUEWB2eOi1TvSJQUW1zOoosDscdHeO9IlBRbXM6iiwOxx0cE70iUFFtczqKLA7HHRGB+7KrC4nkEVBWaPy7wjXVJgcT2DKgrMHlc9eE+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HFV//8HRYHF9QyqKDB7XLV6T7qjwOJ6BlUUmD2uWr0n3VFgcT2DKgrMHlf98p50R4HF9QyqKDB7XHXwnnRHgcX1DKooMHtcdfCedEeBxfUMqigwe1zV/1OhCiyuZ1BFgdnjOu9JdxRYXM+gigKzx3Xek+4osLieQRUFZo/rvCfdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00W70pX2gJ9xbPzDKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyard6UrCiyuZ1BFgdljk9W70hUFFtczqKLA7LHJ6l3pigKL6xlUUWD22GT1rnRFgcX1DKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyY/vCtdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00evCtdUWBxPYMqCswe13lPuqPA4noGVRSYPa7znnRHgcX1DKooMHtc5z3pjgKL6xlUUWD2uOroPemOAovrGVRRYPa46uA96Y4Ci+sZVFFg9rjq4D3pjgKL6xlUUWD2uGrvPemOAovrGVRRYPa4avWedEeBxfUMqigwe1y1ek+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HHV4j3pTlukr3p2nkEVBWaPq755T7qjwOJ6BlUUmD0u8450SYHF9QyqKDB7XPSPd6RLCiyuZ1BFgdnjooN3pEsKLK5nUEWB2eOin96RLimwuJ5BFQVmj4tW70iXFFhcz6CKArPHRYt3pEttob7y2XkGVRSYPS762zvSJQUW1zOoosDscZ73o1sKLK5nUEWB2eOsMT5ubRRYXM+gigKzx1m/vB/dUmBxPYMqCsweZ63ej24psLieQRUFZo+zvns/uqXA4noGVRSYPc4a45OTRoHF9QyqKDB7vM270TUFFtczqKLA7PGmg3ejawosrmdQRYHZ401jfOfkmQKL6xlUUWD2eNPOu9E1BRbXM6iiwOzxpgfvRtcUWFzPoIoCs8cr/3ovuqfA4noGVRSYPV4Z50nQZwosrmdQRYHZ45XVe9E9BRbXM6iiwOzxyuK96F5btO9idp5BFQVmj5e8E0NQYHE9gyoKzB4vHLwTQ1BgcT2DKgrMHi+s3okhKLC4nkEVBWaPFxbvxBDawn0ns/MMqigwe/w23vMZzxRYXM+gigKzx2/jPZ/xTIHF9QyqKDB7/LbzPgxDgcX1DKooMHv89uB9GIYCi+sZVFFg9ng0zi+Pv0WBxfUMqigwezwa6/cznAKL6xlUUWD2eDTO74G+RYHF9QyqKDB76Og9GI4Ci+sZVDkt5ZuvDdMb+9KkEUOjlK8N0xv70qQRQ6PUaTlHXx+mdfTjPyQxNEqdlrP39WFa41+aNGJolDot57uvD9N68OM/JAUOjZNvnkMlcYmSYNzvmjhlDo3Fc6h0Ws/OF4jpLH7ch9U247sLsHgO1U5rOvgiMY2jH++hKXNo7DyHaqc1PZxe//pCMYWdH++hKXNorJ5DD07r+lsMjtm049nVPbQPU+bQOHgOvRCDYzarH+PhKXNodPWxq9PT4+Xc4xjffGcZjUKHxsl3z6I3ejo2DI9xrX5Mp6DcobH3LHqlp0uWH6fXr9Prn5fbQKfmPMtolDs0xv016A/wEPBpVs9+GsodGs3O85idB4BPMe9ZRqPsoXHwPGbnAeBTrJ77VJQ9NJrFM5mZbx53N/dZRiOGxti/DP1Ovnnc3Q/PfDpiaDTzH+j/+cZxV0fPe0piaDTtlPLBs5mRbxx31f2zP3chhsaziMsU3zTu5uBZT0sMjT/tPZ/Z+IZxNw+e9bTE0HA7z2gmvlncxeo5T00MjbfsPKdZ+EbxYUfN/hGrE0PjnJ1nNQPfJD4s4+bnn8TQuGTveY3ON4gPmefHgt9DDI1r2rdKHzy3UfnmcLP5n/w8RwyNLVpBpngAzDeGm+VdljwTQ+M92lnH4hmOxDeEm2ReljwTQ+MWBw36l8Y3gnc7KvWy5JkYGh/RCvRTA/0ncN8A3m3xTOO0EDwV3KTd92hnIKue/j9ry7W7v0gvVoz3Wj3PSGJoAFsc/L0TSwwN4Jrcj1ffIoYGcM3i75toLRBPCMBvUzyfc1diaADn7P39gr8YGsAZET/KdBMxNADXnvzlxuc5YmgAf2qflAzzsF4JMTSAZwyMLcTQAJ4N+X2iLyeGBtDs/L2BM8TQAHb+vsAFYmgg287fE7hCDA3k2vn7ARuIoYFMO38vYCMxNJBn5+8DvIMYGsjBcxj3IIYGMjAw7kUMDcyP75LckxgamNteDIz7EkMD81q977gDMTQwn3b/gu+RfBYxNDCXqf73bpfE0MA8fnq/8QnE0MD4jqfX4t3GJ2lh+xEABvJLfDrytcTQwJg4u6jSgvejAXSu/dNtzi6qiKGBcRzEo+D1xNBA/9qlCM9d9EIMDfSrPaS1emdRTAwN9OdxWIj7Fn0SQwP9YFiMQAwN1Gv3LHZiWIxBDA3UaQ9mcYNzNGJo4Gu1s4p2CfLgXcQgxNDA52v3KvbiCc45tANpBxi4h3ZG0QYFlx+zEUMD93M4vX6IpzbnJoYGbtPOJNqNzHZ/YvFeYWLtgL/sAvBKO4NolxqPA0J8NJrt/xIgSxsC/moD4fnVOrF4VwAAAIDX/gMpuapHNnE8KQAAAABJRU5ErkJggg==",te=a=>(He("data-v-7db622e9"),a=a(),Ne(),a),dt={class:"__container_layout_header"},pt=te(()=>L("div",null,null,-1)),mt=te(()=>L("div",null,null,-1)),ft=te(()=>L("a",{href:"javascript:;"},"logout",-1)),gt={class:"username"},_t=V({__name:"layout_header",setup(a){pe(p=>({"4576ef0a":i(C),c3773ce4:i(ze)}));const{appContext:{config:{globalProperties:e}}}=ue(),t=q(S.COLLAPSED),c=q(S.LOCALE);let o=z(Ye.locale);function P(p){localStorage.setItem(oe,p),C.value=p}function v(p){localStorage.removeItem(oe),C.value=Ce}function A(){Se(),Ze().then(()=>{D.replace(`/login?redirect=${N.path}`)})}const y=z([]),b=qe(),R=q(S.LAYOUT_ROUTE_KEY),x=p=>{b.mesh=p,R()};je(async()=>{const{data:p}=await Xe();y.value=p});const M=Be();ae(o,p=>{Re(p)});const H=G([{label:Y(()=>e.$t("application")),value:"applications"},{label:Y(()=>e.$t("instance")),value:"instances"},{label:Y(()=>e.$t("service")),value:"services"}]),l=z(H[0].value),d=z(""),h=async()=>{const p={keywords:d.value},m=async(_,r)=>{const{data:{list:w}}=await _(p);O.value=w.map(T=>({label:T[r],value:T[r]}))};switch(l.value){case"ip":break;case"applications":await m(Ge,"appName");break;case"instances":await m(Qe,"name");break;case"services":await m(Ve,"serviceName");break}};ae(l,async p=>{await h()});const O=z([]),K=Ke.debounce(h,300),D=k(),N=X(),F=()=>{D.replace(`/resources/${l.value}/list?query=${d.value}`)},E=()=>{};return(p,m)=>{const _=u("a-flex"),r=u("a-select-option"),w=u("a-select"),T=u("a-auto-complete"),ge=u("a-button"),_e=u("a-input-group"),ve=u("a-form-item"),he=u("a-form"),Oe=u("a-segmented"),Pe=u("color-picker"),ye=u("a-popover"),be=u("a-avatar"),xe=u("a-menu-item"),Ae=u("a-menu"),Me=u("a-dropdown"),De=u("a-layout-header");return g(),B("div",dt,[n(De,{class:"header"},{default:s(()=>[n(_,{style:{height:"100%"},justify:"space-between",align:"center"},{default:s(()=>[n(_,null,{default:s(()=>[i(t)?(g(),j(i(nt),{key:0,class:"trigger",onClick:m[0]||(m[0]=()=>t.value=!i(t))})):(g(),j(i(We),{key:1,class:"trigger",onClick:m[1]||(m[1]=()=>t.value=!i(t))}))]),_:1}),pt,n(_,{gap:20},{default:s(()=>[n(_e,{onKeyup:Ue(F,["enter"]),class:"search-group",compact:""},{default:s(()=>[n(w,{value:l.value,"onUpdate:value":m[2]||(m[2]=f=>l.value=f),class:"select-type"},{default:s(()=>[(g(!0),B(J,null,me(H,f=>(g(),j(r,{value:f.value},{default:s(()=>[U(Q(f.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),n(T,{value:d.value,"onUpdate:value":m[3]||(m[3]=f=>d.value=f),class:"input-keywords",placeholder:p.$t("globalSearchTip"),options:O.value,onSelect:E,onSearch:i(K)},null,8,["value","placeholder","options","onSearch"]),n(ge,{icon:ie(i(Le)),class:"search-icon",onClick:F},null,8,["icon"])]),_:1}),n(he,{layout:"inline"},{default:s(()=>[n(ve,{class:"mesh-select-item",label:p.$t("registryCenter"),inline:""},{default:s(()=>[n(w,{class:"mesh-select",value:i(b).mesh,options:y.value.map(f=>({value:f.id,label:f.name})),onChange:x},null,8,["value","options"])]),_:1},8,["label"])]),_:1})]),_:1}),mt,n(_,{align:"center",gap:"middle"},{default:s(()=>[n(_,{align:"center"},{default:s(()=>[n(Oe,{value:i(o),"onUpdate:value":m[4]||(m[4]=f=>Fe(o)?o.value=f:o=f),options:i(c).opts},null,8,["value","options"])]),_:1}),n(_,{align:"center"},{default:s(()=>[n(Pe,{pureColor:i(C),onPureColorChange:P,format:"hex6",shape:"circle",useType:"pure"},null,8,["pureColor"]),n(ye,null,{content:s(()=>[U("reset the theme")]),default:s(()=>[n(i(de),{class:"reset-icon",icon:"material-symbols:reset-tv-outline",onClick:v})]),_:1})]),_:1}),n(_,{align:"center"},{default:s(()=>{var f,ne;return[n(Me,null,{overlay:s(()=>[n(Ae,null,{default:s(()=>[n(xe,{onClick:A},{default:s(()=>[ft]),_:1})]),_:1})]),default:s(()=>[n(be,{onClick:m[5]||(m[5]=()=>{})},{icon:s(()=>[n(i(ct))]),_:1})]),_:1}),L("span",gt,Q((ne=(f=i(M))==null?void 0:f.userinfo)==null?void 0:ne.username),1)]}),_:1})]),_:1})]),_:1})]),_:1})])}}}),vt=Z(_t,[["__scopeId","data-v-7db622e9"]]),ht={class:"__container_layout_bread"},Ot=V({__name:"layout_bread",setup(a){const e=X();k();let t=Y(()=>{var o;return(o=e.params)!=null&&o.pathId?e.params.pathId:""});const c=Y(()=>e.matched.slice(1).map((o,P)=>({name:o.name})));return(o,P)=>{const v=u("a-breadcrumb-item"),A=u("a-breadcrumb");return g(),B("div",ht,[n(A,null,{default:s(()=>[(g(!0),B(J,null,me(c.value,y=>(g(),j(v,null,{default:s(()=>[U(Q(o.$t(y.name)),1)]),_:2},1024))),256)),i(t)?(g(),j(v,{key:0},{default:s(()=>[U(Q(i(t)),1)]),_:1})):fe("",!0)]),_:1})])}}}),Pt=Z(Ot,[["__scopeId","data-v-97925c3f"]]),yt={class:"__container_layout_index"},bt={class:"logo"},xt=["src"],At=V({__name:"index",setup(a){pe(P=>({"1cdde0dc":i(C)}));const e=z(!1);se(S.COLLAPSED,e);const t=X(),c=z(t.fullPath),o=()=>{c.value=`${t.fullPath}-${Date.now()}`};return se(S.LAYOUT_ROUTE_KEY,o),(P,v)=>{const A=u("a-layout-sider"),y=u("router-view"),b=u("a-layout-content"),R=u("a-layout-footer"),x=u("a-layout");return g(),B("div",yt,[n(x,{style:{height:"100vh"}},{default:s(()=>[n(A,{width:"268",collapsed:e.value,"onUpdate:collapsed":v[0]||(v[0]=M=>e.value=M),theme:"light",trigger:null,collapsible:""},{default:s(()=>[L("div",bt,[L("img",{alt:"Dubbo Admin",src:i(it)},null,8,xt),e.value?fe("",!0):(g(),B(J,{key:0},[U("Dubbo Admin")],64))]),n(ut)]),_:1},8,["collapsed"]),n(x,null,{default:s(()=>[n(vt,{collapsed:e.value},null,8,["collapsed"]),n(Pt),n(b,{class:"layout-content"},{default:s(()=>[(g(),j(y,{key:c.value},{default:s(({Component:M})=>[n(Ee,{name:"slide-fade"},{default:s(()=>[(g(),j(Te(M)))]),_:2},1024)]),_:1}))]),_:1}),n(R,{class:"layout-footer"},{default:s(()=>[U("© 2024 The Apache Software Foundation. ")]),_:1})]),_:1})]),_:1})])}}}),Bt=Z(At,[["__scopeId","data-v-e6898f0d"]]);export{Bt as default}; -======== -import{b as n,A as I,d as V,k as ue,a as X,l as Y,r as G,u as k,e as u,o as g,c as B,n as i,q as we,s as ie,I as de,_ as Z,v as pe,P as C,x as ze,y as q,z as S,B as z,C as Ye,D as je,E as Be,F as ae,G as Re,H as Ke,w as s,J as j,K as Ue,L as J,M as me,f as U,t as Q,S as Le,N as Fe,j as L,O as oe,Q as Ce,R as Se,p as He,h as Ne,T as fe,U as se,V as Ee,W as Te}from"./index-JtaswhjV.js";import{s as Ge}from"./app-PIImRajL.js";import{s as Qe}from"./instance-sa6ohjCn.js";import{s as Ve}from"./service-1UmnLUvi.js";import{m as Xe,a as Ze}from"./globalSearch-tZ8VrkZD.js";import{u as qe}from"./request--dYXBGM5.js";var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ke=Ie;function ce(a){for(var e=1;e[v(c.meta)]),P=G([]);function v(l){var d;return l.tab||l.hidden?v((d=l.parent)==null?void 0:d.meta):l._router_key}function A(){var d,h;let l=c.meta.parent;for(;l;)P.push((d=l.meta)==null?void 0:d._router_key),l=(h=l.meta)==null?void 0:h.parent}A();function y(l){o[0]=l.key}function b(l,d,h,O,K,D){return O&&(O=ie(de,{icon:O})),{key:h,title:d,icon:O,children:K,label:Y(()=>e.$t(l)),type:D}}const R=G([]);function x(l,d,h="root"){var O,K,D,N,F,E,p,m,_;if(!(!l||l.length===0))for(let r of l){if((O=r.meta)!=null&&O.skip){x(r.children,d,r.name);continue}if(!((K=r.meta)!=null&&K.hidden))if(!r.children||r.children.length===0||(D=r.meta)!=null&&D.tab_parent)d.push(b(r.name,r.path,(N=r.meta)==null?void 0:N._router_key,(F=r.meta)==null?void 0:F.icon));else if(r.children.length===1)d.push(b(r.children[0].name,r.path,(E=r.meta)==null?void 0:E._router_key,(p=r.children[0].meta)==null?void 0:p.icon));else{const w=G([]);x(r.children,w,r.name),d.push(b(r.name,r.path,(m=r.meta)==null?void 0:m._router_key,(_=r.meta)==null?void 0:_.icon,w))}}}x(t,R);const M=k(),H=l=>{var d;M.push((d=l.item)==null?void 0:d.title)};return(l,d)=>{const h=u("a-menu");return g(),B("div",rt,[n(h,{mode:"inline",selectedKeys:i(o),"open-keys":i(P),onSelect:y,items:R,onClick:H},null,8,["selectedKeys","open-keys","items"])])}}}),ut=Z(lt,[["__scopeId","data-v-0c21c672"]]),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAAENCAYAAAAVEjAIAAAOg0lEQVR4Xu3dYXXjSBSE0YUwEAJhIQjCQDCEgSAIA8EQBoIhLARDWAa17mQzZ1KJbcVx8rq7vnuO/3eXyi+SLDt//XVHkhYB0r+n1+H/18/Taz29dnrqxzfvDYL9Xwrgmueh0gZKGyZ/e5cQQgwNfEwbJO2sZPFuYVLtYFsJgI9oQ+TH6fXgXcMkxNDA5znq6XKGS5mZiKGBr9EGSLuMefAOYjBiaODrtUuYnXcRgxBDA3XaJzLt8uXBe4mOiaGBPuzFJzBjaAfKjx5QqF26LN5TdKQdID9qQAcYHr1qB8aPFtCRNjz4yLYnYmhgDO2eB9+B6YEYGhhH+7Rl9Q7ji4mhgfEcxf2OOi18PyLAINozHlyyfDUxNDA2zjq+WgvcjwIwIM46vooYGpjHP+Lj2c8nhgbm88N7jjsSQwNz2ovLlc8hhgbmxeXKZxBDA3NrD4Qt3nt8QAvUUwYmtPPu40ZiaCDH3vuPG4ihgSx7fw/gncTQQJ52g5RPVm4lhgYyMThuJYYGcjE4biGGBrIxON5LDA2AwfEeYmgADYNjKzE0gGcMji3E0AD+tPf3CIwYGoDb+/sEfxBDA3gLv8lxjhgawDk7f7/gL4YGcEH7Wj2/x+HE0AAuOYpPVF4SQwO45uDvm2hiaABbrP7eiSWGxmdp18OHDl+43Xd//0QSQ+Me2oDYn16702vxjHti68b7tOPM/Q0xNG71PCiGurvum8C7HTzTOGJovFcbFqsG/Yvjm8FNsh/8EkNjq6GHxTPfFG421BnmXYmhscXh9Hrw7EbkG8PN/vFsY4ihcc3qmY3MN4cPWT3fCGJonDPlf+byTeLD8i5TxNB4y7TfOfCN4sMOnvH0xNBw0w6MxjeLu8j6NEUMjT9NPTAa3zDuIuuhLzE0/rTzfGbjG8bd7D3raYmh8eynZzMj3zTuauqz1N/E0GiOCjm99I3jrg6e95TE0GgWz2VWvnHc3eKZT6dt0ncdZu+ZzMw3j7s7eubTEUPjwTOZmW8en2LnuU9F2UNj73nMzgPApzh67lNR9tDIuNv9Bw8An2bn2U9DuUNjyG8pntb9t56O2a0vfI2jH7tpKLdIQzz6e1rnQ1urnv45Mcay8+M5BeUOja4vTU7r+6annxPEuI5+XKegzKHxr+fQk9P6vrc1+qIxpJ0f3+Epc2j88hx6oaefFMQ8Dn6Mh6fMobF6Dj3Q070LzGfxYz20tiHfYYDvnkO1tiZfJKax9+M9NGUOjcVzqKSnm57cw5jbPF+IFEOjnLiPkWD14z4sBQ4Nz6CSOMtIcfRjPywxNErp6f+/IsPix39IbSO+s9l5BpVOy/nl68O09n78hySGRilxaZKk64cKNxNDo5SvDdPr7uP+dxNDo4yevrGKLHvvwXDE0CijwOwxwSWKAovrGVRRYPZ4NPYligKL6xlUUWD2eLT3LgxFgcX1DKooMHs8OnoXhqLA4noGVRSYPX7r+kegLlJgcT2DKgrMHr+t3odhKLC4nkEVBWaP34b8YetHCiyuZ1BFgdnjhTG/Lq/A4noGVRSYPV4Y86NXBRbXM6iiwOzxwk/vxBAUWFzPoIoCs8cLY97XUGBxPYMqCswer4x3X0OBxfUMqigwe7wy3n0NBRbXM6iiwOzxynj3NRRYXM+gigKzxysH70X3FFhcz6CKArPHa96L7imwuJ5BFQVmjzct3o2utQX7DmbnGVRRYPZ40w/vRtcUWFzPoIoCs8eb9t6NrimwuJ5BFQVmjzeN9ZCXAovrGVRRYPZ4m3ejawosrmdQRYHZ46zF+9Gttlhf/ew8gyoKzB5n7bwf3VJgcT2DKgrMHmeN82SoAovrGVRRYPY46+D96JYCi+sZVFFg9jhrnH+ipMDiegZVFJg9zvN+dEuBxfUMqigwe1y0eEe61BbqK5+dZ1BFgdnjop13pEsKLK5nUEWB2eOi1TvSJQUW1zOoosDscdHeO9IlBRbXM6iiwOxx0cE70iUFFtczqKLA7HHRGB+7KrC4nkEVBWaPy7wjXVJgcT2DKgrMHlc9eE+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HFV//8HRYHF9QyqKDB7XLV6T7qjwOJ6BlUUmD2uWr0n3VFgcT2DKgrMHlf98p50R4HF9QyqKDB7XHXwnnRHgcX1DKooMHtcdfCedEeBxfUMqigwe1zV/1OhCiyuZ1BFgdnjOu9JdxRYXM+gigKzx3Xek+4osLieQRUFZo/rvCfdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00W70pX2gJ9xbPzDKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyard6UrCiyuZ1BFgdljk9W70hUFFtczqKLA7LHJ6l3pigKL6xlUUWD22GT1rnRFgcX1DKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyY/vCtdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00evCtdUWBxPYMqCswe13lPuqPA4noGVRSYPa7znnRHgcX1DKooMHtc5z3pjgKL6xlUUWD2uOroPemOAovrGVRRYPa46uA96Y4Ci+sZVFFg9rjq4D3pjgKL6xlUUWD2uGrvPemOAovrGVRRYPa4avWedEeBxfUMqigwe1y1ek+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HHV4j3pTlukr3p2nkEVBWaPq755T7qjwOJ6BlUUmD0u8450SYHF9QyqKDB7XPSPd6RLCiyuZ1BFgdnjooN3pEsKLK5nUEWB2eOin96RLimwuJ5BFQVmj4tW70iXFFhcz6CKArPHRYt3pEttob7y2XkGVRSYPS762zvSJQUW1zOoosDscZ73o1sKLK5nUEWB2eOsMT5ubRRYXM+gigKzx1m/vB/dUmBxPYMqCsweZ63ej24psLieQRUFZo+zvns/uqXA4noGVRSYPc4a45OTRoHF9QyqKDB7vM270TUFFtczqKLA7PGmg3ejawosrmdQRYHZ401jfOfkmQKL6xlUUWD2eNPOu9E1BRbXM6iiwOzxpgfvRtcUWFzPoIoCs8cr/3ovuqfA4noGVRSYPV4Z50nQZwosrmdQRYHZ45XVe9E9BRbXM6iiwOzxyuK96F5btO9idp5BFQVmj5e8E0NQYHE9gyoKzB4vHLwTQ1BgcT2DKgrMHi+s3okhKLC4nkEVBWaPFxbvxBDawn0ns/MMqigwe/w23vMZzxRYXM+gigKzx2/jPZ/xTIHF9QyqKDB7/LbzPgxDgcX1DKooMHv89uB9GIYCi+sZVFFg9ng0zi+Pv0WBxfUMqigwezwa6/cznAKL6xlUUWD2eDTO74G+RYHF9QyqKDB76Og9GI4Ci+sZVDkt5ZuvDdMb+9KkEUOjlK8N0xv70qQRQ6PUaTlHXx+mdfTjPyQxNEqdlrP39WFa41+aNGJolDot57uvD9N68OM/JAUOjZNvnkMlcYmSYNzvmjhlDo3Fc6h0Ws/OF4jpLH7ch9U247sLsHgO1U5rOvgiMY2jH++hKXNo7DyHaqc1PZxe//pCMYWdH++hKXNorJ5DD07r+lsMjtm049nVPbQPU+bQOHgOvRCDYzarH+PhKXNodPWxq9PT4+Xc4xjffGcZjUKHxsl3z6I3ejo2DI9xrX5Mp6DcobH3LHqlp0uWH6fXr9Prn5fbQKfmPMtolDs0xv016A/wEPBpVs9+GsodGs3O85idB4BPMe9ZRqPsoXHwPGbnAeBTrJ77VJQ9NJrFM5mZbx53N/dZRiOGxti/DP1Ovnnc3Q/PfDpiaDTzH+j/+cZxV0fPe0piaDTtlPLBs5mRbxx31f2zP3chhsaziMsU3zTu5uBZT0sMjT/tPZ/Z+IZxNw+e9bTE0HA7z2gmvlncxeo5T00MjbfsPKdZ+EbxYUfN/hGrE0PjnJ1nNQPfJD4s4+bnn8TQuGTveY3ON4gPmefHgt9DDI1r2rdKHzy3UfnmcLP5n/w8RwyNLVpBpngAzDeGm+VdljwTQ+M92lnH4hmOxDeEm2ReljwTQ+MWBw36l8Y3gnc7KvWy5JkYGh/RCvRTA/0ncN8A3m3xTOO0EDwV3KTd92hnIKue/j9ry7W7v0gvVoz3Wj3PSGJoAFsc/L0TSwwN4Jrcj1ffIoYGcM3i75toLRBPCMBvUzyfc1diaADn7P39gr8YGsAZET/KdBMxNADXnvzlxuc5YmgAf2qflAzzsF4JMTSAZwyMLcTQAJ4N+X2iLyeGBtDs/L2BM8TQAHb+vsAFYmgg287fE7hCDA3k2vn7ARuIoYFMO38vYCMxNJBn5+8DvIMYGsjBcxj3IIYGMjAw7kUMDcyP75LckxgamNteDIz7EkMD81q977gDMTQwn3b/gu+RfBYxNDCXqf73bpfE0MA8fnq/8QnE0MD4jqfX4t3GJ2lh+xEABvJLfDrytcTQwJg4u6jSgvejAXSu/dNtzi6qiKGBcRzEo+D1xNBA/9qlCM9d9EIMDfSrPaS1emdRTAwN9OdxWIj7Fn0SQwP9YFiMQAwN1Gv3LHZiWIxBDA3UaQ9mcYNzNGJo4Gu1s4p2CfLgXcQgxNDA52v3KvbiCc45tANpBxi4h3ZG0QYFlx+zEUMD93M4vX6IpzbnJoYGbtPOJNqNzHZ/YvFeYWLtgL/sAvBKO4NolxqPA0J8NJrt/xIgSxsC/moD4fnVOrF4VwAAAIDX/gMpuapHNnE8KQAAAABJRU5ErkJggg==",te=a=>(He("data-v-7db622e9"),a=a(),Ne(),a),dt={class:"__container_layout_header"},pt=te(()=>L("div",null,null,-1)),mt=te(()=>L("div",null,null,-1)),ft=te(()=>L("a",{href:"javascript:;"},"logout",-1)),gt={class:"username"},_t=V({__name:"layout_header",setup(a){pe(p=>({"4576ef0a":i(C),c3773ce4:i(ze)}));const{appContext:{config:{globalProperties:e}}}=ue(),t=q(S.COLLAPSED),c=q(S.LOCALE);let o=z(Ye.locale);function P(p){localStorage.setItem(oe,p),C.value=p}function v(p){localStorage.removeItem(oe),C.value=Ce}function A(){Se(),Ze().then(()=>{D.replace(`/login?redirect=${N.path}`)})}const y=z([]),b=qe(),R=q(S.LAYOUT_ROUTE_KEY),x=p=>{b.mesh=p,R()};je(async()=>{const{data:p}=await Xe();y.value=p});const M=Be();ae(o,p=>{Re(p)});const H=G([{label:Y(()=>e.$t("application")),value:"applications"},{label:Y(()=>e.$t("instance")),value:"instances"},{label:Y(()=>e.$t("service")),value:"services"}]),l=z(H[0].value),d=z(""),h=async()=>{const p={keywords:d.value},m=async(_,r)=>{const{data:{list:w}}=await _(p);O.value=w.map(T=>({label:T[r],value:T[r]}))};switch(l.value){case"ip":break;case"applications":await m(Ge,"appName");break;case"instances":await m(Qe,"name");break;case"services":await m(Ve,"serviceName");break}};ae(l,async p=>{await h()});const O=z([]),K=Ke.debounce(h,300),D=k(),N=X(),F=()=>{D.replace(`/resources/${l.value}/list?query=${d.value}`)},E=()=>{};return(p,m)=>{const _=u("a-flex"),r=u("a-select-option"),w=u("a-select"),T=u("a-auto-complete"),ge=u("a-button"),_e=u("a-input-group"),ve=u("a-form-item"),he=u("a-form"),Oe=u("a-segmented"),Pe=u("color-picker"),ye=u("a-popover"),be=u("a-avatar"),xe=u("a-menu-item"),Ae=u("a-menu"),Me=u("a-dropdown"),De=u("a-layout-header");return g(),B("div",dt,[n(De,{class:"header"},{default:s(()=>[n(_,{style:{height:"100%"},justify:"space-between",align:"center"},{default:s(()=>[n(_,null,{default:s(()=>[i(t)?(g(),j(i(nt),{key:0,class:"trigger",onClick:m[0]||(m[0]=()=>t.value=!i(t))})):(g(),j(i(We),{key:1,class:"trigger",onClick:m[1]||(m[1]=()=>t.value=!i(t))}))]),_:1}),pt,n(_,{gap:20},{default:s(()=>[n(_e,{onKeyup:Ue(F,["enter"]),class:"search-group",compact:""},{default:s(()=>[n(w,{value:l.value,"onUpdate:value":m[2]||(m[2]=f=>l.value=f),class:"select-type"},{default:s(()=>[(g(!0),B(J,null,me(H,f=>(g(),j(r,{value:f.value},{default:s(()=>[U(Q(f.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),n(T,{value:d.value,"onUpdate:value":m[3]||(m[3]=f=>d.value=f),class:"input-keywords",placeholder:p.$t("globalSearchTip"),options:O.value,onSelect:E,onSearch:i(K)},null,8,["value","placeholder","options","onSearch"]),n(ge,{icon:ie(i(Le)),class:"search-icon",onClick:F},null,8,["icon"])]),_:1}),n(he,{layout:"inline"},{default:s(()=>[n(ve,{class:"mesh-select-item",label:p.$t("registryCenter"),inline:""},{default:s(()=>[n(w,{class:"mesh-select",value:i(b).mesh,options:y.value.map(f=>({value:f.id,label:f.name})),onChange:x},null,8,["value","options"])]),_:1},8,["label"])]),_:1})]),_:1}),mt,n(_,{align:"center",gap:"middle"},{default:s(()=>[n(_,{align:"center"},{default:s(()=>[n(Oe,{value:i(o),"onUpdate:value":m[4]||(m[4]=f=>Fe(o)?o.value=f:o=f),options:i(c).opts},null,8,["value","options"])]),_:1}),n(_,{align:"center"},{default:s(()=>[n(Pe,{pureColor:i(C),onPureColorChange:P,format:"hex6",shape:"circle",useType:"pure"},null,8,["pureColor"]),n(ye,null,{content:s(()=>[U("reset the theme")]),default:s(()=>[n(i(de),{class:"reset-icon",icon:"material-symbols:reset-tv-outline",onClick:v})]),_:1})]),_:1}),n(_,{align:"center"},{default:s(()=>{var f,ne;return[n(Me,null,{overlay:s(()=>[n(Ae,null,{default:s(()=>[n(xe,{onClick:A},{default:s(()=>[ft]),_:1})]),_:1})]),default:s(()=>[n(be,{onClick:m[5]||(m[5]=()=>{})},{icon:s(()=>[n(i(ct))]),_:1})]),_:1}),L("span",gt,Q((ne=(f=i(M))==null?void 0:f.userinfo)==null?void 0:ne.username),1)]}),_:1})]),_:1})]),_:1})]),_:1})])}}}),vt=Z(_t,[["__scopeId","data-v-7db622e9"]]),ht={class:"__container_layout_bread"},Ot=V({__name:"layout_bread",setup(a){const e=X();k();let t=Y(()=>{var o;return(o=e.params)!=null&&o.pathId?e.params.pathId:""});const c=Y(()=>e.matched.slice(1).map((o,P)=>({name:o.name})));return(o,P)=>{const v=u("a-breadcrumb-item"),A=u("a-breadcrumb");return g(),B("div",ht,[n(A,null,{default:s(()=>[(g(!0),B(J,null,me(c.value,y=>(g(),j(v,null,{default:s(()=>[U(Q(o.$t(y.name)),1)]),_:2},1024))),256)),i(t)?(g(),j(v,{key:0},{default:s(()=>[U(Q(i(t)),1)]),_:1})):fe("",!0)]),_:1})])}}}),Pt=Z(Ot,[["__scopeId","data-v-97925c3f"]]),yt={class:"__container_layout_index"},bt={class:"logo"},xt=["src"],At=V({__name:"index",setup(a){pe(P=>({"1cdde0dc":i(C)}));const e=z(!1);se(S.COLLAPSED,e);const t=X(),c=z(t.fullPath),o=()=>{c.value=`${t.fullPath}-${Date.now()}`};return se(S.LAYOUT_ROUTE_KEY,o),(P,v)=>{const A=u("a-layout-sider"),y=u("router-view"),b=u("a-layout-content"),R=u("a-layout-footer"),x=u("a-layout");return g(),B("div",yt,[n(x,{style:{height:"100vh"}},{default:s(()=>[n(A,{width:"268",collapsed:e.value,"onUpdate:collapsed":v[0]||(v[0]=M=>e.value=M),theme:"light",trigger:null,collapsible:""},{default:s(()=>[L("div",bt,[L("img",{alt:"Dubbo Admin",src:i(it)},null,8,xt),e.value?fe("",!0):(g(),B(J,{key:0},[U("Dubbo Admin")],64))]),n(ut)]),_:1},8,["collapsed"]),n(x,null,{default:s(()=>[n(vt,{collapsed:e.value},null,8,["collapsed"]),n(Pt),n(b,{class:"layout-content"},{default:s(()=>[(g(),j(y,{key:c.value},{default:s(({Component:M})=>[n(Ee,{name:"slide-fade"},{default:s(()=>[(g(),j(Te(M)))]),_:2},1024)]),_:1}))]),_:1}),n(R,{class:"layout-footer"},{default:s(()=>[U("© 2024 The Apache Software Foundation. ")]),_:1})]),_:1})]),_:1})])}}}),Bt=Z(At,[["__scopeId","data-v-e6898f0d"]]);export{Bt as default}; ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-gIa2WffK.js diff --git a/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js b/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js deleted file mode 100644 index 89e2247b1..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js +++ /dev/null @@ -1,10 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-nvCr9_iI.js -import{X as $,af as J}from"./index-rt1yTeew.js";var M={exports:{}};/*! -======== -import{X as $,ad as J}from"./index-JtaswhjV.js";var M={exports:{}};/*! ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-mXj9VWUy.js - * clipboard.js v2.0.11 - * https://clipboardjs.com/ - * - * Licensed MIT © Zeno Rocha - */(function(x,O){(function(_,g){x.exports=g()})(J,function(){return function(){var T={686:function(s,u,t){t.d(u,{default:function(){return V}});var a=t(279),f=t.n(a),l=t(370),h=t.n(l),y=t(817),m=t.n(y);function d(i){try{return document.execCommand(i)}catch{return!1}}var v=function(n){var e=m()(n);return d("cut"),e},p=v;function E(i){var n=document.documentElement.getAttribute("dir")==="rtl",e=document.createElement("textarea");e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[n?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return e.style.top="".concat(r,"px"),e.setAttribute("readonly",""),e.value=i,e}var R=function(n,e){var r=E(n);e.container.appendChild(r);var o=m()(r);return d("copy"),r.remove(),o},j=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},r="";return typeof n=="string"?r=R(n,e):n instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(n==null?void 0:n.type)?r=R(n.value,e):(r=m()(n),d("copy")),r},L=j;function w(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(i)}var D=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.action,r=e===void 0?"copy":e,o=n.container,c=n.target,b=n.text;if(r!=="copy"&&r!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(c!==void 0)if(c&&w(c)==="object"&&c.nodeType===1){if(r==="copy"&&c.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(r==="cut"&&(c.hasAttribute("readonly")||c.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(b)return L(b,{container:o});if(c)return r==="cut"?p(c):L(c,{container:o})},F=D;function S(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(e){return typeof e}:S=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(i)}function H(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function N(i,n){for(var e=0;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(i){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(i)}function P(i,n){var e="data-clipboard-".concat(i);if(n.hasAttribute(e))return n.getAttribute(e)}var G=function(i){z(e,i);var n=B(e);function e(r,o){var c;return H(this,e),c=n.call(this),c.resolveOptions(o),c.listenClick(r),c}return I(e,[{key:"resolveOptions",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof o.action=="function"?o.action:this.defaultAction,this.target=typeof o.target=="function"?o.target:this.defaultTarget,this.text=typeof o.text=="function"?o.text:this.defaultText,this.container=S(o.container)==="object"?o.container:document.body}},{key:"listenClick",value:function(o){var c=this;this.listener=h()(o,"click",function(b){return c.onClick(b)})}},{key:"onClick",value:function(o){var c=o.delegateTarget||o.currentTarget,b=this.action(c)||"copy",C=F({action:b,container:this.container,target:this.target(c),text:this.text(c)});this.emit(C?"success":"error",{action:b,text:C,trigger:c,clearSelection:function(){c&&c.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(o){return P("action",o)}},{key:"defaultTarget",value:function(o){var c=P("target",o);if(c)return document.querySelector(c)}},{key:"defaultText",value:function(o){return P("text",o)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return L(o,c)}},{key:"cut",value:function(o){return p(o)}},{key:"isSupported",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],c=typeof o=="string"?[o]:o,b=!!document.queryCommandSupported;return c.forEach(function(C){b=b&&!!document.queryCommandSupported(C)}),b}}]),e}(f()),V=G},828:function(s){var u=9;if(typeof Element<"u"&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function a(f,l){for(;f&&f.nodeType!==u;){if(typeof f.matches=="function"&&f.matches(l))return f;f=f.parentNode}}s.exports=a},438:function(s,u,t){var a=t(828);function f(y,m,d,v,p){var E=h.apply(this,arguments);return y.addEventListener(d,E,p),{destroy:function(){y.removeEventListener(d,E,p)}}}function l(y,m,d,v,p){return typeof y.addEventListener=="function"?f.apply(null,arguments):typeof d=="function"?f.bind(null,document).apply(null,arguments):(typeof y=="string"&&(y=document.querySelectorAll(y)),Array.prototype.map.call(y,function(E){return f(E,m,d,v,p)}))}function h(y,m,d,v){return function(p){p.delegateTarget=a(p.target,m),p.delegateTarget&&v.call(y,p)}}s.exports=l},879:function(s,u){u.node=function(t){return t!==void 0&&t instanceof HTMLElement&&t.nodeType===1},u.nodeList=function(t){var a=Object.prototype.toString.call(t);return t!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in t&&(t.length===0||u.node(t[0]))},u.string=function(t){return typeof t=="string"||t instanceof String},u.fn=function(t){var a=Object.prototype.toString.call(t);return a==="[object Function]"}},370:function(s,u,t){var a=t(879),f=t(438);function l(d,v,p){if(!d&&!v&&!p)throw new Error("Missing required arguments");if(!a.string(v))throw new TypeError("Second argument must be a String");if(!a.fn(p))throw new TypeError("Third argument must be a Function");if(a.node(d))return h(d,v,p);if(a.nodeList(d))return y(d,v,p);if(a.string(d))return m(d,v,p);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function h(d,v,p){return d.addEventListener(v,p),{destroy:function(){d.removeEventListener(v,p)}}}function y(d,v,p){return Array.prototype.forEach.call(d,function(E){E.addEventListener(v,p)}),{destroy:function(){Array.prototype.forEach.call(d,function(E){E.removeEventListener(v,p)})}}}function m(d,v,p){return f(document.body,d,v,p)}s.exports=l},817:function(s){function u(t){var a;if(t.nodeName==="SELECT")t.focus(),a=t.value;else if(t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){var f=t.hasAttribute("readonly");f||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),f||t.removeAttribute("readonly"),a=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var l=window.getSelection(),h=document.createRange();h.selectNodeContents(t),l.removeAllRanges(),l.addRange(h),a=l.toString()}return a}s.exports=u},279:function(s){function u(){}u.prototype={on:function(t,a,f){var l=this.e||(this.e={});return(l[t]||(l[t]=[])).push({fn:a,ctx:f}),this},once:function(t,a,f){var l=this;function h(){l.off(t,h),a.apply(f,arguments)}return h._=a,this.on(t,h,f)},emit:function(t){var a=[].slice.call(arguments,1),f=((this.e||(this.e={}))[t]||[]).slice(),l=0,h=f.length;for(l;l{const O=(x==null?void 0:x.appendToBody)===void 0?!0:x.appendToBody;return{toClipboard(T,_){return new Promise((g,s)=>{const u=document.createElement("button"),t=new Q(u,{text:()=>T,action:()=>"copy",container:_!==void 0?_:document.body});t.on("success",a=>{t.destroy(),g(a)}),t.on("error",a=>{t.destroy(),s(a)}),O&&document.body.appendChild(u),u.click(),O&&document.body.removeChild(u)})}}};export{q as u}; diff --git a/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js b/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js deleted file mode 100644 index d79f4e84c..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js +++ /dev/null @@ -1,55 +0,0 @@ -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-rD-ZU8dN.js -import{X as ip,d as vk,v as gk,a as yk,r as Bv,D as mk,c as bf,j as Qo,t as xf,n as yi,b as Fn,w as On,e as ho,P as Fv,o as po,L as zv,M as Gv,J as Yv,I as Wv,f as Hv,p as bk,h as xk,_ as wk}from"./index-rt1yTeew.js";import{g as Ok,a as Sk}from"./serverInfo-T8wz3JrY.js";import"./request-vlI2kaaR.js";const _b=()=>[["cartesian"]];_b.props={};function _k(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const Mb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),_k(n.startAngle,n.endAngle))},Cs=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mb(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};Cs.props={};const ap=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ap.props={transform:!0};const Mk=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},Eb=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mk(t);return[...ap(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};Eb.props={};const Pb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},op=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Pb(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};op.props={};const sp=()=>[["parallel",0,1,0,1]];sp.props={};const Ab=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];Ab.props={transform:!0};const kb=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...sp(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};kb.props={};const Tb=({value:t})=>e=>e.map(()=>t);Tb.props={};const Cb=({value:t})=>e=>e.map(t);Cb.props={};const Lb=({value:t})=>e=>e.map(n=>n[t]);Lb.props={};const Nb=({value:t})=>()=>t;Nb.props={};var fl=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const Ve=function(t){return typeof t=="function"};var nt=function(t){return t==null},Ek={}.toString,Ls=function(t,e){return Ek.call(t)==="[object "+e+"]"};const Le=function(t){return Array.isArray?Array.isArray(t):Ls(t,"Array")},ki=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function cp(t,e){if(t){var n;if(Le(t))for(var r=0,i=t.length;rn?n:t},de=function(t){return Ls(t,"Number")},Tk=1e-5;function Fo(t,e,n){return n===void 0&&(n=Tk),Math.abs(t-e)r&&(n=a,r=o)}return n}},Lk=function(t,e){if(Le(t)){for(var n,r=1/0,i=0;ii&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}const Ik=function(t,e,n){if(n===void 0&&(n=128),!Ve(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l},wf=function(){};function Uv(t){return nt(t)?0:fl(t)?t.length:Object.keys(t).length}var Zt=1e-6,he=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function Ja(){var t=new he(9);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Gk(t){var e=new he(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Yk(t,e,n,r,i,a,o,s,c){var l=new he(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Wk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*o-s*l,d=-u*a+s*c,h=l*a-o*c,p=n*f+r*d+i*h;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*a)*p,t[6]=h*p,t[7]=(-l*n+r*c)*p,t[8]=(o*n-r*a)*p,t):null}function Hk(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=d*r+h*o+p*l,t[1]=d*i+h*s+p*u,t[2]=d*a+h*c+p*f,t[3]=v*r+g*o+y*l,t[4]=v*i+g*s+y*u,t[5]=v*a+g*c+y*f,t[6]=m*r+b*o+x*l,t[7]=m*i+b*s+x*u,t[8]=m*a+b*c+x*f,t}function Vk(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Xk(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Uk(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}var qk=Hk;function Nt(){var t=new he(16);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function lp(t){var e=new he(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ri(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Kk(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v){var g=new he(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function Td(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Rs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function zb(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Wn(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*c-i*o,x=n*l-a*o,w=r*c-i*s,O=r*l-a*s,S=i*l-a*c,_=u*v-f*p,M=u*g-d*p,E=u*y-h*p,P=f*g-d*v,T=f*y-h*v,A=d*y-h*g,k=m*A-b*T+x*P+w*E-O*M+S*_;return k?(k=1/k,t[0]=(s*A-c*T+l*P)*k,t[1]=(i*T-r*A-a*P)*k,t[2]=(v*S-g*O+y*w)*k,t[3]=(d*O-f*S-h*w)*k,t[4]=(c*E-o*A-l*M)*k,t[5]=(n*A-i*E+a*M)*k,t[6]=(g*x-p*S-y*b)*k,t[7]=(u*S-d*x+h*b)*k,t[8]=(o*T-s*E+l*_)*k,t[9]=(r*E-n*T-a*_)*k,t[10]=(p*O-v*x+y*m)*k,t[11]=(f*x-u*O-h*m)*k,t[12]=(s*M-o*P-c*_)*k,t[13]=(n*P-r*M+i*_)*k,t[14]=(v*b-p*w-g*m)*k,t[15]=(u*w-f*b+d*m)*k,t):null}function Zk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(c*y-l*g)+v*(c*h-l*d),t[1]=-(r*(d*y-h*g)-f*(i*y-a*g)+v*(i*h-a*d)),t[2]=r*(c*y-l*g)-s*(i*y-a*g)+v*(i*l-a*c),t[3]=-(r*(c*h-l*d)-s*(i*h-a*d)+f*(i*l-a*c)),t[4]=-(o*(d*y-h*g)-u*(c*y-l*g)+p*(c*h-l*d)),t[5]=n*(d*y-h*g)-u*(i*y-a*g)+p*(i*h-a*d),t[6]=-(n*(c*y-l*g)-o*(i*y-a*g)+p*(i*l-a*c)),t[7]=n*(c*h-l*d)-o*(i*h-a*d)+u*(i*l-a*c),t[8]=o*(f*y-h*v)-u*(s*y-l*v)+p*(s*h-l*f),t[9]=-(n*(f*y-h*v)-u*(r*y-a*v)+p*(r*h-a*f)),t[10]=n*(s*y-l*v)-o*(r*y-a*v)+p*(r*l-a*s),t[11]=-(n*(s*h-l*f)-o*(r*h-a*f)+u*(r*l-a*s)),t[12]=-(o*(f*g-d*v)-u*(s*g-c*v)+p*(s*d-c*f)),t[13]=n*(f*g-d*v)-u*(r*g-i*v)+p*(r*d-i*f),t[14]=-(n*(s*g-c*v)-o*(r*g-i*v)+p*(r*c-i*s)),t[15]=n*(s*d-c*f)-o*(r*d-i*f)+u*(r*c-i*s),t}function Gb(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*a,m=e*s-r*a,b=e*c-i*a,x=n*s-r*o,w=n*c-i*o,O=r*c-i*s,S=l*p-u*h,_=l*v-f*h,M=l*g-d*h,E=u*v-f*p,P=u*g-d*p,T=f*g-d*v;return y*T-m*P+b*E+x*M-w*_+O*S}function $e(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],O=n[3];return t[0]=b*r+x*s+w*f+O*v,t[1]=b*i+x*c+w*d+O*g,t[2]=b*a+x*l+w*h+O*y,t[3]=b*o+x*u+w*p+O*m,b=n[4],x=n[5],w=n[6],O=n[7],t[4]=b*r+x*s+w*f+O*v,t[5]=b*i+x*c+w*d+O*g,t[6]=b*a+x*l+w*h+O*y,t[7]=b*o+x*u+w*p+O*m,b=n[8],x=n[9],w=n[10],O=n[11],t[8]=b*r+x*s+w*f+O*v,t[9]=b*i+x*c+w*d+O*g,t[10]=b*a+x*l+w*h+O*y,t[11]=b*o+x*u+w*p+O*m,b=n[12],x=n[13],w=n[14],O=n[15],t[12]=b*r+x*s+w*f+O*v,t[13]=b*i+x*c+w*d+O*g,t[14]=b*a+x*l+w*h+O*y,t[15]=b*o+x*u+w*p+O*m,t}function Ur(t,e,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15]):(o=e[0],s=e[1],c=e[2],l=e[3],u=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+u*i+p*a+e[12],t[13]=s*r+f*i+v*a+e[13],t[14]=c*r+d*i+g*a+e[14],t[15]=l*r+h*i+y*a+e[15]),t}function vl(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qk(t,e,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,f,d,h,p,v,g,y,m,b,x,w,O,S,_,M,E,P,T,A,k,C;return s0?(n[0]=(s*o+u*r+c*a-l*i)*2/f,n[1]=(c*o+u*i+l*r-s*a)*2/f,n[2]=(l*o+u*a+s*i-c*r)*2/f):(n[0]=(s*o+u*r+c*a-l*i)*2,n[1]=(c*o+u*i+l*r-s*a)*2,n[2]=(l*o+u*a+s*i-c*r)*2),Hb(t,e,n),t}function gl(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Aa(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,l,u),t}function yl(t,e){var n=new he(3);Aa(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,s=e[1]*i,c=e[2]*a,l=e[4]*r,u=e[5]*i,f=e[6]*a,d=e[8]*r,h=e[9]*i,p=e[10]*a,v=o+u+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-c)/g,t[2]=(s-l)/g):o>u&&o>p?(g=Math.sqrt(1+o-u-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+l)/g,t[2]=(d+c)/g):u>p?(g=Math.sqrt(1+u-o-p)*2,t[3]=(d-c)/g,t[0]=(s+l)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-u)*2,t[3]=(s-l)/g,t[0]=(d+c)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function aT(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,l=a+a,u=o+o,f=i*c,d=i*l,h=i*u,p=a*l,v=a*u,g=o*u,y=s*c,m=s*l,b=s*u,x=r[0],w=r[1],O=r[2];return t[0]=(1-(p+g))*x,t[1]=(d+b)*x,t[2]=(h-m)*x,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(h+m)*O,t[9]=(v-y)*O,t[10]=(1-(f+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function zo(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],l=a+a,u=o+o,f=s+s,d=a*l,h=a*u,p=a*f,v=o*u,g=o*f,y=s*f,m=c*l,b=c*u,x=c*f,w=r[0],O=r[1],S=r[2],_=i[0],M=i[1],E=i[2],P=(1-(v+y))*w,T=(h+x)*w,A=(p-b)*w,k=(h-x)*O,C=(1-(d+y))*O,L=(g+m)*O,I=(p+b)*S,R=(g-m)*S,j=(1-(d+v))*S;return t[0]=P,t[1]=T,t[2]=A,t[3]=0,t[4]=k,t[5]=C,t[6]=L,t[7]=0,t[8]=I,t[9]=R,t[10]=j,t[11]=0,t[12]=n[0]+_-(P*_+k*M+I*E),t[13]=n[1]+M-(T*_+C*M+R*E),t[14]=n[2]+E-(A*_+L*M+j*E),t[15]=1,t}function dp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*c,v=a*o,g=a*s,y=a*c;return t[0]=1-f-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oT(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),l=1/(a-o);return t[0]=a*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a*2*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function Vb(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var sT=Vb;function cT(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function lT(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),l=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-((o-s)*c*.5),t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function Xb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*l,t[15]=1,t}var Ub=Xb;function qb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=a*l,t[15]=1,t}function Kb(t,e,n,r){var i,a,o,s,c,l,u,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],x=n[0],w=n[1],O=n[2];return Math.abs(p-x)0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=c*d-l*f,v=l*u-s*d,g=s*f-c*u;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-u*g,t[6]=u*v-f*p,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function fT(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dT(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hT(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Zb(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vT(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gT(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function yT(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],x=e[2],w=e[3],O=e[4],S=e[5],_=e[6],M=e[7],E=e[8],P=e[9],T=e[10],A=e[11],k=e[12],C=e[13],L=e[14],I=e[15];return Math.abs(n-m)<=Zt*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=Zt*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=Zt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-w)<=Zt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(o-O)<=Zt*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-S)<=Zt*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-_)<=Zt*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-M)<=Zt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=Zt*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(f-P)<=Zt*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(d-T)<=Zt*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-A)<=Zt*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-k)<=Zt*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-C)<=Zt*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=Zt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-I)<=Zt*Math.max(1,Math.abs(y),Math.abs(I))}var Qb=$e,mT=Zb;const bT=Object.freeze(Object.defineProperty({__proto__:null,add:hT,adjoint:Zk,clone:lp,copy:Ri,create:Nt,determinant:Gb,equals:yT,exactEquals:gT,frob:dT,fromQuat:dp,fromQuat2:iT,fromRotation:tT,fromRotationTranslation:Hb,fromRotationTranslationScale:aT,fromRotationTranslationScaleOrigin:zo,fromScaling:fp,fromTranslation:up,fromValues:Kk,fromXRotation:eT,fromYRotation:nT,fromZRotation:rT,frustum:oT,getRotation:yl,getScaling:Aa,getTranslation:gl,identity:Rs,invert:Wn,lookAt:Kb,mul:Qb,multiply:$e,multiplyScalar:pT,multiplyScalarAndAdd:vT,ortho:Ub,orthoNO:Xb,orthoZO:qb,perspective:sT,perspectiveFromFieldOfView:lT,perspectiveNO:Vb,perspectiveZO:cT,rotate:Qk,rotateX:Yb,rotateY:Wb,rotateZ:Jk,scale:vl,set:Td,str:fT,sub:mT,subtract:Zb,targetTo:uT,translate:Ur,transpose:zb},Symbol.toStringTag,{value:"Module"}));function yt(){var t=new he(3);return he!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function br(t){var e=new he(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function wr(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function St(t,e,n){var r=new he(3);return r[0]=t,r[1]=e,r[2]=n,r}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gn(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ba(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qv(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function xT(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Cd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function wT(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function Ti(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function nr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Qc(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function Ld(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function Oe(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function Jb(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function OT(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=i*l-a*c,f=a*s-r*l,d=r*c-i*s,h=i*d-a*f,p=a*u-r*d,v=r*f-i*u,g=o*2;return u*=g,f*=g,d*=g,h*=2,p*=2,v*=2,t[0]=s+u+h,t[1]=c+f+p,t[2]=l+d+v,t}function vo(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=Zt*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=Zt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=Zt*Math.max(1,Math.abs(i),Math.abs(s))}var Kv=wT,tx=wr;(function(){var t=yt();return function(e,n,r,i,a,o){var s,c;for(n||(n=3),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function ha(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}(function(){var t=da();return function(e,n,r,i,a,o){var s,c;for(n||(n=4),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;sZt?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Sf(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function ET(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function oc(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}var _f=ST,sc=_T,Zv=qr,ml=MT;(function(){var t=yt(),e=St(1,0,0),n=St(0,1,0);return function(r,i,a){var o=nr(i,a);return o<-.999999?(Qc(t,e,i),tx(t)<1e-6&&Qc(t,n,i),Ti(t,t),Hr(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Qc(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ml(r,r))}})();(function(){var t=ve(),e=ve();return function(n,r,i,a,o,s){return Of(t,r,o,s),Of(e,i,a,s),Of(n,t,e,2*s*(1-s)),n}})();(function(){var t=Ja();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ml(e,ET(e,t))}})();function PT(){var t=new he(2);return he!=Float32Array&&(t[0]=0,t[1]=0),t}function AT(t,e){var n=new he(2);return n[0]=t,n[1]=e,n}function kT(t,e){return t[0]=e[0],t[1]=e[1],t}function TT(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function CT(t,e){return t[0]*e[0]+t[1]*e[1]}function LT(t,e){return t[0]===e[0]&&t[1]===e[1]}(function(){var t=PT();return function(e,n,r,i,a,o){var s,c;for(n||(n=2),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ex(){for(var t=0,e=0,n=arguments.length;e7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function rx(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Go[n]===e.length-1&&"achlmqstvz".includes(n)})}function ix(t){return rx(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function ax(t){return ix(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}function Qv(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Go[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Go[n]))),!!Go[n]););}function RT(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function IT(t){return t>=48&&t<=57||t===43||t===45||t===46}function ea(t){return t>=48&&t<=57}function jT(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!ea(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function Jc(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(BT(i)&&(o===3||o===4)?RT(t):jT(t),t.err.length)return;t.data.push(t.param),Jc(t),t.index=t.max||!IT(n.charCodeAt(t.index)))break}Qv(t)}var zT=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function GT(t){if(rx(t))return[].concat(t);var e=new zT(t);for(Jc(e);e.index1&&(E=Math.sqrt(E),d*=E,h*=E);var P=d*d,T=h*h,A=(a===o?-1:1)*Math.sqrt(Math.abs((P*T-P*M*M-T*_*_)/(P*M*M+T*_*_)));O=A*d*M/h+(u+p)/2,S=A*-h*_/d+(f+v)/2,x=Math.asin(((f-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((v-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),x=uw&&(x-=Math.PI*2),!o&&w>x&&(w-=Math.PI*2)}var k=w-x;if(Math.abs(k)>g){var C=w,L=p,I=v;w=x+g*(o&&w>x?1:-1),p=O+d*Math.cos(w),v=S+h*Math.sin(w),m=hp(p,v,d,h,i,0,o,L,I,[w,C,O,S])}k=w-x;var R=Math.cos(x),j=Math.sin(x),D=Math.cos(w),$=Math.sin(w),B=Math.tan(k/4),F=4/3*d*B,Y=4/3*h*B,U=[u,f],K=[u+F*j,f-Y*R],V=[p+F*$,v-Y*D],W=[p,v];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],l)return K.concat(V,W,m);m=K.concat(V,W,m);for(var J=[],et=0,it=m.length;et=a)o={x:n,y:r};else{var s=Fr([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function tg(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function KT(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Id(t,e,s,c,l).point;var b=(t-s)/2,x=(e-c)/2,w={x:d(m)*b+f(m)*x,y:-f(m)*b+d(m)*x},O=Math.pow(w.x,2)/Math.pow(v,2)+Math.pow(w.y,2)/Math.pow(g,2);O>1&&(v*=h(O),g*=h(O));var S=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(w.y,2)-Math.pow(g,2)*Math.pow(w.x,2),_=Math.pow(v,2)*Math.pow(w.y,2)+Math.pow(g,2)*Math.pow(w.x,2),M=S/_;M=M<0?0:M;var E=(a!==o?1:-1)*h(M),P={x:E*(v*w.y/g),y:E*(-(g*w.x)/v)},T={x:d(m)*P.x-f(m)*P.y+(t+s)/2,y:f(m)*P.x+d(m)*P.y+(e+c)/2},A={x:(w.x-P.x)/v,y:(w.y-P.y)/g},k=tg({x:1,y:0},A),C={x:(-w.x-P.x)/v,y:(-w.y-P.y)/g},L=tg(A,C);!o&&L>0?L-=2*p:o&&L<0&&(L+=2*p),L%=2*p;var I=k+L*l,R=v*d(I),j=g*f(I),D={x:d(m)*R-f(m)*j+T.x,y:f(m)*R+d(m)*j+T.y};return D}function ZT(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,x=e,w=0,O=[b,x,w],S=[b,x],_=0,M={x:0,y:0},E=[{x:b,y:x}];m&&l<=0&&(M={x:b,y:x});for(var P=0;P<=y;P+=1){if(_=P/y,f=KT(t,e,n,r,i,a,o,s,c,_),b=f.x,x=f.y,h&&E.push({x:b,y:x}),v&&(w+=nn(S,[b,x])),S=[b,x],m&&w>=l&&l>O[2]){var T=(w-l)/(w-O[2]);M={x:S[0]*(1-T)+O[0]*T,y:S[1]*(1-T)+O[1]*T}}O=[b,x,w]}return m&&l>=w&&(M={x:s,y:c}),{length:w,point:M,min:{x:Math.min.apply(null,E.map(function(A){return A.x})),y:Math.min.apply(null,E.map(function(A){return A.y}))},max:{x:Math.max.apply(null,E.map(function(A){return A.x})),y:Math.max.apply(null,E.map(function(A){return A.y}))}}}function QT(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function ox(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,x=0,w=[m,b,x],O=[m,b],S=0,_={x:0,y:0},M=[{x:m,y:b}];y&&c<=0&&(_={x:m,y:b});for(var E=0;E<=g;E+=1){if(S=E/g,u=QT(t,e,n,r,i,a,o,s,S),m=u.x,b=u.y,d&&M.push({x:m,y:b}),p&&(x+=nn(O,[m,b])),O=[m,b],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);_={x:O[0]*(1-P)+w[0]*P,y:O[1]*(1-P)+w[1]*P}}w=[m,b,x]}return y&&c>=x&&(_={x:o,y:s}),{length:x,point:_,min:{x:Math.min.apply(null,M.map(function(T){return T.x})),y:Math.min.apply(null,M.map(function(T){return T.y}))},max:{x:Math.max.apply(null,M.map(function(T){return T.x})),y:Math.max.apply(null,M.map(function(T){return T.y}))}}}function JT(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function t5(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],x=[g,y],w=0,O={x:0,y:0},S=[{x:g,y}];v&&o<=0&&(O={x:g,y});for(var _=0;_<=p;_+=1){if(w=_/p,c=JT(t,e,n,r,i,a,w),g=c.x,y=c.y,u&&S.push({x:g,y}),d&&(m+=nn(x,[g,y])),x=[g,y],v&&m>=o&&o>b[2]){var M=(m-o)/(m-b[2]);O={x:x[0]*(1-M)+b[0]*M,y:x[1]*(1-M)+b[1]*M}}b=[g,y,m]}return v&&o>=m&&(O={x:i,y:a}),{length:m,point:O,min:{x:Math.min.apply(null,S.map(function(E){return E.x})),y:Math.min.apply(null,S.map(function(E){return E.y}))},max:{x:Math.max.apply(null,S.map(function(E){return E.x})),y:Math.max.apply(null,S.map(function(E){return E.y}))}}}function sx(t,e,n){for(var r,i,a,o,s,c,l=bl(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],x=[],w=0,O={x:0,y:0},S=O,_=O,M=O,E=0,P=0,T=l.length;P=e&&(M=_),x.push(S),b.push(O),E+=w,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=E&&(M={x:p,y:v}),{length:E,point:M,min:{x:Math.min.apply(null,b.map(function(A){return A.x})),y:Math.min.apply(null,b.map(function(A){return A.y}))},max:{x:Math.max.apply(null,x.map(function(A){return A.x})),y:Math.max.apply(null,x.map(function(A){return A.y}))}}}function e5(t,e){return sx(t,void 0,z(z({},e),{bbox:!1,length:!0})).length}function n5(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function r5(t,e){var n=t.length-1,r=[],i=0,a=0,o=n5(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=nn(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function i5(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function a5(t){var e=0,n=0,r=0;return Rd(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=i5(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function eg(t){return a5(t)>=0}function o5(t,e,n){return sx(t,e,z(z({},n),{bbox:!1,length:!0})).point}function s5(t,e){e===void 0&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),o=Fr(n,r,e),s=Fr(r,i,e),c=Fr(i,a,e),l=Fr(o,s,e),u=Fr(s,c,e),f=Fr(l,u,e);return[["C"].concat(o,l,f),["C"].concat(u,c,a)]}function ng(t){return t.map(function(e,n,r){var i=n&&r[n-1].slice(-2).concat(e.slice(1)),a=n?ox(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?s5(i):[e,e]:o=[e],{s:e,ss:o,l:a}})}function cx(t,e,n){var r=ng(t),i=ng(e),a=r.length,o=i.length,s=r.filter(function(g){return g.l}).length,c=i.filter(function(g){return g.l}).length,l=r.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/s||0,u=i.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/c||0,f=n||Math.max(a,o),d=[l,u],h=[f-a,f-o],p=0,v=[r,i].map(function(g,y){return g.l===f?g.map(function(m){return m.s}):g.map(function(m,b){return p=b&&h[y]&&m.l>=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:cx(v[0],v[1],f)}function rg(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function Wt(t,e){if(t!==null)return{type:"column",value:t,field:e}}function yu(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function xl(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function c5(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function Kr(t,e){const n=[];for(const r of t)n[r]=e;return n}function Ot(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function ts(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=Ot(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Is(t){return t instanceof Date?!1:typeof t=="object"}const js=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y1:yu(Kr(t,0))}})]};js.props={};function oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function l5(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ca(t){let e,n,r;t.length!==2?(e=oe,n=(s,c)=>oe(t(s),c),r=(s,c)=>t(s)-c):(e=t===oe||t===l5?t:u5,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function u5(){return 0}function jd(t){return t===null?NaN:+t}function*f5(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const lx=Ca(oe),d5=lx.right,h5=lx.left,p5=Ca(jd).center;function ux(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function v5(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function fx(t,e){const n=v5(t,e);return n&&Math.sqrt(n)}function Mr(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let g5=class extends Map{constructor(e,n=b5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(ig(this,e))}has(e){return super.has(ig(this,e))}set(e,n){return super.set(y5(this,e),n)}delete(e){return super.delete(m5(this,e))}};function ig({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function y5({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m5({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function b5(t){return t!==null&&typeof t=="object"?t.valueOf():t}function es(t){return t}function te(t,...e){return mu(t,es,es,e)}function pp(t,...e){return mu(t,Array.from,es,e)}function vp(t,e,...n){return mu(t,es,e,n)}function dx(t,e,...n){return mu(t,Array.from,e,n)}function mu(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new g5,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}function x5(t,e){return Array.from(e,n=>t[n])}function Er(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=ns(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>ns(n[i],n[a]))),x5(t,r)}return t.sort(hx(n))}function hx(t=oe){if(t===oe)return ns;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function ns(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function w5(t,e,n){return(e.length!==2?Er(vp(t,e,n),([r,i],[a,o])=>oe(i,o)||oe(r,a)):Er(te(t,n),([r,i],[a,o])=>e(i,o)||oe(r,a))).map(([r])=>r)}var O5=Array.prototype,S5=O5.slice;function Ef(t){return()=>t}const _5=Math.sqrt(50),M5=Math.sqrt(10),E5=Math.sqrt(2);function wl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=_5?10:a>=M5?5:a>=E5?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function k5(t){return Math.max(1,Math.ceil(Math.log(ux(t))/Math.LN2)+1)}function T5(){var t=es,e=Mr,n=k5;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Mr){const w=Dd(f,d,x);isFinite(w)&&(w>0?d=(Math.floor(d/w)+1)*w:w<0&&(d=(Math.ceil(d*-w)+1)/-w))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;a=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function to(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bu(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function gp(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?ns:hx(i);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));gp(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(go(t,n,e),i(t[r],a)>0&&go(t,n,r);o0;)--s}i(t[n],a)===0?go(t,n,s):(++s,go(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function go(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function C5(t,e=oe){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?oe(o,i)>0:oe(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function xu(t,e,n){if(t=Float64Array.from(f5(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return bn(t);if(e>=1)return Ct(t);var r,i=(r-1)*e,a=Math.floor(i),o=Ct(gp(t,a).subarray(0,a+1)),s=bn(t.subarray(a+1));return o+(s-o)*(i-a)}}function L5(t,e,n=jd){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>jd(n(t[c],c,t))),e<=0)return bu(r);if(e>=1)return to(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return gp(i,o,0,a,(s,c)=>ns(r[s],r[c])),o=C5(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function N5(t,e,n){const r=ux(t),i=fx(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function rs(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function yp(t,e){return xu(t,.5,e)}function R5(t,e){return L5(t,.5,e)}function*I5(t){for(const e of t)yield*e}function px(t){return Array.from(I5(t))}function pa(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r(r,...i)=>n(e(r,...i),...i),ji)}function D5(t){return t.reduce((e,n)=>r=>j5(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),ji)}function bp(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function La(t=""){throw new Error(t)}function xp(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function zt(t){return t!=null&&!Number.isNaN(t)}function $5(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function B5(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function Q(t,e){return vx(t,e)||{}}function vx(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[Db(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function F5(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function Pf(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function ag(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function is(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function Lr(t){return t===null||t===!1}function gx(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!Cr(a)||!Cr(t[i])?t[i]=a:gx(t[i],a,n,r+1)}return t}}function ai(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Ui(t){return t.map((e,n)=>n)}function z5(t){return t[0]}function yx(t){return t[t.length-1]}function G5(t){return Array.from(new Set(t))}function mx(t,e){const n=[[],[]];return t.forEach(r=>{n[e(r)?0:1].push(r)}),n}function bx(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function Y5(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...bx(t,n));return e}function oi(t,e,n){const{encode:r}=n;if(t===null)return[e];const i=W5(t).map(o=>{var s;return[o,(s=Ot(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>zt(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(te(e,a).values())}function xx(t){return Array.isArray(t)?X5(t):typeof t=="function"?V5(t):t==="series"?H5:t==="value"?U5:t==="sum"?q5:t==="maxIndex"?K5:()=>null}function wx(t,e){for(const n of t)n.sort(e)}function Ox(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function W5(t){return Array.isArray(t)?t:[t]}function H5(t,e,n){return Ds(r=>n[r])}function V5(t){return(e,n,r)=>Ds(i=>t(e[i]))}function X5(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:oe(e[i][s],e[a][s]),0)}function U5(t,e,n){return Ds(r=>e[r])}function q5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return Ds(o=>a.get(n[o]))}function K5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,to(s,c=>e[c])]));return Ds(o=>a.get(n[o]))}function Ds(t){return(e,n)=>oe(t(e),t(n))}const Sx=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=Ot(u,"y"),[p,v]=Ot(u,"y1"),[g]=o?ts(u,"series","color"):Ot(u,"color"),y=oi(e,s,c),b=xx(n)(l,d,g);b&&wx(y,b);const x=new Array(s.length),w=new Array(s.length),O=new Array(s.length),S=[],_=[];for(const A of y){r&&A.reverse();const k=p?+p[A[0]]:0,C=[],L=[];for(const F of A){const Y=O[F]=+d[F]-k;Y<0?L.push(F):Y>=0&&C.push(F)}const I=C.length>0?C:L,R=L.length>0?L:C;let j=C.length-1,D=0;for(;j>0&&d[I[j]]===0;)j--;for(;D0?B=x[F]=(w[F]=B)+Y:x[F]=w[F]=B}}const M=new Set(S),E=new Set(_),P=i==="y"?x:w,T=a==="y"?x:w;return[s,X({},c,{encode:{y0:yu(d,h),y:Wt(P,h),y1:Wt(T,v)},style:Object.assign({first:(A,k)=>M.has(k),last:(A,k)=>E.has(k)},f)})]}};Sx.props={};function yo(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function Z5(t){const e=t.getFullYear(),n=yo(t.getMonth()+1),r=yo(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${yo(a)}:${yo(o)}:${yo(s)}`:i}const wu=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Lr(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>Ot(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?Z5(u[l]):u[l]).join(", ")};return[n,X({},r,{tooltip:{title:c}})]}};wu.props={};const qi=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{x:yu(Kr(t,0))},scale:{x:{guide:null}}})]};qi.props={};const Ou=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y:yu(Kr(t,0))},scale:{y:{guide:null}}})]};Ou.props={};const _x=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{size:xl(Kr(t,3))}})]};_x.props={};var Q5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=Q5(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,X({},e,{encode:{key:Wt(o)}})]};Mx.props={};const wp=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=Ot(n,"color");return[t,X({},e,{encode:{series:Wt(a,o)}})]};wp.props={};const Ex=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{y:Wt(n)}})]};Ex.props={};const Px=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{x:Wt(n)}})]};Px.props={};const Ax=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=Ot(n,"y");return[t,X({},e,{encode:{y1:Wt([...i])}})]};Ax.props={};const kx=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=Ot(n,"x");return[t,X({},e,{encode:{x1:Wt([...i])}})]};kx.props={};const Tx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{x:Wt(r(n,0)),x1:Wt(r(n,1))}})]}return[t,e]};Tx.props={};const Cx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{y:Wt(r(n,0)),y1:Wt(r(n,1))}})]}return[t,e]};Cx.props={};const Su=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Lr(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,X({},r,{tooltip:{items:c}})]}};Su.props={};const Op=()=>(t,e)=>[t,X({scale:{x:{padding:0},y:{padding:0}}},e)];Op.props={};var og=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=og(e,["data","style"]),{x:a,y:o}=r,s=og(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],X({},i,{data:[0],cartesian:!0,encode:{x:Wt([c]),y:Wt([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};_u.props={};const Lx=()=>(t,e)=>{const{style:n={}}=e;return[t,X({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};Lx.props={};const Mu=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Is))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,X({},e,{encode:{x:Wt(i),y:Wt(a)}})]};Mu.props={};const Nx=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,X({},e,{encode:{series:xl(Kr(t,void 0))}})]};Nx.props={};var J5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return J5(t,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:c,scale:l}=o,{series:u}=l,[f]=Ot(c,"y"),[d]=ts(c,"series","color"),h=Ox(d,u),p=oi(e,a,o),g=xx(r)(s,f,d);g&&wx(p,g);const y=new Array(a.length);for(const m of p){n&&m.reverse();for(let b=0;b{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,Ot(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(te(m,x=>g[x]).values());y.push(...b)}f=y}if(r){const[g]=Ot(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Kr(o,d)]:ts(c,"enterDuration",Kr(o,d)),[p]=ts(c,"enterDelay",Kr(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[x]);for(const x of m)v[x]=+p[x]+y;y+=b}return[o,X({},s,{encode:{enterDuration:xl(h),enterDelay:xl(v)}})]}};Ix.props={};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ibn(n,i=>r[+i]),max:(n,r)=>Ct(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>rs(n,i=>r[+i]),median:(n,r)=>yp(n,i=>r[+i]),sum:(n,r)=>Cn(n,i=>r[+i]),deviation:(n,r)=>fx(n,i=>r[+i])}[t]||Ct}const jx=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,s=t3(a,["x"]),c=Object.entries(s).filter(([p])=>p.startsWith("y")).map(([p])=>[p,Ot(a,p)[0]]),[,l]=c.find(([p])=>p==="y"),u=c.map(([p])=>[p,new Array(r.length)]),f=oi(e,r,i),d=e3(n);for(const p of f){const v=d(p,l);for(const g of p)for(let y=0;y[p,Wt(v,Ot(a,p)[1])]))},!h&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};jx.props={};function Na(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ol(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function n3(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}function Sp(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}const $d=Math.sqrt(50),Bd=Math.sqrt(10),Fd=Math.sqrt(2);function tl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=$d?10:a>=Bd?5:a>=Fd?2:1)*10**i:-(10**-i)/(a>=$d?10:a>=Bd?5:a>=Fd?2:1)}function sg(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=$d?i*=10:a>=Bd?i*=5:a>=Fd&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=tl(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=tl(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r},as=1e3,os=as*60,ss=os*60,Di=ss*24,Yo=Di*7,$x=Di*30,Bx=Di*365;function Fe(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i3=Fe(as,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getSeconds()),a3=Fe(os,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getMinutes()),o3=Fe(ss,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getHours()),s3=Fe(Di,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getDate()-1),Fx=Fe($x,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),c3=Fe(Yo,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Fx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),l3=Fe(Bx,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),zx={millisecond:r3,second:i3,minute:a3,hour:o3,day:s3,week:c3,month:Fx,year:l3},u3=Fe(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),f3=Fe(as,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getUTCSeconds()),d3=Fe(os,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getUTCMinutes()),h3=Fe(ss,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getUTCHours()),p3=Fe(Di,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getUTCDate()-1),Gx=Fe($x,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),v3=Fe(Yo,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Yo*e)},t=>{const e=Gx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),g3=Fe(Bx,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Yx={millisecond:u3,second:f3,minute:d3,hour:h3,day:p3,week:v3,month:Gx,year:g3};function y3(t){const e=t?Yx:zx,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function Wx(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=y3(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Sp(s,d,0,h,u);let v;if(p===h){const g=sg(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};var Hx=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},b3={}.toString,$s=function(t,e){return b3.call(t)==="[object "+e+"]"};const Vx=function(t){return $s(t,"Function")};var x3=function(t){return t==null};const Xx=function(t){return Array.isArray?Array.isArray(t):$s(t,"Array")},w3=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function O3(t,e){if(t){var n;if(Xx(t))for(var r=0,i=t.length;re=>-t(-e),_p=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?Zx(r):r},Mp=(t,e)=>{const n=t===Math.E?Math.exp:r=>t**r;return e?Zx(n):n},T3=(t,e,n,r)=>{const i=t<0,a=_p(r,i),o=Mp(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u},C3=t=>e=>{const n=t(e);return cs(n)?Math.round(n):n};function L3(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?C3(o):o;this.output=Na(l,c,i,r)},n.prototype.invert=void 0}}var Qx={exports:{}},N3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Jx={exports:{}},R3=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},I3=R3,j3=Array.prototype.concat,D3=Array.prototype.slice,ug=Jx.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};gn.to.keyword=function(t){return e2[t.slice(0,3)]};function Zr(t,e,n){return Math.min(Math.max(e,t),n)}function uc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var B3=Qx.exports;const F3=ip(B3);function kf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function z3(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=kf(o,a,e+1/3),c=kf(o,a,e),l=kf(o,a,e-1/3);return[s*255,c*255,l*255,i]}function fg(t){const e=F3.get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?z3(r):null}const Ra=(t,e)=>n=>t*(1-n)+e*n,G3=(t,e)=>{const n=fg(t),r=fg(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},Fs=(t,e)=>typeof t=="number"&&typeof e=="number"?Ra(t,e):typeof t=="string"&&typeof e=="string"?G3(t,e):()=>t,Y3=(t,e)=>{const n=Ra(t,e);return r=>Math.round(n(r))};function W3(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}let n2=class r2 extends zs{getDefaultOptions(){return{domain:[],range:[],unknown:Eu}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&pg(this.domainIndexMap,this.getDomain(),this.domainKey),vg({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&pg(this.rangeIndexMap,this.getRange(),this.rangeKey),vg({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=gg(n),this.rangeKey=gg(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new r2(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}};function U3(t){const e=Math.min(...t);return t.map(n=>n/e)}function q3(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function K3(t){return Math.round(t*1e12)/1e12}function Z3(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=q3(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=U3(l),m=y.reduce((T,A)=>T+A),b=g/m,x=new hg(e.map((T,A)=>{const k=y[A]*b;return[T,o?Math.floor(k):k]})),w=new hg(e.map((T,A)=>{const C=y[A]*b+v;return[T,o?Math.floor(C):C]})),O=Array.from(w.values()).reduce((T,A)=>T+A),_=(d-(O-O/c*i))*s,M=u+_;let E=o?Math.round(M):M;const P=new Array(c);for(let T=0;Td+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let Ia=class i2 extends n2{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Eu,flex:[]}}constructor(e){super(e)}clone(){return new i2(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=Q3({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}};const Bi=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=tl(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=0&&(c=1),1-s/(o-1)-n+c}function rC(t,e,n){const r=Kx(e);return 1-qx(e,t)/(r-1)-n+1}function iC(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function aC(t,e){return t>=e?2-(t-1)/(e-1):1}function oC(t,e,n,r){const i=e-t;return 1-.5*((e-r)**2+(t-n)**2)/(.1*i)**2}function sC(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function cC(){return 1}const Pp=(t,e,n=5,r=!0,i=J3,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||T<=t&&A>=e)&&(s.lmin=T,s.lmax=A,s.lstep=k,s.score=j)}}x+=1}y+=1}}c+=1}const l=mo(s.lmax),u=mo(s.lmin),f=mo(s.lstep),d=Math.floor(eC((l-u)/f))+1,h=new Array(d);h[0]=mo(u);for(let p=1;p{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Sp(t,l,1,r)-1,f=i[u],d=a[u];return Na(d,f)(l)}},mg=(t,e,n,r)=>(Math.min(t.length,e.length)>2?uC:lC)(t,e,r?Y3:n);let Pu=class extends zs{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Ra,tickCount:5}}map(e){return Sl(e)?this.output(e):this.options.unknown}invert(e){return Sl(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return Dx}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?n3(i[0],i[a-1]):$i}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=mg(r.map(e),i,o,a);this.output=Na(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=mg(a,i.map(e),Ra);this.input=Na(n,r,o)}},Yt=class c2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5}}chooseTransforms(){return[$i,$i]}clone(){return new c2(this.options)}},l2=class u2 extends Ia{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Eu,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new u2(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}};const fC=t=>e=>e<0?-((-e)**t):e**t,dC=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),hC=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);let f2=class d2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Fs,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[$i,$i];const n=e===.5?hC:fC(e),r=dC(e);return[n,r]}clone(){return new d2(this.options)}},pC=class h2 extends f2{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new h2(this.options)}},Au=class p2 extends zs{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!Sl(e))return this.options.unknown;const n=Sp(this.thresholds,e,0,this.n);return this.options.range[n]}invert(e){const{range:n}=this.options,r=n.indexOf(e),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new p2(this.options)}rescale(){const{domain:e,range:n}=this.options;this.n=Math.min(e.length,n.length-1),this.thresholds=e}};const vC=(t,e,n,r=10)=>{const i=t<0,a=Mp(r,i),o=_p(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2a-o);const i=[];for(let a=1;a3?0:(t-t%10!==10?1:0)*t%10]}},_C=zd({},SC),Qe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+Qe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Qe(Math.floor(Math.abs(e)/60),2)+":"+Qe(Math.abs(e)%60,2)}},bg={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},EC=function(t,e,n){if(e===void 0&&(e=bg.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=bg[e]||e;var r=[];e=e.replace(xC,function(a,o){return r.push(o),"@@@"});var i=zd(zd({},_C),n);return e=e.replace(bC,function(a){return MC[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};const PC=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u};function AC(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}let kC=class S2 extends Pu{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:PC,interpolate:Ra,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return m3}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?Yx:zx,i=n?AC:$i;return a=>EC(i(a),e||W3(a,r))}clone(){return new S2(this.options)}};var TC=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Gd;function CC(t){return[t(0),t(1)]}const LC=t=>{const[e,n]=t;return Na(Ra(0,1),Ol(e,n))};let Yd=Gd=class extends Yt{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:$i,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}clone(){return new Gd(this.options)}};Yd=Gd=TC([L3(CC,LC)],Yd);function _l(t,e,n){if(t===null)return[-.5,.5];const r=Ox(t,e),a=new Ia({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function Ml(t,e,n){return e*(1-t)+n*t}const _2=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=Ot(s,"x"),[d]=Ot(s,"y"),h=_l(f,l,n),p=_l(d,u,r),v=a.map(()=>Ml(i(),...p)),g=a.map(()=>Ml(i(),...h));return[a,X({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Wt(v),dx:Wt(g)}})]}};_2.props={};const M2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=Ot(a,"x"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{x:{padding:.5}}},i,{encode:{dx:Wt(u)}})]}};M2.props={};const E2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=Ot(a,"y"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{y:{padding:.5}}},i,{encode:{dy:Wt(u)}})]}};E2.props={};var NC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,a=NC(i,["x"]),o=Object.entries(a).filter(([f])=>f.startsWith("y")).map(([f])=>[f,Ot(i,f)[0]]),s=o.map(([f])=>[f,new Array(n.length)]),c=oi(e,n,r),l=new Array(c.length);for(let f=0;fo.map(([,y])=>+y[g])),[p,v]=Mr(h);l[f]=(p+v)/2}const u=Math.max(...l);for(let f=0;f[f,Wt(d,Ot(i,f)[1])]))})]}};P2.props={};const A2=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=Ot(a,"y"),[s,c]=Ot(a,"y1");n?ts(a,"series","color"):Ot(a,"color");const l=oi(e,r,i),u=new Array(r.length);for(const f of l){const d=f.map(h=>+o[h]);for(let h=0;hy!==h));u[p]=o[p]>v?v:o[p]}}return[r,X({},i,{encode:{y1:Wt(u,c)}})]}};A2.props={};function xg(t,e){return[t[0]]}function RC(t,e){const n=t.length-1;return[t[n]]}function IC(t,e){const n=to(t,r=>e[r]);return[t[n]]}function jC(t,e){const n=bu(t,r=>e[r]);return[t[n]]}function DC(t){return typeof t=="function"?t:{first:xg,last:RC,max:IC,min:jC}[t]||xg}const ku=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=oi(e,i,a),[c]=Ot(o,n),l=DC(r);return[s.flatMap(u=>l(u,c)),a]}};ku.props={};var $C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=$C(t,["selector"]);return ku(Object.assign({channel:"x",selector:e},n))};k2.props={};var BC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=BC(t,["selector"]);return ku(Object.assign({channel:"y",selector:e},n))};T2.props={};var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function zC(t){if(typeof t=="function")return[t,null];const n={mean:GC,max:WC,count:VC,first:UC,last:qC,sum:XC,min:HC,median:YC}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function GC(){const t=(n,r)=>rs(n,i=>+r[i]),e=si("mean");return[t,e]}function YC(){const t=(n,r)=>yp(n,i=>+r[i]),e=si("median");return[t,e]}function WC(){const t=(n,r)=>Ct(n,i=>+r[i]),e=si("max");return[t,e]}function HC(){const t=(n,r)=>bn(n,i=>+r[i]),e=si("min");return[t,e]}function VC(){const t=(n,r)=>n.length,e=si("count");return[t,e]}function XC(){const t=(n,r)=>Cn(n,i=>+r[i]),e=si("sum");return[t,e]}function UC(){const t=(n,r)=>r[n[0]],e=si("first");return[t,e]}function qC(){const t=(n,r)=>r[n[n.length-1]],e=si("last");return[t,e]}const Ap=(t={})=>{const{groupBy:e}=t,n=FC(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=Ot(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=zC(p),[y,m]=Ot(o,h),b=c(m,p),x=s.map(w=>v(w,y??a));return[h,Object.assign(Object.assign({},c5(x,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=Ot(o,h),g=s.map(y=>p[y[0]]);return[h,Wt(g,v)]}),f=s.map(h=>a[h[0]]);return[Ui(s),X({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};Ap.props={};var KC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=KC(t,["channels"]),r=(i,a)=>oi(e,i,a);return Ap(Object.assign(Object.assign({},n),{groupBy:r}))};Gs.props={};const C2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));C2.props={};const L2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));L2.props={};const N2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["color"]}));N2.props={};var R2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Ct(o,s=>+a[s]);if(i==="min")return o=>bn(o,s=>+a[s]);if(i==="sum")return o=>Cn(o,s=>+a[s]);if(i==="median")return o=>yp(o,s=>+a[s]);if(i==="mean")return o=>rs(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function QC(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=Ot(a,i),s=Er(t,c=>o[c]);return r&&s.reverse(),[s,e]}function JC(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function tL(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=R2(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=Ot(c,o),d=ZC(o,s,c),h=JC(t,f,u),p=w5(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,X(e,{scale:{[o]:{domain:g}}})]}const Tu=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=R2(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?tL(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):QC(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};Tu.props={};const I2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"x"}));I2.props={};const j2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"color"}));j2.props={};const D2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"y"}));D2.props={};function eL(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function nL(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Cn(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const $2=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=Ot(s,"x"),l=e?eL(o,e):Ot(s,n)[0],u=nL(r,l),f=dx(i,u,d=>c[d]).map(d=>d[1]);return[i,X({},a,{scale:{x:{flex:f}}})]}};$2.props={};function se([t,e],[n,r]){return[t-n,e-r]}function fc([t,e],[n,r]){return[t+n,e+r]}function Jt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Nn([t,e]){return Math.atan2(e,t)}function ja([t,e]){return Nn([t,e])+Math.PI/2}function B2(t,e){const n=Nn(t),r=Nn(e);return n{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[x,w,O,S]=kp(m),_=n==="col"?b%u:Math.floor(b/d),M=n==="col"?Math.floor(b/u):b%d,E=_*f,P=(d-M-1)*f+p,T=(f-e)/O,A=(f-e)/S,k=E-x+g*_+1/2*e,C=P-w-v*M-y+1/2*e;return`translate(${k}, ${C}) scale(${T}, ${A})`})}}const z2=t=>(e,n)=>[e,X({},n,{modifier:rL(t),axis:!1})];z2.props={};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=iL(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=Ot(c,p);return v}),u=Q(r,wg),f=o.filter(p=>l.every(v=>zt(v[p]))),d=[...e.map(p=>{const[v]=Ot(c,p);return v}).filter(zt).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||aL(g),m=T5().thresholds(y).value(x=>+g[x])(f),b=new Map(m.flatMap(x=>{const{x0:w,x1:O}=x,S=`${w},${O}`;return x.map(_=>[_,S])}));return i[p]=b,x=>b.get(x)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(te(f,h).values())};return Ap(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(wg)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Tp.props={};const G2=(t={})=>{const{thresholds:e}=t;return Tp(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};G2.props={};function oL(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function sL(t){if(typeof t=="function")return t;if(t==="lttb")return oL;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[bu(r,o=>a[o])]],max:(r,i,a)=>[r[to(r,o=>a[o])]],median:(r,i,a)=>[r[R5(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return cL(r,s).flatMap(l=>n(l,i,a))}}function cL(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=sL(e);return(a,o)=>{const{encode:s}=o,c=oi(r,a,o),[l]=Ot(s,"x"),[u]=Ot(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};Y2.props={};function lL(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const W2=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=Ot(r,u);if(!d)return null;const[h,p=!0]=lL(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(zt);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,X({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};W2.props={};function Ut(t){return function(){return t}}const Og=Math.abs,Re=Math.atan2,mi=Math.cos,uL=Math.max,Tf=Math.min,qn=Math.sin,va=Math.sqrt,Ie=1e-12,ls=Math.PI,El=ls/2,fL=2*ls;function dL(t){return t>1?0:t<-1?ls:Math.acos(t)}function Sg(t){return t>=1?El:t<=-1?-El:Math.asin(t)}const Wd=Math.PI,Hd=2*Wd,_i=1e-6,hL=Hd-_i;function H2(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return H2;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i_i)if(!(Math.abs(f*c-l*u)>_i)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Wd-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>_i&&this._append`L${e+x*u},${n+x*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+w*c},${this._y1=n+w*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>_i||Math.abs(this._y1-u)>_i)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Hd+Hd),d>hL?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>_i&&this._append`A${r},${r},0,${+(d>=Wd)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jn(){return new Cp}jn.prototype=Cp.prototype;function Lp(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Cp(e)}function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function yL(t){return t.startAngle}function mL(t){return t.endAngle}function bL(t){return t&&t.padAngle}function xL(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+C*C&&(_=E,M=P),{cx:_,cy:M,x01:-u,y01:-f,x11:_*(i/w-1),y11:M*(i/w-1)}}function Cu(){var t=vL,e=gL,n=Ut(0),r=null,i=yL,a=mL,o=bL,s=null,c=Lp(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-El,v=a.apply(this,arguments)-El,g=Og(v-p),y=v>p;if(s||(s=u=c()),hIe))s.moveTo(0,0);else if(g>fL-Ie)s.moveTo(h*mi(p),h*qn(p)),s.arc(0,0,h,p,v,!y),d>Ie&&(s.moveTo(d*mi(v),d*qn(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,x=p,w=v,O=g,S=g,_=o.apply(this,arguments)/2,M=_>Ie&&(r?+r.apply(this,arguments):va(d*d+h*h)),E=Tf(Og(h-d)/2,+n.apply(this,arguments)),P=E,T=E,A,k;if(M>Ie){var C=Sg(M/d*qn(_)),L=Sg(M/h*qn(_));(O-=C*2)>Ie?(C*=y?1:-1,x+=C,w-=C):(O=0,x=w=(p+v)/2),(S-=L*2)>Ie?(L*=y?1:-1,m+=L,b-=L):(S=0,m=b=(p+v)/2)}var I=h*mi(m),R=h*qn(m),j=d*mi(w),D=d*qn(w);if(E>Ie){var $=h*mi(b),B=h*qn(b),F=d*mi(x),Y=d*qn(x),U;if(gIe?T>Ie?(A=dc(F,Y,I,R,h,T,y),k=dc($,B,j,D,h,T,y),s.moveTo(A.cx+A.x01,A.cy+A.y01),TIe)||!(O>Ie)?s.lineTo(j,D):P>Ie?(A=dc(j,D,$,B,d,-P,y),k=dc(I,R,F,Y,d,-P,y),s.lineTo(A.cx+A.x01,A.cy+A.y01),P=h;--p)s.point(b[p],x[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),x[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):x[d]))}if(m)return s=null,m+""||null}function u(){return Jr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ut(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ut(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ut(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var K2=Np(Ys);function Z2(t){this._curve=t}Z2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Np(t){function e(n){return new Z2(t(n))}return e._curve=t,e}function Mo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Np(n)):e()._curve},t}function wL(){return Mo(Jr().curve(K2))}function OL(){var t=Vd().curve(K2),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mo(n())},delete t.lineX0,t.lineEndAngle=function(){return Mo(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mo(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mo(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Np(o)):e()._curve},t}function Da(){}function Xd(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rp(t,e){this._context=t,this._k=(1-e)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Rp(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ip(t,e){this._context=t,this._k=(1-e)/6}Ip.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Ip(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Q2(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ie){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ie){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function J2(t,e){this._context=t,this._alpha=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return e?new J2(r,e):new Rp(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function tw(t,e){this._context=t,this._alpha=e}tw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ew=function t(e){function n(r){return e?new tw(r,e):new Ip(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function nw(t){this._context=t}nw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function jp(t){return new nw(t)}function _g(t){return t<0?-1:1}function Mg(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(_g(a)+_g(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Eg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cf(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Pl(t){this._context=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cf(this,this._t0,Eg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cf(this,Eg(this,n=Mg(this,t,e)),n);break;default:Cf(this,this._t0,n=Mg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rw(t){this._context=new iw(t)}(rw.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)};function iw(t){this._context=t}iw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function aw(t){return new Pl(t)}function ow(t){return new rw(t)}function Lu(t,e){this._context=t,this._t=e}Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sw(t){return new Lu(t,.5)}function cw(t){return new Lu(t,0)}function lw(t){return new Lu(t,1)}function qt(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Ht(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function Nu(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function uw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function Ru(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function fw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function SL(t){return Ru(t)&&Ht(t)}function eo(t){return uw(t)||Ht(t)}function _L(t){return Ht(t)&&qt(t)}function ML(t){if(eo(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Iu(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function Dp(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function EL(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}var dw={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function a(c,l,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||c,d),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?hc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?hc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kL.exec(t))?new yn(e[1],e[2],e[3],1):(e=TL.exec(t))?new yn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=CL.exec(t))?hc(e[1],e[2],e[3],e[4]):(e=LL.exec(t))?hc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,1):(e=RL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,e[4]):Pg.hasOwnProperty(t)?Tg(Pg[t]):t==="transparent"?new yn(NaN,NaN,NaN,0):null}function Tg(t){return new yn(t>>16&255,t>>8&255,t&255,1)}function hc(t,e,n,r){return r<=0&&(t=e=n=NaN),new yn(t,e,n,r)}function jL(t){return t instanceof Ws||(t=ju(t)),t?(t=t.rgb(),new yn(t.r,t.g,t.b,t.opacity)):new yn}function DL(t,e,n,r){return arguments.length===1?jL(t):new yn(t,e,n,r??1)}function yn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Bp(yn,DL,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatRgb:Lg,toString:Lg}));function Cg(){return"#"+Lf(this.r)+Lf(this.g)+Lf(this.b)}function Lg(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Lf(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ng(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qn(t,e,n,r)}function pw(t){if(t instanceof Qn)return new Qn(t.h,t.s,t.l,t.opacity);if(t instanceof Ws||(t=ju(t)),!t)return new Qn;if(t instanceof Qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Qn(o,s,c,t.opacity)}function $L(t,e,n,r){return arguments.length===1?pw(t):new Qn(t,e,n,r??1)}function Qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Bp(Qn,$L,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new Qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new Qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yn(Nf(t>=240?t-240:t+120,i,r),Nf(t,i,r),Nf(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Nf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Pr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function vw(t,e){var n=Math.min.apply(Math,q([],N(t),!1)),r=Math.min.apply(Math,q([],N(e),!1)),i=Math.max.apply(Math,q([],N(t),!1)),a=Math.max.apply(Math,q([],N(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function BL(t,e,n){return Math.atan(-e/t*Math.tan(n))}function FL(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function zL(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function GL(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function YL(t,e,n,r,i,a,o){for(var s=BL(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=FL(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}var WL=1e-4;function gw(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,q([],N(t.concat([h])),!1)),i.apply(void 0,q([],N(e.concat([h])),!1))],v=Pr(c[0],c[1],p[0],p[1]);v=0&&v=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Fo(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function VL(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Rg(t,n,i,o),f=Rg(e,r,a,s),d=0;d=0?[i]:[]}function KL(t,e,n,r,i,a){var o=jg(t,n,i)[0],s=jg(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(qd(t,n,i,o)),s!==void 0&&l.push(qd(e,r,a,s)),vw(c,l)}function ZL(t,e,n,r,i,a,o,s){return gw([t,n,i],[e,r,a],o,s,qd)}function QL(t,e,n,r,i,a,o,s){var c=ZL(t,e,n,r,i,a,o,s);return Pr(c.x,c.y,o,s)}var JL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bw={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(JL,function(){function n(w,O,S,_,M){r(w,O,S||0,_||w.length-1,M||a)}function r(w,O,S,_,M){for(;_>S;){if(_-S>600){var E=_-S+1,P=O-S+1,T=Math.log(E),A=.5*Math.exp(2*T/3),k=.5*Math.sqrt(T*A*(E-A)/E)*(P-E/2<0?-1:1),C=Math.max(S,Math.floor(O-P*A/E+k)),L=Math.min(_,Math.floor(O+(E-P)*A/E+k));r(w,O,C,L,M)}var I=w[O],R=S,j=_;for(i(w,S,O),M(w[_],I)>0&&i(w,S,_);R0;)j--}M(w[S],I)===0?i(w,S,j):(j++,i(w,j,_)),j<=O&&(S=j+1),O<=j&&(_=j-1)}}function i(w,O,S){var _=w[O];w[O]=w[S],w[S]=_}function a(w,O){return wO?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var S=this.data,_=[];if(!m(O,S))return _;for(var M=this.toBBox,E=[];S;){for(var P=0;P=0&&E[S].children.length>this._maxEntries;)this._split(E,S),S--;this._adjustParentBBoxes(M,E,S)},o.prototype._split=function(O,S){var _=O[S],M=_.children.length,E=this._minEntries;this._chooseSplitAxis(_,E,M);var P=this._chooseSplitIndex(_,E,M),T=b(_.children.splice(P,_.children.length-P));T.height=_.height,T.leaf=_.leaf,c(_,this.toBBox),c(T,this.toBBox),S?O[S-1].children.push(T):this._splitRoot(_,T)},o.prototype._splitRoot=function(O,S){this.data=b([O,S]),this.data.height=O.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,S,_){for(var M,E=1/0,P=1/0,T=S;T<=_-S;T++){var A=l(O,0,T,this.toBBox),k=l(O,T,_,this.toBBox),C=g(A,k),L=h(A)+h(k);C=S;L--){var I=O.children[L];u(T,O.leaf?E(I):I),A+=p(T)}return A},o.prototype._adjustParentBBoxes=function(O,S,_){for(var M=_;M>=0;M--)u(S[M],O)},o.prototype._condense=function(O){for(var S=O.length-1,_=void 0;S>=0;S--)O[S].children.length===0?S>0?(_=O[S-1].children,_.splice(_.indexOf(O[S]),1)):this.clear():c(O[S],this.toBBox)};function s(w,O,S){if(!S)return O.indexOf(w);for(var _=0;_=w.minX&&O.maxY>=w.minY}function b(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(w,O,S,_,M){for(var E=[O,S];E.length;)if(S=E.pop(),O=E.pop(),!(S-O<=_)){var P=O+Math.ceil((S-O)/_/2)*_;n(w,P,O,S,M),E.push(O,P,P,S)}}return o})})(bw);var tN=bw.exports,G;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(G||(G={}));var wa;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(wa||(wa={}));var ci=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),eN=function(){function t(e){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.plugins=[],this.config=z({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function na(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Rf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function el(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Dg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function nN(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function rN(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Oa(t){return t===void 0?0:t>360||t<-360?t%360:t}function We(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?br(t):de(t)?St(t,e,n):St(t[0],t[1]||e,t[2]||n)}function re(t){return t*(Math.PI/180)}function Pn(t){return t*(180/Math.PI)}function iN(t){return 360*t}function aN(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function oN(t,e){var n,r,i=Math.PI*.5,a=N(Aa(yt(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function If(t,e){return e.length===16?oN(t,e):aN(t,e)}function sN(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return Yk(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function cN(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function $g(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eft[1][2]&&(a[0]=-a[0]),ft[0][2]>ft[2][0]&&(a[1]=-a[1]),ft[1][0]>ft[0][1]&&(a[2]=-a[2]),!0}function uN(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function fN(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function jf(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var be=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){na(this.center,e),na(this.halfExtents,n),Rf(this.min,this.center,this.halfExtents),el(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){el(this.center,n,e),Dg(this.center,this.center,.5),Rf(this.halfExtents,n,e),Dg(this.halfExtents,this.halfExtents,.5),na(this.min,e),na(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],x=e.halfExtents,w=x[0],O=x[1],S=x[2],_=y-w,M=y+w,E=m-O,P=m+O,T=b-S,A=b+S;_f&&(f=M),Eh&&(h=P),Tv&&(v=A),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),x=Math.abs(f),w=Math.abs(d),O=Math.abs(h),S=Math.abs(p),_=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+x*o[1]+w*o[2],i[2]=O*o[0]+S*o[1]+_*o[2],Rf(this.min,r,i),el(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=nN([0,0,0],this.getMin(),e.getMin()),i=rN([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),dN=function(){function t(e,n){this.distance=e||0,this.normal=n||St(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return nr(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/tx(this.normal);Cd(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&Ld(r,e,n,o),s},t}(),zr;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(zr||(zr={}));var hN=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new dN)}return t.prototype.extractFromVPMatrix=function(e){var n=N(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];Gn(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,Gn(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,Gn(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,Gn(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,Gn(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,Gn(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Ee=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Fi=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),It="Method not implemented.",ra="Use document.documentElement instead.",pN="Cannot append a destroyed element.",Tt;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(Tt||(Tt={}));var ds;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(ds||(ds={}));var tn;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(tn||(tn={}));var xw={UPDATED:"updated"},Fg=2e-4,ww=function(){function t(){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.eventEmitter=new $p,this.matrix=Nt(),this.right=St(1,0,0),this.up=St(0,1,0),this.forward=St(0,0,1),this.position=St(0,0,1),this.focalPoint=St(0,0,0),this.distanceVector=St(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Nt(),this.projectionMatrixInverse=Nt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=Tt.EXPLORING,this.trackingMode=ds.DEFAULT,this.projectionMode=tn.PERSPECTIVE,this.frustum=new hN,this.orthoMatrix=Nt()}return t.prototype.isOrtho=function(){return this.projectionMode===tn.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===Tt.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Tt.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==Tt.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Wn(Nt(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=up(Nt(),[e,n,0]);this.jitteredProjectionMatrix=$e(Nt(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===tn.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===tn.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=St(c-i,l-a,0),f=nr(u,this.right)/wr(this.right),d=nr(u,this.up)/wr(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=tn.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(re(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return cN(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===wa.ZERO),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=tn.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===wa.NEGATIVE_ONE?Ub(this.projectionMatrix,d,h,v,p,a,o):qb(this.projectionMatrix,d,h,v,p,a,o),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=We(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=St(0,1,0);if(this.focalPoint=We(e,n,r),this.trackingMode===ds.CINEMATIC){var a=qv(yt(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=wr(a),s=Pn(Math.asin(n/o)),c=90+Pn(Math.atan2(r,e)),l=Nt();Wb(l,l,re(c)),Yb(l,l,re(s)),i=Oe(yt(),[0,1,0],l)}return Wn(this.matrix,Kb(Nt(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=Z.kEms&&e=ti.kUnitType&&this.getType()<=ti.kClampType},t}(),xN=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return ti.kColorType},e.prototype.to=function(n){return this},e}(Du),rr;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(rr||(rr={}));var pc=function(t){rt(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return ti.kColorType},e}(Du),sn=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return ti.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(Du),wN=Ne(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Yg=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function ON(t){if(!t)throw new Error}function ga(t){return typeof t=="function"}function SN(t){return typeof t=="symbol"}var _N={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},Jd=Ne(function(t){var e=wN(t),n=_N[e];return e=(n==null?void 0:n.alias)||e,e}),MN=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(ON(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},th=function(t){return bN(mN(t))},jt=function(t){rt(e,t);function e(n,r){r===void 0&&(r=Z.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=yN(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return ti.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=th(this.unit);if(r!==th(n)||r===Z.kUnknown)return null;var i=Gg(this.unit)/Gg(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case Z.kUnknown:break;case Z.kInteger:a=Number(this.value).toFixed(0);break;case Z.kNumber:case Z.kPercentage:case Z.kEms:case Z.kRems:case Z.kPixels:case Z.kDegrees:case Z.kRadians:case Z.kGradians:case Z.kMilliseconds:case Z.kSeconds:case Z.kTurns:{var o=-999999,s=999999,c=this.value,l=Qd(this.unit);if(cs){var u=Qd(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=MN(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(Du),we=new jt(0,"px");new jt(1,"px");var Hn=new jt(0,"deg"),Fp=function(t){rt(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(xN),Gt=new sn("unset"),EN=new sn("initial"),PN=new sn("inherit"),Df={"":Gt,unset:Gt,initial:EN,inherit:PN},eh=function(t){return Df[t]||(Df[t]=new sn(t)),Df[t]},nh=new Fp(0,0,0,0,!0),Ow=new Fp(0,0,0,0),AN=Ne(function(t,e,n,r){return new Fp(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),Ft=function(t,e){return e===void 0&&(e=Z.kNumber),new jt(t,e)},kl=new jt(50,"%"),rh;(function(t){t[t.Standard=0]="Standard"})(rh||(rh={}));var $a;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})($a||($a={}));var Sw={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)},tt;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(tt||(tt={}));function kN(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var TN=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(I){throw new Error(e+": "+I)}function r(){var I=i();return e.length>0&&n("Invalid input not EOF"),I}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(I,R,j){return s(R,function(D){var $=j();return $&&(C(t.comma)||n("Missing comma before color stops")),{type:I,orientation:$,colorStops:b(x)}})}function s(I,R){var j=C(I);if(j){C(t.startCall)||n("Missing (");var D=R(j);return C(t.endCall)||n("Missing )"),D}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var I,R=d(),j;return R&&(I=[],I.push(R),j=e,C(t.comma)&&(R=d(),R?I.push(R):e=j)),I}function d(){var I=h()||p();if(I)I.at=g();else{var R=v();if(R){I=R;var j=g();j&&(I.at=j)}else{var D=y();D&&(I={type:"default-radial",at:D})}}return I}function h(){var I=k("shape",/^(circle)/i,0);return I&&(I.style=A()||v()),I}function p(){var I=k("shape",/^(ellipse)/i,0);return I&&(I.style=P()||v()),I}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=m();if(I.x||I.y)return{type:"position",value:I}}function m(){return{x:P(),y:P()}}function b(I){var R=I(),j=[];if(R)for(j.push(R);C(t.comma);)R=I(),R?j.push(R):n("One extra comma");return j}function x(){var I=w();return I||n("Expected color definition"),I.length=P(),I}function w(){return S()||M()||_()||O()}function O(){return k("literal",t.literalColor,0)}function S(){return k("hex",t.hexColor,1)}function _(){return s(t.rgbColor,function(){return{type:"rgb",value:b(E)}})}function M(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(E)}})}function E(){return C(t.number)[1]}function P(){return k("%",t.percentageValue,1)||T()||A()}function T(){return k("position-keyword",t.positionKeywords,1)}function A(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(I,R,j){var D=C(R);if(D)return{type:I,value:D[j]}}function C(I){var R=/^[\n\r\t\s]+/.exec(e);R&&L(R[0].length);var j=I.exec(e);return j&&L(j[0].length),j}function L(I){e=e.substring(I)}return function(I){return e=I,r()}}();function CN(t,e,n){var r=re(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function LN(t,e,n,r,i){var a=n.value,o=r.value;n.unit===Z.kPercentage&&(a=n.value/100*t),r.unit===Z.kPercentage&&(o=r.value/100*e);var s=Math.max(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]));return i&&(i instanceof jt?s=i.value:i instanceof sn&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]))))),{x:a,y:o,r:s}}var NN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,RN=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,IN=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,_w=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function jN(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=TN(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;jN(u);var f=u.map(function(b){return{offset:Ft(Number(b.length.value),"%"),color:kN(b)}});if(c==="linear-gradient")return new pc(rr.LinearGradient,{angle:l?$N(l):Hn,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=BN(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=eh(m):v=Ft(m,y)}return new pc(rr.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=NN.exec(t);if(i){var a=((e=i[2].match(_w))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pc(rr.LinearGradient,{angle:Ft(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=N(s,2),l=c[0],u=c[1];return{offset:Ft(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=zN(t);if(o)if(le(o))t=o;else return[new pc(rr.RadialGradient,o)]}else if(r==="p")return GN(t)}});function zN(t){var e,n=RN.exec(t);if(n){var r=((e=n[4].match(_w))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:Ft(50,"%"),cy:Ft(50,"%"),steps:r.map(function(i){var a=N(i,2),o=a[0],s=a[1];return{offset:Ft(Number(o)*100,"%"),color:s}})}}return null}function GN(t){var e=IN.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function hs(t){return t&&!!t.image}function Tl(t){return t&&!nt(t.r)&&!nt(t.g)&&!nt(t.b)}var Ar=Ne(function(t){if(hs(t))return z({repetition:"repeat"},t);if(nt(t)&&(t=""),t==="transparent")return Ow;t==="currentColor"&&(t="black");var e=FN(t);if(e)return e;var n=ju(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),AN.apply(void 0,q([],N(r),!1))});function YN(t,e){if(!(!Tl(t)||!Tl(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(ce(r[i],0,255));return r[3]=ce(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Hs(t,e){if(nt(e))return Ft(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return Ft(Number(e),"px");if("deg".search(t)>=0)return Ft(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return Ft(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var Mw=function(t){return Hs(new RegExp("px","g"),t)},WN=Ne(Mw),HN=function(t){return Hs(new RegExp("%","g"),t)};Ne(HN);var ps=function(t){return de(t)||isFinite(Number(t))?Ft(Number(t)||0,"px"):Hs(new RegExp("px|%|em|rem","g"),t)},Ba=Ne(ps),zp=function(t){return Hs(new RegExp("deg|rad|grad|turn","g"),t)},Ew=Ne(zp);function VN(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=th(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=Qd(t.unit)):(jt.isLength(t.unit)||jt.isLength(e.unit))&&(o=dn(t,i,n),s=dn(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function hn(t){var e=0;return t.unit===Z.kDegrees?e=t.value:t.unit===Z.kRadians?e=Pn(Number(t.value)):t.unit===Z.kTurns&&(e=iN(Number(t.value))),e}function $f(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):le(t)?n=t.split(" ").map(function(r){return Number(r)}):de(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function Pw(t){return le(t)?t.split(" ").map(function(e){return Ba(e)}):t.map(function(e){return Ba(e.toString())})}function dn(t,e,n){if(t.value===0)return 0;if(t.unit===Z.kPixels)return Number(t.value);if(t.unit===Z.kPercentage&&n){var r=n.nodeName===G.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var XN=function(t){return Hs(/deg|rad|grad|turn|px|%/g,t)},UN=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Aw(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,UN.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return XN(a)||Ar(a)})}),e.lastIndex===t.length)return n}return[]}function kw(t){return t.toString()}var no=function(t){return typeof t=="number"?Ft(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ft(Number(t)):Ft(0)},zi=Ne(no);Ne(function(t){return le(t)?t.split(" ").map(zi):t.map(zi)});function Gp(t,e){return[t,e,kw]}function Yp(t,e){return function(n,r){return[n,r,function(i){return kw(ce(i,t,e))}]}}function Tw(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function ih(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=e5(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function qN(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function Cl(t,e){return t[0]===e[0]&&t[1]===e[1]}function QN(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function Wg(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var Hg=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},Vg=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Ib(r,360);var c=re(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},x=Hg({x:1,y:0},b),w={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},O=Hg(b,w);!a&&O>0?O-=2*Math.PI:a&&O<0&&(O+=2*Math.PI),O%=2*Math.PI;var S=x+O*s,_=e*Math.cos(S),M=n*Math.sin(S),E={x:Math.cos(c)*_-Math.sin(c)*M+m.x,y:Math.sin(c)*_+Math.cos(c)*M+m.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+O,ellipticalArcAngle:S,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return E};function JN(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,x=[(f-g)/n,(d-y)/r],w=[(-1*f-g)/n,(-1*d-y)/r],O=Ug([1,0],x),S=Ug(x,w);return ah(x,w)<=-1&&(S=Math.PI),ah(x,w)>=1&&(S=0),o===0&&S>0&&(S=S-2*Math.PI),o===1&&S<0&&(S=S+2*Math.PI),{cx:m,cy:b,rx:Cl(t,[l,u])?0:n,ry:Cl(t,[l,u])?0:r,startAngle:O,endAngle:O+S,xRotation:i,arcFlag:a,sweepFlag:o}}function e4(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=St(l[1]-a,l[2]-s,0);n&&Oe(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0),p=St(l[5]-a,l[6]-s,0);n&&(Oe(d,d,n),Oe(h,h,n),Oe(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=St(l[6]-a,l[7]-s,0);n&&Oe(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0);n&&(Oe(d,d,n),Oe(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function n4(t,e,n,r){return[["M",t,e],["L",n,r]]}function qg(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function r4(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function i4(t,e,n,r,i){if(i){var a=N(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function Wp(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case G.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=n4(a,s,l,f);break;case G.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=qg(p,p,g,m);break}case G.ELLIPSE:{var b=t.parsedStyle,x=b.rx,w=x===void 0?0:x,O=b.ry,S=O===void 0?0:O,_=b.cx,g=_===void 0?0:_,M=b.cy,m=M===void 0?0:M;n=qg(w,S,g,m);break}case G.POLYLINE:case G.POLYGON:var E=t.parsedStyle.points;n=r4(E.points,t.nodeName===G.POLYGON);break;case G.RECT:var P=t.parsedStyle,T=P.width,A=T===void 0?0:T,k=P.height,C=k===void 0?0:k,L=P.x,I=L===void 0?0:L,R=P.y,j=R===void 0?0:R,D=P.radius,$=D&&D.some(function(F){return F!==0});n=i4(A,C,I,j,$&&D.map(function(F){return ce(F,0,Math.min(Math.abs(A)/2,Math.abs(C)/2))}));break;case G.PATH:var B=t.parsedStyle.path.absolutePath;n=q([],N(B),!1);break}if(n.length)return e4(n,t,e)}var Cw=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=bl(t)}catch{e=bl(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}qN(e);var n=KN(e),r=ZN(e),i=r.polygons,a=r.polylines,o=JN(e),s=QN(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},a4=Ne(Cw);function oh(t){return le(t)?a4(t):Cw(t)}function o4(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Rd(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Rd(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=cx(r,i));var o=eg(a[0])!==eg(a[1])?qT(a[0]):UT(a[0]);return[o,r5(a[1],o),function(s){return s}]}function Lw(t,e){var n;le(t)?n=t.split(" ").map(function(u){var f=N(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=qL(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=yw(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,q([],N(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,q([],N(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function s4(t,e){return[t.points,e.points,function(n){return n}]}var ie=null;function Je(t){return function(e){var n=0;return t.map(function(r){return r===ie?e[n++]:r})}}function bi(t){return t}var Ll={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],bi],matrix3d:["NNNNNNNNNNNNNNNN",bi],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Je([ie,ie,new jt(1)]),bi],scalex:["N",Je([ie,new jt(1),new jt(1)]),Je([ie,new jt(1)])],scaley:["N",Je([new jt(1),ie,new jt(1)]),Je([new jt(1),ie])],scalez:["N",Je([new jt(1),new jt(1),ie])],scale3d:["NNN",bi],skew:["Aa",null,bi],skewx:["A",null,Je([ie,Hn])],skewy:["A",null,Je([Hn,ie])],translate:["Tt",Je([ie,ie,we]),bi],translatex:["T",Je([ie,we,we]),Je([ie,we])],translatey:["T",Je([we,ie,we]),Je([we,ie])],translatez:["L",Je([we,we,ie])],translate3d:["TTL",bi]};function Hp(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=Ll[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=$f(n.anchor,2)),n.transform&&(e.parsedStyle.transform=Hp(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Nw(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===G.CIRCLE||e.nodeName===G.ELLIPSE)&&(!nt(n.cx)||!nt(n.cy))||(e.nodeName===G.RECT||e.nodeName===G.IMAGE||e.nodeName===G.GROUP||e.nodeName===G.HTML||e.nodeName===G.TEXT||e.nodeName===G.MESH)&&(!nt(n.x)||!nt(n.y)||!nt(n.z))||e.nodeName===G.LINE&&(!nt(n.x1)||!nt(n.y1)||!nt(n.z1)||!nt(n.x2)||!nt(n.y2)||!nt(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=r.memoize,v=d,g=Object.keys(n);g.forEach(function(y){var m;u||(e.attributes[y]=n[y]),!v&&(!((m=Br[y])===null||m===void 0)&&m.l)&&(v=!0)}),f||g.forEach(function(y){e.computedStyle[y]=i.parseProperty(y,e.attributes[y],e,p)}),h!=null&&h.length&&(g=Array.from(new Set(g.concat(h)))),g.forEach(function(y){y in e.computedStyle&&(e.parsedStyle[y]=i.computeProperty(y,e.computedStyle[y],e,p))}),v&&this.updateGeometry(e),g.forEach(function(y){y in e.parsedStyle&&i.postProcessProperty(y,e,g)}),this.runtime.enableCSSParsing&&e.children.length&&g.forEach(function(y){y in e.parsedStyle&&i.isPropertyInheritable(y)&&e.children.forEach(function(m){m.internalSetAttribute(y,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r,i){var a=Br[e],o=n;if((n===""||nt(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")o=eh(n);else if(a){var s=a.k,c=a.syntax,l=c&&this.getPropertySyntax(c);s&&s.indexOf(n)>-1?o=eh(n):l&&(!i&&l.parserUnmemoize?o=l.parserUnmemoize(n,r):l.parser&&(o=l.parser(n,r)))}return o},t.prototype.computeProperty=function(e,n,r,i){var a=Br[e],o=r.id==="g-root",s=n;if(a){var c=a.syntax,l=a.inh,u=a.d;if(n instanceof sn){var f=n.value;if(f==="unset"&&(l&&!o?f="inherit":f="initial"),f==="initial")nt(u)||(n=this.parseProperty(e,ga(u)?u(r.nodeName):u,r,i));else if(f==="inherit"){var d=this.tryToResolveProperty(r,e,{inherited:!0});if(nt(d)){this.addUnresolveProperty(r,e);return}else return d}}var h=c&&this.getPropertySyntax(c);if(h&&h.calculator){var p=r.parsedStyle[e];s=h.calculator(e,p,n,r,this.runtime)}else n instanceof sn?s=n.value:s=n}return s},t.prototype.postProcessProperty=function(e,n,r){var i=Br[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=la.get(e);r||(la.set(e,[]),r=la.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&m4(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=la.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),la.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new be),i.renderBounds||(i.renderBounds=new be);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,x=m.lineWidth,w=m.increasedLineWidthForHitTesting,O=m.shadowType,S=m.shadowColor,_=m.filter,M=_===void 0?[]:_,E=m.transformOrigin,P=a.anchor;n===G.TEXT?delete a.anchor:n===G.MESH&&(a.anchor[2]=.5);var T=[(1-(P&&P[0]||0)*2)*s/2+d,(1-(P&&P[1]||0)*2)*c/2+p,(1-(P&&P[2]||0)*2)*y[2]+g];i.contentBounds.update(T,y);var A=n===G.POLYLINE||n===G.POLYGON||n===G.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var C=((x||0)+(w||0))*A;y[0]+=C,y[1]+=C}if(i.renderBounds.update(T,y),S&&O&&O!=="inner"){var L=i.renderBounds,I=L.min,R=L.max,j=a,D=j.shadowBlur,$=j.shadowOffsetX,B=j.shadowOffsetY,F=D||0,Y=$||0,U=B||0,K=I[0]-F+Y,V=R[0]+F+Y,W=I[1]-F+U,J=R[1]+F+U;I[0]=Math.min(I[0],K),R[0]=Math.max(R[0],V),I[1]=Math.min(I[1],W),R[1]=Math.max(R[1],J),i.renderBounds.setMinMax(I,R)}M.forEach(function(lt){var xt=lt.name,Et=lt.params;if(xt==="blur"){var Xt=Et[0].value;i.renderBounds.update(i.renderBounds.center,el(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Xt,Xt,0]))}else if(xt==="drop-shadow"){var ue=Et[0].value,Ke=Et[1].value,vr=Et[2].value,gi=i.renderBounds,Ge=gi.min,wn=gi.max,_t=Ge[0]-vr+ue,Pt=wn[0]+vr+ue,ee=Ge[1]-vr+Ke,kt=wn[1]+vr+Ke;Ge[0]=Math.min(Ge[0],_t),wn[0]=Math.max(wn[0],Pt),Ge[1]=Math.min(Ge[1],ee),wn[1]=Math.max(wn[1],kt),i.renderBounds.setMinMax(Ge,wn)}}),P=a.anchor;var et=s<0,it=c<0,ct=(et?-1:1)*(E?dn(E[0],0,e):0),ot=(it?-1:1)*(E?dn(E[1],1,e):0);ct=ct-(et?-1:1)*(P&&P[0]||0)*i.contentBounds.halfExtents[0]*2,ot=ot-(it?-1:1)*(P&&P[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(ct,ot),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Br[e];return n?n.inh:!1},t}(),x4=function(){function t(){this.parser=Ew,this.parserUnmemoize=zp,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i){return hn(r)},t}(),w4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof sn&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),O4=function(){function t(){this.parser=Ar,this.parserWithCSSDisabled=Ar,this.mixer=YN}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="none"?nh:Ow:r},t}(),S4=function(){function t(){this.parser=Aw}return t.prototype.calculator=function(e,n,r){return r instanceof sn?[]:r},t}();function Jg(t){var e=t.parsedStyle.fontSize;return nt(e)?null:e}var Xp=function(){function t(){this.parser=Ba,this.parserUnmemoize=ps,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i,a){var o;if(de(r))return r;if(jt.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===Z.kPercentage)return 0;if(r.unit===Z.kEms){if(i.parentNode){var c=Jg(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===Z.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=Jg(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),_4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),M4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),xo=Nt();function Up(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[we,we];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[we];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[we];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[we];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[we,we,we];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a==="rotatex"){var l=o||[Hn];e.rotateLocal(hn(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Hn];e.rotateLocal(0,hn(l[0]),0)}else if(a==="rotatez"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(re(u[0]),re(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(re(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],re(u[0]))}else if(a==="matrix"){var f=N(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Td(xo,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Td.apply(bT,q([xo],N(o.map(function(m){return m.value})),!1)),xo[12]+=n,xo[13]+=r,e.setLocalTransform(xo))}),e.getLocalTransform()}var E4=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case G.CIRCLE:case G.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;nt(c)||(i=c),nt(l)||(a=l),nt(u)||(o=u);break;case G.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case G.RECT:case G.IMAGE:case G.GROUP:case G.HTML:case G.TEXT:case G.MESH:nt(n.parsedStyle.x)||(i=n.parsedStyle.x),nt(n.parsedStyle.y)||(a=n.parsedStyle.y),nt(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==G.PATH&&n.nodeName!==G.POLYLINE&&n.nodeName!==G.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!nt(i)||!nt(a)||!nt(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)Up(b,n);else{var x=N(n.getLocalPosition(),3),w=x[0],O=x[1],S=x[2];n.setLocalPosition(nt(i)?w:i,nt(a)?O:a,nt(o)?S:o)}}},e}(Xp),P4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof sn&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),A4=function(){function t(){this.mixer=Gp,this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===G.LINE||a===G.PATH||a===G.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),T4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),C4=function(){function t(){this.parser=oh,this.parserWithCSSDisabled=oh,this.mixer=o4}return t.prototype.calculator=function(e,n,r){return r instanceof sn&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===G.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),L4=function(){function t(){this.parser=Lw,this.mixer=s4}return t.prototype.postProcessor=function(e,n){if((e.nodeName===G.POLYGON||e.nodeName===G.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),N4=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.mixer=Yp(0,1/0),n}return e}(Xp),R4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),I4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),Gf={},j4=0;function D4(t,e){if(t){var n=typeof t=="string"?t:t.id||j4++;Gf[n]&&Gf[n].destroy(),Gf[n]=e}}var Vs=typeof window<"u"&&typeof window.document<"u";function $4(t){return!!t.getAttribute}function B4(t,e){for(var n=0,r=t.length;n>>1;Rw(t[i],e)<0?n=i+1:r=i}return n}function Rw(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function Iw(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var ty="px";function F4(t,e,n){Vs&&t.style&&(t.style.width=e+ty,t.style.height=n+ty)}function jw(t,e){if(Vs)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function z4(t){var e=jw(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function G4(t){var e=jw(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var Y4=1,W4={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},sh=typeof performance=="object"&&performance.now?performance:Date;function Ki(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var H4=1,V4=function(){return H4++},sr=typeof self=="object"&&self.self==self?self:typeof global=="object"&&global.global==global?global:{},X4=Date.now(),U4=function(){return sr.performance&&typeof sr.performance.now=="function"?sr.performance.now():Date.now()-X4},Eo={},ey=Date.now(),q4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-ey,r=n>16?0:16-n,i=V4();return Eo[i]=t,Object.keys(Eo).length>1||setTimeout(function(){ey=e;var a=Eo;Eo={},Object.keys(a).forEach(function(o){return a[o](U4())})},r),i},K4=function(t){delete Eo[t]},Z4=["","webkit","moz","ms","o"],Dw=function(t){return typeof t!="string"?q4:t===""?sr.requestAnimationFrame:sr[t+"RequestAnimationFrame"]},Q4=function(t){return typeof t!="string"?K4:t===""?sr.cancelAnimationFrame:sr[t+"CancelAnimationFrame"]||sr[t+"CancelRequestAnimationFrame"]},J4=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},$w=J4(Z4,function(t){return!!Dw(t)}),Bw=Dw($w),Fw=Q4($w);sr.requestAnimationFrame=Bw;sr.cancelAnimationFrame=Fw;var tR=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!rR.test(l)&&nR.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var aR=function(){function t(){this.parser=Hp,this.parserUnmemoize=Kg,this.parserWithCSSDisabled=Kg,this.mixer=g4}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;Up(n,e)},t}(),oR=function(){function t(){this.parser=Nw,this.parserUnmemoize=y4}return t}(),sR=function(){function t(){this.parser=zi,this.parserUnmemoize=no}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=$a.Z_INDEX_CHANGED)}},t}(),cR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),lR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),uR=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),fR=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),dR=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Le(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),hR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!le(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),pR=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!nt(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var x=0;return c==="middle"?x=y[1]:c==="top"||c==="hanging"?x=y[1]*2:c==="alphabetic"?x=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(x=0),l&&(b+=l),u&&(x+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:x}},t}();function vR(t){return!!t.type}var $u=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Ee,this.page=new Ee,this.canvas=new Ee,this.viewport=new Ee,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(It)},t}(),zw=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.client=new Ee,n.movement=new Ee,n.offset=new Ee,n.global=new Ee,n.screen=new Ee,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(It)},e}($u),ch=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(zw),lh=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(zw),Dt=function(t){rt(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}($u),ny=":",Gw=function(){function t(){this.emitter=new $p}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Xv(r)&&r||ki(r)&&r.capture,a=ki(r)&&r.once,o=ga(n)?void 0:n,s=!1,c="";if(e.indexOf(ny)>-1){var l=N(e.split(ny),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=ga(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(It)},e.prototype.lookupNamespaceURI=function(n){throw new Error(It)},e.prototype.lookupPrefix=function(n){throw new Error(It)},e.prototype.normalize=function(){throw new Error(It)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Gw),gR=2048,yR=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new $p,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Nt(),this.tmpVec3=yt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=sh.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}_e.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),_e.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&_e.isNode(c)&&c.parentNode;p&&p!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),_e.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),_e.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),_e.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),_e.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=$e(this.tmpMatrix,u,l),d=Gn(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return Oe(d,d,f),new Ee(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=$e(this.tmpMatrix,i,a),s=Gn(this.tmpVec3,e.x,e.y,0);Oe(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Ee((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=vn(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(ch);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r??(o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i),typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(lh);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(lh);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(ch);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n??r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=sh.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n??e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||_e.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=$4(n)&&n.getAttribute("cursor");if(r)return r;n=_e.isNode(n)&&n.parentNode}},t}(),mR=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||H.offscreenCanvas)this.canvas=e||H.offscreenCanvas,this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),Qr;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(Qr||(Qr={}));var bR=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Ye,initAsync:new tR,dirtycheck:new Yf,cull:new Yf,beginFrame:new Ye,beforeRender:new Ye,render:new Ye,afterRender:new Ye,endFrame:new Ye,destroy:new Ye,pick:new eR,pickSync:new Yf,pointerDown:new Ye,pointerUp:new Ye,pointerMove:new Ye,pointerOut:new Ye,pointerOver:new Ye,pointerWheel:new Ye,pointerCancel:new Ye,click:new Ye}}return t.prototype.init=function(e){var n=this,r=z(z({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(Qr.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(Qr.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==$a.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=B4(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Rw)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(Qr.DISPLAY_OBJECT_CHANGED)},t}(),xR=/\[\s*(.*)=(.*)\s*\]/,wR=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(xR),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return nt(r)?"":r.toString?r.toString():""},t}(),Gi=function(t){rt(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}($u),ht;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(ht||(ht={}));function ry(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var OR=new Gi(ht.REPARENT,null,"","","",0,"",""),SR=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Dt(ht.BOUNDS_CHANGED),this.rotate=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=ve();oc(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);sc(r,f),Sf(r,r),qr(l,r,l),qr(c.localRotation,l,u),ml(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;oc(r,a[0],a[1],a[2]),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{oc(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);sc(r,Sf(ve(),l)),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=St(i,a,o));var s=r.transformable;vo(i,yt())||(OT(i,i,s.localRotation),ba(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Nt(),i=yt();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!vo(n.getPosition(a),i)){if(rn(s.position,i),a.parentNode===null||!a.parentNode.transformable)rn(s.localPosition,i);else{var c=a.parentNode.transformable;Ri(r,c.worldTransform),Wn(r,r),Oe(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=yt();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!vo(o.localPosition,r)&&(rn(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=yt(),i=yt(),a=yt();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=Gn(i,s,c,l)),!vo(s,r)&&(ba(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=ve();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=_f(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);sc(r,u),Sf(r,r),qr(l.localRotation,r,a),ml(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Nt(),i=yt(),a=_f(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(zo(o.localTransform,o.localRotation,o.localPosition,St(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Rs(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),$e(o.localTransform,o.localTransform,c)}var l=zo(r,a,i,o.localScale,o.origin);$e(o.localTransform,o.localTransform,l)}else zo(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,nt(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=$a.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(OR)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=$a.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=St(n,r,i));var a=e.transformable;oc(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;xT(r.localScale,r.localScale,St(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=St(n[0],n[1],n[2]||r.localScale[2]);vo(i,r.localScale)||(rn(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=_f(n,r,i,a));var o=e.transformable;sc(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=AT(n,r));var i=e.transformable;kT(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=N(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)ry(r),r=r.parentNode;n&&e.forEach(function(i){ry(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new Gi(ht.ATTR_MODIFIED,a,n,n,i,Gi.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return gl(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return yl(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Aa(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=gl(yt(),n),i=yl(ve(),n),a=Aa(yt(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(be.isEmpty(i))return null;var a=r||new be;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new be},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new be,o.update(f.center,f.halfExtents)))}),n){var c=Iw(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new be),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Nt();e.parentNode.transformable&&(n=Wn(Nt(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!be.isEmpty(r)){var i=new be;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);be.isEmpty(a)||(i=new be,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=N(i.getMin(),2),c=s[0],l=s[1],u=N(i.getMax(),2),f=u[0],d=u[1];return new Fi(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Fi((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+M>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var E=p[v].length,P=0,T=E,A=0;Ad){T=A;break}P+=k}p[v]=(p[v]||"").slice(0,T)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(O))continue;this.canBreakInLastChar(O)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(O,_)&&(p=this.trimByKinsokuShorui(p),g+=m(S||""))}g+=M,p[v]=(p[v]||"")+O}return p.join(` -======== -import{X as ip,d as vk,v as gk,a as yk,r as Bv,D as mk,c as bf,j as Qo,t as xf,n as yi,b as Fn,w as On,e as ho,P as Fv,o as po,L as zv,M as Gv,J as Yv,I as Wv,f as Hv,p as bk,h as xk,_ as wk}from"./index-JtaswhjV.js";import{g as Ok,a as Sk}from"./serverInfo-hyQn9HsQ.js";import"./request--dYXBGM5.js";const _b=()=>[["cartesian"]];_b.props={};function _k(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const Mb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),_k(n.startAngle,n.endAngle))},Cs=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mb(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};Cs.props={};const ap=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ap.props={transform:!0};const Mk=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},Eb=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mk(t);return[...ap(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};Eb.props={};const Pb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},op=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Pb(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};op.props={};const sp=()=>[["parallel",0,1,0,1]];sp.props={};const Ab=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];Ab.props={transform:!0};const kb=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...sp(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};kb.props={};const Tb=({value:t})=>e=>e.map(()=>t);Tb.props={};const Cb=({value:t})=>e=>e.map(t);Cb.props={};const Lb=({value:t})=>e=>e.map(n=>n[t]);Lb.props={};const Nb=({value:t})=>()=>t;Nb.props={};var fl=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const Ve=function(t){return typeof t=="function"};var nt=function(t){return t==null},Ek={}.toString,Ls=function(t,e){return Ek.call(t)==="[object "+e+"]"};const Le=function(t){return Array.isArray?Array.isArray(t):Ls(t,"Array")},ki=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function cp(t,e){if(t){var n;if(Le(t))for(var r=0,i=t.length;rn?n:t},de=function(t){return Ls(t,"Number")},Tk=1e-5;function Fo(t,e,n){return n===void 0&&(n=Tk),Math.abs(t-e)r&&(n=a,r=o)}return n}},Lk=function(t,e){if(Le(t)){for(var n,r=1/0,i=0;ii&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}const Ik=function(t,e,n){if(n===void 0&&(n=128),!Ve(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l},wf=function(){};function Uv(t){return nt(t)?0:fl(t)?t.length:Object.keys(t).length}var Zt=1e-6,he=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function Ja(){var t=new he(9);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Gk(t){var e=new he(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Yk(t,e,n,r,i,a,o,s,c){var l=new he(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Wk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*o-s*l,d=-u*a+s*c,h=l*a-o*c,p=n*f+r*d+i*h;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*a)*p,t[6]=h*p,t[7]=(-l*n+r*c)*p,t[8]=(o*n-r*a)*p,t):null}function Hk(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=d*r+h*o+p*l,t[1]=d*i+h*s+p*u,t[2]=d*a+h*c+p*f,t[3]=v*r+g*o+y*l,t[4]=v*i+g*s+y*u,t[5]=v*a+g*c+y*f,t[6]=m*r+b*o+x*l,t[7]=m*i+b*s+x*u,t[8]=m*a+b*c+x*f,t}function Vk(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Xk(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Uk(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}var qk=Hk;function Nt(){var t=new he(16);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function lp(t){var e=new he(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ri(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Kk(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v){var g=new he(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function Td(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Rs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function zb(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Wn(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*c-i*o,x=n*l-a*o,w=r*c-i*s,O=r*l-a*s,S=i*l-a*c,_=u*v-f*p,M=u*g-d*p,E=u*y-h*p,P=f*g-d*v,T=f*y-h*v,A=d*y-h*g,k=m*A-b*T+x*P+w*E-O*M+S*_;return k?(k=1/k,t[0]=(s*A-c*T+l*P)*k,t[1]=(i*T-r*A-a*P)*k,t[2]=(v*S-g*O+y*w)*k,t[3]=(d*O-f*S-h*w)*k,t[4]=(c*E-o*A-l*M)*k,t[5]=(n*A-i*E+a*M)*k,t[6]=(g*x-p*S-y*b)*k,t[7]=(u*S-d*x+h*b)*k,t[8]=(o*T-s*E+l*_)*k,t[9]=(r*E-n*T-a*_)*k,t[10]=(p*O-v*x+y*m)*k,t[11]=(f*x-u*O-h*m)*k,t[12]=(s*M-o*P-c*_)*k,t[13]=(n*P-r*M+i*_)*k,t[14]=(v*b-p*w-g*m)*k,t[15]=(u*w-f*b+d*m)*k,t):null}function Zk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(c*y-l*g)+v*(c*h-l*d),t[1]=-(r*(d*y-h*g)-f*(i*y-a*g)+v*(i*h-a*d)),t[2]=r*(c*y-l*g)-s*(i*y-a*g)+v*(i*l-a*c),t[3]=-(r*(c*h-l*d)-s*(i*h-a*d)+f*(i*l-a*c)),t[4]=-(o*(d*y-h*g)-u*(c*y-l*g)+p*(c*h-l*d)),t[5]=n*(d*y-h*g)-u*(i*y-a*g)+p*(i*h-a*d),t[6]=-(n*(c*y-l*g)-o*(i*y-a*g)+p*(i*l-a*c)),t[7]=n*(c*h-l*d)-o*(i*h-a*d)+u*(i*l-a*c),t[8]=o*(f*y-h*v)-u*(s*y-l*v)+p*(s*h-l*f),t[9]=-(n*(f*y-h*v)-u*(r*y-a*v)+p*(r*h-a*f)),t[10]=n*(s*y-l*v)-o*(r*y-a*v)+p*(r*l-a*s),t[11]=-(n*(s*h-l*f)-o*(r*h-a*f)+u*(r*l-a*s)),t[12]=-(o*(f*g-d*v)-u*(s*g-c*v)+p*(s*d-c*f)),t[13]=n*(f*g-d*v)-u*(r*g-i*v)+p*(r*d-i*f),t[14]=-(n*(s*g-c*v)-o*(r*g-i*v)+p*(r*c-i*s)),t[15]=n*(s*d-c*f)-o*(r*d-i*f)+u*(r*c-i*s),t}function Gb(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*a,m=e*s-r*a,b=e*c-i*a,x=n*s-r*o,w=n*c-i*o,O=r*c-i*s,S=l*p-u*h,_=l*v-f*h,M=l*g-d*h,E=u*v-f*p,P=u*g-d*p,T=f*g-d*v;return y*T-m*P+b*E+x*M-w*_+O*S}function $e(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],O=n[3];return t[0]=b*r+x*s+w*f+O*v,t[1]=b*i+x*c+w*d+O*g,t[2]=b*a+x*l+w*h+O*y,t[3]=b*o+x*u+w*p+O*m,b=n[4],x=n[5],w=n[6],O=n[7],t[4]=b*r+x*s+w*f+O*v,t[5]=b*i+x*c+w*d+O*g,t[6]=b*a+x*l+w*h+O*y,t[7]=b*o+x*u+w*p+O*m,b=n[8],x=n[9],w=n[10],O=n[11],t[8]=b*r+x*s+w*f+O*v,t[9]=b*i+x*c+w*d+O*g,t[10]=b*a+x*l+w*h+O*y,t[11]=b*o+x*u+w*p+O*m,b=n[12],x=n[13],w=n[14],O=n[15],t[12]=b*r+x*s+w*f+O*v,t[13]=b*i+x*c+w*d+O*g,t[14]=b*a+x*l+w*h+O*y,t[15]=b*o+x*u+w*p+O*m,t}function Ur(t,e,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15]):(o=e[0],s=e[1],c=e[2],l=e[3],u=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+u*i+p*a+e[12],t[13]=s*r+f*i+v*a+e[13],t[14]=c*r+d*i+g*a+e[14],t[15]=l*r+h*i+y*a+e[15]),t}function vl(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qk(t,e,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,f,d,h,p,v,g,y,m,b,x,w,O,S,_,M,E,P,T,A,k,C;return s0?(n[0]=(s*o+u*r+c*a-l*i)*2/f,n[1]=(c*o+u*i+l*r-s*a)*2/f,n[2]=(l*o+u*a+s*i-c*r)*2/f):(n[0]=(s*o+u*r+c*a-l*i)*2,n[1]=(c*o+u*i+l*r-s*a)*2,n[2]=(l*o+u*a+s*i-c*r)*2),Hb(t,e,n),t}function gl(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Aa(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,l,u),t}function yl(t,e){var n=new he(3);Aa(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,s=e[1]*i,c=e[2]*a,l=e[4]*r,u=e[5]*i,f=e[6]*a,d=e[8]*r,h=e[9]*i,p=e[10]*a,v=o+u+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-c)/g,t[2]=(s-l)/g):o>u&&o>p?(g=Math.sqrt(1+o-u-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+l)/g,t[2]=(d+c)/g):u>p?(g=Math.sqrt(1+u-o-p)*2,t[3]=(d-c)/g,t[0]=(s+l)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-u)*2,t[3]=(s-l)/g,t[0]=(d+c)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function aT(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,l=a+a,u=o+o,f=i*c,d=i*l,h=i*u,p=a*l,v=a*u,g=o*u,y=s*c,m=s*l,b=s*u,x=r[0],w=r[1],O=r[2];return t[0]=(1-(p+g))*x,t[1]=(d+b)*x,t[2]=(h-m)*x,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(h+m)*O,t[9]=(v-y)*O,t[10]=(1-(f+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function zo(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],l=a+a,u=o+o,f=s+s,d=a*l,h=a*u,p=a*f,v=o*u,g=o*f,y=s*f,m=c*l,b=c*u,x=c*f,w=r[0],O=r[1],S=r[2],_=i[0],M=i[1],E=i[2],P=(1-(v+y))*w,T=(h+x)*w,A=(p-b)*w,k=(h-x)*O,C=(1-(d+y))*O,L=(g+m)*O,I=(p+b)*S,R=(g-m)*S,j=(1-(d+v))*S;return t[0]=P,t[1]=T,t[2]=A,t[3]=0,t[4]=k,t[5]=C,t[6]=L,t[7]=0,t[8]=I,t[9]=R,t[10]=j,t[11]=0,t[12]=n[0]+_-(P*_+k*M+I*E),t[13]=n[1]+M-(T*_+C*M+R*E),t[14]=n[2]+E-(A*_+L*M+j*E),t[15]=1,t}function dp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*c,v=a*o,g=a*s,y=a*c;return t[0]=1-f-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oT(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),l=1/(a-o);return t[0]=a*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a*2*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function Vb(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var sT=Vb;function cT(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function lT(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),l=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-((o-s)*c*.5),t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function Xb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*l,t[15]=1,t}var Ub=Xb;function qb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=a*l,t[15]=1,t}function Kb(t,e,n,r){var i,a,o,s,c,l,u,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],x=n[0],w=n[1],O=n[2];return Math.abs(p-x)0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=c*d-l*f,v=l*u-s*d,g=s*f-c*u;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-u*g,t[6]=u*v-f*p,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function fT(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dT(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hT(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Zb(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vT(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gT(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function yT(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],x=e[2],w=e[3],O=e[4],S=e[5],_=e[6],M=e[7],E=e[8],P=e[9],T=e[10],A=e[11],k=e[12],C=e[13],L=e[14],I=e[15];return Math.abs(n-m)<=Zt*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=Zt*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=Zt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-w)<=Zt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(o-O)<=Zt*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-S)<=Zt*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-_)<=Zt*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-M)<=Zt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=Zt*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(f-P)<=Zt*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(d-T)<=Zt*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-A)<=Zt*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-k)<=Zt*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-C)<=Zt*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=Zt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-I)<=Zt*Math.max(1,Math.abs(y),Math.abs(I))}var Qb=$e,mT=Zb;const bT=Object.freeze(Object.defineProperty({__proto__:null,add:hT,adjoint:Zk,clone:lp,copy:Ri,create:Nt,determinant:Gb,equals:yT,exactEquals:gT,frob:dT,fromQuat:dp,fromQuat2:iT,fromRotation:tT,fromRotationTranslation:Hb,fromRotationTranslationScale:aT,fromRotationTranslationScaleOrigin:zo,fromScaling:fp,fromTranslation:up,fromValues:Kk,fromXRotation:eT,fromYRotation:nT,fromZRotation:rT,frustum:oT,getRotation:yl,getScaling:Aa,getTranslation:gl,identity:Rs,invert:Wn,lookAt:Kb,mul:Qb,multiply:$e,multiplyScalar:pT,multiplyScalarAndAdd:vT,ortho:Ub,orthoNO:Xb,orthoZO:qb,perspective:sT,perspectiveFromFieldOfView:lT,perspectiveNO:Vb,perspectiveZO:cT,rotate:Qk,rotateX:Yb,rotateY:Wb,rotateZ:Jk,scale:vl,set:Td,str:fT,sub:mT,subtract:Zb,targetTo:uT,translate:Ur,transpose:zb},Symbol.toStringTag,{value:"Module"}));function yt(){var t=new he(3);return he!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function br(t){var e=new he(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function wr(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function St(t,e,n){var r=new he(3);return r[0]=t,r[1]=e,r[2]=n,r}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gn(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ba(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qv(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function xT(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Cd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function wT(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function Ti(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function nr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Qc(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function Ld(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function Oe(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function Jb(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function OT(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=i*l-a*c,f=a*s-r*l,d=r*c-i*s,h=i*d-a*f,p=a*u-r*d,v=r*f-i*u,g=o*2;return u*=g,f*=g,d*=g,h*=2,p*=2,v*=2,t[0]=s+u+h,t[1]=c+f+p,t[2]=l+d+v,t}function vo(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=Zt*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=Zt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=Zt*Math.max(1,Math.abs(i),Math.abs(s))}var Kv=wT,tx=wr;(function(){var t=yt();return function(e,n,r,i,a,o){var s,c;for(n||(n=3),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function ha(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}(function(){var t=da();return function(e,n,r,i,a,o){var s,c;for(n||(n=4),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;sZt?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Sf(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function ET(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function oc(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}var _f=ST,sc=_T,Zv=qr,ml=MT;(function(){var t=yt(),e=St(1,0,0),n=St(0,1,0);return function(r,i,a){var o=nr(i,a);return o<-.999999?(Qc(t,e,i),tx(t)<1e-6&&Qc(t,n,i),Ti(t,t),Hr(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Qc(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ml(r,r))}})();(function(){var t=ve(),e=ve();return function(n,r,i,a,o,s){return Of(t,r,o,s),Of(e,i,a,s),Of(n,t,e,2*s*(1-s)),n}})();(function(){var t=Ja();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ml(e,ET(e,t))}})();function PT(){var t=new he(2);return he!=Float32Array&&(t[0]=0,t[1]=0),t}function AT(t,e){var n=new he(2);return n[0]=t,n[1]=e,n}function kT(t,e){return t[0]=e[0],t[1]=e[1],t}function TT(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function CT(t,e){return t[0]*e[0]+t[1]*e[1]}function LT(t,e){return t[0]===e[0]&&t[1]===e[1]}(function(){var t=PT();return function(e,n,r,i,a,o){var s,c;for(n||(n=2),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ex(){for(var t=0,e=0,n=arguments.length;e7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function rx(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Go[n]===e.length-1&&"achlmqstvz".includes(n)})}function ix(t){return rx(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function ax(t){return ix(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}function Qv(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Go[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Go[n]))),!!Go[n]););}function RT(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function IT(t){return t>=48&&t<=57||t===43||t===45||t===46}function ea(t){return t>=48&&t<=57}function jT(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!ea(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function Jc(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(BT(i)&&(o===3||o===4)?RT(t):jT(t),t.err.length)return;t.data.push(t.param),Jc(t),t.index=t.max||!IT(n.charCodeAt(t.index)))break}Qv(t)}var zT=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function GT(t){if(rx(t))return[].concat(t);var e=new zT(t);for(Jc(e);e.index1&&(E=Math.sqrt(E),d*=E,h*=E);var P=d*d,T=h*h,A=(a===o?-1:1)*Math.sqrt(Math.abs((P*T-P*M*M-T*_*_)/(P*M*M+T*_*_)));O=A*d*M/h+(u+p)/2,S=A*-h*_/d+(f+v)/2,x=Math.asin(((f-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((v-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),x=uw&&(x-=Math.PI*2),!o&&w>x&&(w-=Math.PI*2)}var k=w-x;if(Math.abs(k)>g){var C=w,L=p,I=v;w=x+g*(o&&w>x?1:-1),p=O+d*Math.cos(w),v=S+h*Math.sin(w),m=hp(p,v,d,h,i,0,o,L,I,[w,C,O,S])}k=w-x;var R=Math.cos(x),j=Math.sin(x),D=Math.cos(w),$=Math.sin(w),B=Math.tan(k/4),F=4/3*d*B,Y=4/3*h*B,U=[u,f],K=[u+F*j,f-Y*R],V=[p+F*$,v-Y*D],W=[p,v];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],l)return K.concat(V,W,m);m=K.concat(V,W,m);for(var J=[],et=0,it=m.length;et=a)o={x:n,y:r};else{var s=Fr([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function tg(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function KT(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Id(t,e,s,c,l).point;var b=(t-s)/2,x=(e-c)/2,w={x:d(m)*b+f(m)*x,y:-f(m)*b+d(m)*x},O=Math.pow(w.x,2)/Math.pow(v,2)+Math.pow(w.y,2)/Math.pow(g,2);O>1&&(v*=h(O),g*=h(O));var S=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(w.y,2)-Math.pow(g,2)*Math.pow(w.x,2),_=Math.pow(v,2)*Math.pow(w.y,2)+Math.pow(g,2)*Math.pow(w.x,2),M=S/_;M=M<0?0:M;var E=(a!==o?1:-1)*h(M),P={x:E*(v*w.y/g),y:E*(-(g*w.x)/v)},T={x:d(m)*P.x-f(m)*P.y+(t+s)/2,y:f(m)*P.x+d(m)*P.y+(e+c)/2},A={x:(w.x-P.x)/v,y:(w.y-P.y)/g},k=tg({x:1,y:0},A),C={x:(-w.x-P.x)/v,y:(-w.y-P.y)/g},L=tg(A,C);!o&&L>0?L-=2*p:o&&L<0&&(L+=2*p),L%=2*p;var I=k+L*l,R=v*d(I),j=g*f(I),D={x:d(m)*R-f(m)*j+T.x,y:f(m)*R+d(m)*j+T.y};return D}function ZT(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,x=e,w=0,O=[b,x,w],S=[b,x],_=0,M={x:0,y:0},E=[{x:b,y:x}];m&&l<=0&&(M={x:b,y:x});for(var P=0;P<=y;P+=1){if(_=P/y,f=KT(t,e,n,r,i,a,o,s,c,_),b=f.x,x=f.y,h&&E.push({x:b,y:x}),v&&(w+=nn(S,[b,x])),S=[b,x],m&&w>=l&&l>O[2]){var T=(w-l)/(w-O[2]);M={x:S[0]*(1-T)+O[0]*T,y:S[1]*(1-T)+O[1]*T}}O=[b,x,w]}return m&&l>=w&&(M={x:s,y:c}),{length:w,point:M,min:{x:Math.min.apply(null,E.map(function(A){return A.x})),y:Math.min.apply(null,E.map(function(A){return A.y}))},max:{x:Math.max.apply(null,E.map(function(A){return A.x})),y:Math.max.apply(null,E.map(function(A){return A.y}))}}}function QT(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function ox(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,x=0,w=[m,b,x],O=[m,b],S=0,_={x:0,y:0},M=[{x:m,y:b}];y&&c<=0&&(_={x:m,y:b});for(var E=0;E<=g;E+=1){if(S=E/g,u=QT(t,e,n,r,i,a,o,s,S),m=u.x,b=u.y,d&&M.push({x:m,y:b}),p&&(x+=nn(O,[m,b])),O=[m,b],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);_={x:O[0]*(1-P)+w[0]*P,y:O[1]*(1-P)+w[1]*P}}w=[m,b,x]}return y&&c>=x&&(_={x:o,y:s}),{length:x,point:_,min:{x:Math.min.apply(null,M.map(function(T){return T.x})),y:Math.min.apply(null,M.map(function(T){return T.y}))},max:{x:Math.max.apply(null,M.map(function(T){return T.x})),y:Math.max.apply(null,M.map(function(T){return T.y}))}}}function JT(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function t5(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],x=[g,y],w=0,O={x:0,y:0},S=[{x:g,y}];v&&o<=0&&(O={x:g,y});for(var _=0;_<=p;_+=1){if(w=_/p,c=JT(t,e,n,r,i,a,w),g=c.x,y=c.y,u&&S.push({x:g,y}),d&&(m+=nn(x,[g,y])),x=[g,y],v&&m>=o&&o>b[2]){var M=(m-o)/(m-b[2]);O={x:x[0]*(1-M)+b[0]*M,y:x[1]*(1-M)+b[1]*M}}b=[g,y,m]}return v&&o>=m&&(O={x:i,y:a}),{length:m,point:O,min:{x:Math.min.apply(null,S.map(function(E){return E.x})),y:Math.min.apply(null,S.map(function(E){return E.y}))},max:{x:Math.max.apply(null,S.map(function(E){return E.x})),y:Math.max.apply(null,S.map(function(E){return E.y}))}}}function sx(t,e,n){for(var r,i,a,o,s,c,l=bl(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],x=[],w=0,O={x:0,y:0},S=O,_=O,M=O,E=0,P=0,T=l.length;P=e&&(M=_),x.push(S),b.push(O),E+=w,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=E&&(M={x:p,y:v}),{length:E,point:M,min:{x:Math.min.apply(null,b.map(function(A){return A.x})),y:Math.min.apply(null,b.map(function(A){return A.y}))},max:{x:Math.max.apply(null,x.map(function(A){return A.x})),y:Math.max.apply(null,x.map(function(A){return A.y}))}}}function e5(t,e){return sx(t,void 0,z(z({},e),{bbox:!1,length:!0})).length}function n5(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function r5(t,e){var n=t.length-1,r=[],i=0,a=0,o=n5(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=nn(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function i5(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function a5(t){var e=0,n=0,r=0;return Rd(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=i5(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function eg(t){return a5(t)>=0}function o5(t,e,n){return sx(t,e,z(z({},n),{bbox:!1,length:!0})).point}function s5(t,e){e===void 0&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),o=Fr(n,r,e),s=Fr(r,i,e),c=Fr(i,a,e),l=Fr(o,s,e),u=Fr(s,c,e),f=Fr(l,u,e);return[["C"].concat(o,l,f),["C"].concat(u,c,a)]}function ng(t){return t.map(function(e,n,r){var i=n&&r[n-1].slice(-2).concat(e.slice(1)),a=n?ox(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?s5(i):[e,e]:o=[e],{s:e,ss:o,l:a}})}function cx(t,e,n){var r=ng(t),i=ng(e),a=r.length,o=i.length,s=r.filter(function(g){return g.l}).length,c=i.filter(function(g){return g.l}).length,l=r.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/s||0,u=i.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/c||0,f=n||Math.max(a,o),d=[l,u],h=[f-a,f-o],p=0,v=[r,i].map(function(g,y){return g.l===f?g.map(function(m){return m.s}):g.map(function(m,b){return p=b&&h[y]&&m.l>=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:cx(v[0],v[1],f)}function rg(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function Wt(t,e){if(t!==null)return{type:"column",value:t,field:e}}function yu(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function xl(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function c5(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function Kr(t,e){const n=[];for(const r of t)n[r]=e;return n}function Ot(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function ts(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=Ot(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Is(t){return t instanceof Date?!1:typeof t=="object"}const js=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y1:yu(Kr(t,0))}})]};js.props={};function oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function l5(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ca(t){let e,n,r;t.length!==2?(e=oe,n=(s,c)=>oe(t(s),c),r=(s,c)=>t(s)-c):(e=t===oe||t===l5?t:u5,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function u5(){return 0}function jd(t){return t===null?NaN:+t}function*f5(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const lx=Ca(oe),d5=lx.right,h5=lx.left,p5=Ca(jd).center;function ux(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function v5(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function fx(t,e){const n=v5(t,e);return n&&Math.sqrt(n)}function Mr(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let g5=class extends Map{constructor(e,n=b5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(ig(this,e))}has(e){return super.has(ig(this,e))}set(e,n){return super.set(y5(this,e),n)}delete(e){return super.delete(m5(this,e))}};function ig({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function y5({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m5({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function b5(t){return t!==null&&typeof t=="object"?t.valueOf():t}function es(t){return t}function te(t,...e){return mu(t,es,es,e)}function pp(t,...e){return mu(t,Array.from,es,e)}function vp(t,e,...n){return mu(t,es,e,n)}function dx(t,e,...n){return mu(t,Array.from,e,n)}function mu(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new g5,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}function x5(t,e){return Array.from(e,n=>t[n])}function Er(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=ns(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>ns(n[i],n[a]))),x5(t,r)}return t.sort(hx(n))}function hx(t=oe){if(t===oe)return ns;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function ns(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function w5(t,e,n){return(e.length!==2?Er(vp(t,e,n),([r,i],[a,o])=>oe(i,o)||oe(r,a)):Er(te(t,n),([r,i],[a,o])=>e(i,o)||oe(r,a))).map(([r])=>r)}var O5=Array.prototype,S5=O5.slice;function Ef(t){return()=>t}const _5=Math.sqrt(50),M5=Math.sqrt(10),E5=Math.sqrt(2);function wl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=_5?10:a>=M5?5:a>=E5?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function k5(t){return Math.max(1,Math.ceil(Math.log(ux(t))/Math.LN2)+1)}function T5(){var t=es,e=Mr,n=k5;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Mr){const w=Dd(f,d,x);isFinite(w)&&(w>0?d=(Math.floor(d/w)+1)*w:w<0&&(d=(Math.ceil(d*-w)+1)/-w))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;a=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function to(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bu(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function gp(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?ns:hx(i);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));gp(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(go(t,n,e),i(t[r],a)>0&&go(t,n,r);o0;)--s}i(t[n],a)===0?go(t,n,s):(++s,go(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function go(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function C5(t,e=oe){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?oe(o,i)>0:oe(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function xu(t,e,n){if(t=Float64Array.from(f5(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return bn(t);if(e>=1)return Ct(t);var r,i=(r-1)*e,a=Math.floor(i),o=Ct(gp(t,a).subarray(0,a+1)),s=bn(t.subarray(a+1));return o+(s-o)*(i-a)}}function L5(t,e,n=jd){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>jd(n(t[c],c,t))),e<=0)return bu(r);if(e>=1)return to(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return gp(i,o,0,a,(s,c)=>ns(r[s],r[c])),o=C5(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function N5(t,e,n){const r=ux(t),i=fx(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function rs(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function yp(t,e){return xu(t,.5,e)}function R5(t,e){return L5(t,.5,e)}function*I5(t){for(const e of t)yield*e}function px(t){return Array.from(I5(t))}function pa(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r(r,...i)=>n(e(r,...i),...i),ji)}function D5(t){return t.reduce((e,n)=>r=>j5(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),ji)}function bp(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function La(t=""){throw new Error(t)}function xp(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function zt(t){return t!=null&&!Number.isNaN(t)}function $5(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function B5(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function Q(t,e){return vx(t,e)||{}}function vx(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[Db(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function F5(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function Pf(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function ag(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function is(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function Lr(t){return t===null||t===!1}function gx(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!Cr(a)||!Cr(t[i])?t[i]=a:gx(t[i],a,n,r+1)}return t}}function ai(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Ui(t){return t.map((e,n)=>n)}function z5(t){return t[0]}function yx(t){return t[t.length-1]}function G5(t){return Array.from(new Set(t))}function mx(t,e){const n=[[],[]];return t.forEach(r=>{n[e(r)?0:1].push(r)}),n}function bx(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function Y5(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...bx(t,n));return e}function oi(t,e,n){const{encode:r}=n;if(t===null)return[e];const i=W5(t).map(o=>{var s;return[o,(s=Ot(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>zt(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(te(e,a).values())}function xx(t){return Array.isArray(t)?X5(t):typeof t=="function"?V5(t):t==="series"?H5:t==="value"?U5:t==="sum"?q5:t==="maxIndex"?K5:()=>null}function wx(t,e){for(const n of t)n.sort(e)}function Ox(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function W5(t){return Array.isArray(t)?t:[t]}function H5(t,e,n){return Ds(r=>n[r])}function V5(t){return(e,n,r)=>Ds(i=>t(e[i]))}function X5(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:oe(e[i][s],e[a][s]),0)}function U5(t,e,n){return Ds(r=>e[r])}function q5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return Ds(o=>a.get(n[o]))}function K5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,to(s,c=>e[c])]));return Ds(o=>a.get(n[o]))}function Ds(t){return(e,n)=>oe(t(e),t(n))}const Sx=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=Ot(u,"y"),[p,v]=Ot(u,"y1"),[g]=o?ts(u,"series","color"):Ot(u,"color"),y=oi(e,s,c),b=xx(n)(l,d,g);b&&wx(y,b);const x=new Array(s.length),w=new Array(s.length),O=new Array(s.length),S=[],_=[];for(const A of y){r&&A.reverse();const k=p?+p[A[0]]:0,C=[],L=[];for(const F of A){const Y=O[F]=+d[F]-k;Y<0?L.push(F):Y>=0&&C.push(F)}const I=C.length>0?C:L,R=L.length>0?L:C;let j=C.length-1,D=0;for(;j>0&&d[I[j]]===0;)j--;for(;D0?B=x[F]=(w[F]=B)+Y:x[F]=w[F]=B}}const M=new Set(S),E=new Set(_),P=i==="y"?x:w,T=a==="y"?x:w;return[s,X({},c,{encode:{y0:yu(d,h),y:Wt(P,h),y1:Wt(T,v)},style:Object.assign({first:(A,k)=>M.has(k),last:(A,k)=>E.has(k)},f)})]}};Sx.props={};function yo(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function Z5(t){const e=t.getFullYear(),n=yo(t.getMonth()+1),r=yo(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${yo(a)}:${yo(o)}:${yo(s)}`:i}const wu=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Lr(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>Ot(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?Z5(u[l]):u[l]).join(", ")};return[n,X({},r,{tooltip:{title:c}})]}};wu.props={};const qi=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{x:yu(Kr(t,0))},scale:{x:{guide:null}}})]};qi.props={};const Ou=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y:yu(Kr(t,0))},scale:{y:{guide:null}}})]};Ou.props={};const _x=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{size:xl(Kr(t,3))}})]};_x.props={};var Q5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=Q5(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,X({},e,{encode:{key:Wt(o)}})]};Mx.props={};const wp=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=Ot(n,"color");return[t,X({},e,{encode:{series:Wt(a,o)}})]};wp.props={};const Ex=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{y:Wt(n)}})]};Ex.props={};const Px=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{x:Wt(n)}})]};Px.props={};const Ax=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=Ot(n,"y");return[t,X({},e,{encode:{y1:Wt([...i])}})]};Ax.props={};const kx=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=Ot(n,"x");return[t,X({},e,{encode:{x1:Wt([...i])}})]};kx.props={};const Tx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{x:Wt(r(n,0)),x1:Wt(r(n,1))}})]}return[t,e]};Tx.props={};const Cx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{y:Wt(r(n,0)),y1:Wt(r(n,1))}})]}return[t,e]};Cx.props={};const Su=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Lr(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,X({},r,{tooltip:{items:c}})]}};Su.props={};const Op=()=>(t,e)=>[t,X({scale:{x:{padding:0},y:{padding:0}}},e)];Op.props={};var og=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=og(e,["data","style"]),{x:a,y:o}=r,s=og(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],X({},i,{data:[0],cartesian:!0,encode:{x:Wt([c]),y:Wt([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};_u.props={};const Lx=()=>(t,e)=>{const{style:n={}}=e;return[t,X({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};Lx.props={};const Mu=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Is))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,X({},e,{encode:{x:Wt(i),y:Wt(a)}})]};Mu.props={};const Nx=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,X({},e,{encode:{series:xl(Kr(t,void 0))}})]};Nx.props={};var J5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return J5(t,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:c,scale:l}=o,{series:u}=l,[f]=Ot(c,"y"),[d]=ts(c,"series","color"),h=Ox(d,u),p=oi(e,a,o),g=xx(r)(s,f,d);g&&wx(p,g);const y=new Array(a.length);for(const m of p){n&&m.reverse();for(let b=0;b{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,Ot(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(te(m,x=>g[x]).values());y.push(...b)}f=y}if(r){const[g]=Ot(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Kr(o,d)]:ts(c,"enterDuration",Kr(o,d)),[p]=ts(c,"enterDelay",Kr(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[x]);for(const x of m)v[x]=+p[x]+y;y+=b}return[o,X({},s,{encode:{enterDuration:xl(h),enterDelay:xl(v)}})]}};Ix.props={};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ibn(n,i=>r[+i]),max:(n,r)=>Ct(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>rs(n,i=>r[+i]),median:(n,r)=>yp(n,i=>r[+i]),sum:(n,r)=>Cn(n,i=>r[+i]),deviation:(n,r)=>fx(n,i=>r[+i])}[t]||Ct}const jx=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,s=t3(a,["x"]),c=Object.entries(s).filter(([p])=>p.startsWith("y")).map(([p])=>[p,Ot(a,p)[0]]),[,l]=c.find(([p])=>p==="y"),u=c.map(([p])=>[p,new Array(r.length)]),f=oi(e,r,i),d=e3(n);for(const p of f){const v=d(p,l);for(const g of p)for(let y=0;y[p,Wt(v,Ot(a,p)[1])]))},!h&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};jx.props={};function Na(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ol(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function n3(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}function Sp(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}const $d=Math.sqrt(50),Bd=Math.sqrt(10),Fd=Math.sqrt(2);function tl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=$d?10:a>=Bd?5:a>=Fd?2:1)*10**i:-(10**-i)/(a>=$d?10:a>=Bd?5:a>=Fd?2:1)}function sg(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=$d?i*=10:a>=Bd?i*=5:a>=Fd&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=tl(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=tl(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r},as=1e3,os=as*60,ss=os*60,Di=ss*24,Yo=Di*7,$x=Di*30,Bx=Di*365;function Fe(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i3=Fe(as,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getSeconds()),a3=Fe(os,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getMinutes()),o3=Fe(ss,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getHours()),s3=Fe(Di,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getDate()-1),Fx=Fe($x,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),c3=Fe(Yo,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Fx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),l3=Fe(Bx,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),zx={millisecond:r3,second:i3,minute:a3,hour:o3,day:s3,week:c3,month:Fx,year:l3},u3=Fe(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),f3=Fe(as,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getUTCSeconds()),d3=Fe(os,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getUTCMinutes()),h3=Fe(ss,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getUTCHours()),p3=Fe(Di,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getUTCDate()-1),Gx=Fe($x,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),v3=Fe(Yo,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Yo*e)},t=>{const e=Gx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),g3=Fe(Bx,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Yx={millisecond:u3,second:f3,minute:d3,hour:h3,day:p3,week:v3,month:Gx,year:g3};function y3(t){const e=t?Yx:zx,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function Wx(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=y3(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Sp(s,d,0,h,u);let v;if(p===h){const g=sg(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};var Hx=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},b3={}.toString,$s=function(t,e){return b3.call(t)==="[object "+e+"]"};const Vx=function(t){return $s(t,"Function")};var x3=function(t){return t==null};const Xx=function(t){return Array.isArray?Array.isArray(t):$s(t,"Array")},w3=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function O3(t,e){if(t){var n;if(Xx(t))for(var r=0,i=t.length;re=>-t(-e),_p=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?Zx(r):r},Mp=(t,e)=>{const n=t===Math.E?Math.exp:r=>t**r;return e?Zx(n):n},T3=(t,e,n,r)=>{const i=t<0,a=_p(r,i),o=Mp(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u},C3=t=>e=>{const n=t(e);return cs(n)?Math.round(n):n};function L3(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?C3(o):o;this.output=Na(l,c,i,r)},n.prototype.invert=void 0}}var Qx={exports:{}},N3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Jx={exports:{}},R3=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},I3=R3,j3=Array.prototype.concat,D3=Array.prototype.slice,ug=Jx.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};gn.to.keyword=function(t){return e2[t.slice(0,3)]};function Zr(t,e,n){return Math.min(Math.max(e,t),n)}function uc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var B3=Qx.exports;const F3=ip(B3);function kf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function z3(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=kf(o,a,e+1/3),c=kf(o,a,e),l=kf(o,a,e-1/3);return[s*255,c*255,l*255,i]}function fg(t){const e=F3.get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?z3(r):null}const Ra=(t,e)=>n=>t*(1-n)+e*n,G3=(t,e)=>{const n=fg(t),r=fg(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},Fs=(t,e)=>typeof t=="number"&&typeof e=="number"?Ra(t,e):typeof t=="string"&&typeof e=="string"?G3(t,e):()=>t,Y3=(t,e)=>{const n=Ra(t,e);return r=>Math.round(n(r))};function W3(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}let n2=class r2 extends zs{getDefaultOptions(){return{domain:[],range:[],unknown:Eu}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&pg(this.domainIndexMap,this.getDomain(),this.domainKey),vg({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&pg(this.rangeIndexMap,this.getRange(),this.rangeKey),vg({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=gg(n),this.rangeKey=gg(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new r2(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}};function U3(t){const e=Math.min(...t);return t.map(n=>n/e)}function q3(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function K3(t){return Math.round(t*1e12)/1e12}function Z3(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=q3(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=U3(l),m=y.reduce((T,A)=>T+A),b=g/m,x=new hg(e.map((T,A)=>{const k=y[A]*b;return[T,o?Math.floor(k):k]})),w=new hg(e.map((T,A)=>{const C=y[A]*b+v;return[T,o?Math.floor(C):C]})),O=Array.from(w.values()).reduce((T,A)=>T+A),_=(d-(O-O/c*i))*s,M=u+_;let E=o?Math.round(M):M;const P=new Array(c);for(let T=0;Td+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let Ia=class i2 extends n2{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Eu,flex:[]}}constructor(e){super(e)}clone(){return new i2(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=Q3({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}};const Bi=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=tl(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=0&&(c=1),1-s/(o-1)-n+c}function rC(t,e,n){const r=Kx(e);return 1-qx(e,t)/(r-1)-n+1}function iC(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function aC(t,e){return t>=e?2-(t-1)/(e-1):1}function oC(t,e,n,r){const i=e-t;return 1-.5*((e-r)**2+(t-n)**2)/(.1*i)**2}function sC(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function cC(){return 1}const Pp=(t,e,n=5,r=!0,i=J3,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||T<=t&&A>=e)&&(s.lmin=T,s.lmax=A,s.lstep=k,s.score=j)}}x+=1}y+=1}}c+=1}const l=mo(s.lmax),u=mo(s.lmin),f=mo(s.lstep),d=Math.floor(eC((l-u)/f))+1,h=new Array(d);h[0]=mo(u);for(let p=1;p{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Sp(t,l,1,r)-1,f=i[u],d=a[u];return Na(d,f)(l)}},mg=(t,e,n,r)=>(Math.min(t.length,e.length)>2?uC:lC)(t,e,r?Y3:n);let Pu=class extends zs{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Ra,tickCount:5}}map(e){return Sl(e)?this.output(e):this.options.unknown}invert(e){return Sl(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return Dx}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?n3(i[0],i[a-1]):$i}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=mg(r.map(e),i,o,a);this.output=Na(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=mg(a,i.map(e),Ra);this.input=Na(n,r,o)}},Yt=class c2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5}}chooseTransforms(){return[$i,$i]}clone(){return new c2(this.options)}},l2=class u2 extends Ia{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Eu,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new u2(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}};const fC=t=>e=>e<0?-((-e)**t):e**t,dC=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),hC=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);let f2=class d2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Fs,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[$i,$i];const n=e===.5?hC:fC(e),r=dC(e);return[n,r]}clone(){return new d2(this.options)}},pC=class h2 extends f2{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new h2(this.options)}},Au=class p2 extends zs{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!Sl(e))return this.options.unknown;const n=Sp(this.thresholds,e,0,this.n);return this.options.range[n]}invert(e){const{range:n}=this.options,r=n.indexOf(e),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new p2(this.options)}rescale(){const{domain:e,range:n}=this.options;this.n=Math.min(e.length,n.length-1),this.thresholds=e}};const vC=(t,e,n,r=10)=>{const i=t<0,a=Mp(r,i),o=_p(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2a-o);const i=[];for(let a=1;a3?0:(t-t%10!==10?1:0)*t%10]}},_C=zd({},SC),Qe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+Qe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Qe(Math.floor(Math.abs(e)/60),2)+":"+Qe(Math.abs(e)%60,2)}},bg={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},EC=function(t,e,n){if(e===void 0&&(e=bg.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=bg[e]||e;var r=[];e=e.replace(xC,function(a,o){return r.push(o),"@@@"});var i=zd(zd({},_C),n);return e=e.replace(bC,function(a){return MC[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};const PC=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u};function AC(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}let kC=class S2 extends Pu{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:PC,interpolate:Ra,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return m3}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?Yx:zx,i=n?AC:$i;return a=>EC(i(a),e||W3(a,r))}clone(){return new S2(this.options)}};var TC=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Gd;function CC(t){return[t(0),t(1)]}const LC=t=>{const[e,n]=t;return Na(Ra(0,1),Ol(e,n))};let Yd=Gd=class extends Yt{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:$i,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}clone(){return new Gd(this.options)}};Yd=Gd=TC([L3(CC,LC)],Yd);function _l(t,e,n){if(t===null)return[-.5,.5];const r=Ox(t,e),a=new Ia({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function Ml(t,e,n){return e*(1-t)+n*t}const _2=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=Ot(s,"x"),[d]=Ot(s,"y"),h=_l(f,l,n),p=_l(d,u,r),v=a.map(()=>Ml(i(),...p)),g=a.map(()=>Ml(i(),...h));return[a,X({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Wt(v),dx:Wt(g)}})]}};_2.props={};const M2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=Ot(a,"x"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{x:{padding:.5}}},i,{encode:{dx:Wt(u)}})]}};M2.props={};const E2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=Ot(a,"y"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{y:{padding:.5}}},i,{encode:{dy:Wt(u)}})]}};E2.props={};var NC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,a=NC(i,["x"]),o=Object.entries(a).filter(([f])=>f.startsWith("y")).map(([f])=>[f,Ot(i,f)[0]]),s=o.map(([f])=>[f,new Array(n.length)]),c=oi(e,n,r),l=new Array(c.length);for(let f=0;fo.map(([,y])=>+y[g])),[p,v]=Mr(h);l[f]=(p+v)/2}const u=Math.max(...l);for(let f=0;f[f,Wt(d,Ot(i,f)[1])]))})]}};P2.props={};const A2=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=Ot(a,"y"),[s,c]=Ot(a,"y1");n?ts(a,"series","color"):Ot(a,"color");const l=oi(e,r,i),u=new Array(r.length);for(const f of l){const d=f.map(h=>+o[h]);for(let h=0;hy!==h));u[p]=o[p]>v?v:o[p]}}return[r,X({},i,{encode:{y1:Wt(u,c)}})]}};A2.props={};function xg(t,e){return[t[0]]}function RC(t,e){const n=t.length-1;return[t[n]]}function IC(t,e){const n=to(t,r=>e[r]);return[t[n]]}function jC(t,e){const n=bu(t,r=>e[r]);return[t[n]]}function DC(t){return typeof t=="function"?t:{first:xg,last:RC,max:IC,min:jC}[t]||xg}const ku=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=oi(e,i,a),[c]=Ot(o,n),l=DC(r);return[s.flatMap(u=>l(u,c)),a]}};ku.props={};var $C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=$C(t,["selector"]);return ku(Object.assign({channel:"x",selector:e},n))};k2.props={};var BC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=BC(t,["selector"]);return ku(Object.assign({channel:"y",selector:e},n))};T2.props={};var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function zC(t){if(typeof t=="function")return[t,null];const n={mean:GC,max:WC,count:VC,first:UC,last:qC,sum:XC,min:HC,median:YC}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function GC(){const t=(n,r)=>rs(n,i=>+r[i]),e=si("mean");return[t,e]}function YC(){const t=(n,r)=>yp(n,i=>+r[i]),e=si("median");return[t,e]}function WC(){const t=(n,r)=>Ct(n,i=>+r[i]),e=si("max");return[t,e]}function HC(){const t=(n,r)=>bn(n,i=>+r[i]),e=si("min");return[t,e]}function VC(){const t=(n,r)=>n.length,e=si("count");return[t,e]}function XC(){const t=(n,r)=>Cn(n,i=>+r[i]),e=si("sum");return[t,e]}function UC(){const t=(n,r)=>r[n[0]],e=si("first");return[t,e]}function qC(){const t=(n,r)=>r[n[n.length-1]],e=si("last");return[t,e]}const Ap=(t={})=>{const{groupBy:e}=t,n=FC(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=Ot(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=zC(p),[y,m]=Ot(o,h),b=c(m,p),x=s.map(w=>v(w,y??a));return[h,Object.assign(Object.assign({},c5(x,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=Ot(o,h),g=s.map(y=>p[y[0]]);return[h,Wt(g,v)]}),f=s.map(h=>a[h[0]]);return[Ui(s),X({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};Ap.props={};var KC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=KC(t,["channels"]),r=(i,a)=>oi(e,i,a);return Ap(Object.assign(Object.assign({},n),{groupBy:r}))};Gs.props={};const C2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));C2.props={};const L2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));L2.props={};const N2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["color"]}));N2.props={};var R2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Ct(o,s=>+a[s]);if(i==="min")return o=>bn(o,s=>+a[s]);if(i==="sum")return o=>Cn(o,s=>+a[s]);if(i==="median")return o=>yp(o,s=>+a[s]);if(i==="mean")return o=>rs(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function QC(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=Ot(a,i),s=Er(t,c=>o[c]);return r&&s.reverse(),[s,e]}function JC(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function tL(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=R2(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=Ot(c,o),d=ZC(o,s,c),h=JC(t,f,u),p=w5(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,X(e,{scale:{[o]:{domain:g}}})]}const Tu=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=R2(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?tL(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):QC(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};Tu.props={};const I2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"x"}));I2.props={};const j2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"color"}));j2.props={};const D2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"y"}));D2.props={};function eL(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function nL(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Cn(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const $2=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=Ot(s,"x"),l=e?eL(o,e):Ot(s,n)[0],u=nL(r,l),f=dx(i,u,d=>c[d]).map(d=>d[1]);return[i,X({},a,{scale:{x:{flex:f}}})]}};$2.props={};function se([t,e],[n,r]){return[t-n,e-r]}function fc([t,e],[n,r]){return[t+n,e+r]}function Jt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Nn([t,e]){return Math.atan2(e,t)}function ja([t,e]){return Nn([t,e])+Math.PI/2}function B2(t,e){const n=Nn(t),r=Nn(e);return n{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[x,w,O,S]=kp(m),_=n==="col"?b%u:Math.floor(b/d),M=n==="col"?Math.floor(b/u):b%d,E=_*f,P=(d-M-1)*f+p,T=(f-e)/O,A=(f-e)/S,k=E-x+g*_+1/2*e,C=P-w-v*M-y+1/2*e;return`translate(${k}, ${C}) scale(${T}, ${A})`})}}const z2=t=>(e,n)=>[e,X({},n,{modifier:rL(t),axis:!1})];z2.props={};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=iL(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=Ot(c,p);return v}),u=Q(r,wg),f=o.filter(p=>l.every(v=>zt(v[p]))),d=[...e.map(p=>{const[v]=Ot(c,p);return v}).filter(zt).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||aL(g),m=T5().thresholds(y).value(x=>+g[x])(f),b=new Map(m.flatMap(x=>{const{x0:w,x1:O}=x,S=`${w},${O}`;return x.map(_=>[_,S])}));return i[p]=b,x=>b.get(x)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(te(f,h).values())};return Ap(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(wg)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Tp.props={};const G2=(t={})=>{const{thresholds:e}=t;return Tp(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};G2.props={};function oL(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function sL(t){if(typeof t=="function")return t;if(t==="lttb")return oL;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[bu(r,o=>a[o])]],max:(r,i,a)=>[r[to(r,o=>a[o])]],median:(r,i,a)=>[r[R5(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return cL(r,s).flatMap(l=>n(l,i,a))}}function cL(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=sL(e);return(a,o)=>{const{encode:s}=o,c=oi(r,a,o),[l]=Ot(s,"x"),[u]=Ot(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};Y2.props={};function lL(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const W2=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=Ot(r,u);if(!d)return null;const[h,p=!0]=lL(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(zt);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,X({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};W2.props={};function Ut(t){return function(){return t}}const Og=Math.abs,Re=Math.atan2,mi=Math.cos,uL=Math.max,Tf=Math.min,qn=Math.sin,va=Math.sqrt,Ie=1e-12,ls=Math.PI,El=ls/2,fL=2*ls;function dL(t){return t>1?0:t<-1?ls:Math.acos(t)}function Sg(t){return t>=1?El:t<=-1?-El:Math.asin(t)}const Wd=Math.PI,Hd=2*Wd,_i=1e-6,hL=Hd-_i;function H2(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return H2;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i_i)if(!(Math.abs(f*c-l*u)>_i)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Wd-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>_i&&this._append`L${e+x*u},${n+x*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+w*c},${this._y1=n+w*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>_i||Math.abs(this._y1-u)>_i)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Hd+Hd),d>hL?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>_i&&this._append`A${r},${r},0,${+(d>=Wd)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jn(){return new Cp}jn.prototype=Cp.prototype;function Lp(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Cp(e)}function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function yL(t){return t.startAngle}function mL(t){return t.endAngle}function bL(t){return t&&t.padAngle}function xL(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+C*C&&(_=E,M=P),{cx:_,cy:M,x01:-u,y01:-f,x11:_*(i/w-1),y11:M*(i/w-1)}}function Cu(){var t=vL,e=gL,n=Ut(0),r=null,i=yL,a=mL,o=bL,s=null,c=Lp(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-El,v=a.apply(this,arguments)-El,g=Og(v-p),y=v>p;if(s||(s=u=c()),hIe))s.moveTo(0,0);else if(g>fL-Ie)s.moveTo(h*mi(p),h*qn(p)),s.arc(0,0,h,p,v,!y),d>Ie&&(s.moveTo(d*mi(v),d*qn(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,x=p,w=v,O=g,S=g,_=o.apply(this,arguments)/2,M=_>Ie&&(r?+r.apply(this,arguments):va(d*d+h*h)),E=Tf(Og(h-d)/2,+n.apply(this,arguments)),P=E,T=E,A,k;if(M>Ie){var C=Sg(M/d*qn(_)),L=Sg(M/h*qn(_));(O-=C*2)>Ie?(C*=y?1:-1,x+=C,w-=C):(O=0,x=w=(p+v)/2),(S-=L*2)>Ie?(L*=y?1:-1,m+=L,b-=L):(S=0,m=b=(p+v)/2)}var I=h*mi(m),R=h*qn(m),j=d*mi(w),D=d*qn(w);if(E>Ie){var $=h*mi(b),B=h*qn(b),F=d*mi(x),Y=d*qn(x),U;if(gIe?T>Ie?(A=dc(F,Y,I,R,h,T,y),k=dc($,B,j,D,h,T,y),s.moveTo(A.cx+A.x01,A.cy+A.y01),TIe)||!(O>Ie)?s.lineTo(j,D):P>Ie?(A=dc(j,D,$,B,d,-P,y),k=dc(I,R,F,Y,d,-P,y),s.lineTo(A.cx+A.x01,A.cy+A.y01),P=h;--p)s.point(b[p],x[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),x[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):x[d]))}if(m)return s=null,m+""||null}function u(){return Jr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ut(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ut(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ut(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var K2=Np(Ys);function Z2(t){this._curve=t}Z2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Np(t){function e(n){return new Z2(t(n))}return e._curve=t,e}function Mo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Np(n)):e()._curve},t}function wL(){return Mo(Jr().curve(K2))}function OL(){var t=Vd().curve(K2),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mo(n())},delete t.lineX0,t.lineEndAngle=function(){return Mo(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mo(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mo(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Np(o)):e()._curve},t}function Da(){}function Xd(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rp(t,e){this._context=t,this._k=(1-e)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Rp(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ip(t,e){this._context=t,this._k=(1-e)/6}Ip.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Ip(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Q2(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ie){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ie){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function J2(t,e){this._context=t,this._alpha=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return e?new J2(r,e):new Rp(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function tw(t,e){this._context=t,this._alpha=e}tw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ew=function t(e){function n(r){return e?new tw(r,e):new Ip(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function nw(t){this._context=t}nw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function jp(t){return new nw(t)}function _g(t){return t<0?-1:1}function Mg(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(_g(a)+_g(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Eg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cf(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Pl(t){this._context=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cf(this,this._t0,Eg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cf(this,Eg(this,n=Mg(this,t,e)),n);break;default:Cf(this,this._t0,n=Mg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rw(t){this._context=new iw(t)}(rw.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)};function iw(t){this._context=t}iw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function aw(t){return new Pl(t)}function ow(t){return new rw(t)}function Lu(t,e){this._context=t,this._t=e}Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sw(t){return new Lu(t,.5)}function cw(t){return new Lu(t,0)}function lw(t){return new Lu(t,1)}function qt(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Ht(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function Nu(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function uw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function Ru(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function fw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function SL(t){return Ru(t)&&Ht(t)}function eo(t){return uw(t)||Ht(t)}function _L(t){return Ht(t)&&qt(t)}function ML(t){if(eo(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Iu(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function Dp(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function EL(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}var dw={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function a(c,l,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||c,d),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?hc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?hc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kL.exec(t))?new yn(e[1],e[2],e[3],1):(e=TL.exec(t))?new yn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=CL.exec(t))?hc(e[1],e[2],e[3],e[4]):(e=LL.exec(t))?hc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,1):(e=RL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,e[4]):Pg.hasOwnProperty(t)?Tg(Pg[t]):t==="transparent"?new yn(NaN,NaN,NaN,0):null}function Tg(t){return new yn(t>>16&255,t>>8&255,t&255,1)}function hc(t,e,n,r){return r<=0&&(t=e=n=NaN),new yn(t,e,n,r)}function jL(t){return t instanceof Ws||(t=ju(t)),t?(t=t.rgb(),new yn(t.r,t.g,t.b,t.opacity)):new yn}function DL(t,e,n,r){return arguments.length===1?jL(t):new yn(t,e,n,r??1)}function yn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Bp(yn,DL,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatRgb:Lg,toString:Lg}));function Cg(){return"#"+Lf(this.r)+Lf(this.g)+Lf(this.b)}function Lg(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Lf(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ng(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qn(t,e,n,r)}function pw(t){if(t instanceof Qn)return new Qn(t.h,t.s,t.l,t.opacity);if(t instanceof Ws||(t=ju(t)),!t)return new Qn;if(t instanceof Qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Qn(o,s,c,t.opacity)}function $L(t,e,n,r){return arguments.length===1?pw(t):new Qn(t,e,n,r??1)}function Qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Bp(Qn,$L,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new Qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new Qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yn(Nf(t>=240?t-240:t+120,i,r),Nf(t,i,r),Nf(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Nf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Pr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function vw(t,e){var n=Math.min.apply(Math,q([],N(t),!1)),r=Math.min.apply(Math,q([],N(e),!1)),i=Math.max.apply(Math,q([],N(t),!1)),a=Math.max.apply(Math,q([],N(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function BL(t,e,n){return Math.atan(-e/t*Math.tan(n))}function FL(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function zL(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function GL(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function YL(t,e,n,r,i,a,o){for(var s=BL(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=FL(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}var WL=1e-4;function gw(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,q([],N(t.concat([h])),!1)),i.apply(void 0,q([],N(e.concat([h])),!1))],v=Pr(c[0],c[1],p[0],p[1]);v=0&&v=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Fo(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function VL(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Rg(t,n,i,o),f=Rg(e,r,a,s),d=0;d=0?[i]:[]}function KL(t,e,n,r,i,a){var o=jg(t,n,i)[0],s=jg(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(qd(t,n,i,o)),s!==void 0&&l.push(qd(e,r,a,s)),vw(c,l)}function ZL(t,e,n,r,i,a,o,s){return gw([t,n,i],[e,r,a],o,s,qd)}function QL(t,e,n,r,i,a,o,s){var c=ZL(t,e,n,r,i,a,o,s);return Pr(c.x,c.y,o,s)}var JL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bw={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(JL,function(){function n(w,O,S,_,M){r(w,O,S||0,_||w.length-1,M||a)}function r(w,O,S,_,M){for(;_>S;){if(_-S>600){var E=_-S+1,P=O-S+1,T=Math.log(E),A=.5*Math.exp(2*T/3),k=.5*Math.sqrt(T*A*(E-A)/E)*(P-E/2<0?-1:1),C=Math.max(S,Math.floor(O-P*A/E+k)),L=Math.min(_,Math.floor(O+(E-P)*A/E+k));r(w,O,C,L,M)}var I=w[O],R=S,j=_;for(i(w,S,O),M(w[_],I)>0&&i(w,S,_);R0;)j--}M(w[S],I)===0?i(w,S,j):(j++,i(w,j,_)),j<=O&&(S=j+1),O<=j&&(_=j-1)}}function i(w,O,S){var _=w[O];w[O]=w[S],w[S]=_}function a(w,O){return wO?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var S=this.data,_=[];if(!m(O,S))return _;for(var M=this.toBBox,E=[];S;){for(var P=0;P=0&&E[S].children.length>this._maxEntries;)this._split(E,S),S--;this._adjustParentBBoxes(M,E,S)},o.prototype._split=function(O,S){var _=O[S],M=_.children.length,E=this._minEntries;this._chooseSplitAxis(_,E,M);var P=this._chooseSplitIndex(_,E,M),T=b(_.children.splice(P,_.children.length-P));T.height=_.height,T.leaf=_.leaf,c(_,this.toBBox),c(T,this.toBBox),S?O[S-1].children.push(T):this._splitRoot(_,T)},o.prototype._splitRoot=function(O,S){this.data=b([O,S]),this.data.height=O.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,S,_){for(var M,E=1/0,P=1/0,T=S;T<=_-S;T++){var A=l(O,0,T,this.toBBox),k=l(O,T,_,this.toBBox),C=g(A,k),L=h(A)+h(k);C=S;L--){var I=O.children[L];u(T,O.leaf?E(I):I),A+=p(T)}return A},o.prototype._adjustParentBBoxes=function(O,S,_){for(var M=_;M>=0;M--)u(S[M],O)},o.prototype._condense=function(O){for(var S=O.length-1,_=void 0;S>=0;S--)O[S].children.length===0?S>0?(_=O[S-1].children,_.splice(_.indexOf(O[S]),1)):this.clear():c(O[S],this.toBBox)};function s(w,O,S){if(!S)return O.indexOf(w);for(var _=0;_=w.minX&&O.maxY>=w.minY}function b(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(w,O,S,_,M){for(var E=[O,S];E.length;)if(S=E.pop(),O=E.pop(),!(S-O<=_)){var P=O+Math.ceil((S-O)/_/2)*_;n(w,P,O,S,M),E.push(O,P,P,S)}}return o})})(bw);var tN=bw.exports,G;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(G||(G={}));var wa;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(wa||(wa={}));var ci=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),eN=function(){function t(e){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.plugins=[],this.config=z({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function na(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Rf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function el(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Dg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function nN(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function rN(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Oa(t){return t===void 0?0:t>360||t<-360?t%360:t}function We(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?br(t):de(t)?St(t,e,n):St(t[0],t[1]||e,t[2]||n)}function re(t){return t*(Math.PI/180)}function Pn(t){return t*(180/Math.PI)}function iN(t){return 360*t}function aN(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function oN(t,e){var n,r,i=Math.PI*.5,a=N(Aa(yt(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function If(t,e){return e.length===16?oN(t,e):aN(t,e)}function sN(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return Yk(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function cN(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function $g(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eft[1][2]&&(a[0]=-a[0]),ft[0][2]>ft[2][0]&&(a[1]=-a[1]),ft[1][0]>ft[0][1]&&(a[2]=-a[2]),!0}function uN(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function fN(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function jf(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var be=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){na(this.center,e),na(this.halfExtents,n),Rf(this.min,this.center,this.halfExtents),el(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){el(this.center,n,e),Dg(this.center,this.center,.5),Rf(this.halfExtents,n,e),Dg(this.halfExtents,this.halfExtents,.5),na(this.min,e),na(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],x=e.halfExtents,w=x[0],O=x[1],S=x[2],_=y-w,M=y+w,E=m-O,P=m+O,T=b-S,A=b+S;_f&&(f=M),Eh&&(h=P),Tv&&(v=A),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),x=Math.abs(f),w=Math.abs(d),O=Math.abs(h),S=Math.abs(p),_=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+x*o[1]+w*o[2],i[2]=O*o[0]+S*o[1]+_*o[2],Rf(this.min,r,i),el(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=nN([0,0,0],this.getMin(),e.getMin()),i=rN([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),dN=function(){function t(e,n){this.distance=e||0,this.normal=n||St(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return nr(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/tx(this.normal);Cd(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&Ld(r,e,n,o),s},t}(),zr;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(zr||(zr={}));var hN=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new dN)}return t.prototype.extractFromVPMatrix=function(e){var n=N(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];Gn(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,Gn(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,Gn(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,Gn(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,Gn(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,Gn(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Ee=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Fi=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),It="Method not implemented.",ra="Use document.documentElement instead.",pN="Cannot append a destroyed element.",Tt;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(Tt||(Tt={}));var ds;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(ds||(ds={}));var tn;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(tn||(tn={}));var xw={UPDATED:"updated"},Fg=2e-4,ww=function(){function t(){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.eventEmitter=new $p,this.matrix=Nt(),this.right=St(1,0,0),this.up=St(0,1,0),this.forward=St(0,0,1),this.position=St(0,0,1),this.focalPoint=St(0,0,0),this.distanceVector=St(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Nt(),this.projectionMatrixInverse=Nt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=Tt.EXPLORING,this.trackingMode=ds.DEFAULT,this.projectionMode=tn.PERSPECTIVE,this.frustum=new hN,this.orthoMatrix=Nt()}return t.prototype.isOrtho=function(){return this.projectionMode===tn.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===Tt.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Tt.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==Tt.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Wn(Nt(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=up(Nt(),[e,n,0]);this.jitteredProjectionMatrix=$e(Nt(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===tn.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===tn.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=St(c-i,l-a,0),f=nr(u,this.right)/wr(this.right),d=nr(u,this.up)/wr(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=tn.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(re(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return cN(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===wa.ZERO),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=tn.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===wa.NEGATIVE_ONE?Ub(this.projectionMatrix,d,h,v,p,a,o):qb(this.projectionMatrix,d,h,v,p,a,o),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=We(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=St(0,1,0);if(this.focalPoint=We(e,n,r),this.trackingMode===ds.CINEMATIC){var a=qv(yt(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=wr(a),s=Pn(Math.asin(n/o)),c=90+Pn(Math.atan2(r,e)),l=Nt();Wb(l,l,re(c)),Yb(l,l,re(s)),i=Oe(yt(),[0,1,0],l)}return Wn(this.matrix,Kb(Nt(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=Z.kEms&&e=ti.kUnitType&&this.getType()<=ti.kClampType},t}(),xN=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return ti.kColorType},e.prototype.to=function(n){return this},e}(Du),rr;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(rr||(rr={}));var pc=function(t){rt(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return ti.kColorType},e}(Du),sn=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return ti.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(Du),wN=Ne(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Yg=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function ON(t){if(!t)throw new Error}function ga(t){return typeof t=="function"}function SN(t){return typeof t=="symbol"}var _N={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},Jd=Ne(function(t){var e=wN(t),n=_N[e];return e=(n==null?void 0:n.alias)||e,e}),MN=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(ON(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},th=function(t){return bN(mN(t))},jt=function(t){rt(e,t);function e(n,r){r===void 0&&(r=Z.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=yN(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return ti.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=th(this.unit);if(r!==th(n)||r===Z.kUnknown)return null;var i=Gg(this.unit)/Gg(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case Z.kUnknown:break;case Z.kInteger:a=Number(this.value).toFixed(0);break;case Z.kNumber:case Z.kPercentage:case Z.kEms:case Z.kRems:case Z.kPixels:case Z.kDegrees:case Z.kRadians:case Z.kGradians:case Z.kMilliseconds:case Z.kSeconds:case Z.kTurns:{var o=-999999,s=999999,c=this.value,l=Qd(this.unit);if(cs){var u=Qd(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=MN(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(Du),we=new jt(0,"px");new jt(1,"px");var Hn=new jt(0,"deg"),Fp=function(t){rt(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(xN),Gt=new sn("unset"),EN=new sn("initial"),PN=new sn("inherit"),Df={"":Gt,unset:Gt,initial:EN,inherit:PN},eh=function(t){return Df[t]||(Df[t]=new sn(t)),Df[t]},nh=new Fp(0,0,0,0,!0),Ow=new Fp(0,0,0,0),AN=Ne(function(t,e,n,r){return new Fp(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),Ft=function(t,e){return e===void 0&&(e=Z.kNumber),new jt(t,e)},kl=new jt(50,"%"),rh;(function(t){t[t.Standard=0]="Standard"})(rh||(rh={}));var $a;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})($a||($a={}));var Sw={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)},tt;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(tt||(tt={}));function kN(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var TN=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(I){throw new Error(e+": "+I)}function r(){var I=i();return e.length>0&&n("Invalid input not EOF"),I}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(I,R,j){return s(R,function(D){var $=j();return $&&(C(t.comma)||n("Missing comma before color stops")),{type:I,orientation:$,colorStops:b(x)}})}function s(I,R){var j=C(I);if(j){C(t.startCall)||n("Missing (");var D=R(j);return C(t.endCall)||n("Missing )"),D}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var I,R=d(),j;return R&&(I=[],I.push(R),j=e,C(t.comma)&&(R=d(),R?I.push(R):e=j)),I}function d(){var I=h()||p();if(I)I.at=g();else{var R=v();if(R){I=R;var j=g();j&&(I.at=j)}else{var D=y();D&&(I={type:"default-radial",at:D})}}return I}function h(){var I=k("shape",/^(circle)/i,0);return I&&(I.style=A()||v()),I}function p(){var I=k("shape",/^(ellipse)/i,0);return I&&(I.style=P()||v()),I}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=m();if(I.x||I.y)return{type:"position",value:I}}function m(){return{x:P(),y:P()}}function b(I){var R=I(),j=[];if(R)for(j.push(R);C(t.comma);)R=I(),R?j.push(R):n("One extra comma");return j}function x(){var I=w();return I||n("Expected color definition"),I.length=P(),I}function w(){return S()||M()||_()||O()}function O(){return k("literal",t.literalColor,0)}function S(){return k("hex",t.hexColor,1)}function _(){return s(t.rgbColor,function(){return{type:"rgb",value:b(E)}})}function M(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(E)}})}function E(){return C(t.number)[1]}function P(){return k("%",t.percentageValue,1)||T()||A()}function T(){return k("position-keyword",t.positionKeywords,1)}function A(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(I,R,j){var D=C(R);if(D)return{type:I,value:D[j]}}function C(I){var R=/^[\n\r\t\s]+/.exec(e);R&&L(R[0].length);var j=I.exec(e);return j&&L(j[0].length),j}function L(I){e=e.substring(I)}return function(I){return e=I,r()}}();function CN(t,e,n){var r=re(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function LN(t,e,n,r,i){var a=n.value,o=r.value;n.unit===Z.kPercentage&&(a=n.value/100*t),r.unit===Z.kPercentage&&(o=r.value/100*e);var s=Math.max(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]));return i&&(i instanceof jt?s=i.value:i instanceof sn&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]))))),{x:a,y:o,r:s}}var NN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,RN=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,IN=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,_w=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function jN(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=TN(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;jN(u);var f=u.map(function(b){return{offset:Ft(Number(b.length.value),"%"),color:kN(b)}});if(c==="linear-gradient")return new pc(rr.LinearGradient,{angle:l?$N(l):Hn,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=BN(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=eh(m):v=Ft(m,y)}return new pc(rr.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=NN.exec(t);if(i){var a=((e=i[2].match(_w))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pc(rr.LinearGradient,{angle:Ft(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=N(s,2),l=c[0],u=c[1];return{offset:Ft(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=zN(t);if(o)if(le(o))t=o;else return[new pc(rr.RadialGradient,o)]}else if(r==="p")return GN(t)}});function zN(t){var e,n=RN.exec(t);if(n){var r=((e=n[4].match(_w))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:Ft(50,"%"),cy:Ft(50,"%"),steps:r.map(function(i){var a=N(i,2),o=a[0],s=a[1];return{offset:Ft(Number(o)*100,"%"),color:s}})}}return null}function GN(t){var e=IN.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function hs(t){return t&&!!t.image}function Tl(t){return t&&!nt(t.r)&&!nt(t.g)&&!nt(t.b)}var Ar=Ne(function(t){if(hs(t))return z({repetition:"repeat"},t);if(nt(t)&&(t=""),t==="transparent")return Ow;t==="currentColor"&&(t="black");var e=FN(t);if(e)return e;var n=ju(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),AN.apply(void 0,q([],N(r),!1))});function YN(t,e){if(!(!Tl(t)||!Tl(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(ce(r[i],0,255));return r[3]=ce(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Hs(t,e){if(nt(e))return Ft(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return Ft(Number(e),"px");if("deg".search(t)>=0)return Ft(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return Ft(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var Mw=function(t){return Hs(new RegExp("px","g"),t)},WN=Ne(Mw),HN=function(t){return Hs(new RegExp("%","g"),t)};Ne(HN);var ps=function(t){return de(t)||isFinite(Number(t))?Ft(Number(t)||0,"px"):Hs(new RegExp("px|%|em|rem","g"),t)},Ba=Ne(ps),zp=function(t){return Hs(new RegExp("deg|rad|grad|turn","g"),t)},Ew=Ne(zp);function VN(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=th(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=Qd(t.unit)):(jt.isLength(t.unit)||jt.isLength(e.unit))&&(o=dn(t,i,n),s=dn(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function hn(t){var e=0;return t.unit===Z.kDegrees?e=t.value:t.unit===Z.kRadians?e=Pn(Number(t.value)):t.unit===Z.kTurns&&(e=iN(Number(t.value))),e}function $f(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):le(t)?n=t.split(" ").map(function(r){return Number(r)}):de(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function Pw(t){return le(t)?t.split(" ").map(function(e){return Ba(e)}):t.map(function(e){return Ba(e.toString())})}function dn(t,e,n){if(t.value===0)return 0;if(t.unit===Z.kPixels)return Number(t.value);if(t.unit===Z.kPercentage&&n){var r=n.nodeName===G.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var XN=function(t){return Hs(/deg|rad|grad|turn|px|%/g,t)},UN=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Aw(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,UN.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return XN(a)||Ar(a)})}),e.lastIndex===t.length)return n}return[]}function kw(t){return t.toString()}var no=function(t){return typeof t=="number"?Ft(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ft(Number(t)):Ft(0)},zi=Ne(no);Ne(function(t){return le(t)?t.split(" ").map(zi):t.map(zi)});function Gp(t,e){return[t,e,kw]}function Yp(t,e){return function(n,r){return[n,r,function(i){return kw(ce(i,t,e))}]}}function Tw(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function ih(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=e5(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function qN(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function Cl(t,e){return t[0]===e[0]&&t[1]===e[1]}function QN(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function Wg(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var Hg=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},Vg=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Ib(r,360);var c=re(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},x=Hg({x:1,y:0},b),w={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},O=Hg(b,w);!a&&O>0?O-=2*Math.PI:a&&O<0&&(O+=2*Math.PI),O%=2*Math.PI;var S=x+O*s,_=e*Math.cos(S),M=n*Math.sin(S),E={x:Math.cos(c)*_-Math.sin(c)*M+m.x,y:Math.sin(c)*_+Math.cos(c)*M+m.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+O,ellipticalArcAngle:S,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return E};function JN(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,x=[(f-g)/n,(d-y)/r],w=[(-1*f-g)/n,(-1*d-y)/r],O=Ug([1,0],x),S=Ug(x,w);return ah(x,w)<=-1&&(S=Math.PI),ah(x,w)>=1&&(S=0),o===0&&S>0&&(S=S-2*Math.PI),o===1&&S<0&&(S=S+2*Math.PI),{cx:m,cy:b,rx:Cl(t,[l,u])?0:n,ry:Cl(t,[l,u])?0:r,startAngle:O,endAngle:O+S,xRotation:i,arcFlag:a,sweepFlag:o}}function e4(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=St(l[1]-a,l[2]-s,0);n&&Oe(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0),p=St(l[5]-a,l[6]-s,0);n&&(Oe(d,d,n),Oe(h,h,n),Oe(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=St(l[6]-a,l[7]-s,0);n&&Oe(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0);n&&(Oe(d,d,n),Oe(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function n4(t,e,n,r){return[["M",t,e],["L",n,r]]}function qg(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function r4(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function i4(t,e,n,r,i){if(i){var a=N(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function Wp(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case G.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=n4(a,s,l,f);break;case G.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=qg(p,p,g,m);break}case G.ELLIPSE:{var b=t.parsedStyle,x=b.rx,w=x===void 0?0:x,O=b.ry,S=O===void 0?0:O,_=b.cx,g=_===void 0?0:_,M=b.cy,m=M===void 0?0:M;n=qg(w,S,g,m);break}case G.POLYLINE:case G.POLYGON:var E=t.parsedStyle.points;n=r4(E.points,t.nodeName===G.POLYGON);break;case G.RECT:var P=t.parsedStyle,T=P.width,A=T===void 0?0:T,k=P.height,C=k===void 0?0:k,L=P.x,I=L===void 0?0:L,R=P.y,j=R===void 0?0:R,D=P.radius,$=D&&D.some(function(F){return F!==0});n=i4(A,C,I,j,$&&D.map(function(F){return ce(F,0,Math.min(Math.abs(A)/2,Math.abs(C)/2))}));break;case G.PATH:var B=t.parsedStyle.path.absolutePath;n=q([],N(B),!1);break}if(n.length)return e4(n,t,e)}var Cw=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=bl(t)}catch{e=bl(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}qN(e);var n=KN(e),r=ZN(e),i=r.polygons,a=r.polylines,o=JN(e),s=QN(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},a4=Ne(Cw);function oh(t){return le(t)?a4(t):Cw(t)}function o4(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Rd(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Rd(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=cx(r,i));var o=eg(a[0])!==eg(a[1])?qT(a[0]):UT(a[0]);return[o,r5(a[1],o),function(s){return s}]}function Lw(t,e){var n;le(t)?n=t.split(" ").map(function(u){var f=N(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=qL(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=yw(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,q([],N(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,q([],N(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function s4(t,e){return[t.points,e.points,function(n){return n}]}var ie=null;function Je(t){return function(e){var n=0;return t.map(function(r){return r===ie?e[n++]:r})}}function bi(t){return t}var Ll={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],bi],matrix3d:["NNNNNNNNNNNNNNNN",bi],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Je([ie,ie,new jt(1)]),bi],scalex:["N",Je([ie,new jt(1),new jt(1)]),Je([ie,new jt(1)])],scaley:["N",Je([new jt(1),ie,new jt(1)]),Je([new jt(1),ie])],scalez:["N",Je([new jt(1),new jt(1),ie])],scale3d:["NNN",bi],skew:["Aa",null,bi],skewx:["A",null,Je([ie,Hn])],skewy:["A",null,Je([Hn,ie])],translate:["Tt",Je([ie,ie,we]),bi],translatex:["T",Je([ie,we,we]),Je([ie,we])],translatey:["T",Je([we,ie,we]),Je([we,ie])],translatez:["L",Je([we,we,ie])],translate3d:["TTL",bi]};function Hp(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=Ll[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=$f(n.anchor,2)),n.transform&&(e.parsedStyle.transform=Hp(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Nw(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===G.CIRCLE||e.nodeName===G.ELLIPSE)&&(!nt(n.cx)||!nt(n.cy))||(e.nodeName===G.RECT||e.nodeName===G.IMAGE||e.nodeName===G.GROUP||e.nodeName===G.HTML||e.nodeName===G.TEXT||e.nodeName===G.MESH)&&(!nt(n.x)||!nt(n.y)||!nt(n.z))||e.nodeName===G.LINE&&(!nt(n.x1)||!nt(n.y1)||!nt(n.z1)||!nt(n.x2)||!nt(n.y2)||!nt(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=r.memoize,v=d,g=Object.keys(n);g.forEach(function(y){var m;u||(e.attributes[y]=n[y]),!v&&(!((m=Br[y])===null||m===void 0)&&m.l)&&(v=!0)}),f||g.forEach(function(y){e.computedStyle[y]=i.parseProperty(y,e.attributes[y],e,p)}),h!=null&&h.length&&(g=Array.from(new Set(g.concat(h)))),g.forEach(function(y){y in e.computedStyle&&(e.parsedStyle[y]=i.computeProperty(y,e.computedStyle[y],e,p))}),v&&this.updateGeometry(e),g.forEach(function(y){y in e.parsedStyle&&i.postProcessProperty(y,e,g)}),this.runtime.enableCSSParsing&&e.children.length&&g.forEach(function(y){y in e.parsedStyle&&i.isPropertyInheritable(y)&&e.children.forEach(function(m){m.internalSetAttribute(y,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r,i){var a=Br[e],o=n;if((n===""||nt(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")o=eh(n);else if(a){var s=a.k,c=a.syntax,l=c&&this.getPropertySyntax(c);s&&s.indexOf(n)>-1?o=eh(n):l&&(!i&&l.parserUnmemoize?o=l.parserUnmemoize(n,r):l.parser&&(o=l.parser(n,r)))}return o},t.prototype.computeProperty=function(e,n,r,i){var a=Br[e],o=r.id==="g-root",s=n;if(a){var c=a.syntax,l=a.inh,u=a.d;if(n instanceof sn){var f=n.value;if(f==="unset"&&(l&&!o?f="inherit":f="initial"),f==="initial")nt(u)||(n=this.parseProperty(e,ga(u)?u(r.nodeName):u,r,i));else if(f==="inherit"){var d=this.tryToResolveProperty(r,e,{inherited:!0});if(nt(d)){this.addUnresolveProperty(r,e);return}else return d}}var h=c&&this.getPropertySyntax(c);if(h&&h.calculator){var p=r.parsedStyle[e];s=h.calculator(e,p,n,r,this.runtime)}else n instanceof sn?s=n.value:s=n}return s},t.prototype.postProcessProperty=function(e,n,r){var i=Br[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=la.get(e);r||(la.set(e,[]),r=la.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&m4(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=la.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),la.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new be),i.renderBounds||(i.renderBounds=new be);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,x=m.lineWidth,w=m.increasedLineWidthForHitTesting,O=m.shadowType,S=m.shadowColor,_=m.filter,M=_===void 0?[]:_,E=m.transformOrigin,P=a.anchor;n===G.TEXT?delete a.anchor:n===G.MESH&&(a.anchor[2]=.5);var T=[(1-(P&&P[0]||0)*2)*s/2+d,(1-(P&&P[1]||0)*2)*c/2+p,(1-(P&&P[2]||0)*2)*y[2]+g];i.contentBounds.update(T,y);var A=n===G.POLYLINE||n===G.POLYGON||n===G.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var C=((x||0)+(w||0))*A;y[0]+=C,y[1]+=C}if(i.renderBounds.update(T,y),S&&O&&O!=="inner"){var L=i.renderBounds,I=L.min,R=L.max,j=a,D=j.shadowBlur,$=j.shadowOffsetX,B=j.shadowOffsetY,F=D||0,Y=$||0,U=B||0,K=I[0]-F+Y,V=R[0]+F+Y,W=I[1]-F+U,J=R[1]+F+U;I[0]=Math.min(I[0],K),R[0]=Math.max(R[0],V),I[1]=Math.min(I[1],W),R[1]=Math.max(R[1],J),i.renderBounds.setMinMax(I,R)}M.forEach(function(lt){var xt=lt.name,Et=lt.params;if(xt==="blur"){var Xt=Et[0].value;i.renderBounds.update(i.renderBounds.center,el(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Xt,Xt,0]))}else if(xt==="drop-shadow"){var ue=Et[0].value,Ke=Et[1].value,vr=Et[2].value,gi=i.renderBounds,Ge=gi.min,wn=gi.max,_t=Ge[0]-vr+ue,Pt=wn[0]+vr+ue,ee=Ge[1]-vr+Ke,kt=wn[1]+vr+Ke;Ge[0]=Math.min(Ge[0],_t),wn[0]=Math.max(wn[0],Pt),Ge[1]=Math.min(Ge[1],ee),wn[1]=Math.max(wn[1],kt),i.renderBounds.setMinMax(Ge,wn)}}),P=a.anchor;var et=s<0,it=c<0,ct=(et?-1:1)*(E?dn(E[0],0,e):0),ot=(it?-1:1)*(E?dn(E[1],1,e):0);ct=ct-(et?-1:1)*(P&&P[0]||0)*i.contentBounds.halfExtents[0]*2,ot=ot-(it?-1:1)*(P&&P[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(ct,ot),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Br[e];return n?n.inh:!1},t}(),x4=function(){function t(){this.parser=Ew,this.parserUnmemoize=zp,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i){return hn(r)},t}(),w4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof sn&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),O4=function(){function t(){this.parser=Ar,this.parserWithCSSDisabled=Ar,this.mixer=YN}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="none"?nh:Ow:r},t}(),S4=function(){function t(){this.parser=Aw}return t.prototype.calculator=function(e,n,r){return r instanceof sn?[]:r},t}();function Jg(t){var e=t.parsedStyle.fontSize;return nt(e)?null:e}var Xp=function(){function t(){this.parser=Ba,this.parserUnmemoize=ps,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i,a){var o;if(de(r))return r;if(jt.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===Z.kPercentage)return 0;if(r.unit===Z.kEms){if(i.parentNode){var c=Jg(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===Z.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=Jg(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),_4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),M4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),xo=Nt();function Up(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[we,we];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[we];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[we];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[we];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[we,we,we];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a==="rotatex"){var l=o||[Hn];e.rotateLocal(hn(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Hn];e.rotateLocal(0,hn(l[0]),0)}else if(a==="rotatez"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(re(u[0]),re(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(re(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],re(u[0]))}else if(a==="matrix"){var f=N(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Td(xo,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Td.apply(bT,q([xo],N(o.map(function(m){return m.value})),!1)),xo[12]+=n,xo[13]+=r,e.setLocalTransform(xo))}),e.getLocalTransform()}var E4=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case G.CIRCLE:case G.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;nt(c)||(i=c),nt(l)||(a=l),nt(u)||(o=u);break;case G.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case G.RECT:case G.IMAGE:case G.GROUP:case G.HTML:case G.TEXT:case G.MESH:nt(n.parsedStyle.x)||(i=n.parsedStyle.x),nt(n.parsedStyle.y)||(a=n.parsedStyle.y),nt(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==G.PATH&&n.nodeName!==G.POLYLINE&&n.nodeName!==G.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!nt(i)||!nt(a)||!nt(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)Up(b,n);else{var x=N(n.getLocalPosition(),3),w=x[0],O=x[1],S=x[2];n.setLocalPosition(nt(i)?w:i,nt(a)?O:a,nt(o)?S:o)}}},e}(Xp),P4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof sn&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),A4=function(){function t(){this.mixer=Gp,this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===G.LINE||a===G.PATH||a===G.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),T4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),C4=function(){function t(){this.parser=oh,this.parserWithCSSDisabled=oh,this.mixer=o4}return t.prototype.calculator=function(e,n,r){return r instanceof sn&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===G.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),L4=function(){function t(){this.parser=Lw,this.mixer=s4}return t.prototype.postProcessor=function(e,n){if((e.nodeName===G.POLYGON||e.nodeName===G.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),N4=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.mixer=Yp(0,1/0),n}return e}(Xp),R4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),I4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),Gf={},j4=0;function D4(t,e){if(t){var n=typeof t=="string"?t:t.id||j4++;Gf[n]&&Gf[n].destroy(),Gf[n]=e}}var Vs=typeof window<"u"&&typeof window.document<"u";function $4(t){return!!t.getAttribute}function B4(t,e){for(var n=0,r=t.length;n>>1;Rw(t[i],e)<0?n=i+1:r=i}return n}function Rw(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function Iw(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var ty="px";function F4(t,e,n){Vs&&t.style&&(t.style.width=e+ty,t.style.height=n+ty)}function jw(t,e){if(Vs)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function z4(t){var e=jw(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function G4(t){var e=jw(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var Y4=1,W4={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},sh=typeof performance=="object"&&performance.now?performance:Date;function Ki(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var H4=1,V4=function(){return H4++},sr=typeof self=="object"&&self.self==self?self:typeof global=="object"&&global.global==global?global:{},X4=Date.now(),U4=function(){return sr.performance&&typeof sr.performance.now=="function"?sr.performance.now():Date.now()-X4},Eo={},ey=Date.now(),q4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-ey,r=n>16?0:16-n,i=V4();return Eo[i]=t,Object.keys(Eo).length>1||setTimeout(function(){ey=e;var a=Eo;Eo={},Object.keys(a).forEach(function(o){return a[o](U4())})},r),i},K4=function(t){delete Eo[t]},Z4=["","webkit","moz","ms","o"],Dw=function(t){return typeof t!="string"?q4:t===""?sr.requestAnimationFrame:sr[t+"RequestAnimationFrame"]},Q4=function(t){return typeof t!="string"?K4:t===""?sr.cancelAnimationFrame:sr[t+"CancelAnimationFrame"]||sr[t+"CancelRequestAnimationFrame"]},J4=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},$w=J4(Z4,function(t){return!!Dw(t)}),Bw=Dw($w),Fw=Q4($w);sr.requestAnimationFrame=Bw;sr.cancelAnimationFrame=Fw;var tR=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!rR.test(l)&&nR.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var aR=function(){function t(){this.parser=Hp,this.parserUnmemoize=Kg,this.parserWithCSSDisabled=Kg,this.mixer=g4}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;Up(n,e)},t}(),oR=function(){function t(){this.parser=Nw,this.parserUnmemoize=y4}return t}(),sR=function(){function t(){this.parser=zi,this.parserUnmemoize=no}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=$a.Z_INDEX_CHANGED)}},t}(),cR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),lR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),uR=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),fR=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),dR=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Le(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),hR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!le(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),pR=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!nt(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var x=0;return c==="middle"?x=y[1]:c==="top"||c==="hanging"?x=y[1]*2:c==="alphabetic"?x=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(x=0),l&&(b+=l),u&&(x+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:x}},t}();function vR(t){return!!t.type}var $u=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Ee,this.page=new Ee,this.canvas=new Ee,this.viewport=new Ee,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(It)},t}(),zw=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.client=new Ee,n.movement=new Ee,n.offset=new Ee,n.global=new Ee,n.screen=new Ee,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(It)},e}($u),ch=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(zw),lh=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(zw),Dt=function(t){rt(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}($u),ny=":",Gw=function(){function t(){this.emitter=new $p}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Xv(r)&&r||ki(r)&&r.capture,a=ki(r)&&r.once,o=ga(n)?void 0:n,s=!1,c="";if(e.indexOf(ny)>-1){var l=N(e.split(ny),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=ga(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(It)},e.prototype.lookupNamespaceURI=function(n){throw new Error(It)},e.prototype.lookupPrefix=function(n){throw new Error(It)},e.prototype.normalize=function(){throw new Error(It)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Gw),gR=2048,yR=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new $p,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Nt(),this.tmpVec3=yt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=sh.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}_e.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),_e.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&_e.isNode(c)&&c.parentNode;p&&p!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),_e.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),_e.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),_e.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),_e.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=$e(this.tmpMatrix,u,l),d=Gn(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return Oe(d,d,f),new Ee(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=$e(this.tmpMatrix,i,a),s=Gn(this.tmpVec3,e.x,e.y,0);Oe(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Ee((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=vn(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(ch);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r??(o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i),typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(lh);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(lh);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(ch);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n??r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=sh.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n??e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||_e.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=$4(n)&&n.getAttribute("cursor");if(r)return r;n=_e.isNode(n)&&n.parentNode}},t}(),mR=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||H.offscreenCanvas)this.canvas=e||H.offscreenCanvas,this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),Qr;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(Qr||(Qr={}));var bR=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Ye,initAsync:new tR,dirtycheck:new Yf,cull:new Yf,beginFrame:new Ye,beforeRender:new Ye,render:new Ye,afterRender:new Ye,endFrame:new Ye,destroy:new Ye,pick:new eR,pickSync:new Yf,pointerDown:new Ye,pointerUp:new Ye,pointerMove:new Ye,pointerOut:new Ye,pointerOver:new Ye,pointerWheel:new Ye,pointerCancel:new Ye,click:new Ye}}return t.prototype.init=function(e){var n=this,r=z(z({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(Qr.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(Qr.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==$a.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=B4(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Rw)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(Qr.DISPLAY_OBJECT_CHANGED)},t}(),xR=/\[\s*(.*)=(.*)\s*\]/,wR=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(xR),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return nt(r)?"":r.toString?r.toString():""},t}(),Gi=function(t){rt(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}($u),ht;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(ht||(ht={}));function ry(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var OR=new Gi(ht.REPARENT,null,"","","",0,"",""),SR=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Dt(ht.BOUNDS_CHANGED),this.rotate=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=ve();oc(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);sc(r,f),Sf(r,r),qr(l,r,l),qr(c.localRotation,l,u),ml(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;oc(r,a[0],a[1],a[2]),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{oc(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);sc(r,Sf(ve(),l)),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=St(i,a,o));var s=r.transformable;vo(i,yt())||(OT(i,i,s.localRotation),ba(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Nt(),i=yt();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!vo(n.getPosition(a),i)){if(rn(s.position,i),a.parentNode===null||!a.parentNode.transformable)rn(s.localPosition,i);else{var c=a.parentNode.transformable;Ri(r,c.worldTransform),Wn(r,r),Oe(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=yt();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!vo(o.localPosition,r)&&(rn(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=yt(),i=yt(),a=yt();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=Gn(i,s,c,l)),!vo(s,r)&&(ba(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=ve();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=_f(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);sc(r,u),Sf(r,r),qr(l.localRotation,r,a),ml(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Nt(),i=yt(),a=_f(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(zo(o.localTransform,o.localRotation,o.localPosition,St(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Rs(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),$e(o.localTransform,o.localTransform,c)}var l=zo(r,a,i,o.localScale,o.origin);$e(o.localTransform,o.localTransform,l)}else zo(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,nt(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=$a.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(OR)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=$a.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=St(n,r,i));var a=e.transformable;oc(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;xT(r.localScale,r.localScale,St(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=St(n[0],n[1],n[2]||r.localScale[2]);vo(i,r.localScale)||(rn(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=_f(n,r,i,a));var o=e.transformable;sc(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=AT(n,r));var i=e.transformable;kT(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=N(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)ry(r),r=r.parentNode;n&&e.forEach(function(i){ry(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new Gi(ht.ATTR_MODIFIED,a,n,n,i,Gi.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return gl(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return yl(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Aa(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=gl(yt(),n),i=yl(ve(),n),a=Aa(yt(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(be.isEmpty(i))return null;var a=r||new be;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new be},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new be,o.update(f.center,f.halfExtents)))}),n){var c=Iw(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new be),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Nt();e.parentNode.transformable&&(n=Wn(Nt(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!be.isEmpty(r)){var i=new be;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);be.isEmpty(a)||(i=new be,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=N(i.getMin(),2),c=s[0],l=s[1],u=N(i.getMax(),2),f=u[0],d=u[1];return new Fi(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Fi((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+M>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var E=p[v].length,P=0,T=E,A=0;Ad){T=A;break}P+=k}p[v]=(p[v]||"").slice(0,T)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(O))continue;this.canBreakInLastChar(O)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(O,_)&&(p=this.trimByKinsokuShorui(p),g+=m(S||""))}g+=M,p[v]=(p[v]||"")+O}return p.join(` ->>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-ipGgnE5Q.js -`)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:xi.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:xi.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=q([],N(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&iy.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!iy.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),H={},IR=function(){var t,e=new hR,n=new dR;return t={},t[G.CIRCLE]=new cR,t[G.ELLIPSE]=new lR,t[G.RECT]=e,t[G.IMAGE]=e,t[G.GROUP]=e,t[G.LINE]=new uR,t[G.TEXT]=new pR(H),t[G.POLYLINE]=n,t[G.POLYGON]=n,t[G.PATH]=new fR,t[G.HTML]=null,t[G.MESH]=null,t}(),jR=function(){var t,e=new O4,n=new Xp;return t={},t[tt.PERCENTAGE]=null,t[tt.NUMBER]=new A4,t[tt.ANGLE]=new x4,t[tt.DEFINED_PATH]=new w4,t[tt.PAINT]=e,t[tt.COLOR]=e,t[tt.FILTER]=new S4,t[tt.LENGTH]=n,t[tt.LENGTH_PERCENTAGE]=n,t[tt.LENGTH_PERCENTAGE_12]=new _4,t[tt.LENGTH_PERCENTAGE_14]=new M4,t[tt.COORDINATE]=new E4,t[tt.OFFSET_DISTANCE]=new k4,t[tt.OPACITY_VALUE]=new T4,t[tt.PATH]=new C4,t[tt.LIST_OF_POINTS]=new L4,t[tt.SHADOW_BLUR]=new N4,t[tt.TEXT]=new R4,t[tt.TEXT_TRANSFORM]=new I4,t[tt.TRANSFORM]=new aR,t[tt.TRANSFORM_ORIGIN]=new oR,t[tt.Z_INDEX]=new sR,t[tt.MARKER]=new P4,t}(),DR=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}};H.CameraContribution=ww;H.AnimationTimeline=null;H.EasingFunction=null;H.offscreenCanvasCreator=new mR;H.sceneGraphSelector=new wR;H.sceneGraphService=new SR(H);H.textService=new RR(H);H.geometryUpdaterFactory=IR;H.CSSPropertySyntaxFactory=jR;H.styleValueRegistry=new b4(H);H.layoutRegistry=null;H.globalThis=DR();H.enableCSSParsing=!0;H.enableDataset=!1;H.enableStyleSyntax=!0;var $R=0,ay=new Gi(ht.INSERTED,null,"","","",0,"",""),oy=new Gi(ht.REMOVED,null,"","","",0,"",""),BR=new Dt(ht.DESTROY),FR=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.entity=$R++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:rh.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=H.enableCSSParsing?{anchor:Gt,opacity:Gt,fillOpacity:Gt,strokeOpacity:Gt,fill:Gt,stroke:Gt,transform:Gt,transformOrigin:Gt,visibility:Gt,pointerEvents:Gt,lineWidth:Gt,lineCap:Gt,lineJoin:Gt,increasedLineWidthForHitTesting:Gt,fontSize:Gt,fontFamily:Gt,fontStyle:Gt,fontWeight:Gt,fontVariant:Gt,textAlign:Gt,textBaseline:Gt,textTransform:Gt,zIndex:Gt,filter:Gt,shadowType:Gt}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(n){return n!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){throw new Error(It)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(pN);return H.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),ay.relatedNode=this,n.dispatchEvent(ay),n},e.prototype.insertBefore=function(n,r){if(!r)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var i=this.childNodes.indexOf(r);i===-1?this.appendChild(n):this.appendChild(n,i)}return n},e.prototype.replaceChild=function(n,r){var i=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(n,i),r},e.prototype.removeChild=function(n){var r;return oy.relatedNode=this,n.dispatchEvent(oy),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),H.sceneGraphService.detach(n),n},e.prototype.removeChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];this.removeChild(r)}},e.prototype.destroyChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];r.childNodes.length&&r.destroyChildren(),r.destroy()}},e.prototype.matches=function(n){return H.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return H.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return H.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return H.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return H.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return H.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return H.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(H.sceneGraphService.matches(n,r))return r;r=r.parentElement}while(r!==null);return null},e.prototype.find=function(n){var r=this,i=null;return this.forEach(function(a){return a!==r&&n(a)?(i=a,!0):!1}),i},e.prototype.findAll=function(n){var r=this,i=[];return this.forEach(function(a){a!==r&&n(a)&&i.push(a)}),i},e.prototype.after=function(){for(var n=this,r=[],i=0;i1){var i=n[0].currentPoint,a=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.path.segments,r=n.length,i=[];if(r>1){var a=n[r-2].currentPoint,o=n[r-1].currentPoint,s=n[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}(ze),Fu=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=this,i=n.style,a=$t(n,["style"]);r=t.call(this,z({type:G.POLYGON,style:H.enableCSSParsing?z({points:"",miterLimit:"",isClosed:!0},i):z({},i),initialParsedStyle:H.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a))||this,r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,c=o.markerEnd,l=o.markerMid;return s&&Mt(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&Mt(l)&&r.placeMarkerMid(l),c&&Mt(c)&&(r.markerEndAngle=c.getLocalEulerAngles(),r.appendChild(c)),r.transformMarker(!0),r.transformMarker(!1),r}return e.prototype.attributeChangedCallback=function(n,r,i,a,o){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(a&&Mt(a)&&(this.markerStartAngle=0,a.remove()),o&&Mt(o)&&(this.markerStartAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!0))):n==="markerEnd"?(a&&Mt(a)&&(this.markerEndAngle=0,a.remove()),o&&Mt(o)&&(this.markerEndAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(o)},e.prototype.transformMarker=function(n){var r=this.parsedStyle,i=r.markerStart,a=r.markerEnd,o=r.markerStartOffset,s=r.markerEndOffset,c=r.points,l=r.defX,u=r.defY,f=(c||{}).points,d=n?i:a;if(!(!d||!Mt(d)||!f)){var h=0,p,v,g,y,m,b;if(g=f[0][0]-l,y=f[0][1]-u,n)p=f[1][0]-f[0][0],v=f[1][1]-f[0][1],m=o||0,b=this.markerStartAngle;else{var x=f.length;this.parsedStyle.isClosed?(p=f[x-1][0]-f[0][0],v=f[x-1][1]-f[0][1]):(g=f[x-1][0]-l,y=f[x-1][1]-u,p=f[x-2][0]-f[x-1][0],v=f[x-2][1]-f[x-1][1]),m=s||0,b=this.markerEndAngle}h=Math.atan2(v,p),d.setLocalEulerAngles(h*180/Math.PI+b),d.setLocalPosition(g+Math.cos(h)*m,y+Math.sin(h)*m)}},e.prototype.placeMarkerMid=function(n){var r=this.parsedStyle,i=r.points,a=r.defX,o=r.defY,s=(i||{}).points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],n&&Mt(n)&&s)for(var c=1;c<(this.parsedStyle.isClosed?s.length:s.length-1);c++){var l=s[c][0]-a,u=s[c][1]-o,f=c===1?n:n.cloneNode(!0);this.markerMidList.push(f),this.appendChild(f),f.setLocalPosition(l,u)}},e}(ze),Qp=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.POLYLINE,style:H.enableCSSParsing?z({points:"",miterLimit:"",isClosed:!1},r):z({},r),initialParsedStyle:H.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i))||this}return e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(n,r){return r===void 0&&(r=!1),this.getPoint(n/this.getTotalLength(),r)},e.prototype.getPoint=function(n,r){r===void 0&&(r=!1);var i=this.parsedStyle,a=i.defX,o=i.defY,s=i.points,c=s.points,l=s.segments,u=0,f=0;l.forEach(function(g,y){n>=g[0]&&n<=g[1]&&(u=(n-g[0])/(g[1]-g[0]),f=y)});var d=mw(c[f][0],c[f][1],c[f+1][0],c[f+1][1],u),h=d.x,p=d.y,v=Oe(yt(),St(h-a,p-o,0),r?this.getWorldTransform():this.getLocalTransform());return new Ee(v[0],v[1])},e.prototype.getStartTangent=function(){var n=this.parsedStyle.points.points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.points.points,r=n.length-1,i=[];return i.push([n[r-1][0],n[r-1][1]]),i.push([n[r][0],n[r][1]]),i},e}(Fu),Zi=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.RECT,style:H.enableCSSParsing?z({x:"",y:"",width:"",height:"",radius:""},r):z({},r)},i))||this}return e}(ze),ei=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.TEXT,style:H.enableCSSParsing?z({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},r):z({fill:"black"},r),initialParsedStyle:H.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},i))||this}return e.prototype.getComputedTextLength=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}(ze),HR=function(){function t(){this.registry={},this.define(G.CIRCLE,Xs),this.define(G.ELLIPSE,Kp),this.define(G.RECT,Zi),this.define(G.IMAGE,Zp),this.define(G.LINE,Us),this.define(G.GROUP,Ce),this.define(G.PATH,Xe),this.define(G.POLYGON,Fu),this.define(G.POLYLINE,Qp),this.define(G.TEXT,ei),this.define(G.HTML,Bu)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),VR=function(t){rt(e,t);function e(){var n=t.call(this)||this;n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new H.AnimationTimeline(n)}catch{}var r={};return Vp.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=ga(s)?s(G.GROUP):s)}),n.documentElement=new Ce({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(n,r){if(n==="svg")return this.documentElement;var i=this.defaultView.customElements.get(n);i||(console.warn("Unsupported tagName: ",n),i=n==="tspan"?ei:Ce);var a=new i(r);return a.ownerDocument=this,a},e.prototype.createElementNS=function(n,r,i){return this.createElement(r,i)},e.prototype.cloneNode=function(n){throw new Error(It)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}},e.prototype.elementsFromBBox=function(n,r,i,a){var o=this.defaultView.context.rBushRoot,s=o.search({minX:n,minY:r,maxX:i,maxY:a}),c=[];return s.forEach(function(l){var u=l.displayObject,f=u.parsedStyle.pointerEvents,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!d||d&&u.isVisible())&&!u.isCulled()&&u.isInteractive()&&c.push(u)}),c.sort(function(l,u){return u.sortable.renderOrder-l.sortable.renderOrder}),c},e.prototype.elementFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return null;var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(n,r){return ka(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return Ta(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,null]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,[2,h&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return[];var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(n,r){return ka(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return Ta(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,[]]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,h[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(n,r){throw new Error(ra)},e.prototype.insertBefore=function(n,r){throw new Error(ra)},e.prototype.removeChild=function(n,r){throw new Error(ra)},e.prototype.replaceChild=function(n,r,i){throw new Error(ra)},e.prototype.append=function(){throw new Error(ra)},e.prototype.prepend=function(){throw new Error(ra)},e.prototype.getElementById=function(n){return this.documentElement.getElementById(n)},e.prototype.getElementsByName=function(n){return this.documentElement.getElementsByName(n)},e.prototype.getElementsByTagName=function(n){return this.documentElement.getElementsByTagName(n)},e.prototype.getElementsByClassName=function(n){return this.documentElement.getElementsByClassName(n)},e.prototype.querySelector=function(n){return this.documentElement.querySelector(n)},e.prototype.querySelectorAll=function(n){return this.documentElement.querySelectorAll(n)},e.prototype.find=function(n){return this.documentElement.find(n)},e.prototype.findAll=function(n){return this.documentElement.findAll(n)},e}(_e),XR=function(){function t(e){this.strategies=e}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,a=this.strategies;r.hooks.cull.tap(t.tag,function(o){if(o){var s=o.cullable;return a.length===0?s.visible=i.unculledEntities.indexOf(o.entity)>-1:s.visible=a.every(function(c){return c.isVisible(n,o)}),!o.isCulled()&&o.isVisible()?o:(o.dispatchEvent(new Dt(ht.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),UR=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new ch(null),this.rootWheelEvent=new lh(null),this.onPointerMove=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!(s.supportsTouchEvents&&n.pointerType==="touch")){var c=e.normalizeToPointerEvent(n,s);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView,c=e.normalizeToPointerEvent(n,s);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var o=n.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}).picked;return o[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(a){var o=n.normalizeWheelEvent(a);n.context.eventService.mapEvent(o)}),r.hooks.pointerDown.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.normalizeToPointerEvent(a,i);if(n.autoPreventDefault&&c[0].isNormalized){var l=a.cancelable||!("cancelable"in a);l&&a.preventDefault()}try{for(var u=vn(c),f=u.next();!f.done;f=u.next()){var d=f.value,h=n.bootstrapEvent(n.rootPointerEvent,d,i,a);n.context.eventService.mapEvent(h)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.context.contextService.getDomElement(),l="outside";try{l=c&&a.target&&a.target!==c&&c.contains&&!c.contains(a.target)?"outside":""}catch{}var u=n.normalizeToPointerEvent(a,i);try{for(var f=vn(u),d=f.next();!d.done;d=f.next()){var h=d.value,p=n.bootstrapEvent(n.rootPointerEvent,h,i,a);p.type+=l,n.context.eventService.mapEvent(p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(a){var o,s,c=n.normalizeToPointerEvent(a,i);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=n.bootstrapEvent(n.rootPointerEvent,f,i,a);n.context.eventService.mapEvent(d)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(e){var n,r,i=e.offsetX,a=e.offsetY,o=e.clientX,s=e.clientY;if(this.context.config.supportsCSSTransform&&!nt(i)&&!nt(a))n=i,r=a;else{var c=this.context.eventService.client2Viewport(new Ee(o,s));n=c.x,r=c.y}return{x:n,y:r}},t.prototype.bootstrapEvent=function(e,n,r,i){e.view=r,e.originalEvent=null,e.nativeEvent=i,e.pointerId=n.pointerId,e.width=n.width,e.height=n.height,e.isPrimary=n.isPrimary,e.pointerType=n.pointerType,e.pressure=n.pressure,e.tangentialPressure=n.tangentialPressure,e.tiltX=n.tiltX,e.tiltY=n.tiltY,e.twist=n.twist,this.transferMouseData(e,n);var a=this.getViewportXY(n),o=a.x,s=a.y;e.viewport.x=o,e.viewport.y=s;var c=this.context.eventService.viewport2Canvas(e.viewport),l=c.x,u=c.y;return e.canvas.x=l,e.canvas.y=u,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=i.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=W4[e.type]||e.type),e},t.prototype.normalizeWheelEvent=function(e){var n=this.rootWheelEvent;this.transferMouseData(n,e),n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ;var r=this.getViewportXY(e),i=r.x,a=r.y;n.viewport.x=i,n.viewport.y=a;var o=this.context.eventService.viewport2Canvas(n.viewport),s=o.x,c=o.y;return n.canvas.x=s,n.canvas.y=c,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=e,n.type=e.type,n},t.prototype.transferMouseData=function(e,n){e.isTrusted=n.isTrusted,e.srcElement=n.srcElement,e.timeStamp=sh.now(),e.type=n.type,e.altKey=n.altKey,e.metaKey=n.metaKey,e.shiftKey=n.shiftKey,e.ctrlKey=n.ctrlKey,e.button=n.button,e.buttons=n.buttons,e.client.x=n.clientX,e.client.y=n.clientY,e.movement.x=n.movementX,e.movement.y=n.movementY,e.page.x=n.pageX,e.page.y=n.pageY,e.screen.x=n.screenX,e.screen.y=n.screenY,e.relatedTarget=null},t.prototype.setCursor=function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(e,n){var r=[];if(n.isTouchEvent(e))for(var i=0;i-1,s=0,c=i.length;s=1?Math.ceil(P):1,M=s||z4(a)||a.width/P,E=c||G4(a)||a.height/P),o&&(H.offscreenCanvas=o),r.devicePixelRatio=P,r.requestAnimationFrame=p??Bw.bind(H.globalThis),r.cancelAnimationFrame=v??Fw.bind(H.globalThis),r.supportsTouchEvents=m??"ontouchstart"in H.globalThis,r.supportsPointerEvents=y??!!H.globalThis.PointerEvent,r.isTouchEvent=S??function(T){return r.supportsTouchEvents&&T instanceof H.globalThis.TouchEvent},r.isMouseEvent=_??function(T){return!H.globalThis.MouseEvent||T instanceof H.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(T instanceof H.globalThis.PointerEvent))},r.initRenderingContext({container:i,canvas:a,width:M,height:E,renderer:u,offscreenCanvas:o,devicePixelRatio:P,cursor:d||"default",background:f||"transparent",createImage:g,document:h,supportsCSSTransform:b,useNativeClickEvent:w,alwaysTriggerPointerEventOnCanvas:O}),r.initDefaultCamera(M,E,u.clipSpaceNearZ),r.initRenderer(u,!0),r}return e.prototype.initRenderingContext=function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(n,r,i){var a=this,o=new H.CameraContribution;o.clipSpaceNearZ=i,o.setType(Tt.EXPLORING,ds.DEFAULT).setPosition(n/2,r/2,cy).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,QR,JR),o.canvas=this,o.eventEmitter.on(xw.UPDATED,function(){a.context.renderingContext.renderReasons.add(Qr.CAMERA_CHANGED)}),this.context.camera=o},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){n.resolveReadyPromise=function(){r(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!1),r||this.dispatchEvent(new Dt(an.BEFORE_DESTROY)),this.frameId){var i=this.getConfig().cancelAnimationFrame||cancelAnimationFrame;i(this.frameId)}var a=this.getRoot();this.unmountChildren(a),n&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),r||this.dispatchEvent(new Dt(an.AFTER_DESTROY))},e.prototype.changeSize=function(n,r){this.resize(n,r)},e.prototype.resize=function(n,r){var i=this.context.config;i.width=n,i.height=r,this.getContextService().resize(n,r);var a=this.context.camera,o=a.getProjectionMode();a.setPosition(n/2,r/2,cy).setFocalPoint(n/2,r/2,0),o===tn.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new Dt(an.RESIZE,{width:n,height:r}))},e.prototype.appendChild=function(n,r){return this.document.documentElement.appendChild(n,r)},e.prototype.insertBefore=function(n,r){return this.document.documentElement.insertBefore(n,r)},e.prototype.removeChild=function(n){return this.document.documentElement.removeChild(n)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var n=this;this.dispatchEvent(t6);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(e6)}),this.dispatchEvent(n6)},e.prototype.run=function(){var n=this,r=function(){n.render(),n.frameId=n.requestAnimationFrame(r)};r()},e.prototype.initRenderer=function(n,r){var i=this;if(r===void 0&&(r=!1),!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new UR,new ZR,new XR([new KR])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService(z(z({},H),this.context)),this.context.renderingService=new bR(H,this.context),this.context.eventService=new yR(H,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,r,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,r)})},e.prototype.initRenderingService=function(n,r,i){var a=this;r===void 0&&(r=!1),i===void 0&&(i=!1),this.context.renderingService.init(function(){a.inited=!0,r?(i?a.requestAnimationFrame(function(){a.dispatchEvent(new Dt(an.READY))}):a.dispatchEvent(new Dt(an.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new Dt(an.RENDERER_CHANGED)),r||a.getRoot().forEach(function(o){var s=o.renderable;s&&(s.renderBoundsDirty=!0,s.boundsDirty=!0,s.dirty=!0)}),a.mountChildren(a.getRoot()),n.getConfig().enableAutoRendering&&a.run()})},e.prototype.loadRendererContainerModule=function(n){var r=this,i=n.getPlugins();i.forEach(function(a){a.context=r.context,a.init(H)})},e.prototype.setRenderer=function(n){var r=this.getConfig();if(r.renderer!==n){var i=r.renderer;r.renderer=n,this.destroy(!1,!0),q([],N(i==null?void 0:i.getPlugins()),!1).reverse().forEach(function(a){a.destroy(H)}),this.initRenderer(n)}},e.prototype.setCursor=function(n){var r=this.getConfig();r.cursor=n,this.getContextService().applyCursorStyle(n)},e.prototype.unmountChildren=function(n){var r=this;n.childNodes.forEach(function(i){r.unmountChildren(i)}),this.inited&&(n.isMutationObserved?n.dispatchEvent(Hf):(Hf.target=n,this.dispatchEvent(Hf,!0)),n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1),n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()},e.prototype.mountChildren=function(n){var r=this;this.inited?n.isConnected||(n.ownerDocument=this.document,n.isConnected=!0,n.isMutationObserved?n.dispatchEvent(Wf):(Wf.target=n,this.dispatchEvent(Wf,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName),n.childNodes.forEach(function(i){r.mountChildren(i)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()},e.prototype.client2Viewport=function(n){return this.getEventService().client2Viewport(n)},e.prototype.viewport2Client=function(n){return this.getEventService().viewport2Client(n)},e.prototype.viewport2Canvas=function(n){return this.getEventService().viewport2Canvas(n)},e.prototype.canvas2Viewport=function(n){return this.getEventService().canvas2Viewport(n)},e.prototype.getPointByClient=function(n,r){return this.client2Viewport({x:n,y:r})},e.prototype.getClientByPoint=function(n,r){return this.viewport2Client({x:n,y:r})},e}(Gw),r6=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.landmarks=[],n}return e.prototype.rotate=function(n,r,i){if(this.relElevation=Oa(r),this.relAzimuth=Oa(n),this.relRoll=Oa(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===Tt.EXPLORING){var a=Hr(ve(),[1,0,0],re((this.rotateWorld?1:-1)*this.relElevation)),o=Hr(ve(),[0,1,0],re((this.rotateWorld?1:-1)*this.relAzimuth)),s=Hr(ve(),[0,0,1],re(this.relRoll)),c=qr(ve(),o,a);c=qr(ve(),c,s);var l=dp(Nt(),c);Ur(this.matrix,this.matrix,[0,0,-this.distance]),$e(this.matrix,this.matrix,l),Ur(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===Tt.ORBITING||this.type===Tt.EXPLORING?this._getPosition():this.type===Tt.TRACKING&&this._getFocalPoint(),this._update(),this},e.prototype.pan=function(n,r){var i=We(n,r,0),a=br(this.position);return ba(a,a,Cd(yt(),this.right,i[0])),ba(a,a,Cd(yt(),this.up,i[1])),this._setPosition(a),this.triggerUpdate(),this},e.prototype.dolly=function(n){var r=this.forward,i=br(this.position),a=n*this.dollyingStep,o=this.distance+n*this.dollyingStep;return a=Math.max(Math.min(o,this.maxDistance),this.minDistance)-this.distance,i[0]+=a*r[0],i[1]+=a*r[1],i[2]+=a*r[2],this._setPosition(i),this.type===Tt.ORBITING||this.type===Tt.EXPLORING?this._getDistance():this.type===Tt.TRACKING&&ba(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this},e.prototype.cancelLandmarkAnimation=function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},e.prototype.createLandmark=function(n,r){var i,a,o,s;r===void 0&&(r={});var c=r.position,l=c===void 0?this.position:c,u=r.focalPoint,f=u===void 0?this.focalPoint:u,d=r.roll,h=r.zoom,p=new H.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],(i=l[1])!==null&&i!==void 0?i:this.position[1],(a=l[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(d??this.roll),p.setZoom(h??this.zoom);var v={name:n,matrix:lp(p.getWorldTransform()),right:br(p.right),up:br(p.up),forward:br(p.forward),position:br(p.getPosition()),focalPoint:br(p.getFocalPoint()),distanceVector:br(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(v),v},e.prototype.gotoLandmark=function(n,r){var i=this;r===void 0&&(r={});var a=le(n)?this.landmarks.find(function(E){return E.name===n}):n;if(a){var o=de(r)?{duration:r}:r,s=o.easing,c=s===void 0?"linear":s,l=o.duration,u=l===void 0?100:l,f=o.easingFunction,d=f===void 0?void 0:f,h=o.onfinish,p=h===void 0?void 0:h,v=o.onframe,g=v===void 0?void 0:v,y=.01;if(u===0){this.syncFromLandmark(a),p&&p();return}this.cancelLandmarkAnimation();var m=a.position,b=a.focalPoint,x=a.zoom,w=a.roll,O=d||H.EasingFunction(c),S,_=function(){i.setFocalPoint(b),i.setPosition(m),i.setRoll(w),i.setZoom(x),i.computeMatrix(),i.triggerUpdate(),p&&p()},M=function(E){S===void 0&&(S=E);var P=E-S;if(P>u){_();return}var T=O(P/u),A=yt(),k=yt(),C=1,L=0;Ld(A,i.focalPoint,b,T),Ld(k,i.position,m,T),L=i.roll*(1-T)+w*T,C=i.zoom*(1-T)+x*T,i.setFocalPoint(A),i.setPosition(k),i.setRoll(L),i.setZoom(C);var I=Kv(A,b)+Kv(k,m);if(I<=y&&x==null&&w==null){_();return}i.computeMatrix(),i.triggerUpdate(),P0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||this.playState==="running"||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):e==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():e==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new Vf(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()},t.prototype.updatePlaybackRate=function(e){this.playbackRate=e},t.prototype.targetAnimations=function(){var e,n=(e=this.effect)===null||e===void 0?void 0:e.target;return n.getAnimations()},t.prototype.markTarget=function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)},t.prototype.unmarkTarget=function(){var e=this.targetAnimations(),n=e.indexOf(this);n!==-1&&e.splice(n,1)},t.prototype.tick=function(e,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(e))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw new Error(It)},t.prototype.addEventListener=function(e,n,r){throw new Error(It)},t.prototype.removeEventListener=function(e,n,r){throw new Error(It)},t.prototype.dispatchEvent=function(e){throw new Error(It)},t.prototype.commitStyles=function(){throw new Error(It)},t.prototype.ensureAlive=function(){var e,n;this.playbackRate<0&&this.currentTime===0?this._inEffect=!!(!((e=this.effect)===null||e===void 0)&&e.update(-1)):this._inEffect=!!(!((n=this.effect)===null||n===void 0)&&n.update(this.currentTime)),!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(e,n){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(e){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new Vf(null,this,this.currentTime,e);setTimeout(function(){n.onfinish&&n.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var i=new Vf(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),o6=4,s6=.001,c6=1e-7,l6=10,Po=11,yc=1/(Po-1),u6=typeof Float32Array=="function",Vw=function(t,e){return 1-3*e+3*t},Xw=function(t,e){return 3*e-6*t},Uw=function(t){return 3*t},Rl=function(t,e,n){return((Vw(e,n)*t+Xw(e,n))*t+Uw(e))*t},qw=function(t,e,n){return 3*Vw(e,n)*t*t+2*Xw(e,n)*t+Uw(e)},f6=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=Rl(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>c6&&++s=s6?d6(s,d,t,n):h===0?d:f6(s,c,c+yc,t,n)};return function(s){return s===0||s===1?s:Rl(o(s),e,r)}},h6=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},mc=function(t){return Math.pow(t,2)},bc=function(t){return Math.pow(t,3)},xc=function(t){return Math.pow(t,4)},wc=function(t){return Math.pow(t,5)},Oc=function(t){return Math.pow(t,6)},Sc=function(t){return 1-Math.cos(t*Math.PI/2)},_c=function(t){return 1-Math.sqrt(1-t*t)},Mc=function(t){return t*t*(3*t-2)},Ec=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((e*3-2)/22-t,2)},Pc=function(t,e){e===void 0&&(e=[]);var n=N(e,2),r=n[0],i=r===void 0?1:r,a=n[1],o=a===void 0?.5:a,s=ce(Number(i),1,10),c=ce(Number(o),.1,2);return t===0||t===1?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/c)},wo=function(t,e,n){e===void 0&&(e=[]);var r=N(e,4),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?100:o,c=r[2],l=c===void 0?10:c,u=r[3],f=u===void 0?0:u;a=ce(a,.1,1e3),s=ce(s,.1,1e3),l=ce(l,.1,1e3),f=ce(f,.1,1e3);var d=Math.sqrt(s/a),h=l/(2*Math.sqrt(s*a)),p=h<1?d*Math.sqrt(1-h*h):0,v=1,g=h<1?(h*d+-f)/p:-f+d,y=n?n*t/1e3:t;return h<1?y=Math.exp(-y*h*d)*(v*Math.cos(p*y)+g*Math.sin(p*y)):y=(v+g*y)*Math.exp(-y*d),t===0||t===1?t:1-y},Xf=function(t,e){e===void 0&&(e=[]);var n=N(e,2),r=n[0],i=r===void 0?10:r,a=n[1],o=a=="start"?Math.ceil:Math.floor;return o(ce(t,0,1)*i)/i},ly=function(t,e){e===void 0&&(e=[]);var n=N(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return Jp(r,i,a,o)(t)},Ac=Jp(.42,0,1,1),Sn=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},_n=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?t(e*2,n,r)/2:1-t(e*-2+2,n,r)/2}},Mn=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?(1-t(1-e*2,n,r))/2:(t(e*2-1,n,r)+1)/2}},uy={steps:Xf,"step-start":function(t){return Xf(t,[1,"start"])},"step-end":function(t){return Xf(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":ly,ease:function(t){return ly(t,[.25,.1,.25,1])},in:Ac,out:Sn(Ac),"in-out":_n(Ac),"out-in":Mn(Ac),"in-quad":mc,"out-quad":Sn(mc),"in-out-quad":_n(mc),"out-in-quad":Mn(mc),"in-cubic":bc,"out-cubic":Sn(bc),"in-out-cubic":_n(bc),"out-in-cubic":Mn(bc),"in-quart":xc,"out-quart":Sn(xc),"in-out-quart":_n(xc),"out-in-quart":Mn(xc),"in-quint":wc,"out-quint":Sn(wc),"in-out-quint":_n(wc),"out-in-quint":Mn(wc),"in-expo":Oc,"out-expo":Sn(Oc),"in-out-expo":_n(Oc),"out-in-expo":Mn(Oc),"in-sine":Sc,"out-sine":Sn(Sc),"in-out-sine":_n(Sc),"out-in-sine":Mn(Sc),"in-circ":_c,"out-circ":Sn(_c),"in-out-circ":_n(_c),"out-in-circ":Mn(_c),"in-back":Mc,"out-back":Sn(Mc),"in-out-back":_n(Mc),"out-in-back":Mn(Mc),"in-bounce":Ec,"out-bounce":Sn(Ec),"in-out-bounce":_n(Ec),"out-in-bounce":Mn(Ec),"in-elastic":Pc,"out-elastic":Sn(Pc),"in-out-elastic":_n(Pc),"out-in-elastic":Mn(Pc),spring:wo,"spring-in":wo,"spring-out":Sn(wo),"spring-in-out":_n(wo),"spring-out-in":Mn(wo)},p6=function(t){return h6(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},v6=function(t){return uy[p6(t)]||uy.linear},g6=function(t){return t},y6=1,m6=.5,fy=0;function dy(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var kc="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b6=new RegExp("cubic-bezier\\("+kc+","+kc+","+kc+","+kc+"\\)"),x6=/steps\(\s*(\d+)\s*\)/,w6=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function t0(t){var e=b6.exec(t);if(e)return Jp.apply(void 0,q([],N(e.slice(1).map(Number)),!1));var n=x6.exec(t);if(n)return dy(Number(n[1]),fy);var r=w6.exec(t);return r?dy(Number(r[1]),{start:y6,middle:m6,end:fy}[r[2]]):v6(t)}function O6(t){return Math.abs(S6(t)/(t.playbackRate||1))}function S6(t){var e;return t.duration===0||t.iterations===0?0:(t.duration==="auto"?0:Number(t.duration))*((e=t.iterations)!==null&&e!==void 0?e:1)}var Kw=0,e0=1,zu=2,Zw=3;function _6(t,e,n){if(e===null)return Kw;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?zu:Zw}function M6(t,e,n,r,i){switch(r){case e0:return e==="backwards"||e==="both"?0:null;case Zw:return n-i;case zu:return e==="forwards"||e==="both"?t:null;case Kw:return null}}function E6(t,e,n,r,i){var a=i;return t===0?e!==e0&&(a+=n):a+=r/t,a}function P6(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===zu&&r!==0&&(i!==0||a===0)&&(o=1),o}function A6(t,e,n,r){return t===zu&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function k6(t,e,n){var r=t;if(t!=="normal"&&t!=="reverse"){var i=e;t==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function T6(t,e,n){var r=_6(t,e,n),i=M6(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=E6(a,r,n.iterations,i,n.iterationStart),s=P6(o,n.iterationStart,r,n.iterations,i,a),c=A6(r,n.iterations,s,o),l=k6(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function C6(t,e,n){var r=L6(t,e),i=N6(r,n);return function(a,o){if(o!==null)i.filter(function(c){return o>=c.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");l.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));l[u]=f}return l.offset===void 0&&(l.offset=null),l.easing===void 0&&(l.easing=(e==null?void 0:e.easing)||"linear"),l.composite===void 0&&(l.composite="auto"),l}),r=!0,i=-1/0,a=0;a=0&&Number(c.offset)<=1});function s(){var c,l,u=n.length;n[u-1].computedOffset=Number((c=n[u-1].offset)!==null&&c!==void 0?c:1),u>1&&(n[0].computedOffset=Number((l=n[0].offset)!==null&&l!==void 0?l:0));for(var f=0,d=Number(n[0].computedOffset),h=1;hthis.createElement(e),r=[];if(this._data!==null){for(let i=0;ii,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],c=new Set,l=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=te(this._elements,h=>r(h.__data__));for(let h=0;ho,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=e(this._enter),s=n(this._update),c=r(this._exit),l=i(this._merge),u=a(this._split);return s.merge(o).merge(c).merge(l).merge(u)}remove(){for(let e=0;ei.finished)).then(()=>{this._elements[e].remove()})}else this._elements[e].remove()}return new Ae([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let n=0;nn:n;return this.each(function(i,a,o){n!==void 0&&(o[e]=r(i,a,o))})}style(e,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[e]=r(i,a,o))})}transition(e){const n=typeof e!="function"?()=>e:e,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(e,n){return this.each(function(r,i,a){a.addEventListener(e,n)}),this}call(e,...n){return e(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}};Il.registry={g:Ce,rect:Zi,circle:Xs,path:Xe,text:ei,ellipse:Kp,image:Zp,line:Us,polygon:Fu,polyline:Qp,html:Bu};function Tc(t,e,n){return Math.max(e,Math.min(t,n))}function jl(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}function at(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function W6(t,e){return e.forEach((n,r)=>r===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function H6(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Jt(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),s=Math.PI/2-o-a,c=[e[0]-i*Math.sin(s),e[1]-i*Math.cos(s)],l=o-a,u=[e[0]-i*Math.cos(l),e[1]-i*Math.sin(l)];return[c,u]}function vs(t,e,n,r,i){const a=Nn(se(r,e))+Math.PI,o=Nn(se(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function tO(t,e,n,r="y",i="between",a=!1){const o=(g,y)=>g==="y"||g===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:e,c=o(r,a),l=Ui(s),[u,f]=Mr(l,g=>s[g]),d=new Yt({domain:[u,f],range:[0,100]}),h=g=>de(s[g])&&!Number.isNaN(s[g])?d.map(s[g]):0,p={between:g=>`${t[g]} ${h(g)}%`,start:g=>g===0?`${t[g]} ${h(g)}%`:`${t[g-1]} ${h(g)}%, ${t[g]} ${h(g)}%`,end:g=>g===t.length-1?`${t[g]} ${h(g)}%`:`${t[g]} ${h(g)}%, ${t[g+1]} ${h(g)}%`},v=l.sort((g,y)=>h(g)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${c}deg, ${v})`}function Gu(t){const[e,n,r,i]=t;return[i,e,n,r]}function Qi(t,e,n){const[r,i,,a]=qt(t)?Gu(e):e,[o,s]=n,c=t.getCenter(),l=ja(se(r,c)),u=ja(se(i,c)),f=u===l&&o!==s?u+Math.PI*2:u;return{startAngle:l,endAngle:f-l>=0?f:Math.PI*2+f,innerRadius:Jt(a,c),outerRadius:Jt(r,c)}}function eO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function nO(t,e){if(!Ht(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function rO(t){if(t.length===1)return t[0];const[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}var nl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?P:P+A,L=k>0?T:T+k,I=Math.abs(A),R=Math.abs(k),j=C+s,D=L+c,$=I-(s+l),B=R-(c+u),F=_?Tc($,y,1/0):Tc($,v,g),Y=_?Tc(B,v,g):Tc(B,y,1/0),U=_?j:j-(F-$)/2,K=_?D-(Y-B)/2:D-(Y-B);return st(t.createElement("rect",{})).style("x",U).style("y",K).style("width",F).style("height",Y).style("radius",[h,p,d,f]).call(at,m).node()}const{y:b,y1:x}=n,w=r.getCenter(),O=Qi(r,e,[b,x]),S=Cu().cornerRadius(o).padAngle(a*Math.PI/180);return st(t.createElement("path",{})).style("path",S(O)).style("transform",`translate(${w[0]}, ${w[1]})`).style("radius",o).style("inset",a).call(at,m).node()}const qs=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=nl(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=nl(f,["color","radius"]),v=p.lineWidth||1,{stroke:g,radius:y=h,radiusTopLeft:m=y,radiusTopRight:b=y,radiusBottomRight:x=y,radiusBottomLeft:w=y,innerRadius:O=0,innerRadiusTopLeft:S=O,innerRadiusTopRight:_=O,innerRadiusBottomRight:M=O,innerRadiusBottomLeft:E=O,lineWidth:P=n==="stroke"||g?v:0,inset:T=0,insetLeft:A=T,insetRight:k=T,insetBottom:C=T,insetTop:L=T,minWidth:I,maxWidth:R,minHeight:j}=o,D=nl(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:$=d,opacity:B}=u,F=[i?m:S,i?b:_,a?x:M,a?w:E],Y=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];qt(s)&&Y.push(Y.shift());const U=Object.assign(Object.assign({radius:y},Object.fromEntries(Y.map((K,V)=>[K,F[V]]))),{inset:T,insetLeft:A,insetRight:k,insetBottom:C,insetTop:L,minWidth:I,maxWidth:R,minHeight:j});return st(iO(c,l,u,s,U)).call(at,p).style("fill","transparent").style(n,$).style(eO(t),B).style("lineWidth",P).style("stroke",g===void 0?$:g).call(at,D).node()}};qs.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ji=(t,e)=>qs(Object.assign({colorAttribute:"fill"},t),e);Ji.props=Object.assign(Object.assign({},qs.props),{defaultMarker:"square"});const Yu=(t,e)=>qs(Object.assign({colorAttribute:"stroke"},t),e);Yu.props=Object.assign(Object.assign({},qs.props),{defaultMarker:"hollowSquare"});var gy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{adjustPoints:n=V6}=t,r=gy(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=gy(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!qt(i),[g,y,m,b]=v?Gu(p):p,{color:x=f,opacity:w}=s,O=Jr().curve(jp)([g,y,m,b]);return st(a.createElement("path",{})).call(at,d).style("path",O).style("fill",x).style("fillOpacity",w).call(at,r).node()}};n0.props={defaultMarker:"square"};function X6(t,e,n){const[r,i,a,o]=t;if(qt(n)){const l=[e?e[0][0]:(i[0]+a[0])/2,i[1]],u=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,l,u,o]}const s=[i[0],e?e[0][1]:(i[1]+a[1])/2],c=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,s,c,o]}const aO=(t,e)=>n0(Object.assign({adjustPoints:X6},t),e);aO.props={defaultMarker:"square"};function Fa(t){const e=typeof t=="function"?t:t.render;return class extends qp{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}var yy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;st(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(at,r),st(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(at,i)});function q6(t,e){const n=[],r=[];let i=!1,a=null;for(const o of t)!e(o[0])||!e(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const Dn=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=t,s=yy(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=yy(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:x}=f,w=nO(c,f),O=qt(c),S=r&&m?tO(m,b,x,r,i,O):g,_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),S&&{stroke:S}),y&&{lineWidth:y}),w&&{transform:w}),s);let M;if(Ht(c)){const C=c.getCenter();M=L=>wL().angle((I,R)=>ja(se(L[R],C))).radius((I,R)=>Jt(L[R],C)).defined(([I,R])=>a(I)&&a(R)).curve(n)(L)}else M=Jr().x(C=>C[0]).y(C=>C[1]).defined(([C,L])=>a(C)&&a(L)).curve(n);const[E,P]=q6(u,a),T=Q(_,"connect"),A=!!P.length;if(!A||o&&!Object.keys(T).length)return st(l.createElement("path",{})).style("d",M(E)||[]).call(at,_).node();if(A&&!o)return st(l.createElement("path",{})).style("d",M(u)).call(at,_).node();const k=C=>C.map(M).join(",");return st(new U6).style("style1",Object.assign(Object.assign({},_),T)).style("style2",_).style("d1",k(P)).style("d2",M(u)).node()}};Dn.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const oO=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Ht(n)?jp:Ys;return Dn(Object.assign({curve:i},t),e)(...r)}};oO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"line"});var K6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=K6(t,[]),{coordinate:r}=e;return(...i)=>{const a=Ht(r)?ew:qt(r)?ow:aw;return Dn(Object.assign({curve:a},n),e)(...i)}};sO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"smooth"});const cO=(t,e)=>Dn(Object.assign({curve:lw},t),e);cO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"hv"});const lO=(t,e)=>Dn(Object.assign({curve:cw},t),e);lO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"vh"});const uO=(t,e)=>Dn(Object.assign({curve:sw},t),e);uO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"hvh"});var Z6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:c}=a,l=Z6(a,["color"]),u=jn();for(let f=0;f[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];r0.style=["fill"];const dO=r0.bind(void 0);dO.style=["stroke","lineWidth"];const Wu=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Wu.style=["fill"];const hO=Wu.bind(void 0);hO.style=["fill"];const pO=Wu.bind(void 0);pO.style=["stroke","lineWidth"];const i0=(t,e,n)=>{const r=n*.618;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};i0.style=["fill"];const vO=i0.bind(void 0);vO.style=["stroke","lineWidth"];const a0=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};a0.style=["fill"];const gO=a0.bind(void 0);gO.style=["stroke","lineWidth"];const o0=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};o0.style=["fill"];const yO=o0.bind(void 0);yO.style=["stroke","lineWidth"];const s0=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};s0.style=["fill"];const mO=s0.bind(void 0);mO.style=["stroke","lineWidth"];const c0=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};c0.style=["fill"];const bO=c0.bind(void 0);bO.style=["stroke","lineWidth"];const xO=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];xO.style=["stroke","lineWidth"];const wO=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];wO.style=["stroke","lineWidth"];const OO=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];OO.style=["stroke","lineWidth"];const SO=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];SO.style=["stroke","lineWidth"];const _O=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];_O.style=["stroke","lineWidth"];const l0=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];l0.style=["stroke","lineWidth"];const MO=l0.bind(void 0);MO.style=["stroke","lineWidth"];const EO=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];EO.style=["stroke","lineWidth"];const PO=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];PO.style=["stroke","lineWidth"];const AO=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];AO.style=["stroke","lineWidth"];const kO=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];kO.style=["stroke","lineWidth"];const TO=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];TO.style=["stroke","lineWidth"];const Dl=new Map([["bowtie",c0],["cross",wO],["dash",MO],["diamond",i0],["dot",l0],["hexagon",s0],["hollowBowtie",bO],["hollowDiamond",vO],["hollowHexagon",mO],["hollowPoint",dO],["hollowSquare",pO],["hollowTriangle",gO],["hollowTriangleDown",yO],["hv",PO],["hvh",kO],["hyphen",_O],["line",xO],["plus",SO],["point",r0],["rect",hO],["smooth",EO],["square",Wu],["tick",OO],["triangleDown",o0],["triangle",a0],["vh",AO],["vhv",TO]]);function tI(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=J6(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=Dl.get(t)||Dl.get("point");return(...f)=>new Xe({style:Object.assign(Object.assign({},l),{path:u(...f),stroke:u.style.includes("stroke")?c||o:"",fill:u.style.includes("fill")?c||r:"",lineWidth:u.style.includes("lineWidth")?s||s||2:0})})}var eI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=eI(t,["colorAttribute","symbol","mode"]),o=Dl.get(r)||Dl.get("point"),{coordinate:s,document:c}=e;return(l,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:v=h,transform:g,opacity:y}=u,[m,b]=rO(l),w=nI(i,l,u,s)||a.r||f.r;return st(c.createElement("path",{})).call(at,f).style("fill","transparent").style("d",o(m,b,w)).style("lineWidth",p).style("transform",g).style("stroke",v).style(eO(t),y).style(n,v).call(at,a).node()}};bt.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);CO.props=Object.assign({defaultMarker:"hollowBowtie"},bt.props);const LO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);LO.props=Object.assign({defaultMarker:"hollowDiamond"},bt.props);const NO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);NO.props=Object.assign({defaultMarker:"hollowHexagon"},bt.props);const RO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);RO.props=Object.assign({defaultMarker:"hollowPoint"},bt.props);const IO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);IO.props=Object.assign({defaultMarker:"hollowSquare"},bt.props);const jO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);jO.props=Object.assign({defaultMarker:"hollowTriangle"},bt.props);const DO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);DO.props=Object.assign({defaultMarker:"hollowTriangleDown"},bt.props);const $O=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);$O.props=Object.assign({defaultMarker:"bowtie"},bt.props);const BO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);BO.props=Object.assign({defaultMarker:"cross"},bt.props);const FO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);FO.props=Object.assign({defaultMarker:"diamond"},bt.props);const zO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);zO.props=Object.assign({defaultMarker:"hexagon"},bt.props);const GO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);GO.props=Object.assign({defaultMarker:"hyphen"},bt.props);const YO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);YO.props=Object.assign({defaultMarker:"line"},bt.props);const WO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);WO.props=Object.assign({defaultMarker:"plus"},bt.props);const HO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);HO.props=Object.assign({defaultMarker:"point"},bt.props);const VO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);VO.props=Object.assign({defaultMarker:"square"},bt.props);const XO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);XO.props=Object.assign({defaultMarker:"tick"},bt.props);const UO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);UO.props=Object.assign({defaultMarker:"triangle"},bt.props);const qO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);qO.props=Object.assign({defaultMarker:"triangleDown"},bt.props);var my=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n=!0,arrowSize:r="40%"}=t,i=my(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=my(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=jn();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=H6(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return st(a.createElement("path",{})).call(at,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(at,i).node()}};u0.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function KO(t,e){e(t),t.children&&t.children.forEach(function(n){n&&KO(n,e)})}function Ks(t){Hu(t,!0)}function li(t){Hu(t,!1)}function Hu(t,e){var n=e?"visible":"hidden";KO(t,function(r){r.attr("visibility",n)})}var rI=function(t){rt(e,t);function e(){for(var n=[],r=0;r=this.left&&e<=this.right&&n>=this.top&&n<=this.bottom},t}();function Rn(t,e){return Ve(t)?t.apply(void 0,q([],N(e),!1)):t}var $n=function(t,e){var n=function(i){return"".concat(e,"-").concat(i)},r=Object.fromEntries(Object.entries(t).map(function(i){var a=N(i,2),o=a[0],s=a[1],c=n(s);return[o,{name:c,class:".".concat(c),id:"#".concat(c),toString:function(){return c}}]}));return Object.assign(r,{prefix:n}),r},aI=5,JO=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=aI),Object.entries(e).forEach(function(i){var a=N(i,2),o=a[0],s=a[1],c=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?Cr(s)?(Cr(t[o])||(c[o]={}),ne&&tr&&(r=d),h>i&&(i=h)}return new Qt(e,n,r-e,i-n)}var hI=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=a===void 0?"row":a;n.flexWrap;var s=n.justifyContent,c=s===void 0?"flex-start":s;n.alignContent;var l=n.alignItems,u=l===void 0?"flex-start":l,f=o==="row",d=o==="row"||o==="column",h=f?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],p=N([0,0],2),v=p[0],g=p[1],y=e.map(function(_){var M,E=_.width,P=_.height,T=N([v,g],2),A=T[0],k=T[1];return M=N([v+E*h[0],g+P*h[1]],2),v=M[0],g=M[1],new Qt(A,k,E,P)}),m=by(y),b={"flex-start":0,"flex-end":f?r-m.width:i-m.height,center:f?(r-m.width)/2:(i-m.height)/2},x=y.map(function(_){var M=_.x,E=_.y,P=Qt.fromRect(_);return P.x=f?M+b[c]:M,P.y=f?E:E+b[c],P});by(x);var w=function(_){var M=N(f?["height",i]:["width",r],2),E=M[0],P=M[1];switch(u){case"flex-start":return 0;case"flex-end":return P-_[E];case"center":return P/2-_[E]/2;default:return 0}},O=x.map(function(_){var M=_.x,E=_.y,P=Qt.fromRect(_);return P.x=f?M:M+w(P),P.y=f?E+w(P):E,P}),S=O.map(function(_){var M,E,P=Qt.fromRect(_);return P.x+=(M=t.x)!==null&&M!==void 0?M:0,P.y+=(E=t.y)!==null&&E!==void 0?E:0,P});return S},pI=function(t,e,n){return[]};const vI=function(t,e,n){if(e.length===0)return[];var r={flex:hI,grid:pI},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]};function Or(t,e){return[t[0]*e,t[1]*e]}function Ao(t,e){return[t[0]+e[0],t[1]+e[1]]}function Uf(t,e){return[t[0]-e[0],t[1]-e[1]]}function wi(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function Oi(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function gs(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function iS(t){if(t[0]===0&&t[1]===0)return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function gI(t,e){return e?[t[1],-t[0]]:[-t[1],t[0]]}function fh(t,e){return+t.toPrecision(e)}function xy(t,e){var n={},r=Array.isArray(e)?e:[e];for(var i in t)r.includes(i)||(n[i]=t[i]);return n}function yI(t,e,n,r){var i,a=[],o=!!r,s,c,l=[1/0,1/0],u=[-1/0,-1/0],f,d,h;if(o){i=N(r,2),l=i[0],u=i[1];for(var p=0,v=t.length;p="A"&&n<="Z"};function vt(t,e,n){n===void 0&&(n=!1);var r={};return Object.entries(t).forEach(function(i){var a=N(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(Lc(o,"show")&&Lc(Sy(o,"show"),e)!==n)o===kI(e,"show")?r[o]=s:r[o.replace(new RegExp(p0(e)),"")]=s;else if(!Lc(o,"show")&&Lc(o,e)!==n){var c=Sy(o,e);c==="filter"&&typeof s=="function"||(r[c]=s)}}}),r}function Jn(t,e){return Object.entries(t).reduce(function(n,r){var i=N(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(e).concat(a.slice(4))]=o:n["".concat(e).concat(p0(a))]=o,n},{})}function Rr(t,e){e===void 0&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(a){var o=N(a,2),s=o[0],c=o[1];e.includes(s)||(n.indexOf(s)!==-1?i[s]=c:r[s]=c)}),[r,i]}function CI(t,e,n){var r=t.getBBox(),i=r.width,a=r.height,o=N([e,n].map(function(l,u){var f;return l.includes("%")?parseFloat(((f=l.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||f===void 0?void 0:f[0])||"0")/100*(u===0?i:a):l}),2),s=o[0],c=o[1];return[s,c]}function Bl(t,e){if(e)try{var n=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,r=e.replace(n,function(i,a,o){return"translate(".concat(CI(t,a,o),")")});t.attr("transform",r)}catch{}}function LI(t){var e;return((e=t[0])===null||e===void 0?void 0:e.map(function(n,r){return t.map(function(i){return i[r]})}))||[]}function NI(){Hu(this,this.attributes.visibility!=="hidden")}var Pe=function(t){rt(e,t);function e(n,r){r===void 0&&(r={});var i=t.call(this,Nr({},{style:r},n))||this;return i.initialized=!1,i._defaultOptions=r,i}return Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=ZO(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},e.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},e.prototype.attributeChangedCallback=function(n){n==="visibility"&&NI.call(this)},e.prototype.update=function(n,r){var i;return this.attr(Nr({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.bindEvents=function(n,r){},e}(qp),aS=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},RI=aS,II=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},jI=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},DI=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},$I=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},BI=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},FI=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},oS=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},zI=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},GI=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},YI=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},WI=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},sS=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},HI=sS,VI=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},XI=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},UI=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},qI=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function KI(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var ZI=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function QI(t){var e="default";if(ki(t)&&t instanceof Image)e="image";else if(Ve(t))e="symbol";else if(le(t)){var n=new RegExp("data:(image|text)");t.match(n)?e="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?e="url":e="symbol"}return e}function JI(t){var e=QI(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var Bt=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.symbol,a=n.size,o=a===void 0?16:a,s=$t(n,["symbol","size"]),c=JI(i);on(!!c,dt(r),function(l){l.maybeAppendByClassName("marker",c).attr("className","marker ".concat(c,"-marker")).call(function(u){if(c==="image"){var f=o*2;u.styles({img:i,width:f,height:f,x:-o,y:-o})}else{var f=o/2,d=Ve(i)?i:e.getSymbol(i);u.styles(z({path:d==null?void 0:d(0,0,f)},s))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(n,r){e.MARKER_SYMBOL_MAP.set(n,r)},e.getSymbol=function(n){return e.MARKER_SYMBOL_MAP.get(n)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Pe);Bt.registerSymbol("cross",zI);Bt.registerSymbol("hyphen",WI);Bt.registerSymbol("line",oS);Bt.registerSymbol("plus",YI);Bt.registerSymbol("tick",GI);Bt.registerSymbol("circle",aS);Bt.registerSymbol("point",RI);Bt.registerSymbol("bowtie",FI);Bt.registerSymbol("hexagon",BI);Bt.registerSymbol("square",II);Bt.registerSymbol("diamond",jI);Bt.registerSymbol("triangle",DI);Bt.registerSymbol("triangle-down",$I);Bt.registerSymbol("line",oS);Bt.registerSymbol("dot",sS);Bt.registerSymbol("dash",HI);Bt.registerSymbol("smooth",VI);Bt.registerSymbol("hv",XI);Bt.registerSymbol("vh",UI);Bt.registerSymbol("hvh",qI);Bt.registerSymbol("vhv",KI);var t8=function(t){rt(e,t);function e(n){var r=this,i=n.style,a=$t(n,["style"]);return r=t.call(this,X({},{type:"column"},z({style:i},a)))||this,r.columnsGroup=new Ce({name:"columns"}),r.appendChild(r.columnsGroup),r.render(),r}return e.prototype.render=function(){var n=this.attributes.columns;dt(this.columnsGroup).selectAll(".column").data(n.flat()).join(function(r){return r.append("rect").attr("className","column").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},e.prototype.update=function(n){this.attr(Nr({},this.attributes,n)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(ze),e8=function(t){rt(e,t);function e(n){var r=this,i=n.style,a=$t(n,["style"]);return r=t.call(this,X({},{type:"lines"},z({style:i},a)))||this,r.linesGroup=r.appendChild(new Ce),r.areasGroup=r.appendChild(new Ce),r.render(),r}return e.prototype.render=function(){var n=this.attributes,r=n.lines,i=n.areas;r&&this.renderLines(r),i&&this.renderAreas(i)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(n){this.attr(Nr({},this.attributes,n)),this.render()},e.prototype.renderLines=function(n){dt(this.linesGroup).selectAll(".line").data(n).join(function(r){return r.append("path").attr("className","line").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},e.prototype.renderAreas=function(n){dt(this.linesGroup).selectAll(".area").data(n).join(function(r){return r.append("path").attr("className","area").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.style(i)})},function(r){return r.remove()})},e}(ze);function n8(t,e){var n,r=e.x,i=e.y,a=N(i.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(n=N([o,s],2),s=n[0],o=n[1]),t.map(function(c){var l=c.map(function(u,f){return[r.map(f),ce(i.map(u),s,o)]});return l})}function ys(t,e){e===void 0&&(e=!1);var n=e?t.length-1:0,r=t.map(function(i,a){return q([a===n?"M":"L"],N(i),!1)});return e?r.reverse():r}function Fl(t,e){if(e===void 0&&(e=!1),t.length<=2)return ys(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=ys(a),s=void 0;if(i===0)s=v0(o,e,n);else{var c=t[i-1],l=ys(c,!0);l[0][0]="L",s=q(q(q([],N(o),!1),N(l),!1),[["Z"]],!1)}r.push(s)}return r}function a8(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=Fl(a),s=void 0;if(i===0)s=v0(o,e,n);else{var c=t[i-1],l=Fl(c,!0),u=a[0];l[0][0]="L",s=q(q(q([],N(o),!1),N(l),!1),[q(["M"],N(u),!1),["Z"]],!1)}r.push(s)}return r}function _y(t){return t.length===0?[0,0]:[hl(Lk(t,function(e){return hl(e)||0})),dl(Ck(t,function(e){return dl(e)||0}))]}function My(t){for(var e=Jo(t),n=e[0].length,r=N([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o=0?(s[c]+=i[c],i[c]=s[c]):(s[c]+=a[c],a[c]=s[c]);return e}var o8=function(t){rt(e,t);function e(n){return t.call(this,n,{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(e.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=Jo(n);return de(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?My(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var n=this.scales.y,r=N(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=vt(this.attributes,"area"),c=vt(this.attributes,"line"),l=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=n8(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?a8(p,l,g):i8(p,l,g):v=r8(p,o,l,g)}return{lines:p.map(function(y,m){return z({stroke:n.getColor(m),path:o?Fl(y):ys(y)},c)}),areas:v.map(function(y,m){return z({path:y,fill:n.getColor(m)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var n=this,r=vt(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var c=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};a&&(l=My(l));var u=this.createScales(l),f=u.x,d=u.y,h=N(_y(l),2),p=h[0],v=h[1],g=new Yt({domain:[0,v-(p>0?0:p)],range:[0,c*s]}),y=f.getBandWidth(),m=this.rawData;return{columns:l.map(function(b,x){return b.map(function(w,O){var S=y/l.length,_=function(){return{x:f.map(O)+S*x,y:w>=0?d.map(w):d.map(0),width:S,height:g.map(Math.abs(w))}},M=function(){return{x:f.map(O),y:d.map(w),width:y,height:g.map(m[x][O])}};return z(z({fill:n.getColor(x)},r),a?M():_())})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){MI(r,".container","rect").attr("className","container").node();var i=n.type,a="spark".concat(i),o=i==="line"?this.linesStyle:this.columnsStyle;dt(r).selectAll(".spark").data([i]).join(function(s){return s.append(function(c){return c==="line"?new e8({className:a,style:o}):new t8({className:a,style:o})}).attr("className","spark ".concat(a))},function(s){return s.update(o)},function(s){return s.remove()})},e.prototype.getColor=function(n){var r=this.attributes.color;return Le(r)?r[n%r.length]:Ve(r)?r.call(null,n):r},e.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,c=a.range,l=c===void 0?[]:c,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=N(_y(n),2),v=p[0],g=p[1],y=new Yt({domain:[(r=l[0])!==null&&r!==void 0?r:v,(i=l[1])!==null&&i!==void 0?i:g],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Yt({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new Ia({domain:n[0].map(function(m,b){return b}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},e.tag="sparkline",e}(Pe);function s8(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function Ey(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(r){var i=N(r,1),a=i[0];return!e.includes(a)}));return Object.fromEntries(e.map(function(r){return s8(t)?t[r]===!1?[r,!1]:[r,z(z({},t[r]),n)]:[r,n]}))}function ro(t,e){t?t.finished.then(e):e()}function c8(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function cS(t,e){"update"in t?t.update(e):t.attr(e)}function lS(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return cS(t,{style:r}),null}return t.animate(e,n)}function l8(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function u8(t,e,n,r){if(r===void 0&&(r="destroy"),l8(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&li(t),e.isVisible()&&Ks(e)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,c=s===void 0?0:s,l=Math.ceil(+o/2),u=+o/4,f=function(P){if(P.nodeName==="circle"){var T=N(P.getLocalPosition(),2),A=T[0],k=T[1],C=P.attr("r");return[A-C,k-C]}return P.getLocalPosition()},d=N(f(t),2),h=d[0],p=d[1],v=N(f(e),2),g=v[0],y=v[1],m=N([(h+g)/2-h,(p+y)/2-p],2),b=m[0],x=m[1],w=t.style.opacity,O=w===void 0?1:w,S=e.style.opacity,_=S===void 0?1:S,M=t.animate([{opacity:O,transform:"translate(0, 0)"},{opacity:0,transform:"translate(".concat(b,", ").concat(x,")")}],z(z({fill:"both"},n),{duration:c+l+u})),E=e.animate([{opacity:0,transform:"translate(".concat(-b,", ").concat(-x,")"),offset:.01},{opacity:_,transform:"translate(0, 0)"}],z(z({fill:"both"},n),{duration:l+u,delay:c+l-u}));return ro(E,i),[M,E]}function Vn(t,e,n){var r={},i={};return Object.entries(e).forEach(function(a){var o=N(a,2),s=o[0],c=o[1];if(!nt(c)){var l=t.style[s]||t.parsedStyle[s]||0;l!==c&&(r[s]=l,i[s]=c)}}),n?lS(t,[r,i],z({fill:"both"},n)):(cS(t,i),null)}function Vu(t,e){return t.style.opacity||(t.style.opacity=1),Vn(t,{opacity:0},e)}var uS={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},fS={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},dS={orientation:"horizontal",showLabel:!0,type:"start"},Zn=$n({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),Yr=$n({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),f8=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.size,a=i===void 0?10:i,o=n.radius,s=o===void 0?a/4:o,c=n.orientation,l=$t(n,["size","radius","orientation"]),u=a,f=u*2.4,d=dt(r).maybeAppendByClassName(Yr.iconRect,"rect").styles(z(z({},l),{width:u,height:f,radius:s,x:-u/2,y:-f/2})),h=1/3*u,p=2/3*u,v=1/4*f,g=3/4*f;d.maybeAppendByClassName("".concat(Yr.iconLine,"-1"),"line").styles(z({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(Yr.iconLine,"-2"),"line").styles(z({x1:p,x2:p,y1:v,y2:g},l)),d.node().setOrigin(u/2,f/2),c==="vertical"?r.setLocalEulerAngles(90):r.setLocalEulerAngles(0)},e}(Pe),hS=function(t){rt(e,t);function e(n){return t.call(this,n,dS)||this}return e.prototype.renderLabel=function(n){var r=this,i=this.attributes.showLabel,a=vt(this.attributes,"label"),o=a.transform,s=$t(a,["transform"]),c=N(Rr(s,[]),2),l=c[0],u=c[1],f=dt(n).maybeAppendByClassName(Yr.labelGroup,"g").styles(u),d=z(z({},fS),l),h=d.text,p=$t(d,["text"]);on(!!i,f,function(v){r.label=v.maybeAppendByClassName(Yr.label,"text").styles(z(z({},p),{transform:o,text:"".concat(h)})),r.label.on("mousedown",function(g){g.stopPropagation()}),r.label.on("touchstart",function(g){g.stopPropagation()})})},e.prototype.renderIcon=function(n){var r=this.attributes,i=r.orientation,a=r.type,o=z(z({orientation:i},uS),vt(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new f8({style:o})}:s,l=dt(n).maybeAppendByClassName(Yr.iconGroup,"g");l.selectAll(Yr.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",Yr.icon.name)},function(u){return u.update(o)},function(u){return u.remove()})},e.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},e}(Pe),pS=function(t){rt(e,t);function e(n){var r=t.call(this,n,z(z(z({animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},Jn(dS,"handle")),Jn(uS,"handleIcon")),Jn(fS,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal($l(a));var o=r.availableSpace,s=o.x,c=o.y,l=r.getBBox(),u=l.x,f=l.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,c])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,c=a.type;i.stopPropagation();var l=r.getOrientVal($l(i)),u=l-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,c==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break}r.prevPos=l}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,c=s==="range"?i:i[1],l=s==="range"?r.getValues():r.getValues()[1],u=new Dt("valuechange",{detail:{oldValue:c,value:l}});r.dispatchEvent(u),o==null||o(l)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=vt(this.attributes,"sparkline");return z(z({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=N(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.padding,r=N(Te(n),4),i=r[0],a=r[1],o=r[2],s=r[3],c=this.shape,l=c.width,u=c.height;return{x:s,y:i,width:l-(s+a),height:u-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},e.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(Zn.selection.class).each(function(i,a){Vn(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Vn(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Vn(this.endHandle,this.getHandleStyle("end"),n))},e.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},e.prototype.renderTrack=function(n){var r=vt(this.attributes,"track");this.trackShape=dt(n).maybeAppendByClassName(Zn.track,"rect").styles(z(z({},this.shape),r))},e.prototype.renderBrushArea=function(n){var r=this.attributes.brushable;this.brushArea=dt(n).maybeAppendByClassName(Zn.brushArea,"rect").styles(z({fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(n){var r=this,i=this.attributes.orientation,a=dt(n).maybeAppendByClassName(Zn.sparklineGroup,"g");on(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(Zn.sparkline,function(){return new o8({style:s})}).update(s)})},e.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],c=a?s:[],l=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(Zn.handle.class).data(c.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new hS({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(Zn.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");l[h]=this,this.addEventListener("pointerdown",l.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(l.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");l[h]=void 0}).remove()})},e.prototype.renderSelection=function(n){var r=this.attributes,i=r.type,a=r.selectionType;this.foregroundGroup=dt(n).maybeAppendByClassName(Zn.foreground,"g");var o=vt(this.attributes,"selection"),s=function(l){return l.style("visibility",function(u){return u.show?"visible":"hidden"}).style("cursor",function(u){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(o)},c=this;this.foregroundGroup.selectAll(Zn.selection.class).data(i==="value"?[]:this.calcSelectionArea().map(function(l,u){return{style:z({},l),index:u,show:a==="select"?u===1:u!==1}}),function(l){return l.index}).join(function(l){return l.append("rect").attr("className",Zn.selection.name).call(s).each(function(u,f){var d=this;f===1?(c.selectionShape=dt(this),this.on("pointerdown",function(h){d.attr("cursor","grabbing"),c.onDragStart("selection")(h)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){d.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){d.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){d.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(l){return l.call(s)},function(l){return l.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},e.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=N(this.range,2),o=a[0],s=a[1],c=N(this.getValues().map(function(g){return fh(g,r)}),2),l=c[0],u=c[1],f=Array.isArray(n)?n:[l,n??u],d=N((f||[l,u]).map(function(g){return fh(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,ce(p,o,s)];h>p&&(i=N([p,h],2),h=i[0],p=i[1]);var v=p-h;return v>s-o?[o,s]:hs?u===s&&l===h?[h,s]:[s-v,s]:[h,p]},e.prototype.calcSelectionArea=function(n){var r=N(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,c=o.y,l=o.width,u=o.height;return this.getOrientVal([[{y:c,height:u,x:s,width:i*l},{y:c,height:u,x:i*l+s,width:(a-i)*l},{y:c,height:u,x:a*l,width:(1-a)*l}],[{x:s,width:l,y:c,height:i*u},{x:s,width:l,y:i*u+c,height:(a-i)*u},{x:s,width:l,y:a*u,height:(1-a)*u}]])},e.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,c=i.height,l=N(this.clampValues(),2),u=l[0],f=l[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,c])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([c/2,h])}},e.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transform:"rotate(90)",textAlign:"start"}:n==="end"?{transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,c=i.autoFitLabel,l=vt(this.attributes,"handle"),u=vt(l,"label"),f=l.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],v=s(p),g=new f0({style:z(z(z({},u),this.inferTextStyle(n)),{text:v})}),y=g.getBBox(),m=y.width,b=y.height;if(g.destroy(),!c){if(a==="value")return{text:v,x:0,y:-b-f};var x=f+d+(o==="horizontal"?m/2:0);return r={text:v},r[o==="horizontal"?"x":"y"]=n==="start"?-x:x,r}var w=0,O=0,S=this.availableSpace,_=S.width,M=S.height,E=this.calcSelectionArea()[1],P=E.x,T=E.y,A=E.width,k=E.height,C=f+d;if(o==="horizontal"){var L=C+m/2;if(n==="start"){var I=P-C-m;w=I>0?-L:L}else{var R=_-P-A-C>m;w=R?L:-L}}else{var j=C,D=b+C;n==="start"?O=T-d>b?-D:j:O=M-(T+k)-d>b?D:-j}return{x:w,y:O,text:v}},e.prototype.getHandleLabelStyle=function(n){var r=vt(this.attributes,"handleLabel");return z(z(z({},r),this.calcHandleText(n)),this.inferTextStyle(n))},e.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=vt(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return z({cursor:i,shape:n,size:a},r)},e.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.showLabel,a=r.showLabelOnInteraction,o=r.orientation,s=this.calcHandlePosition(n),c=this.calcHandleText(n),l=i;return!i&&a&&(this.target?l=!0:l=!1),z(z(z(z({},Jn(this.getHandleIconStyle(),"icon")),Jn(z(z({},this.getHandleLabelStyle(n)),c),"label")),s),{orientation:o,showLabel:l,type:n,zIndex:3})},e.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},e.prototype.getOrientVal=function(n){var r=N(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},e.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=N(this.getValues(),2),s=o[0],c=o[1],l=a==="range"?n:0,u=[s+l,c+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},e.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},e.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new Dt(i,{detail:o}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},e.tag="slider",e}(Pe),d8=function(t){rt(e,t);function e(n){var r=t.call(this,n,{isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new Dt("scroll",o)),r.dispatchEvent(new Dt("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=N(r.getLocalPosition(),2),s=o[0],c=o[1],l=N(r.padding,4),u=l[0],f=l[3],d=r.getOrientVal([s+f,c+u]),h=r.getOrientVal($l(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Dt("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Dt("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Dt("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Dt("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return Te(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var n=this.attributes.value,r=N(this.range,2),i=r[0],a=r[1];return ce(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=N(this.padding,4),a=i[0],o=i[1],s=i[2],c=i[3],l=N(this.getOrientVal([[r,n],[n,r]]),2),u=l[0],f=l[1];return{x:c,y:a,width:+u-(c+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=N(this.range,2),c=s[0],l=s[1],u=n*(l-c-o);return[u,u+o]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(n){var r=this.attributes,i=r.orientation,a=r.trackSize,o=r.padding,s=r.slidable,c=vt(this.attributes,"track"),l=vt(this.attributes,"thumb"),u=z(z({brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},Jn(c,"track")),Jn(l,"selection"));this.slider=dt(n).maybeAppendByClassName("scrollbar",function(){return new pS({style:u})}).update(u).node()},e.prototype.render=function(n,r){this.renderSlider(r)},e.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=N(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues(ce(n,o,s)),r),this.onValueChange(i)},e.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},e.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(Pe),g0={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new Xe({style:{path:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],anchor:"0.5 0.5",fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};X({},g0,{style:{type:"arc"}});X({},g0,{style:{}});var Rt=$n({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"),Ga=$n({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function vS(t){return t.reduce(function(e,n,r){return e.push(q([r===0?"M":"L"],N(n),!1)),e},[])}function h8(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return vS(t);if(!a)return[];var o=gs(t[0],a),s=n?0:1;return t.reduce(function(c,l,u){return u===0?c.push(q(["M"],N(l),!1)):c.push(q(["A",o,o,0,0,s],N(l),!1)),c},[])}function dh(t,e,n){return e.type==="surround"?h8(t,e,n):vS(t)}function p8(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=N([dh(t,n),dh(e.slice().reverse(),n,!0)],2),l=c[0],u=c[1],f=N([t[0],e.slice(-1)[0]],2),d=f[0],h=f[1],p=function(m,b){return[l,m,u,b,s].flat()};if(i==="line"||r==="surround")return p([q(["L"],N(h),!1)],[q(["L"],N(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=N([gs(h,a),gs(d,a)],2),g=v[0],y=v[1];return p([q(["A",g,g,0,0,1],N(h),!1),q(["L"],N(h),!1)],[q(["A",y,y,0,0,0],N(d),!1),q(["L"],N(d),!1)])}function v8(t,e,n,r){var i=n.animate,a=n.isBillboard,o=e.map(function(s,c){return{id:s.id||"grid-line-".concat(c),path:dh(s.points,n)}});return t.selectAll(Ga.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(c,l){var u=Rn(wy(z({path:c.path},r)),[c,l,o]);this.attr(z({class:Ga.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(c,l){var u=Rn(wy(z({path:c.path},r)),[c,l,o]);return Vn(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=Vu(this,i.exit);return ro(l,function(){return c.remove()}),l})}).transitions()}function g8(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},c=[],l=0;l180?1:0,_=t>e?0:1;return"M".concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(S,",").concat(_,",").concat(y,",").concat(m)}function w8(t){var e=t.attributes,n=e.startAngle,r=e.endAngle,i=e.center,a=e.radius;return q(q([n,r],N(i),!1),[a],!1)}function O8(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(Rt.line.class).data([{path:Py.apply(void 0,q(q([i,a],N(o),!1),[s],!1))}],function(c,l){return l}).join(function(c){return c.append("path").attr("className",Rt.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=dI(this,w8(this),q(q([i,a],N(o),!1),[s],!1),r.update);if(u){var f=function(){var d=je(l.attributes,"__keyframe_data__");l.style.path=Py.apply(void 0,q([],N(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(e)},function(c){return c.remove()}).styles(n).transitions()}function S8(t,e){e.truncRange,e.truncShape,e.lineExtension}function _8(t,e,n){n===void 0&&(n=[0,0]);var r=N([t,e,n],3),i=N(r[0],2),a=i[0],o=i[1],s=N(r[1],2),c=s[0],l=s[1],u=N(r[2],2),f=u[0],d=u[1],h=N([c-a,l-o],2),p=h[0],v=h[1],g=Math.sqrt(Math.pow(p,2)+Math.pow(v,2)),y=N([-f/g,d/g],2),m=y[0],b=y[1];return[m*p,m*v,b*p,b*v]}function Ay(t){var e=N(t,2),n=N(e[0],2),r=n[0],i=n[1],a=N(e[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function M8(t,e,n,r){var i=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,c=e.lineExtension,l=N([a,o],2),u=N(l[0],2),f=u[0],d=u[1],h=N(l[1],2),p=h[0],v=h[1],g=N(c?_8(a,o,c):new Array(4).fill(0),4),y=g[0],m=g[1],b=g[2],x=g[3],w=function(R){return t.selectAll(Rt.line.class).data(R,function(j,D){return D}).join(function(j){return j.append("line").attr("className",function(D){return"".concat(Rt.line.name," ").concat(D.className)}).styles(n).transition(function(D){return Vn(this,Ay(D.line),!1)})},function(j){return j.styles(n).transition(function(D){var $=D.line;return Vn(this,Ay($),r.update)})},function(j){return j.remove()}).transitions()};if(!i||!s)return w([{line:[[f+y,d+m],[p+b,v+x]],className:Rt.line.name}]);var O=N(s,2),S=O[0],_=O[1],M=p-f,E=v-d,P=N([f+M*S,d+E*S],2),T=P[0],A=P[1],k=N([f+M*_,d+E*_],2),C=k[0],L=k[1],I=w([{line:[[f+y,d+m],[T,A]],className:Rt.lineFirst.name},{line:[[C,L],[p+b,v+x]],className:Rt.lineSecond.name}]);return S8(t,e),I}function E8(t,e,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,c=n.lineArrowSize,l;if(e==="arc"?l=t.select(Rt.line.class):a?l=t.select(Rt.lineSecond.class):l=t.select(Rt.line.class),!i||!o||n.type==="arc"&&xS(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=Yi(o);f.attr(r),h0(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function P8(t,e,n){var r=e.type,i,a=vt(e,"line");return r==="linear"?i=M8(t,e,xy(a,"arrow"),n):i=O8(t,e,xy(a,"arrow"),n),E8(t,r,e,a),i}function A8(t,e){return m0(t,e.gridDirection,e)}function wS(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function k8(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=N(Uu(a,e),2),s=o[0],c=o[1],l=N(Or(A8(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function T8(t,e){var n=e.gridControlAngles,r=wS(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=N(r,2),a=i[0],o=i[1];return t.map(function(s,c){var l=s.value,u=N(Uu(l,e),2),f=u[0],d=u[1],h=N([f-a,d-o],2),p=h[0],v=h[1],g=[];return n.forEach(function(y){var m=za(y),b=N([Math.cos(m),Math.sin(m)],2),x=b[0],w=b[1],O=p*x-v*w+a,S=p*w+v*x+o;g.push([O,S])}),{points:g,id:c}})}function C8(t,e,n,r){var i=vt(n,"grid"),a=i.type,o=i.areaFill,s=wS(n),c=y0(e,n.gridFilter),l=a==="segment"?k8(c,n):T8(c,n),u=z(z({},i),{center:s,areaFill:Ve(o)?c.map(function(f,d){return Rn(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(Rt.grid.class).data([1]).join(function(f){return f.append(function(){return new m8({style:u})}).attr("className",Rt.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}var hh=function(){function t(e,n,r,i){this.set(e,n,r,i)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),t.prototype.rotatedPoints=function(e,n,r){var i=this,a=i.x1,o=i.y1,s=i.x2,c=i.y2,l=Math.cos(e),u=Math.sin(e),f=n-n*l+r*u,d=r-n*u-r*l,h=[[l*a-u*c+f,u*a+l*c+d],[l*s-u*c+f,u*s+l*c+d],[l*a-u*o+f,u*a+l*o+d],[l*s-u*o+f,u*s+l*o+d]];return h},t.prototype.set=function(e,n,r,i){return r0,m=r-c,b=i-l,x=d*b-h*m;if(x<0===y)return!1;var w=p*b-v*m;return!(w<0===y||x>g===y||w>g===y)}function D8(t,e){var n=[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]];return n.some(function(r){return j8(e,r)})}function $8(t,e,n){var r,i,a=ph(t,n).flat(1),o=ph(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var c=vn(s),l=c.next();!l.done;l=c.next()){var u=l.value;if(D8(o,u))return!0}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return!1}function B8(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if(n==="arc"){var a=t.center,o=t.radius,s=N(a,2),c=s[0],l=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=N(Te(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new hh(c+f-y,l+f-p,c+d+v,l+d+g)}var m=N(t.startPos,2),b=m[0],x=m[1],w=N(t.endPos,2),O=w[0],S=w[1],_=N(bS(t)?[-e,0,e,0]:[0,e,0,-e],4),M=_[0],E=_[1],P=_[2],T=_[3],A=Zs(0,t),k=Or(A,i),C=new hh(b,x,O,S);return C.x1+=T,C.y1+=M,C.x2+=E+k[0],C.y2+=P+k[1],C}function qu(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=B8(e,a),l=function(p){return c?I8(c,p):!0},u=function(p,v){return p?!$8(p,v,Te(n)):!0};try{for(var f=vn(t),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function qf(t,e){return e===void 0&&(e={}),nt(t)?0:typeof t=="number"?t:Math.floor(oI(t,e))}function F8(t,e,n,r){if(!(t.length<=1)){var i=e.suffix,a=i===void 0?"...":i,o=e.minLength,s=e.maxLength,c=s===void 0?1/0:s,l=e.step,u=l===void 0?" ":l,f=e.margin,d=f===void 0?[0,0,0,0]:f,h=eS(r.getTextShape(t[0])),p=qf(u,h),v=o?qf(o,h):p,g=qf(c,h);(nt(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(O){return b0(O).width})));var y=t.slice(),m=N(d,4);m[0],m[1],m[2],m[3];for(var b=function(O){if(y.forEach(function(S){r.ellipsis(r.getTextShape(S),O,a)}),y=qu(t,n,d),y.length<1)return{value:void 0}},x=g;x>v+p;x-=p){var w=b(x);if(typeof w=="object")return w.value}}}var z8={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(li(i),!1):!0})}},G8=function(t){return t.filter(tS)};function Y8(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=z8.parity,c=function(b){return b.forEach(r.show),b},l=2,u=t.slice(),f=t.slice(),d=Math.min.apply(Math,q([1],N(t.map(function(b){return b0(b).width})),!1));if(n.type==="linear"&&(mS(n)||bS(n))){var h=Oy(t[0]).left,p=Oy(t[i-1]).right,v=Math.abs(p-h)||1;l=Math.max(Math.floor(i*d/v),l)}var g,y;for(a&&(g=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),c(u);ls)){for(var y=h;y<=s;y++)if(g(y),p())return;l&&g(d)}}var X8=new Map([["hide",Y8],["rotate",W8],["ellipsis",F8],["wrap",V8]]);function U8(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!iI(t[0]):n==="rotate"?!t.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?t.filter(function(r){return r.querySelector("text")}).length>1:!0}function q8(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=X8.get(o);U8(t,e,o)&&(s==null||s(t,a,e,n))})}function K8(){for(var t=[],e=0;e2?[t[0]]:t.split("")}function sj(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),c=e.getBBox(),l=Ku(r),u=N(Te(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=N(Te(a),4),g=v[0],y=v[1],m=v[2],b=v[3],x=N([p+d,f+h],2),w=x[0],O=x[1],S=N([b+y,g+m],2),_=S[0],M=S[1];if(l[0]==="l")return new Qt(s.x,s.y,c.width+s.width+w+_,Math.max(c.height+M,s.height));if(l[0]==="t")return new Qt(s.x,s.y,Math.max(c.width+_,s.width),c.height+s.height+O+M);var E=N([e.attributes.width||c.width,e.attributes.height||c.height],2),P=E[0],T=E[1];return new Qt(c.x,c.y,P+s.width+w+_,T+s.height+O+M)}function cj(t,e){var n=Object.entries(e).reduce(function(r,i){var a=N(i,2),o=a[0],s=a[1],c=t.node().attr(o);return c||(r[o]=s),r},{});t.styles(n)}function lj(t){var e,n,r,i,a=t,o=a.width,s=a.height,c=a.position,l=N([+o/2,+s/2],2),u=l[0],f=l[1],d=N([+u,+f,"center","middle"],4),h=d[0],p=d[1],v=d[2],g=d[3],y=Ku(c);return y.includes("l")&&(e=N([0,"start"],2),h=e[0],v=e[1]),y.includes("r")&&(n=N([+o,"end"],2),h=n[0],v=n[1]),y.includes("t")&&(r=N([0,"top"],2),p=r[0],g=r[1]),y.includes("b")&&(i=N([+s,"bottom"],2),p=i[0],g=i[1]),{x:h,y:p,textAlign:v,textBaseline:g}}var MS=function(t){rt(e,t);function e(n){return t.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return e.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,c=r.inset,l=n.querySelector(Ry.text.class);if(!l)return new Qt(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=N(Te(s),4),p=h[0],v=h[1],g=h[2],y=h[3],m=N([0,0,+i,+a],4),b=m[0],x=m[1],w=m[2],O=m[3],S=Ku(o);if(S.includes("i"))return new Qt(b,x,w,O);S.forEach(function(L,I){var R,j,D,$;L==="t"&&(R=N(I===0?[d+g,+a-d-g]:[0,+a],2),x=R[0],O=R[1]),L==="r"&&(j=N([+i-f-y],1),w=j[0]),L==="b"&&(D=N([+a-d-p],1),O=D[0]),L==="l"&&($=N(I===0?[f+v,+i-f-v]:[0,+i],2),b=$[0],w=$[1])});var _=N(Te(c),4),M=_[0],E=_[1],P=_[2],T=_[3],A=N([T+E,M+P],2),k=A[0],C=A[1];return new Qt(b+T,x+M,w-k,O-C)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Qt(0,0,0,0)},e.prototype.render=function(n,r){var i=this;n.width,n.height,n.position,n.spacing;var a=$t(n,["width","height","position","spacing"]),o=N(Rr(a),1),s=o[0],c=lj(n),l=c.x,u=c.y,f=c.textAlign,d=c.textBaseline;on(!!a.text,dt(r),function(h){i.title=h.maybeAppendByClassName(Ry.text,"text").styles(s).call(cj,{x:l,y:u,textAlign:f,textBaseline:d}).node()})},e}(Pe);function uj(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=Ku(i),s=t.node().getLocalBounds(),c=N(s.min,2),l=c[0],u=c[1],f=N(s.halfExtents,2),d=f[0],h=f[1],p=N(e.node().getLocalBounds().halfExtents,2),v=p[0],g=p[1],y=N([l+d,u+h],2),m=y[0],b=y[1],x=N(Te(a),4),w=x[0],O=x[1],S=x[2],_=x[3];if(["start","end"].includes(i)&&n.type==="linear"){var M=n.startPos,E=n.endPos,P=N(i==="start"?[M,E]:[E,M],2),T=P[0],A=P[1],k=iS([-A[0]+T[0],-A[1]+T[1]]),C=N(Or(k,w),2),L=C[0],I=C[1];return{x:T[0]+L,y:T[1]+I}}return o.includes("t")&&(b-=h+g+w),o.includes("r")&&(m+=d+v+O),o.includes("l")&&(m-=d+v*2+_),o.includes("b")&&(b+=h+g*2+S),{x:m,y:b}}function fj(t,e,n){var r=t.cloneNode(!0);r.style.transform="scale(1, 1)",r.style.transform="none";var i=r.getBBox().height;if(e==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function Iy(t,e,n,r,i){var a=vt(r,"title"),o=N(Rr(a),2),s=o[0],c=o[1],l=c.transform,u=$t(c,["transform"]);t.styles(s),e.styles(u);var f=l||fj(t.node(),s.direction,s.position);Bl(t.node(),f);var d=uj(dt(n._offscreen||n.querySelector(Rt.mainGroup.class)),e,r),h=d.x,p=d.y,v=Vn(e.node(),{x:h,y:p},i);return Bl(t.node(),f),v}function dj(t,e,n,r){var i=n.titleText;return t.selectAll(Rt.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return Yi(i)}).attr("className",Rt.title.name).transition(function(){return Iy(dt(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return Iy(dt(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function jy(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(Rt.lineGroup,"g"),c=on(i,s,function(h){return P8(h,t,r)})||[],l=e.maybeAppendByClassName(Rt.tickGroup,"g"),u=on(a,l,function(h){return oj(h,n,t,r)})||[],f=e.maybeAppendByClassName(Rt.labelGroup,"g"),d=on(o,f,function(h){return ej(h,n,t,r)})||[];return q(q(q([],N(c),!1),N(u),!1),N(d),!1).filter(function(h){return!!h})}var x0=function(t){rt(e,t);function e(n){return t.call(this,n,g0)||this}return e.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,c=n.animate,l=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=wI(s,f).filter(function(w){var O=w.value;return!(d&&O>d[0]&&O1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var n=this.pageViews,r=N(LI(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,q([],N(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,c=s===void 0?i:s,l=o.pageHeight,u=l===void 0?a:l;return{pageWidth:c,pageHeight:u}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=t.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,c=o.pageHeight;return new Qt(r,i,s+a.width,c)},e.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,c=a.playWindow,l=a.pageViews;if(s!=="idle"||n<0||l.length<=0||n>=l.length)return null;l[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=N(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=lS(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return ro(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},e.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:ce(i-1,0,r);return this.goTo(a)},e.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:ce(i+1,0,r);return this.goTo(a)},e.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(En.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?Ks(r):li(r)})},e.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,c=o.controllerPadding,l=a.getBBox(),u=l.width;l.height;var f=N(s==="horizontal"?[-180,0]:[-90,90],2),d=f[0],h=f[1];r.setLocalEulerAngles(d),i.setLocalEulerAngles(h);var p=r.getBBox(),v=p.width,g=p.height,y=i.getBBox(),m=y.width,b=y.height,x=Math.max(v,u,m),w=s==="horizontal"?{offset:[[0,0],[v/2+c,0],[v+u+c*2,0]],textAlign:"start"}:{offset:[[x/2,-g-c],[x/2,0],[x/2,b+c]],textAlign:"center"},O=N(w.offset,3),S=N(O[0],2),_=S[0],M=S[1],E=N(O[1],2),P=E[0],T=E[1],A=N(O[2],2),k=A[0],C=A[1],L=w.textAlign,I=a.querySelector("text");I&&(I.style.textAlign=L),r.setLocalPosition(_,M),a.setLocalPosition(P,T),i.setLocalPosition(k,C)},e.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(En.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,c=n=2,l=n.maybeAppendByClassName(En.controller,"g");if(Hu(l.node(),c),!!c){var u=vt(this.attributes,"button"),f=vt(this.attributes,"pageNum"),d=N(Rr(u),2),h=d[0],p=d[1],v=h.size,g=$t(h,["size"]),y=!l.select(En.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(En.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(En.prevBtn,"path"),x=l.maybeAppendByClassName(En.nextBtnGroup,"g").styles(p);this.nextBtnGroup=x.node();var w=x.maybeAppendByClassName(En.nextBtn,"path");[b,w].forEach(function(S){S.styles(z(z({},g),{transformOrigin:"center"})),h0(S.node(),v,!0)});var O=l.maybeAppendByClassName(En.pageInfoGroup,"g");this.pageInfoGroup=O.node(),O.maybeAppendByClassName(En.pageInfo,"text").styles(f),this.updatePageInfo(),l.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},e.prototype.render=function(n,r){var i=dt(r);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var n=this,r=$b(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(ht.INSERTED,r),this.playWindow.addEventListener(ht.REMOVED,r)},e}(Pe);function pj(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function vj(t,e,n){var r=1.4,i=r*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}var ES=1.4,PS=.4;function gj(t,e,n){var r=n,i=r*ES,a=r/2,o=r/6,s=t+i*PS;return[["M",t,e],["L",s,e+a],["L",t+i,e+a],["L",t+i,e-a],["L",s,e-a],["Z"],["M",s,e+o],["L",t+i-2,e+o],["M",s,e-o],["L",t+i-2,e-o]]}function yj(t,e,n){var r=n,i=r*ES,a=r/2,o=r/6,s=e+i*PS;return[["M",t,e],["L",t-a,s],["L",t-a,e+i],["L",t+a,e+i],["L",t+a,s],["Z"],["M",t-o,s],["L",t-o,e+i-2],["M",t+o,s],["L",t+o,e+i-2]]}Bt.registerSymbol("hiddenHandle",vj);Bt.registerSymbol("verticalHandle",gj);Bt.registerSymbol("horizontalHandle",yj);function mj(t,e,n,r){var i,a=N(t,2),o=a[0],s=a[1],c=N(e,2),l=c[0],u=c[1],f=N(n,2),d=f[0],h=f[1],p=N([l,u],2),v=p[0],g=p[1],y=g-v;return v>g&&(i=N([g,v],2),v=i[0],g=i[1]),y>s-o?[o,s]:vs?h===s&&d===v?[v,s]:[s-y,s]:[v,g]}function ir(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n}var un=$n({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function bj(t){var e=t.querySelector(un.marker.class);return e?e.style:{}}var xj=function(t){rt(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new Xs({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(e.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,c=r.node().getBBox(),l=c.width,u=c.height;return{markerWidth:i,labelWidth:o,valueWidth:l,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=N(Te(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,c=o.height,l=this.actualSpace,u=l.labelWidth,f=l.valueWidth,d=N(this.spacing,2),h=d[0],p=d[1];if(a){var v=a-i-h-p,g=N(this.span,2),y=g[0],m=g[1];n=N([y*v,m*v],2),u=n[0],f=n[1]}var b=s+u+f+h+p;return{width:b,height:c,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=N(Te(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,c=N(this.spacing,2),l=c[0],u=c[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+l,r+i+l+u]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var n=bj(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,c=s===void 0?n.lineWidth:s,l=r.markerStroke,u=l===void 0?n.stroke:l,f=+(o||c||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=vt(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(un.markerGroup,"g").style("zIndex",0),on(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(un.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(PI(s,c),dt(s).styles(a)):(s.remove(),dt(c).attr("className",un.marker.name).styles(a),o.appendChild(c)):(dt(c).attr("className",un.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),h0(r.markerGroup.node(),r.scaleSize,!0)})},e.prototype.renderLabel=function(n){var r=vt(this.attributes,"label"),i=r.text,a=$t(r,["text"]);this.labelGroup=n.maybeAppendByClassName(un.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(un.label,function(){return Yi(i)}).styles(a)},e.prototype.renderValue=function(n){var r=this,i=vt(this.attributes,"value"),a=i.text,o=$t(i,["text"]);this.valueGroup=n.maybeAppendByClassName(un.valueGroup,"g").style("zIndex",0),on(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(un.value,function(){return Yi(a)}).styles(o)})},e.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=vt(this.attributes,"background");this.background=n.maybeAppendByClassName(un.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(un.background,"rect").styles(z({width:i,height:a},o))},e.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=N(n.position,3),s=o[0],c=o[1],l=o[2],u=a/2;this.markerGroup.styles({x:s,y:u}),this.labelGroup.styles({x:c,y:u}),uh(this.labelGroup.select(un.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),uh(this.valueGroup.select(un.value.class).node(),Math.ceil(i)))},e.prototype.render=function(n,r){var i=dt(r);this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},e}(Pe),Si=$n({page:"item-page",navigator:"navigator",item:"item"},"items"),Dy=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},wj=function(t){rt(e,t);function e(n){var r=t.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:wf,mouseenter:wf,mouseleave:wf})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=vt(this.attributes,"item"),o=r.map(function(s,c){var l=s.id,u=l===void 0?c:l,f=s.label,d=s.value;return{id:"".concat(u),index:c,style:z({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=N(h,2),v=p[0],g=p[1];return[v,Rn(g,[s,c,r])]})))}});return o},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,c=N(this.navigatorShape,1),l=c[0],u=N(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(v,g){var y,m,b=Math.floor(g/h),x=g%h,w=n.ifHorizontal(d,f),O=[Math.floor(x/w),x%w];i==="vertical"&&O.reverse();var S=N(O,2),_=S[0],M=S[1],E=(a-l-(d-1)*s)/d,P=v.getBBox().height,T=N([0,0],2),A=T[0],k=T[1];return i==="horizontal"?(y=N([p,_*(P+o)],2),A=y[0],k=y[1],p=M===d-1?0:p+E+s):(m=N([M*(E+s),p],2),A=m[0],k=m[1],p=_===f-1?0:p+P+o),{page:b,index:g,row:_,col:M,pageIndex:x,width:E,height:P,x:A,y:k}})},e.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=N(this.navigatorShape,1),c=s[0],l=N(this.grid,2),u=l[0],f=l[1],d=N([r-c,i],2),h=d[0],p=d[1],v=N([0,0,0,0,0,0,0,0],8),g=v[0],y=v[1],m=v[2],b=v[3],x=v[4],w=v[5],O=v[6],S=v[7];return this.pageViews.children.map(function(_,M){var E,P,T,A,k=_.getBBox(),C=k.width,L=k.height,I=O===0?0:o,R=O+I+C;if(R<=h&&Dy(x,function(D){return D0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return ir(i,n,r)},e.prototype.flattenPage=function(n){n.querySelectorAll(Si.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(Si.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},e.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);dt(n).selectAll(Si.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new xj({style:u})}).attr("className",Si.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(c){return c.each(function(l){var u=l.style;this.update(u)})},function(c){return c.remove()})},e.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=N(this.navigatorShape,2),c=s[0],l=s[1];this.navigator.update(i==="grid"?{pageWidth:a-c,pageHeight:o-l}:{})},e.prototype.adjustLayout=function(){var n=this,r=Object.entries(cI(this.itemsLayout,"page")).map(function(a){var o=N(a,2),s=o[0],c=o[1];return{page:s,layouts:c}}),i=q([],N(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Ce({className:Si.page.name}));o.forEach(function(c){var l=c.x,u=c.y,f=c.index,d=c.width,h=c.height,p=i[f];s.appendChild(p),$k(p,"__layout__",c),p.update({x:l,y:u,width:d,height:h})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=vt(this.attributes,"nav"),a=Nr({orientation:r},i),o=this;return n.selectAll(Si.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new hj({style:a})}).attr("className",Si.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(dt(r));this.renderItems(a.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(n,r){var i=new Dt(n,{detail:r});this.dispatchEvent(i)},e}(Pe),Oo=$n({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),AS={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},Oj=function(t){rt(e,t);function e(n){return t.call(this,n,AS)||this}return e.prototype.render=function(n,r){var i=dt(r).maybeAppendByClassName(Oo.markerGroup,"g");this.renderMarker(i);var a=dt(r).maybeAppendByClassName(Oo.labelGroup,"g");this.renderLabel(a)},e.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?ir(a,"horizontalHandle","verticalHandle"):o;on(!!s,n,function(c){var l=vt(r.attributes,"marker"),u=z({symbol:s},l);r.marker=c.maybeAppendByClassName(Oo.marker,function(){return new Bt({style:u})}).update(u)})},e.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,c=s===void 0?0:s,l=i.formatter;on(a,n,function(u){var f,d=vt(r.attributes,"label"),h=d.text,p=$t(d,["text"]),v=((f=u.select(Oo.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=v.width,y=g===void 0?0:g,m=v.height,b=m===void 0?0:m,x=N(ir(o,[0,b+c,"center","top"],[y+c,0,"start","middle"]),4),w=x[0],O=x[1],S=x[2],_=x[3];u.maybeAppendByClassName(Oo.label,"text").styles(z(z({},p),{x:w,y:O,text:l(h).toString(),textAlign:S,textBaseline:_}))})},e}(Pe),kS={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},Sj=Nr({},kS,{}),_j=Nr({},kS,Jn(AS,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),Mj=.01,Me=$n({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),Ej=function(t){rt(e,t);function e(n){return t.call(this,n,Sj)||this}return e.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,c=vt(this.attributes,"title"),l=N(Rr(c),2),u=l[0],f=l[1];this.titleGroup=n.maybeAppendByClassName(Me.titleGroup,"g").styles(f);var d=z(z({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(Me.title,function(){return new MS({style:d})}).update(d)},e.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,c=vt(this.attributes,"title",!0),l=N(Rr(c),2),u=l[0],f=l[1],d=z(z({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(Me.itemsGroup,"g").styles(z({x:i,y:a},f));var h=this;this.itemsGroup.selectAll(Me.items.class).data(["items"]).join(function(p){return p.append(function(){return new wj({style:d})}).attr("className",Me.items.name).each(function(){h.items=dt(this)})},function(p){return p.update(d)},function(p){return p.remove()})},e.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().setLocalPosition(i,a)}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new Qt(0,0,i,a)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?t.prototype.getBBox.call(this):sj(i,a)},e.prototype.render=function(n,r){var i=n.width,a=n.height,o=dt(r);this.renderTitle(o,i,a),this.renderItems(o,this.availableSpace),this.adjustLayout()},e}(Pe),Pj={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},Kf=$n({background:"background",labelGroup:"label-group",label:"label"},"indicator"),Aj=function(t){rt(e,t);function e(n){var r=t.call(this,n,Pj)||this;return r.point=[0,0],r.group=r.appendChild(new Ce({})),r.isMutationObserved=!0,r}return e.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=N(Te(i),4),o=a[0],s=a[1],c=a[2],l=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new Qt(f[0]-l,f[1]-o,d[0]+s-f[0]+l,d[1]+c-f[1]+o),p=this.getPath(r,h),v=vt(this.attributes,"background");this.background=dt(this.group).maybeAppendByClassName(Kf.background,"path").styles(z(z({},v),{path:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=vt(this.attributes,"label"),o=N(Rr(a),2),s=o[0],c=o[1];s.text;var l=$t(s,["text"]);if(this.label=dt(this.group).maybeAppendByClassName(Kf.labelGroup,"g").styles(c),!!i){var u=this.label.maybeAppendByClassName(Kf.label,function(){return Yi(r(i))}).style("text",r(i).toString());u.selectAll("text").styles(l)}},e.prototype.adjustLayout=function(){var n=N(this.point,2),r=n[0],i=n[1];this.group.attr("x",-r).attr("y",-i)},e.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,c=r.height,l=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+c-i],["A",i,i,0,0,1,a+s-i,o+c],["L",a+i,o+c],["A",i,i,0,0,1,a,o+c-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([l[f].slice(-2),l[f+1].slice(-2)]);return l.splice.apply(l,q([f+1,1],N(d),!1)),l[0][0]="M",l},e.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=EI.apply(void 0,q([],N(n),!1)),o=N(n,2),s=N(o[0],2),c=s[0],l=s[1],u=N(o[1],2),f=u[0],d=u[1],h=N(a?[f-c,[c,f]]:[d-l,[l,d]],2),p=h[0],v=N(h[1],2),g=v[0],y=v[1],m=p/2,b=p/Math.abs(p),x=r*b,w=x/2,O=x*Math.sqrt(3)/2*i,S=N([g,g+m-w,g+m,g+m+w,y],5),_=S[0],M=S[1],E=S[2],P=S[3],T=S[4];return a?(this.point=[E,l-O],[["L",_,l],["L",M,l],["L",E,l-O],["L",P,l],["L",T,l]]):(this.point=[c+O,E],[["L",c,_],["L",c,M],["L",c+O,E],["L",c,P],["L",c,T]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?li(this):Ks(this)},e.prototype.bindEvents=function(){this.label.on(ht.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Pe);function kj(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function Tj(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(a,o,s){var c=r[s%r.length];return a+=" ".concat(t[s],":").concat(c).concat(s(r+i)/2?i:r,range:[r,i]}}var ms=$n({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function TS(t){var e=t.orientation,n=t.size,r=t.length;return ir(e,[r,n],[n,r])}function CS(t){var e=t.type,n=N(TS(t),2),r=n[0],i=n[1];return e==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function Cj(t){return CS(t)}function Lj(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(Ve(n)){var o=20;a=new Array(o).fill(0).map(function(l,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,c=a.map(function(l){return Ar(l).toString()});return s?s===1?c[0]:r?Tj(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(ir(e,"0","270"),")")):""}function Nj(t){var e=t.orientation,n=t.range;if(!n)return[];var r=N(TS(t),2),i=r[0],a=r[1],o=N(n,2),s=o[0],c=o[1],l=ir(e,s*i,0),u=ir(e,0,s*a),f=ir(e,c*i,i),d=ir(e,a,c*a);return[["M",l,u],["L",l,d],["L",f,d],["L",f,u],["Z"]]}function Rj(t,e){var n=vt(e,"track");t.maybeAppendByClassName(ms.track,"path").styles(z({path:CS(e)},n))}function Ij(t,e){var n=vt(e,"selection"),r=Lj(e),i=t.maybeAppendByClassName(ms.selection,"path").styles(z({path:Cj(e),fill:r},n)),a=i.maybeAppendByClassName(ms.clipPath,"path").styles({path:Nj(e)}).node();i.style("clip-path",a)}var jj=function(t){rt(e,t);function e(n){return t.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return e.prototype.render=function(n,r){var i=dt(r).maybeAppendByClassName(ms.trackGroup,"g");Rj(i,n);var a=dt(r).maybeAppendByClassName(ms.selectionGroup,"g");Ij(a,n)},e}(Pe);function Dj(t){return{min:Math.min.apply(Math,q([],N(t.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,q([],N(t.map(function(e){return e.value})),!1))}}var $j=function(t){rt(e,t);function e(n){var r=t.call(this,n,_j)||this;return r.eventToOffsetScale=new Yt({}),r.innerRibbonScale=new Yt({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var c=r.getValueByCanvasPoint(i);if(s){var l=$y(o.map(function(f){var d=f.value;return d}),c).range;r.showIndicator((l[0]+l[1])/2,"".concat(l[0],"-").concat(l[1])),r.dispatchIndicated(c,l)}else{var u=r.getTickValue(c);r.showIndicator(u),r.dispatchIndicated(u)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=N(r.selection,2),s=o[0],c=o[1],l=r.getTickValue(r.getValueByCanvasPoint(i)),u=l-r.prevValue;a==="start"?s!==l&&r.updateSelection(l,c):a==="end"?c!==l&&r.updateSelection(s,l):a==="ribbon"&&u!==0&&(r.prevValue=l,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new Qt(0,0,r,i)},e.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(dt(r));var o=this.availableSpace,s=o.x,c=o.y,l=dt(r).maybeAppendByClassName(Me.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Me.labelGroup,"g").styles({zIndex:1});on(!!a,u,function(d){i.renderLabel(d)});var f=l.maybeAppendByClassName(Me.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=l.maybeAppendByClassName(Me.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(l),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:Dj(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var n=N(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=N(o,2),c=s[0],l=s[1];return[c,l]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){return ir(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},e.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,c=vt(this.attributes,"title"),l=z(z({},c),{width:o,height:s,text:a}),u=this;n.selectAll(Me.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new MS({style:l})}).attr("className",Me.title.name).each(function(){u.title=this})},function(f){return f.update(l)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new Qt(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new Qt(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Rt.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Qt(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,c=o.height,l=this.ifHorizontal(c,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,c);return{width:s,height:c,size:l,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,c=this.labelShape,l=c.size,u=c.length,f=N(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},v=p.size,g=p.length,y=this.handleOffsetRatio,m=0,b=this.labelPosition;i?m=i:["bottom","right"].includes(b)?m=Math.min(d-l,(d-v)/y):d*(1-y)>v?m=Math.max(d-l,0):m=Math.max((d-l-v)/y,0);var x=Math.max(g,u),w=h-x,O=N(this.ifHorizontal([w,m],[m,w]),2),S=O[0],_=O[1],M=["top","left"].includes(b)?l:0,E=N(this.ifHorizontal([x/2,M],[M,x/2]),2),P=E[0],T=E[1];return new Qt(P,T,S,_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,c=r.block,l=vt(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,v=h.y,g=this.ribbonShape,y=g.length,m=g.size,b=Nr({x:p,y:v,length:y,size:m,type:a,orientation:o,color:s,block:c,partition:i.map(function(x){return(x.value-f)/(d-f)}),range:this.ribbonRange},l);this.ribbon=n.maybeAppendByClassName(Me.ribbon,function(){return new jj({style:b})}).update(b)},e.prototype.getHandleClassName=function(n){return"".concat(Me.prefix("".concat(n,"-handle")))},e.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=vt(this.attributes,"handle"),o=N(this.selection,2),s=o[0],c=o[1],l=z(z({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?Oj:hS,h=this;this.handlesGroup.selectAll(Me.handle.class).data(r?[{value:s,type:"start"},{value:c,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:l})}).attr("className",function(v){var g=v.type;return"".concat(Me.handle," ").concat(h.getHandleClassName(g))}).each(function(v){var g=v.type,y=v.value;this.update({labelText:y});var m="".concat(g,"Handle");h[m]=this,this.addEventListener("pointerdown",h.onDragStart(g))})},function(p){return p.update(l).each(function(v){var g=v.value;this.update({labelText:g})})},function(p){return p.each(function(v){var g=v.type,y="".concat(g,"Handle");h[y]=void 0}).remove()})},e.prototype.adjustHandles=function(){var n=N(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},e.prototype.adjustTitle=function(){var n=this.attributes,r=n.titlePosition,i=n.orientation,a=N(this.getElementsByClassName(Me.title.name),1),o=a[0],s=this.handlesGroup.select(".".concat(this.getHandleClassName("start"))).node();if(!(!o||!s)&&!(r!=="top-left"||i!=="horizontal")){var c=N(s.getLocalBounds().min,1),l=c[0],u=N(o.getLocalBounds().min,1),f=u[0],d=l-f;o.style.x=+(this.style.x||0)+d}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Qt(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,c=N([Math.max(r,o),Math.max(i,s)],2),l=c[0],u=c[1];return this.cacheHandleBBox=new Qt(0,0,l,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=N(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,c=this.ribbonShape.size,l=this.getOffset(r),u=N(this.ifHorizontal([o+l,s+c*this.handleOffsetRatio],[o+c*this.handleOffsetRatio,s+l]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({x:f,y:d,formatter:i})},e.prototype.renderIndicator=function(n){var r=vt(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(Me.indicator,function(){return new Aj({})}).update(r)},Object.defineProperty(e.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var c,l,u=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:o.toString();if(i.push(z(z({},a),{id:u,index:o,type:"value",label:(l=a==null?void 0:a.label)!==null&&l!==void 0?l:a.value.toString(),value:n.ribbonScale.map(a.value)})),o'),title:'
    '),item:'
  • - - - {name} - - {value} -
  • `)},style:Bj(o)})||this,r.timestamp=-1,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,c=s===void 0?"":s,l=a.color,u=l===void 0?"black":l,f=a.index,d=$t(a,["name","color","index"]),h=z({name:c,color:u,index:f??o},d);return rg(Nk(i.item,h))})},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(n,r){var i=this;if(n!==void 0&&r!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=n??i.attributes.x,i.attributes.y=r??i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},e.prototype.hide=function(n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=this.attributes.enterable;i&&this.isCursorEntered(n,r)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var n=this.attributes.template;this.element=rg(n.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:this.element.replaceChildren(n))}},e.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,c=i.style,l=i.content,u=gh(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",l)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,h.replaceChildren.apply(h,q([],N(d),!1));var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}TI(f,c)},e.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),c={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,u=l.width,f=l.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=N(d,2),v=p[0],g=p[1],y=N(c[h],2),m=y[0],b=y[1];d=[v+(u/2+a[0])*m,g+(f/2+a[1])*b]}),d},e.prototype.setOffsetPosition=function(n){var r=N(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+c+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},e.prototype.updatePosition=function(){var n=this.attributes.showDelay,r=n===void 0?60:n,i=Date.now();this.timestamp>0&&i-this.timestampm+x,top:gb+w},S=[];u.split("-").forEach(function(M){O[M]?S.push(y[M]):S.push(M)});var _=S.join("-");return this.getRelativeOffsetFromCursor(_)},e.prototype.isCursorEntered=function(n,r){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.width,c=i.height;return new Qt(a,o,s,c).isPointIn(n,r)}return!1},e.prototype.closeTransition=function(n){var r=this,i=this.element.style.transition;this.element.style.transition="none",n(),setTimeout(function(){r.element.style.transition=i},10)},e.tag="tooltip",e}(Pe),zj=function(t){rt(e,t);function e(n){var r=t.call(this,n)||this;r.layoutEvents=[ht.BOUNDS_CHANGED,ht.INSERTED,ht.REMOVED],r.$margin=Te(0),r.$padding=Te(0);var i=n.style||{},a=i.margin,o=a===void 0?0:a,s=i.padding,c=s===void 0?0:s;return r.margin=o,r.padding=c,r.isMutationObserved=!0,r.bindEvents(),r}return Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(n){this.$margin=Te(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(n){this.$padding=Te(n)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.x,i=r===void 0?0:r,a=n.y,o=a===void 0?0:a,s=n.width,c=n.height,l=N(this.$margin,4),u=l[0],f=l[1],d=l[2],h=l[3];return new Qt(i-h,o-u,s+h+f,c+u+d)},e.prototype.appendChild=function(n,r){return n.isMutationObserved=!0,t.prototype.appendChild.call(this,n,r),n},e.prototype.getAvailableSpace=function(){var n=this.attributes,r=n.width,i=n.height,a=N(this.$padding,4),o=a[0],s=a[1],c=a[2],l=a[3],u=N(this.$margin,4),f=u[0],d=u[3];return new Qt(l+d,o+f,r-l-s,i-o-c)},e.prototype.layout=function(){if(!(!this.attributes.display||!this.isConnected)&&!this.children.some(function(r){return!r.isConnected}))try{var n=vI(this.getAvailableSpace(),this.children.map(function(r){return r.getBBox()}),this.attributes);this.children.forEach(function(r,i){var a=n[i],o=a.x,s=a.y;r.attr({x:o,y:s})})}catch{}},e.prototype.bindEvents=function(){var n=this;this.layoutEvents.forEach(function(r){n.addEventListener(r,function(i){i.target.isMutationObserved=!0,n.layout()})})},e.prototype.attributeChangedCallback=function(n,r,i){n==="margin"?this.margin=i:n==="padding"&&(this.padding=i),this.layout()},e}(Ce),Zf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}function Yj(t,e=[]){const[n=0,r=0,i=n,a=r]=e,o=t.parentNode,s=o.getEulerAngles();o.setEulerAngles(0);const{min:c,halfExtents:l}=t.getLocalBounds(),[u,f]=c,[d,h]=l;return o.setEulerAngles(s),{x:u-a,y:f-n,width:d*2+a+r,height:h*2+n+i}}const Wj=(t,e,n)=>{const r=Jt(t,e),i=Jt(e,n),a=Jt(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)};function Hj(t,e,n,r){const[[i,a],[o,s]]=e,[c,l]=Gj(t);if(i===o&&a===s)return Jr()([[0,0],[c,l]]);const u=[[i-o,a-s]].concat(n.length?n:[[0,0]]),f=[r[0]-o,r[1]-s],[d,h]=u;if(Wj(f,d,h)>0){const p=(()=>{const{min:v,max:g}=t.getLocalBounds(),y=d[0]+(d[1]-f[1])*(d[1]-0)/(d[0]-f[0]);return g[0]{const e=t.attributes,{className:n,class:r,transform:i,rotate:a,labelTransform:o,labelTransformOrigin:s,x:c,y:l,x0:u=c,y0:f=l,text:d,background:h,connector:p,startMarker:v,endMarker:g,coordCenter:y,innerHTML:m}=e,b=Zf(e,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if([c,l,u,f].some(L=>!de(L))){t.children.forEach(L=>L.remove());return}const x=Q(b,"background"),{padding:w}=x,O=Zf(x,["padding"]),S=Q(b,"connector"),{points:_=[]}=S,M=Zf(S,["points"]),E=[[+u,+f],[+c,+l]];let P;m?P=st(t).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",m).call(at,Object.assign({transform:o,transformOrigin:s},b)).node():P=st(t).maybeAppend("text","text").style("zIndex",0).style("text",d).call(at,Object.assign({textBaseline:"middle",transform:o,transformOrigin:s},b)).node();const T=st(t).maybeAppend("background","rect").style("zIndex",-1).call(at,Yj(P,w)).call(at,h?O:{}).node(),A=Hj(T,E,_,y),k=v&&new Bt({id:"startMarker",style:Object.assign({x:0,y:0},Q(b,"startMarker"))}),C=g&&new Bt({id:"endMarker",style:Object.assign({x:0,y:0},Q(b,"endMarker"))});st(t).maybeAppend("connector","path").style("zIndex",0).style("path",A).style("markerStart",k).style("markerEnd",C).call(at,p?M:{})}),NS=(t,e)=>{const{coordinate:n}=e;return(r,i,a)=>{const{color:o,text:s="",fontSize:c,rotate:l=0,transform:u=""}=i,f={text:String(s),stroke:o,fill:o,fontSize:c},[[d,h]]=r;return st(new LS).style("x",d).style("y",h).call(at,a).style("transform",`${u}rotate(${+l})`).style("coordCenter",n.getCenter()).call(at,f).call(at,t).node()}};NS.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var yh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const e=t.attributes,n=yh(e,["class","x","y"]),r=Q(n,"marker"),{size:i=24}=r,a=()=>Vj(i/2),o=st(t).maybeAppend("marker",()=>new Bt({})).call(l=>l.node().update(Object.assign({symbol:a},r))).node(),[s,c]=Xj(o);st(t).maybeAppend("text","text").style("x",s).style("y",c).call(at,n)}),RS=(t,e)=>{const n=yh(t,[]);return(r,i,a)=>{const{color:o}=a,s=yh(a,["color"]),{color:c=o,text:l=""}=i,u={text:String(l),stroke:c,fill:c},[[f,d]]=r;return st(new Uj).call(at,s).style("x",f).style("y",d).call(at,u).call(at,n).node()}};RS.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var qj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e(f)))a=!0;else{if(n.push(l),r.push(u),a&&o){a=!1;const[f,d]=o;i.push([f,l,d,u])}o=[l,u]}}return[n.concat(r),i]}const Fy=Fa(t=>{const{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;st(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(at,i),st(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(at,r)}),Un=(t,e)=>{const{curve:n,gradient:r=!1,defined:i=l=>!Number.isNaN(l)&&l!==void 0&&l!==null,connect:a=!1}=t,o=qj(t,["curve","gradient","defined","connect"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d}=f,{color:h=d,seriesColor:p,seriesX:v,seriesY:g}=u,y=qt(s),m=nO(s,u),b=r&&p?tO(p,v,g,r,void 0,y):h,x=Object.assign(Object.assign(Object.assign(Object.assign({},f),{stroke:b,fill:b}),m&&{transform:m}),o),[w,O]=Kj(l,i),S=Q(x,"connect"),_=!!O.length,M=E=>st(c.createElement("path",{})).style("d",E||"").call(at,x).node();if(Ht(s)){const E=P=>{const T=s.getCenter(),A=P.slice(0,P.length/2),k=P.slice(P.length/2);return OL().angle((C,L)=>ja(se(A[L],T))).outerRadius((C,L)=>Jt(A[L],T)).innerRadius((C,L)=>Jt(k[L],T)).defined((C,L)=>[...A[L],...k[L]].every(i)).curve(n)(k)};return!_||a&&!Object.keys(S).length?M(E(w)):_&&!a?M(E(l)):st(new Fy).style("areaStyle",x).style("connectStyle",Object.assign(Object.assign({},S),o)).style("areaPath",E(l)).style("connectPath",O.map(E).join("")).node()}else{const E=P=>{const T=P.slice(0,P.length/2),A=P.slice(P.length/2);return y?Vd().y((k,C)=>T[C][1]).x1((k,C)=>T[C][0]).x0((k,C)=>A[C][0]).defined((k,C)=>[...T[C],...A[C]].every(i)).curve(n)(T):Vd().x((k,C)=>T[C][0]).y1((k,C)=>T[C][1]).y0((k,C)=>A[C][1]).defined((k,C)=>[...T[C],...A[C]].every(i)).curve(n)(T)};return!_||a&&!Object.keys(S).length?M(E(w)):_&&!a?M(E(l)):st(new Fy).style("areaStyle",x).style("connectStyle",Object.assign(Object.assign({},S),o)).style("areaPath",E(l)).style("connectPath",O.map(E).join("")).node()}}};Un.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const IS=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Ht(n)?jp:Ys;return Un(Object.assign({curve:i},t),e)(...r)}};IS.props=Object.assign(Object.assign({},Un.props),{defaultMarker:"square"});var Zj=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=Zj(t,[]),{coordinate:r}=e;return(...i)=>{const a=Ht(r)?ew:qt(r)?ow:aw;return Un(Object.assign({curve:a},n),e)(...i)}};jS.props=Object.assign(Object.assign({},Un.props),{defaultMarker:"smooth"});const DS=(t,e)=>(...n)=>Un(Object.assign({curve:sw},t),e)(...n);DS.props=Object.assign(Object.assign({},Un.props),{defaultMarker:"hvh"});const $S=(t,e)=>(...n)=>Un(Object.assign({curve:cw},t),e)(...n);$S.props=Object.assign(Object.assign({},Un.props),{defaultMarker:"vh"});const BS=(t,e)=>(...n)=>Un(Object.assign({curve:lw},t),e)(...n);BS.props=Object.assign(Object.assign({},Un.props),{defaultMarker:"hv"});const FS=(t,e)=>{const{arrow:n=!1}=t;return(...r)=>u0(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};FS.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var zy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=zy(t,[]),{document:r}=e;return(i,a,o)=>{const{color:s}=o,c=zy(o,["color"]),{color:l=s,transform:u}=a,[f,d]=i,h=jn();return h.moveTo(f[0],f[1]),h.bezierCurveTo(f[0]/2+d[0]/2,f[1],f[0]/2+d[0]/2,d[1],d[0],d[1]),st(r.createElement("path",{})).call(at,c).style("d",h.toString()).style("stroke",l).style("transform",u).call(at,n).node()}};zS.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Gy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{cornerRatio:n=1/3}=t,r=Gy(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=Gy(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=Qj(h,p,i,n);return st(a.createElement("path",{})).call(at,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(at,r).node()}};GS.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Yy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=Yy(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=Yy(s,["color"]),{color:u=c,transform:f}=o,[d,h]=a,p=jn();if(p.moveTo(d[0],d[1]),Ht(r)){const v=r.getCenter();p.quadraticCurveTo(v[0],v[1],h[0],h[1])}else{const v=F2(d,h),g=Jt(d,h)/2;vs(p,d,h,v,g)}return st(i.createElement("path",{})).call(at,l).style("d",p.toString()).style("stroke",u).style("transform",f).call(at,n).node()}};YS.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function WS(t={}){const{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function Ue(t={}){return[...WS(t),{name:"title",scale:"identity"}]}function ui(){return[{type:wu,channel:"color"},{type:Su,channel:["x","y"]}]}function io(){return[{type:wu,channel:"x"},{type:Su,channel:["y"]}]}function Jj(){return[{type:wu,channel:"color"},{type:Su,channel:["position"]}]}function ao(t={}){return WS(t)}function pe(){return[{type:Mx}]}function ge(){return[]}function Qf(t,e){return t.getBandWidth(t.invert(e))}function ta(t,e,n={}){const{x:r,y:i,series:a}=e,{x:o,y:s,series:c}=t,{style:{bandOffset:l=c?0:.5,bandOffsetX:u=l,bandOffsetY:f=l}={}}=n,d=!!(o!=null&&o.getBandWidth),h=!!(s!=null&&s.getBandWidth),p=!!(c!=null&&c.getBandWidth);return!d&&!h?v=>v:(v,g)=>{const y=d?Qf(o,r[g]):0,m=h?Qf(s,i[g]):0,x=p&&a?(Qf(c,a[g])/2+ +a[g])*y:0,[w,O]=v;return[w+u*y+x,O+f*m]}}function zl(t){return parseFloat(t)/100}function w0(t,e,n,r){const{x:i,y:a}=n,{innerWidth:o,innerHeight:s}=r.getOptions(),c=Array.from(t,l=>{const u=i[l],f=a[l],d=typeof u=="string"?zl(u)*o:+u,h=typeof f=="string"?zl(f)*s:+f;return[[d,h]]});return[t,c]}function cr(t){return typeof t=="function"?t:e=>e[t]}function Jf(t,e){return Array.from(t,cr(e))}function O0(t,e){const{source:n=u=>u.source,target:r=u=>u.target,value:i=u=>u.value}=e,{links:a,nodes:o}=t,s=Jf(a,n),c=Jf(a,r),l=Jf(a,i);return{links:a.map((u,f)=>({target:c[f],source:s[f],value:l[f]})),nodes:o||Array.from(new Set([...s,...c]),u=>({key:u}))}}var t9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=t9(o,["color"]),{color:l=s,src:u="",size:f=32,transform:d=""}=a;let{width:h=f,height:p=f}=t;const[[v,g]]=i,[y,m]=n.getSize();h=typeof h=="string"?zl(h)*y:h,p=typeof p=="string"?zl(p)*m:p;const b=v-Number(h)/2,x=g-Number(p)/2;return st(r.createElement("image",{})).call(at,c).style("x",b).style("y",x).style("img",u).style("stroke",l).style("transform",d).call(at,t).style("width",h).style("height",p).node()}};HS.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var e9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iJt(o,r));return i.forEach((o,s)=>{if(s===0){n.moveTo(o[0],o[1]);return}const c=a[s],l=t[s-1],u=a[s-1];u!==void 0&&Math.abs(c-u)<1e-10?vs(n,l,o,r,c):n.lineTo(o[0],o[1])}),n.closePath(),n}return W6(n,t)}const VS=(t,e)=>{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=e9(o,["color"]),{color:l=s,transform:u}=a,f=n9(i,n);return st(r.createElement("path",{})).call(at,c).style("d",f.toString()).style("stroke",l).style("fill",l).style("transform",u).call(at,t).node()}};VS.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Wy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=Wy(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=Wy(s,["color"]),{color:u=c,transform:f}=o,d=r9(a,r);return st(i.createElement("path",{})).call(at,l).style("d",d.toString()).style("fill",u||c).style("stroke",u||c).style("transform",f).call(at,n).node()}};XS.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var i9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,{color:l,fill:u=l,stroke:f=l}=o,d=i9(o,["color","fill","stroke"]),h=a9(i,n);return st(r.createElement("path",{})).call(at,d).style("d",h.toString()).style("stroke",f).style("fill",s||u).style("transform",c).call(at,t).node()}};US.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var o9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,l=4,{color:u,fill:f=u,stroke:d=u}=o,h=o9(o,["color","fill","stroke"]),p=s9(i,n,l);return st(r.createElement("path",{})).call(at,h).style("d",p.toString()).style("stroke",d).style("fill",s||f).style("transform",c).call(at,t).node()}};qS.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Hy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir[0]).y(r=>r[1])(t);const n=e.getCenter();return Cu()({startAngle:0,endAngle:Math.PI*2,outerRadius:Jt(t[0],n),innerRadius:Jt(t[1],n)})}function u9(t,e){if(!Ht(t))return e;const[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}const S0=(t,e)=>{const{arrow:n,arrowSize:r=4}=t,i=Hy(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,lineWidth:f}=l,d=Hy(l,["color","lineWidth"]),{color:h=u,size:p=f}=c,v=n?c9(o,r,Object.assign({fill:i.stroke||h,stroke:i.stroke||h},Q(i,"arrow"))):null,g=l9(s,a),y=u9(a,c.transform);return st(o.createElement("path",{})).call(at,d).style("d",g).style("stroke",h).style("lineWidth",p).style("transform",y).style("markerEnd",v).call(at,i).node()}};S0.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Vy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[0]).y(e=>e[1])(t)}function h9(t,e,n,r,i=0){const[[a,o],[s,c]]=e;if(qt(t)){const d=a+n,h=s+r,p=d+i;return[[d,o],[p,o],[p,c],[h,c]]}const l=o-n,u=c-r,f=l-i;return[[a,l],[a,f],[s,f],[s,u]]}const KS=(t,e)=>{const{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,s=Vy(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:c}=e;return(l,u,f)=>{const{color:d,connectLength1:h}=f,p=Vy(f,["color","connectLength1"]),{color:v,transform:g}=u,y=h9(c,l,r,i,a??h),m=Q(Object.assign(Object.assign({},s),f),"endMarker");return st(new Xe).call(at,p).style("path",d9(y)).style("stroke",v||d).style("transform",g).style("markerEnd",o?new Bt({className:"marker",style:Object.assign(Object.assign({},m),{symbol:f9})}):null).call(at,s).node()}};KS.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function ZS(t){return t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()})}function p9(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function v9(t,e,n,r){const i=e.length/2,a=e.slice(0,i),o=e.slice(i);let s=to(a,(h,p)=>Math.abs(h[1]-o[p][1]));s=Math.max(Math.min(s,i-2),1);const c=h=>[a[h][0],(a[h][1]+o[h][1])/2],l=c(s),u=c(s-1),f=c(s+1),d=Nn(se(f,u))/Math.PI*180;return{x:l[0],y:l[1],transform:`rotate(${d})`,textAlign:"center",textBaseline:"middle"}}function QS(t,e,n,r){const{bounds:i}=n,[[a,o],[s,c]]=i,l=s-a,u=c-o,f=d=>{const{x:h,y:p}=d,v=ag(n.x,l),g=ag(n.y,u);return Object.assign(Object.assign({},d),{x:(v||h)+a,y:(g||p)+o})};return f(t==="left"?{x:0,y:u/2,textAnchor:"start",textBaseline:"middle"}:t==="right"?{x:l,y:u/2,textAnchor:"end",textBaseline:"middle"}:t==="top"?{x:l/2,y:0,textAnchor:"center",textBaseline:"top"}:t==="bottom"?{x:l/2,y:u,textAnchor:"center",textBaseline:"bottom"}:t==="top-left"?{x:0,y:0,textAnchor:"start",textBaseline:"top"}:t==="top-right"?{x:l,y:0,textAnchor:"end",textBaseline:"top"}:t==="bottom-left"?{x:0,y:u,textAnchor:"start",textBaseline:"bottom"}:t==="bottom-right"?{x:l,y:u,textAnchor:"end",textBaseline:"bottom"}:{x:l/2,y:u/2,textAnchor:"center",textBaseline:"middle"})}function JS(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s}=n,c=r.getCenter(),l=Qi(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=l,p=t==="inside"?(d+h)/2:h,v=_0(p,o,s),g=(()=>{const[y,m]=e,b=u+(f-u)*.5,[x,w]=t==="inside"?bs(c,p,b):F2(y,m);return{x,y:w}})();return Object.assign(Object.assign({},g),{textAlign:t==="inside"?"center":"start",textBaseline:"middle",rotate:v})}function bs(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function _0(t,e,n){if(!e)return 0;const r=n?0:Math.sin(t)<0?90:-90;return t/Math.PI*180+r}function g9(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s,radius:c=.5,offset:l=0}=n,u=Qi(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g={textAlign:"center",textBaseline:"middle",rotate:_0(p,o,s)},{innerRadius:y,outerRadius:m}=u,x=y+(m-y)*c+l,[w,O]=bs(h,p,x);return Object.assign({x:w,y:O},g)}function Xy(t){return t===void 0?null:t}function t_(t,e,n,r){const{bounds:i}=n,[a]=i;return{x:Xy(a[0]),y:Xy(a[1])}}function yr(t,e,n,r){const{bounds:i}=n;return i.length===1?t_(t,e,n):(Nu(r)?JS:eo(r)?g9:QS)(t,e,n,r)}function y9(t,e,n,r,i){const[a,o]=bs(t,e,n),[s,c]=bs(t,e,r),l=Math.sin(e)>0?1:-1;return[[a,o],[s,c],[s+l*i,c]]}function e_(t,e,n){const r=Qi(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function n_(t,e,n){const r=Qi(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function M0(t,e,n,r){const{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:s=!0,connectorLength:c=o,connectorLength2:l=0,connectorDistance:u=0}=n,f=r.getCenter(),d=n_(e,n,r),h=Math.sin(d)>0?1:-1,p=_0(d,i,a),v={textAlign:h>0||Nu(r)?"start":"end",textBaseline:"middle",rotate:p},g=e_(e,n,r),y=g+(s?c:o),[[m,b],[x,w],[O,S]]=y9(f,d,g,y,s?l:0),_=s?+u*h:0,M=O+_,E=S,P={connector:s,connectorPoints:[[x-M,w-E],[O-M,S-E]]};return Object.assign(Object.assign({x0:m,y0:b,x:O+_,y:S},v),P)}function m9(t,e,n,r){const{bounds:i}=n;return i.length===1?t_(t,e,n):(Nu(r)?JS:eo(r)?M0:QS)(t,e,n,r)}var b9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,h=c[0]+(f+ +o)*d,{x:p}=s,v=h-p;return s.x+=v,s.connectorPoints[0][0]-=v,s}var w9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,[v,g]=bs(u,h,d);return s.x=v+(a+o)*p,s.y=g,s}const S9=Object.freeze(Object.defineProperty({__proto__:null,area:v9,bottom:yr,bottomLeft:yr,bottomRight:yr,inside:yr,left:yr,outside:m9,right:yr,spider:x9,surround:O9,top:yr,topLeft:yr,topRight:yr},Symbol.toStringTag,{value:"Module"}));var Uy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,theme:r}=e,{render:i}=t;return(a,o)=>{const{text:s,x:c,y:l,transform:u="",transformOrigin:f,className:d=""}=o,h=Uy(o,["text","x","y","transform","transformOrigin","className"]),p=M9(a,o,n,r,t),{rotate:v=0,transform:g=""}=p,y=Uy(p,["rotate","transform"]);return st(new LS).call(at,y).style("text",`${s}`).style("className",`${d} g2-label`).style("innerHTML",i?i(s,o.datum,o.index):void 0).style("labelTransform",`${g} rotate(${+v}) ${u}`.trim()).style("labelTransformOrigin",f).style("coordCenter",n.getCenter()).call(at,h).node()}};r_.props={defaultMarker:"point"};var qy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n,colorAttribute:r}=t,i=qy(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,stroke:f}=l,d=qy(l,["color","stroke"]),{d:h,color:p=u}=c,[v,g]=a.getSize();return st(o.createElement("path",{})).call(at,d).style("d",typeof h=="function"?h({width:v,height:g}):h).style(r,p).call(at,i).node()}};E0.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const i_=(t,e)=>E0(Object.assign({colorAttribute:"fill"},t),e);i_.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const a_=(t,e)=>E0(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);a_.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var E9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{transform:o}=i,{color:s}=a,c=E9(a,["color"]),{color:l=s}=i,[u,...f]=r,d=jn();return d.moveTo(...u),f.forEach(([h,p])=>{d.lineTo(h,p)}),d.closePath(),st(n.createElement("path",{})).call(at,c).style("d",d.toString()).style("stroke",l||s).style("fill",l||s).style("fillOpacity",.4).style("transform",o).call(at,t).node()}};o_.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function s_(t){var e,n,r,i=t||1;function a(s,c){++e>i&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}s_(3);function P9(t,e=(...r)=>`${r[0]}`,n=16){const r=s_(n);return(...i)=>{const a=e(...i);let o=r.get(a);return r.has(a)?r.get(a):(o=t(...i),r.set(a,o),o)}}function A9(t){return typeof t=="string"?t.split(" ").map(e=>{const[n,r]=e.split(":");return[+n,r]}):t}function Gl(t,e,n){const r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}const k9=P9((t,e,n)=>{const r=Gl(n,t*2,t*2),i=r.getContext("2d"),a=t,o=t;if(e===1)i.beginPath(),i.arc(a,o,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const s=i.createRadialGradient(a,o,t*e,a,o,t);s.addColorStop(0,"rgba(0,0,0,1)"),s.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=s,i.fillRect(0,0,2*t,2*t)}return r},t=>`${t}`);function T9(t,e){const r=Gl(e,256,1).getContext("2d"),i=r.createLinearGradient(0,0,256,1);return A9(t).forEach(([a,o])=>{i.addColorStop(a,o)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}function C9(t,e,n,r,i,a){const{blur:o}=i;let s=r.length;for(;s--;){const{x:c,y:l,value:u,radius:f}=r[s],d=Math.min(u,n),h=c-f,p=l-f,v=k9(f,1-o,a),g=(d-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(v,h,p)}return t}function L9(t,e,n,r,i){const{minOpacity:a,opacity:o,maxOpacity:s,useGradientOpacity:c}=i,l=0,u=0,f=e,d=n,h=t.getImageData(l,u,f,d),p=h.data,v=p.length;for(let g=3;g{const i=t[r];return e(i,r)||(n[r]=i),n},{})}const c_=(t,e)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:s}=t,c=R9(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:l,createCanvas:u,document:f}=e;return(d,h,p)=>{const{transform:v}=h,[g,y]=l.getSize(),m=d.map(S=>({x:S[0],y:S[1],value:S[2],radius:S[3]})),b=bn(d,S=>S[2]),x=Ct(d,S=>S[2]),O=g&&y?N9(g,y,b,x,m,I9({gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:s},S=>S===void 0),u):{canvas:null};return st(f.createElement("image",{})).call(at,p).style("x",0).style("y",0).style("width",g).style("height",y).style("src",O.canvas).style("transform",v).call(at,c).node()}};c_.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var j9=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{render:n}=t,r=j9(t,["render"]);return i=>{const[[a,o]]=i;return n(Object.assign(Object.assign({},r),{x:a,y:o}),e)}};l_.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ky=5e3;function Zy(t,e,n){return t+(e-t)*n}function D9(t,e,n,r){return e===0?[[t+1/2*n/Math.PI/2,r/2],[t+1/2*n/Math.PI,r],[t+n/4,r]]:e===1?[[t+1/2*n/Math.PI/2*(Math.PI-2),r],[t+1/2*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:e===2?[[t+1/2*n/Math.PI/2,-r/2],[t+1/2*n/Math.PI,-r],[t+n/4,-r]]:[[t+1/2*n/Math.PI/2*(Math.PI-2),-r],[t+1/2*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function $9(t,e,n,r,i,a,o){const s=Math.ceil(2*t/n*4)*4,c=[];let l=r;for(;l<-Math.PI*2;)l+=Math.PI*2;for(;l>0;)l-=Math.PI*2;l=l/Math.PI/2*n;const u=a-t+l-t*2;c.push(["M",u,e]);let f=0;for(let d=0;dQy[t]||Qy.circle,u_=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:s,outline:c={},wave:l={}}=i,u=Jy(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=Jy(c,["border","distance"]),{length:p=192,count:v=3}=l;return(g,y,m)=>{const{document:b}=e.canvas,{color:x,fillOpacity:w}=m,O=Object.assign(Object.assign({fill:x},m),u),S=b.createElement("g",{}),[_,M]=n.getCenter(),E=n.getSize(),P=Math.min(...E)/2,A=(Ve(a)?a:H9(a))(_,M,P,...E);if(Object.keys(s).length){const L=b.createElement("path",{style:Object.assign({path:A,fill:"#fff"},s)});S.appendChild(L)}if(o>0){const L=b.createElement("path",{style:{path:A}});S.appendChild(L),S.style.clipPath=L,B9(_,M,1-o,v,O,S,L.getBBox().y,P*2,p,!0,b)}const k=b.createElement("path",{style:{path:A,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),C=b.createElement("path",{style:Object.assign(Object.assign(Object.assign({path:A,stroke:x,strokeOpacity:w,lineWidth:f},O),h),{fill:"transparent"})});return S.appendChild(k),S.appendChild(C),S}};u_.props={};function tm(t,e){return t.getBandWidth(t.invert(e))}const em={rect:Ji,hollow:Yu,funnel:n0,pyramid:aO},f_=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,series:s,size:c}=n,l=e.x,u=e.series,[f]=r.getSize(),d=c?c.map(v=>+v/f):null,h=c?(v,g,y)=>{const m=v+g/2,b=d[y];return[m-b/2,m+b/2]}:(v,g,y)=>[v,v+g],p=Array.from(t,v=>{const g=tm(l,i[v]),y=u?tm(u,s==null?void 0:s[v]):1,m=g*y,b=(+(s==null?void 0:s[v])||0)*g,x=+i[v]+b,[w,O]=h(x,m,v),S=+a[v],_=+o[v];return[[w,S],[O,S],[O,_],[w,_]].map(A=>r.map(A))});return[t,p]};f_.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:em,channels:[...Ue({shapes:Object.keys(em)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...pe(),{type:js},{type:qi}],postInference:[...ge(),...io()],interaction:{shareTooltip:!0}};const nm={rect:Ji,hollow:Yu},d_=()=>(t,e,n,r)=>{const{x:i,x1:a,y:o,y1:s}=n,c=Array.from(t,l=>{const u=[+i[l],+o[l]],f=[+a[l],+o[l]],d=[+a[l],+s[l]],h=[+i[l],+s[l]];return[u,f,d,h].map(p=>r.map(p))});return[t,c]};d_.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:nm,channels:[...Ue({shapes:Object.keys(nm)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...pe(),{type:js}],postInference:[...ge(),...io()],interaction:{shareTooltip:!0}};const rm={line:oO,smooth:sO,hv:cO,vh:lO,hvh:uO,trail:fO},V9=(t,e,n,r)=>{var i,a;const{series:o,x:s,y:c}=n,{x:l,y:u}=e;if(s===void 0||c===void 0)throw new Error("Missing encode for x or y channel.");const f=o?Array.from(te(t,g=>o[g]).values()):[t],d=f.map(g=>g[0]).filter(g=>g!==void 0),h=(((i=l==null?void 0:l.getBandWidth)===null||i===void 0?void 0:i.call(l))||0)/2,p=(((a=u==null?void 0:u.getBandWidth)===null||a===void 0?void 0:a.call(u))||0)/2,v=Array.from(f,g=>g.map(y=>r.map([+s[y]+h,+c[y]+p])));return[d,v,f]},X9=(t,e,n,r)=>{const i=Object.entries(n).filter(([o])=>o.startsWith("position")).map(([,o])=>o);if(i.length===0)throw new Error("Missing encode for position channel.");const a=Array.from(t,o=>{const s=i.map(u=>+u[o]),c=r.map(s),l=[];for(let u=0;u(t,e,n,r)=>(Ru(r)?X9:V9)(t,e,n,r);h_.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:rm,channels:[...Ue({shapes:Object.keys(rm)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...pe(),{type:Nx},{type:wp}],postInference:[...ge(),...io(),...Jj()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};const im={hollow:RO,hollowDiamond:LO,hollowHexagon:NO,hollowSquare:IO,hollowTriangleDown:DO,hollowTriangle:jO,hollowBowtie:CO,point:HO,plus:WO,diamond:FO,square:VO,triangle:UO,hexagon:zO,cross:BO,bowtie:$O,hyphen:GO,line:YO,tick:XO,triangleDown:qO},p_=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s,y1:c,size:l,dx:u,dy:f}=r,[d,h]=i.getSize(),p=ta(n,r,t),v=y=>{const m=+((u==null?void 0:u[y])||0),b=+((f==null?void 0:f[y])||0),x=s?(+a[y]+ +s[y])/2:+a[y],w=c?(+o[y]+ +c[y])/2:+o[y],O=x+m,S=w+b;return[O,S]},g=l?Array.from(e,y=>{const[m,b]=v(y),x=+l[y],w=x/d,O=x/h,S=[m-w,b-O],_=[m+w,b+O];return[i.map(p(S,y)),i.map(p(_,y))]}):Array.from(e,y=>[i.map(p(v(y),y))]);return[e,g]};p_.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:im,channels:[...Ue({shapes:Object.keys(im)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...pe(),{type:qi},{type:Ou}],postInference:[...ge(),{type:_x},...ui()]};const am={text:NS,badge:RS},v_=t=>{const{cartesian:e=!1}=t;return e?w0:(n,r,i,a)=>{const{x:o,y:s}=i,c=ta(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};v_.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:am,channels:[...Ue({shapes:Object.keys(am)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...pe(),{type:Mu},{type:_u}],postInference:[...ge(),...ui()]};const om={cell:Ji,hollow:Yu},g_=()=>(t,e,n,r)=>{const{x:i,y:a}=n,o=e.x,s=e.y,c=Array.from(t,l=>{const u=o.getBandWidth(o.invert(+i[l])),f=s.getBandWidth(s.invert(+a[l])),d=+i[l],h=+a[l],p=[d,h],v=[d+u,h],g=[d+u,h+f],y=[d,h+f];return[p,v,g,y].map(m=>r.map(m))});return[t,c]};g_.props={defaultShape:"cell",defaultLabelShape:"label",shape:om,composite:!1,channels:[...Ue({shapes:Object.keys(om)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...pe(),{type:qi},{type:Ou},{type:Op}],postInference:[...ge(),...ui()]};const sm={area:IS,smooth:jS,hvh:DS,vh:$S,hv:BS},y_=()=>(t,e,n,r)=>{var i,a;const{x:o,y:s,y1:c,series:l}=n,{x:u,y:f}=e,d=l?Array.from(te(t,y=>l[y]).values()):[t],h=d.map(y=>y[0]).filter(y=>y!==void 0),p=(((i=u==null?void 0:u.getBandWidth)===null||i===void 0?void 0:i.call(u))||0)/2,v=(((a=f==null?void 0:f.getBandWidth)===null||a===void 0?void 0:a.call(f))||0)/2,g=Array.from(d,y=>{const m=y.length,b=new Array(m*2);for(let x=0;x(e,n,r,i)=>{const{x:a,y:o,x1:s=a,y1:c=o}=r,l=ta(n,r,t),u=e.map(f=>[i.map(l([+a[f],+o[f]],f)),i.map(l([+s[f],+c[f]],f))]);return[e,u]};P0.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:cm,channels:[...Ue({shapes:Object.keys(cm)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...pe(),{type:Ax},{type:kx}],postInference:[...ge(),...ui()]};const lm={image:HS},m_=t=>{const{cartesian:e}=t;return e?w0:(n,r,i,a)=>{const{x:o,y:s}=i,c=ta(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};m_.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:lm,channels:[...Ue({shapes:Object.keys(lm)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...pe(),{type:Mu},{type:_u}],postInference:[...ge(),...ui()]};const um={polygon:VS,ribbon:XS},b_=()=>(t,e,n,r)=>{const i=Object.entries(n).filter(([s])=>s.startsWith("x")).map(([,s])=>s),a=Object.entries(n).filter(([s])=>s.startsWith("y")).map(([,s])=>s),o=t.map(s=>{const c=[];for(let l=0;l(t,e,n,r)=>{const{x:i,y:a,y1:o,y2:s,y3:c,y4:l,series:u}=n,f=e.x,d=e.series,h=Array.from(t,p=>{const v=f.getBandWidth(f.invert(+i[p])),g=d?d.getBandWidth(d.invert(+(u==null?void 0:u[p]))):1,y=v*g,m=(+(u==null?void 0:u[p])||0)*v,b=+i[p]+m+y/2,[x,w,O,S,_]=[+a[p],+o[p],+s[p],+c[p],+l[p]];return[[b-y/2,_],[b+y/2,_],[b,_],[b,S],[b-y/2,S],[b+y/2,S],[b+y/2,w],[b-y/2,w],[b-y/2,O],[b+y/2,O],[b,w],[b,x],[b-y/2,x],[b+y/2,x]].map(E=>r.map(E))});return[t,h]};x_.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:fm,channels:[...Ue({shapes:Object.keys(fm)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...pe(),{type:qi}],postInference:[...ge(),...io()],interaction:{shareTooltip:!0}};const dm={vector:u0},w_=()=>(t,e,n,r)=>{const{x:i,y:a,size:o,rotate:s}=n,[c,l]=r.getSize(),u=t.map(f=>{const d=+s[f]/180*Math.PI,h=+o[f],p=h/c,v=h/l,g=p*Math.cos(d),y=-v*Math.sin(d);return[r.map([+i[f]-g/2,+a[f]-y/2]),r.map([+i[f]+g/2,+a[f]+y/2])]});return[t,u]};w_.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:dm,channels:[...Ue({shapes:Object.keys(dm)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...pe()],postInference:[...ge(),...ui()]};const hm={line:S0},O_=t=>(e,n,r,i)=>{const{y:a}=r,o=ta(n,r,X({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[0,a[c]],u=[1,a[c]];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};O_.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:hm,channels:[...ao({shapes:Object.keys(hm)}),{name:"y",required:!0}],preInference:[...pe(),{type:Ex}],postInference:[...ge()]};const pm={line:S0},S_=t=>(e,n,r,i)=>{const{x:a}=r,o=ta(n,r,X({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[a[c],1],u=[a[c],0];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};S_.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:pm,channels:[...ao({shapes:Object.keys(pm)}),{name:"x",required:!0}],preInference:[...pe(),{type:Px}],postInference:[...ge()]};const vm={connector:KS},__=(...t)=>P0(...t);__.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:vm,channels:[...ao({shapes:Object.keys(vm)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...pe()],postInference:[...ge()]};function gm(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[`${t}1`]:a}=n;return o=>{var s;const c=((s=r.getBandWidth)===null||s===void 0?void 0:s.call(r,r.invert(+a[o])))||0;return[i[o],a[o]+c]}}function A0(t={}){const{extendX:e=!1,extendY:n=!1}=t;return(r,i,a,o)=>{const s=gm("x",e,a,i.x),c=gm("y",n,a,i.y),l=Array.from(r,u=>{const[f,d]=s(u),[h,p]=c(u);return[[f,h],[d,h],[d,p],[f,p]].map(b=>o.map(b))});return[r,l]}}const ym={range:Ji},M_=()=>A0();M_.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:ym,channels:[...ao({shapes:Object.keys(ym)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...pe()],postInference:[...ge()]};const mm={range:Ji},E_=()=>A0({extendY:!0});E_.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:mm,channels:[...ao({shapes:Object.keys(mm)}),{name:"x",required:!0}],preInference:[...pe(),{type:Tx}],postInference:[...ge()]};const bm={range:Ji},P_=()=>A0({extendX:!0});P_.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:bm,channels:[...ao({shapes:Object.keys(bm)}),{name:"y",required:!0}],preInference:[...pe(),{type:Cx}],postInference:[...ge()]};function U9(t){return t.target.depth}function q9(t){return t.depth}function K9(t,e){return e-1-t.height}function Yl(t,e){return t.sourceLinks.length?t.depth:e-1}function Z9(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?bn(t.sourceLinks,U9)-1:0}function Nc(t){return function(){return t}}function xm(t,e){return Wl(t.source,e.source)||t.index-e.index}function wm(t,e){return Wl(t.target,e.target)||t.index-e.index}function Wl(t,e){return t.y0-e.y0}function td(t){return t.value}function Q9(t){return t.index}function J9(t){return t.nodes}function tD(t){return t.links}function Om(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Sm({nodes:t}){for(const e of t){let n=e.y0,r=n;for(const i of e.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of e.targetLinks)i.y1=r+i.width/2,r+=i.width}}function eD(){let t=0,e=0,n=1,r=1,i=24,a=8,o,s=Q9,c=Yl,l,u,f,d=J9,h=tD,p=6;function v(L){const I={nodes:d(L),links:h(L)};return g(I),y(I),m(I),b(I),O(I),Sm(I),I}v.update=function(L){return Sm(L),L},v.nodeId=function(L){return arguments.length?(s=typeof L=="function"?L:Nc(L),v):s},v.nodeAlign=function(L){return arguments.length?(c=typeof L=="function"?L:Nc(L),v):c},v.nodeDepth=function(L){return arguments.length?(l=L,v):l},v.nodeSort=function(L){return arguments.length?(u=L,v):u},v.nodeWidth=function(L){return arguments.length?(i=+L,v):i},v.nodePadding=function(L){return arguments.length?(a=o=+L,v):a},v.nodes=function(L){return arguments.length?(d=typeof L=="function"?L:Nc(L),v):d},v.links=function(L){return arguments.length?(h=typeof L=="function"?L:Nc(L),v):h},v.linkSort=function(L){return arguments.length?(f=L,v):f},v.size=function(L){return arguments.length?(t=e=0,n=+L[0],r=+L[1],v):[n-t,r-e]},v.extent=function(L){return arguments.length?(t=+L[0][0],n=+L[1][0],e=+L[0][1],r=+L[1][1],v):[[t,e],[n,r]]},v.iterations=function(L){return arguments.length?(p=+L,v):p};function g({nodes:L,links:I}){L.forEach((j,D)=>{j.index=D,j.sourceLinks=[],j.targetLinks=[]});const R=new Map(L.map(j=>[s(j),j]));if(I.forEach((j,D)=>{j.index=D;let{source:$,target:B}=j;typeof $!="object"&&($=j.source=Om(R,$)),typeof B!="object"&&(B=j.target=Om(R,B)),$.sourceLinks.push(j),B.targetLinks.push(j)}),f!=null)for(const{sourceLinks:j,targetLinks:D}of L)j.sort(f),D.sort(f)}function y({nodes:L}){for(const I of L)I.value=I.fixedValue===void 0?Math.max(Cn(I.sourceLinks,td),Cn(I.targetLinks,td)):I.fixedValue}function m({nodes:L}){const I=L.length;let R=new Set(L),j=new Set,D=0;for(;R.size;){if(R.forEach($=>{$.depth=D;for(const{target:B}of $.sourceLinks)j.add(B)}),++D>I)throw new Error("circular link");R=j,j=new Set}if(l){const $=Math.max(Ct(L,F=>F.depth)+1,0);let B;for(let F=0;F{$.height=D;for(const{source:B}of $.targetLinks)j.add(B)}),++D>I)throw new Error("circular link");R=j,j=new Set}}function x({nodes:L}){const I=Math.max(Ct(L,D=>D.depth)+1,0),R=(n-t-i)/(I-1),j=new Array(I).fill(0).map(()=>[]);for(const D of L){const $=Math.max(0,Math.min(I-1,Math.floor(c.call(null,D,I))));D.layer=$,D.x0=t+$*R,D.x1=D.x0+i,j[$]?j[$].push(D):j[$]=[D]}if(u)for(const D of j)D.sort(u);return j}function w(L){const I=bn(L,R=>(r-e-(R.length-1)*o)/Cn(R,td));for(const R of L){let j=e;for(const D of R){D.y0=j,D.y1=j+D.value*I,j=D.y1+o;for(const $ of D.sourceLinks)$.width=$.value*I}j=(r-j+o)/(R.length+1);for(let D=0;DR.length)-1)),w(I);for(let R=0;R0))continue;const U=(F/Y-B.y0)*I;B.y0+=U,B.y1+=U,T(B)}u===void 0&&$.sort(Wl),$.length&&M($,R)}}function _(L,I,R){for(let j=L.length,D=j-2;D>=0;--D){const $=L[D];for(const B of $){let F=0,Y=0;for(const{target:K,value:V}of B.sourceLinks){const W=V*(K.layer-B.layer);F+=C(B,K)*W,Y+=W}if(!(Y>0))continue;const U=(F/Y-B.y0)*I;B.y0+=U,B.y1+=U,T(B)}u===void 0&&$.sort(Wl),$.length&&M($,R)}}function M(L,I){const R=L.length>>1,j=L[R];P(L,j.y0-o,R-1,I),E(L,j.y1+o,R+1,I),P(L,r,L.length-1,I),E(L,e,0,I)}function E(L,I,R,j){for(;R1e-6&&(D.y0+=$,D.y1+=$),I=D.y1+o}}function P(L,I,R,j){for(;R>=0;--R){const D=L[R],$=(D.y1-I)*j;$>1e-6&&(D.y0-=$,D.y1-=$),I=D.y0-o}}function T({sourceLinks:L,targetLinks:I}){if(f===void 0){for(const{source:{sourceLinks:R}}of I)R.sort(wm);for(const{target:{targetLinks:R}}of L)R.sort(xm)}}function A(L){if(f===void 0)for(const{sourceLinks:I,targetLinks:R}of L)I.sort(wm),R.sort(xm)}function k(L,I){let R=L.y0-(L.sourceLinks.length-1)*o/2;for(const{target:j,width:D}of L.sourceLinks){if(j===I)break;R+=D+o}for(const{source:j,width:D}of I.targetLinks){if(j===L)break;R-=D}return R}function C(L,I){let R=I.y0-(I.targetLinks.length-1)*o/2;for(const{source:j,width:D}of I.targetLinks){if(j===L)break;R+=D+o}for(const{target:j,width:D}of L.sourceLinks){if(j===I)break;R-=D}return R}return v}const nD={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},rD={left:q9,right:K9,center:Z9,justify:Yl};function iD(t){const e=typeof t;return e==="string"?rD[t]||Yl:e==="function"?t:Yl}const A_=t=>e=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:s,nodes:c,links:l,linkSort:u,iterations:f}=Object.assign({},nD,t),d=eD().nodeSort(r).linkSort(u).links(l).nodes(c).nodeWidth(a).nodePadding(o).nodeDepth(s).nodeAlign(iD(i)).iterations(f).extent([[0,0],[1,1]]);typeof n=="function"&&d.nodeId(n);const h=d(e),{nodes:p,links:v}=h,g=p.map(m=>{const{x0:b,x1:x,y0:w,y1:O}=m;return Object.assign(Object.assign({},m),{x:[b,x,x,b],y:[w,w,O,O]})}),y=v.map(m=>{const{source:b,target:x}=m,w=b.x1,O=x.x0,S=m.width/2;return Object.assign(Object.assign({},m),{x:[w,w,O,O],y:[m.y0+S,m.y0-S,m.y1+S,m.y1-S]})});return{nodes:g,links:y}};A_.props={};function fr(t,e,n={},r=!1){if(Lr(t)||Array.isArray(t)&&r)return t;const i=Q(t,e);return X(n,i)}function Hl(t,e={}){return Lr(t)||Array.isArray(t)||!k_(t)?t:X(e,t)}function k_(t){if(Object.keys(t).length===0)return!0;const{title:e,items:n}=t;return e!==void 0||n!==void 0}function dr(t,e){return typeof t=="object"?Q(t,e):t}var aD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,nodeWidth:.02,nodePadding:.02},sD={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},cD={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},lD={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},T_=t=>{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{links:u,nodes:f}=O0(e,n),d=Q(n,"node"),h=Q(n,"link"),{key:p=M=>M.key,color:v=p}=d,{links:g,nodes:y}=A_(Object.assign(Object.assign(Object.assign({},oD),{nodeId:cr(p)}),a))({links:u,nodes:f}),m=Q(i,"label"),{text:b=p,spacing:x=5}=m,w=aD(m,["text","spacing"]),O=cr(p),S=fr(l,"node",{title:O,items:[{field:"value"}]},!0),_=fr(l,"link",{title:"",items:[M=>({name:"source",value:O(M.source)}),M=>({name:"target",value:O(M.target)})]});return[X({},sD,{data:y,encode:Object.assign(Object.assign({},d),{color:v}),scale:r,style:Q(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},lD),{text:b,dx:M=>M.x[0]<.5?x:-x}),w),...o],tooltip:S,animate:dr(c,"node"),axis:!1}),X({},cD,{data:g,encode:h,labels:s,style:Object.assign({fill:h.color?void 0:"#aaa",strokeWidth:0},Q(i,"link")),tooltip:_,animate:dr(c,"link")})]};T_.props={};function uD(t,e){return e.value-t.value}function fD(t,e){return e.frequency-t.frequency}function dD(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function hD(t,e){return`${t.name}`.localeCompare(`${e.name}`)}const pD=Object.freeze(Object.defineProperty({__proto__:null,frequency:fD,id:dD,name:hD,weight:uD},Symbol.toStringTag,{value:"Module"})),vD={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null};function gD(t){const{y:e,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:s,sourceWeight:c,targetWeight:l,sortBy:u}=Object.assign(Object.assign({},vD),t);function f(g){const y=g.nodes.map(b=>Object.assign({},b)),m=g.edges.map(b=>Object.assign({},b));return d(y,m),h(y),p(y,m),v(y,m),{nodes:y,edges:m}}function d(g,y){y.forEach(x=>{x.source=o(x),x.target=s(x),x.sourceWeight=c(x),x.targetWeight=l(x)});const m=te(y,x=>x.source),b=te(y,x=>x.target);return g.forEach(x=>{x.id=a(x);const w=m.has(x.id)?m.get(x.id):[],O=b.has(x.id)?b.get(x.id):[];x.frequency=w.length+O.length,x.value=Cn(w,S=>S.sourceWeight)+Cn(O,S=>S.targetWeight)}),{nodes:g,edges:y}}function h(g,y){const m=typeof u=="function"?u:pD[u];m&&g.sort(m)}function p(g,y){const m=g.length;if(!m)throw La("Invalid nodes: it's empty!");if(!r){const w=1/m;return g.forEach((O,S)=>{O.x=(S+.5)*w,O.y=e}),{nodes:g,edges:y}}const b=i/(2*m),x=g.reduce((w,O)=>w+=O.value,0);return g.reduce((w,O)=>{O.weight=O.value/x,O.width=O.weight*(1-i),O.height=n;const S=b+w,_=S+O.width,M=e-n/2,E=M+n;return O.x=[S,_,_,S],O.y=[M,M,E,E],w+O.width+2*b},0),{nodes:g,edges:y}}function v(g,y){const m=new Map(g.map(w=>[w.id,w]));if(!r)return y.forEach(w=>{const O=o(w),S=s(w),_=m.get(O),M=m.get(S);_&&M&&(w.x=[_.x,M.x],w.y=[_.y,M.y])}),{nodes:g,edges:y};y.forEach(w=>{w.x=[0,0,0,0],w.y=[e,e,e,e]});const b=te(y,w=>w.source),x=te(y,w=>w.target);g.forEach(w=>{const{edges:O,width:S,x:_,y:M,value:E,id:P}=w,T=b.get(P)||[],A=x.get(P)||[];let k=0;T.map(C=>{const L=C.sourceWeight/E*S;C.x[0]=_[0]+k,C.x[1]=_[0]+k+L,k+=L}),A.forEach(C=>{const L=C.targetWeight/E*S;C.x[3]=_[0]+k,C.x[2]=_[0]+k+L,k+=L})})}return f}const k0=t=>e=>gD(t)(e);k0.props={};var _m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},yD={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},mD={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1,strokeWidth:1}},bD={position:"outside",fontSize:10},C_=(t,e)=>{const{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:s=[],linkLabels:c=[],animate:l={},tooltip:u={}}=t,{nodes:f,links:d}=O0(n,r),h=Q(r,"node"),p=Q(r,"link"),{key:v=C=>C.key,color:g=v}=h,{linkEncodeColor:y=C=>C.source}=p,{nodeWidthRatio:m=ed.thickness,nodePaddingRatio:b=ed.marginRatio}=o,x=_m(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:w,edges:O}=k0(Object.assign(Object.assign(Object.assign(Object.assign({},ed),{id:cr(v),thickness:m,marginRatio:b}),x),{weight:!0}))({nodes:f,edges:d}),S=Q(a,"label"),{text:_=v}=S,M=_m(S,["text"]),E=fr(u,"node",{title:"",items:[C=>({name:C.key,value:C.value})]},!0),P=fr(u,"link",{title:"",items:[C=>({name:`${C.source} -> ${C.target}`,value:C.value})]}),{height:T,width:A}=e,k=Math.min(T,A);return[X({},mD,{data:O,encode:Object.assign(Object.assign({},p),{color:y}),labels:c,style:Object.assign({fill:y?void 0:"#aaa"},Q(a,"link")),tooltip:P,animate:dr(l,"link")}),X({},yD,{data:w,encode:Object.assign(Object.assign({},h),{color:g}),scale:i,style:Q(a,"node"),coordinate:{type:"polar",outerRadius:(k-20)/k,startAngle:-Math.PI*2,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},bD),{text:_}),M),...s],tooltip:E,animate:dr(l,"node"),axis:!1})]};C_.props={};const Mm={path:i_,hollow:a_},L_=t=>(e,n,r,i)=>[e,e.map(()=>[[0,0]])];L_.props={defaultShape:"path",defaultLabelShape:"label",shape:Mm,composite:!1,channels:[...Ue({shapes:Object.keys(Mm)}),{name:"d",scale:"identity"}],preInference:[...pe()],postInference:[...ge()]};function xD(t,e){return t.parent===e.parent?1:2}function wD(t){return t.reduce(OD,0)/t.length}function OD(t,e){return t+e.x}function SD(t){return 1+t.reduce(_D,0)}function _D(t,e){return Math.max(t,e.y)}function MD(t){for(var e;e=t.children;)t=e[0];return t}function ED(t){for(var e;e=t.children;)t=e[e.length-1];return t}function PD(){var t=xD,e=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(d){var h=d.children;h?(d.x=wD(h),d.y=SD(h)):(d.x=o?s+=t(d,o):0,d.y=0,o=d)});var c=MD(a),l=ED(a),u=c.x-t(c,l)/2,f=l.x+t(l,c)/2;return a.eachAfter(r?function(d){d.x=(d.x-a.x)*e,d.y=(a.y-d.y)*n}:function(d){d.x=(d.x-u)/(f-u)*e,d.y=(1-(a.y?d.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(t=a,i):t},i.size=function(a){return arguments.length?(r=!1,e=+a[0],n=+a[1],i):r?null:[e,n]},i.nodeSize=function(a){return arguments.length?(r=!0,e=+a[0],n=+a[1],i):r?[e,n]:null},i}function AD(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function kD(){return this.eachAfter(AD)}function TD(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function CD(t,e){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(t.call(e,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function LD(t,e){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;e.value=n})}function ID(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function jD(t){for(var e=this,n=DD(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function DD(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function $D(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function BD(){return Array.from(this)}function FD(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function zD(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*GD(){var t=this,e,n=[t],r,i,a;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new Ya(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(N_)}function YD(){return Qs(this).eachBefore(VD)}function WD(t){return t.children}function HD(t){return Array.isArray(t)?t[1]:null}function VD(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function N_(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Ya(t){this.data=t,this.depth=this.height=0,this.parent=null}Ya.prototype=Qs.prototype={constructor:Ya,count:kD,each:TD,eachAfter:LD,eachBefore:CD,find:ND,sum:RD,sort:ID,path:jD,ancestors:$D,descendants:BD,leaves:FD,links:zD,copy:YD,[Symbol.iterator]:GD};function rl(t){return t==null?null:R_(t)}function R_(t){if(typeof t!="function")throw new Error;return t}function Mi(){return 0}function ua(t){return function(){return t}}const XD=1664525,UD=1013904223,Em=4294967296;function qD(){let t=1;return()=>(t=(XD*t+UD)%Em)/Em}function KD(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ZD(t,e){let n=t.length,r,i;for(;n;)i=e()*n--|0,r=t[n],t[n]=t[i],t[i]=r;return t}function QD(t,e){for(var n=0,r=(t=ZD(Array.from(t),e)).length,i=[],a,o;n0&&n*n>r*r+i*i}function nd(t,e){for(var n=0;n1e-6?(P+Math.sqrt(P*P-4*E*T))/(2*E):T/P);return{x:r+O+S*A,y:i+_+M*A,r:A}}function Pm(t,e,n){var r=t.x-e.x,i,a,o=t.y-e.y,s,c,l=r*r+o*o;l?(a=e.r+n.r,a*=a,c=t.r+n.r,c*=c,a>c?(i=(l+c-a)/(2*l),s=Math.sqrt(Math.max(0,c/l-i*i)),n.x=t.x-i*r-s*o,n.y=t.y-i*o+s*r):(i=(l+a-c)/(2*l),s=Math.sqrt(Math.max(0,a/l-i*i)),n.x=e.x+i*r-s*o,n.y=e.y+i*o+s*r)):(n.x=e.x+n.r,n.y=e.y)}function Am(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function km(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Ic(t){this._=t,this.next=null,this.previous=null}function n7(t,e){if(!(a=(t=KD(t)).length))return 0;var n,r,i,a,o,s,c,l,u,f,d;if(n=t[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;Pm(r,n,i=t[2]),n=new Ic(n),r=new Ic(r),i=new Ic(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;cl7(n(x,w,i))),m=y.map(Nm),b=new Set(y).add("");for(const x of m)b.has(x)||(b.add(x),y.push(x),m.push(Nm(x)),a.push(id));o=(x,w)=>y[w],s=(x,w)=>m[w]}for(u=0,c=a.length;u=0&&(h=a[y],h.data===id);--y)h.data=null}if(f.parent=o7,f.eachBefore(function(y){y.depth=y.parent.depth+1,--c}).eachBefore(N_),f.parent=null,c>0)throw new Error("cycle");return f}return r.id=function(i){return arguments.length?(t=rl(i),r):t},r.parentId=function(i){return arguments.length?(e=rl(i),r):e},r.path=function(i){return arguments.length?(n=rl(i),r):n},r}function l7(t){t=`${t}`;let e=t.length;return bh(t,e-1)&&!bh(t,e-2)&&(t=t.slice(0,-1)),t[0]==="/"?t:`/${t}`}function Nm(t){let e=t.length;if(e<2)return"";for(;--e>1&&!bh(t,e););return t.slice(0,e)}function bh(t,e){if(t[e]==="/"){let n=0;for(;e>0&&t[--e]==="\\";)++n;if(!(n&1))return!0}return!1}function u7(t,e){return t.parent===e.parent?1:2}function ad(t){var e=t.children;return e?e[0]:t.t}function od(t){var e=t.children;return e?e[e.length-1]:t.t}function f7(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function d7(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function h7(t,e,n){return t.a.parent===e.parent?t.a:n}function il(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}il.prototype=Object.create(Ya.prototype);function p7(t){for(var e=new il(t,0),n,r=[e],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new il(a[o],o)),i.parent=n;return(e.parent=new il(null,0)).children=[e],e}function v7(){var t=u7,e=1,n=1,r=null;function i(l){var u=p7(l);if(u.eachAfter(a),u.parent.m=-u.z,u.eachBefore(o),r)l.eachBefore(c);else{var f=l,d=l,h=l;l.eachBefore(function(m){m.xd.x&&(d=m),m.depth>h.depth&&(h=m)});var p=f===d?1:t(f,d)/2,v=p-f.x,g=e/(d.x+p+v),y=n/(h.depth||1);l.eachBefore(function(m){m.x=(m.x+v)*g,m.y=m.depth*y})}return l}function a(l){var u=l.children,f=l.parent.children,d=l.i?f[l.i-1]:null;if(u){d7(l);var h=(u[0].z+u[u.length-1].z)/2;d?(l.z=d.z+t(l._,d._),l.m=l.z-h):l.z=h}else d&&(l.z=d.z+t(l._,d._));l.parent.A=s(l,d,l.parent.A||f[0])}function o(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,u,f){if(u){for(var d=l,h=l,p=u,v=d.parent.children[0],g=d.m,y=h.m,m=p.m,b=v.m,x;p=od(p),d=ad(d),p&&d;)v=ad(v),h=od(h),h.a=l,x=p.z+m-d.z-g+t(p._,d._),x>0&&(f7(h7(p,l,f),l,x),g+=x,y+=x),m+=p.m,g+=d.m,b+=v.m,y+=h.m;p&&!od(h)&&(h.t=p,h.m+=m-y),d&&!ad(v)&&(v.t=d,v.m+=g-b,f=l)}return f}function c(l){l.x*=e,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(t=l,i):t},i.size=function(l){return arguments.length?(r=!1,e=+l[0],n=+l[1],i):r?null:[e,n]},i.nodeSize=function(l){return arguments.length?(r=!0,e=+l[0],n=+l[1],i):r?[e,n]:null},i}function Qu(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(i-n)/t.value;++sm&&(m=l),O=g*g*w,b=Math.max(m/O,O/y),b>x){g-=l;break}x=b}o.push(c={value:g,dice:h1?r:1)},n}(D_);function g7(){var t=B_,e=!1,n=1,r=1,i=[0],a=Mi,o=Mi,s=Mi,c=Mi,l=Mi;function u(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],e&&d.eachBefore(a7),d}function f(d){var h=i[d.depth],p=d.x0+h,v=d.y0+h,g=d.x1-h,y=d.y1-h;g=d-1){var m=a[f];m.x0=p,m.y0=v,m.x1=g,m.y1=y;return}for(var b=l[f],x=h/2+b,w=f+1,O=d-1;w>>1;l[S]y-v){var E=h?(p*M+g*_)/h:g;u(f,w,_,p,v,E,y),u(w,d,M,E,v,g,y)}else{var P=h?(v*M+y*_)/h:y;u(f,w,_,p,v,g,P),u(w,d,M,p,P,g,y)}}}function m7(t,e,n,r,i){(t.depth&1?Qu:Zu)(t,e,n,r,i)}const b7=function t(e){function n(r,i,a,o,s){if((c=r._squarify)&&c.ratio===e)for(var c,l,u,f,d=-1,h,p=c.length,v=r.value;++d1?r:1)},n}(D_);function x7(t,e){return Array.isArray(t)?typeof e=="function"?mh().path(e)(t):mh()(t):Qs(t)}function F_(t,e=[t.data.name]){t.id=t.id||t.data.name,t.path=e,t.children&&t.children.forEach(n=>{n.id=`${t.id}/${n.data.name}`,n.path=[...e,n.data.name],F_(n,n.path)})}function z_(t){const e=je(t,["data","name"]);e.replaceAll&&(t.path=e.replaceAll(".","/").split("/")),t.children&&t.children.forEach(n=>{z_(n)})}function w7(t,e){const n={treemapBinary:y7,treemapDice:Zu,treemapSlice:Qu,treemapSliceDice:m7,treemapSquarify:B_,treemapResquarify:b7},r=t==="treemapSquarify"?n[t].ratio(e):n[t];if(!r)throw new TypeError("Invalid tile method!");return r}function G_(t,e,n){const{value:r}=n,i=w7(e.tile,e.ratio),a=x7(t,e.path);Le(t)?z_(a):F_(a),r?a.sum(c=>e.ignoreParentValue&&c.children?0:cr(r)(c)).sort(e.sort):a.count(),g7().tile(i).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(a);const o=a.descendants().map(c=>Object.assign(c,{id:c.id.replace(/^\//,""),x:[c.x0,c.x1],y:[c.y0,c.y1]}));return[o.filter(typeof e.layer=="function"?e.layer:c=>c.height===e.layer),o]}var O7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(n,r)=>r.value-n.value,layer:0}),_7=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:n=>n.path[1]},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),M7={fontSize:10,text:t=>Ns(t.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},E7={title:t=>{var e,n;return(n=(e=t.path)===null||e===void 0?void 0:e.join)===null||n===void 0?void 0:n.call(e,".")},items:[{field:"value"}]},P7={title:t=>Ns(t.path),items:[{field:"value"}]},Y_=(t,e)=>{const{width:n,height:r,options:i}=e,{data:a,encode:o={},scale:s,style:c={},layout:l={},labels:u=[],tooltip:f={}}=t,d=O7(t,["data","encode","scale","style","layout","labels","tooltip"]),h=je(i,["interaction","treemapDrillDown"]),p=X({},S7(n,r),l,{layer:h?m=>m.depth===1:l.layer}),[v,g]=G_(a,p,o),y=Q(c,"label");return X({},_7(n,r),Object.assign(Object.assign({data:v,scale:s,style:c,labels:[Object.assign(Object.assign({},M7),y),...u]},d),{encode:o,tooltip:Hl(f,E7),axis:!1}),h?{interaction:Object.assign(Object.assign({},d.interaction),{treemapDrillDown:h?Object.assign(Object.assign({},h),{originData:g,layout:p}):void 0}),encode:Object.assign({color:m=>Ns(m.path)},o),tooltip:Hl(f,P7)}:{})};Y_.props={};var A7=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({size:[t,e],padding:0,sort:(n,r)=>r.value-n.value}),T7=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:r=>r.height===0?"#ddd":"#fff",stroke:n.color?void 0:r=>r.height===0?"":"#000"}}),C7={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.r*2},L7={title:t=>t.data.name,items:[{field:"value"}]},N7=(t,e,n)=>{const{value:r}=n,i=Le(t)?mh().path(e.path)(t):Qs(t);return r?i.sum(a=>cr(r)(a)).sort(e.sort):i.count(),i7().size(e.size).padding(e.padding)(i),i.descendants()},W_=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=A7(t,["data","encode","scale","style","layout","labels","tooltip"]),d=T7(n,r,a),h=N7(i,X({},k7(n,r),c),X({},d.encode,a)),p=Q(s,"label");return X({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},C7),p),...l]},f),{tooltip:Hl(u,L7),axis:!1}))};W_.props={};var Rm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[n])}function I7(t,e){return Ct(t,n=>e[n])}function H_(t,e){const n=T0(t,e)*2.5-C0(t,e)*1.5;return bn(t,r=>e[r]>=n?e[r]:NaN)}function T0(t,e){return xu(t,.25,n=>e[n])}function j7(t,e){return xu(t,.5,n=>e[n])}function C0(t,e){return xu(t,.75,n=>e[n])}function V_(t,e){const n=C0(t,e)*2.5-T0(t,e)*1.5;return Ct(t,r=>e[r]<=n?e[r]:NaN)}function D7(){return(t,e)=>{const{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i;return[Array.from(te(t,l=>o[+l]).values()).flatMap(l=>{const u=H_(l,a),f=V_(l,a);return l.filter(d=>a[d]f)}),e]}}const X_=t=>{const{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,s=Rm(t,["data","encode","style","tooltip","transform","animate"]),{point:c=!0}=r,l=Rm(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:T0,y2:j7,y3:C0},h=fr(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=fr(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!c)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:R7},d),{y4:I7})],encode:Object.assign(Object.assign({},n),f),style:l,tooltip:h},s);const v=Q(l,"box"),g=Q(l,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:H_},d),{y4:V_})],encode:Object.assign(Object.assign({},n),f),style:v,tooltip:h,animate:dr(o,"box")},s),{type:"point",data:e,transform:[{type:D7}],encode:n,style:Object.assign({},g),tooltip:p,animate:dr(o,"point")}]};X_.props={};const $7={shape:l_},U_=t=>{const{cartesian:e}=t;return e?w0:(n,r,i,a)=>{const{x:o,y:s}=i,c=ta(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};U_.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:$7,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...pe(),{type:Mu},{type:_u},{type:Lx}]};function B7(t,e){var n,r=1;t==null&&(t=0),e==null&&(e=0);function i(){var a,o=n.length,s,c=0,l=0;for(a=0;a=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d,i=a,!(a=a[y=g<<1|v]))return i[y]=o,t;if(h=+t._x.call(null,a.data),p=+t._y.call(null,a.data),e===h&&n===p)return o.next=a,i?i[y]=o:t._root=o,t;do i=i?i[y]=new Array(4):t._root=new Array(4),(v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d;while((y=g<<1|v)===(m=(p>=d)<<1|h>=f));return i[m]=a,i[y]=o,t}function z7(t){var e,n,r=t.length,i,a,o=new Array(r),s=new Array(r),c=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;nu&&(u=i),af&&(f=a));if(c>u||l>f)return this;for(this.cover(c,l).cover(u,f),n=0;nt||t>=i||r>e||e>=a;)switch(l=(eu||(s=p.y0)>f||(c=p.x1)=y)<<1|t>=g)&&(p=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=p)}else{var m=t-+this._x.call(null,h.data),b=e-+this._y.call(null,h.data),x=m*m+b*b;if(x=(d=(o+c)/2))?o=d:c=d,(v=f>=(h=(s+l)/2))?s=h:l=h,e=n,!(n=n[g=v<<1|p]))return this;if(!n.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(r=e,y=g)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):e?(a?e[g]=a:delete e[g],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=a,this)}function X7(t){for(var e=0,n=t.length;e[e(w,O,o),w])),x;for(g=0,s=new Array(y);g{}};function Z_(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}al.prototype=Z_.prototype={constructor:al,on:function(t,e){var n=this._,r=a$(t+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a0)for(var n=new Array(i),r=0,i,a;r=0&&t._call.call(void 0,e),t=t._next;--Wa}function $m(){Wi=(Xl=xs.now())+Ju,Wa=Lo=0;try{c$()}finally{Wa=0,u$(),Wi=0}}function l$(){var t=xs.now(),e=t-Xl;e>Q_&&(Ju-=e,Xl=t)}function u$(){for(var t,e=Vl,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vl=n);No=t,wh(r)}function wh(t){if(!Wa){Lo&&(Lo=clearTimeout(Lo));var e=t-Wi;e>24?(t<1/0&&(Lo=setTimeout($m,t-xs.now()-Ju)),So&&(So=clearInterval(So))):(So||(Xl=xs.now(),So=setInterval(l$,Q_)),Wa=1,J_($m))}}const f$=1664525,d$=1013904223,Bm=4294967296;function h$(){let t=1;return()=>(t=(f$*t+d$)%Bm)/Bm}function p$(t){return t.x}function v$(t){return t.y}var g$=10,y$=Math.PI*(3-Math.sqrt(5));function m$(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,c=eM(f),l=Z_("tick","end"),u=h$();t==null&&(t=[]);function f(){d(),l.call("tick",e),n1?(g==null?s.delete(v):s.set(v,p(g)),e):s.get(v)},find:function(v,g,y){var m=0,b=t.length,x,w,O,S,_;for(y==null?y=1/0:y*=y,m=0;m1?(l.on(v,g),e):l.on(v)}}}function b$(){var t,e,n,r,i=mn(-30),a,o=1,s=1/0,c=.81;function l(h){var p,v=t.length,g=K_(t,p$,v$).visitAfter(f);for(r=h,p=0;p=s)return;(h.data!==e||h.next)&&(y===0&&(y=ya(n),x+=y*y),m===0&&(m=ya(n),x+=m*m),xt.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},M$={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},E$={text:""};function P$(t,e,n){const{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:s}=e,{nodeKey:c=p=>p.id,linkKey:l=p=>p.id}=n,u=b$(),f=r$(i).id(cr(l));typeof o=="function"&&u.strength(o),typeof s=="function"&&f.strength(s);const d=m$(r).force("link",f).force("charge",u);a?d.force("center",B7()):d.force("x",x$()).force("y",w$()),d.stop();const h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let p=0;p{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{nodeKey:u=O=>O.id,linkKey:f=O=>O.id}=n,d=O$(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=Q(h,"node"),v=Q(h,"link"),{links:g,nodes:y}=O0(e,h),{nodesData:m,linksData:b}=P$({links:g,nodes:y},X({},S$,a),h),x=fr(l,"link",{items:[O=>({name:"source",value:cr(f)(O.source)}),O=>({name:"target",value:cr(f)(O.target)})]}),w=fr(l,"node",{items:[O=>({name:"key",value:cr(u)(O)})]},!0);return[X({},_$,{data:b,encode:v,labels:s,style:Q(i,"link"),tooltip:x,animate:dr(c,"link")}),X({},M$,{data:m,encode:Object.assign({},p),scale:r,style:Q(i,"node"),tooltip:w,labels:[Object.assign(Object.assign({},E$),Q(i,"label")),...o],animate:dr(c,"link")})]};nM.props={};const rM=t=>e=>n=>{const{field:r="value",nodeSize:i,separation:a,sortBy:o,as:s=["x","y"]}=e,[c,l]=s,u=Qs(n,p=>p.children).sum(p=>p[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);const d=[];u.each(p=>{p[c]=p.x,p[l]=p.y,p.name=p.data.name,d.push(p)});const h=u.links();return h.forEach(p=>{p[c]=[p.source[c],p.target[c]],p[l]=[p.source[l],p.target[l]]}),{nodes:d,edges:h}},iM=t=>rM(PD)(t);iM.props={};const aM=t=>rM(v7)(t);aM.props={};const A$={sortBy:(t,e)=>e.value-t.value},k$={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},T$={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},C$={text:"",fontSize:10},oM=t=>{const{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,u=n==null?void 0:n.value,{nodes:f,edges:d}=aM(Object.assign(Object.assign(Object.assign({},A$),a),{field:u}))(e),h=fr(l,"node",{title:"name",items:["value"]},!0),p=fr(l,"link",{title:"",items:[v=>({name:"source",value:v.source.name}),v=>({name:"target",value:v.target.name})]});return[X({},T$,{data:d,encode:Q(n,"link"),scale:Q(r,"link"),labels:s,style:Object.assign({stroke:"#999"},Q(i,"link")),tooltip:p,animate:dr(c,"link")}),X({},k$,{data:f,scale:Q(r,"node"),encode:Q(n,"node"),labels:[Object.assign(Object.assign({},C$),Q(i,"label")),...o],style:Object.assign({},Q(i,"node")),tooltip:h,animate:dr(c,"node")})]};oM.props={};var Fm={},sd={},cd=34,_o=10,ld=13;function sM(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function L$(t,e){var n=sM(t);return function(r,i){return e(n(r),i,t)}}function zm(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function en(t,e){var n=t+"",r=n.length;return r9999?"+"+en(t,6):en(t,4)}function R$(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":N$(t.getUTCFullYear())+"-"+en(t.getUTCMonth()+1,2)+"-"+en(t.getUTCDate(),2)+(i?"T"+en(e,2)+":"+en(n,2)+":"+en(r,2)+"."+en(i,3)+"Z":r?"T"+en(e,2)+":"+en(n,2)+":"+en(r,2)+"Z":n||e?"T"+en(e,2)+":"+en(n,2)+"Z":"")}function I$(t){var e=new RegExp('["'+t+` -\r]`),n=t.charCodeAt(0);function r(f,d){var h,p,v=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?L$(g,d):sM(g)});return v.columns=p||[],v}function i(f,d){var h=[],p=f.length,v=0,g=0,y,m=p<=0,b=!1;f.charCodeAt(p-1)===_o&&--p,f.charCodeAt(p-1)===ld&&--p;function x(){if(m)return sd;if(b)return b=!1,Fm;var O,S=v,_;if(f.charCodeAt(S)===cd){for(;v++=p?m=!0:(_=f.charCodeAt(v++))===_o?b=!0:_===ld&&(b=!0,f.charCodeAt(v)===_o&&++v),f.slice(S+1,O-1).replace(/""/g,'"')}for(;v{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>$$(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return I$(r).parse(o,i?j$:ji)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};cM.props={};function B$(t){return!t||Object.keys(t).length===0}const lM=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>B$(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};lM.props={};function F$(t){return t!=null&&!Number.isNaN(t)}const uM=t=>{const{callback:e=F$}=t;return n=>n.filter(e)};uM.props={};const fM=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};fM.props={};function z$(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const dM=t=>{const{fields:e}=t;return n=>n.map(r=>z$(r,e))};dM.props={};function G$(t){return Object.keys(t).length===0}const hM=t=>e=>{if(!t||G$(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};hM.props={};function Y$(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const pM=t=>{const{fields:e=[]}=t,n=Y$(e,!0);return r=>{const i=(a,o)=>n.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};pM.props={};const vM=t=>{const{value:e}=t;return()=>e};vM.props={};const gM=t=>{const{callback:e=ji}=t;return n=>e(n)};gM.props={};const yM=t=>{const{callback:e=ji}=t;return n=>Array.isArray(n)?n.map(e):n};yM.props={};const ud=Math.PI/180,Ro=64,ol=2048;function W$(t){return t.text}function H$(){return"serif"}function Gm(){return"normal"}function V$(t){return t.value}function X$(){return~~(Math.random()*2)*90}function U$(){return 1}function q$(){}function K$(t,e,n,r){if(e.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(Ro<<5)/a,ol/a);let o=0,s=0,c=0;const l=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else d=d+31>>5<<5;if(h>c&&(c=h),o+d>=Ro<<5&&(o=0,s+=c,c=0),s+h>=ol)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),e.rotate&&i.rotate(e.rotate*ud),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=d,e.height=h,e.xoff=o,e.yoff=s,e.x1=d>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=d}const u=i.getImageData(0,0,(Ro<<5)/a,ol/a).data,f=[];for(;--r>=0;){if(e=n[r],!e.hasText)continue;const d=e.width,h=d>>5;let p=e.y1-e.y0;for(let y=0;y>5),x=u[(s+y)*(Ro<<5)+(o+m)<<2]?1<<31-m%32:0;f[b]|=x,v|=x}v?g=y:(e.y0++,p--,y--,s++)}e.y1=e.y0+g,e.sprite=f.slice(0,(e.y1-e.y0)*h)}}function Z$(t,e,n){n>>=5;const r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=a&127,s=32-o,c=t.y1-t.y0;let l=(t.y+t.y0)*n+(a>>5),u;for(let f=0;f>>o:0))&e[l+d])return!0;l+=n}return!1}function Q$(t,e){const n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function J$(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>5)*t[1]),O=u.length,S=[],_=u.map(function(T,A,k){return T.text=e.call(this,T,A,k),T.font=n.call(this,T,A,k),T.style=h.call(this,T,A,k),T.weight=i.call(this,T,A,k),T.rotate=a.call(this,T,A,k),T.size=~~r.call(this,T,A,k),T.padding=o.call(this,T,A,k),T}).sort(function(T,A){return A.size-T.size});let M=-1,E=v.board?[{x:0,y:0},{x:m,y:b}]:void 0;f&&clearInterval(f),f=setInterval(P,0),P();function P(){const T=Date.now();for(;Date.now()-T>1,A.y=b*(c()+.5)>>1,K$(x,A,_,M),A.hasText&&y(w,A,E)&&(l.call(null,"word",{cloud:v,word:A}),S.push(A),E?v.hasImage||Q$(E,A):E=[{x:A.x+A.x0,y:A.y+A.y0},{x:A.x+A.x1,y:A.y+A.y1}],A.x-=t[0]>>1,A.y-=t[1]>>1)}v._tags=S,v._bounds=E,M>=O&&(v.stop(),l.call(null,"end",{cloud:v,words:S,bounds:E}))}return v},v.stop=function(){return f&&(clearInterval(f),f=null),v};function g(m){m.width=m.height=1;const b=Math.sqrt(m.getContext("2d").getImageData(0,0,1,1).data.length>>2);m.width=(Ro<<5)/b,m.height=ol/b;const x=m.getContext("2d");return x.fillStyle=x.strokeStyle="red",x.textAlign="center",{context:x,ratio:b}}function y(m,b,x){const w=b.x,O=b.y,S=Math.sqrt(t[0]*t[0]+t[1]*t[1]),_=s(t),M=c()<.5?1:-1;let E,P=-M,T,A;for(;(E=_(P+=M))&&(T=~~E[0],A=~~E[1],!(Math.min(Math.abs(T),Math.abs(A))>=S));)if(b.x=w+T,b.y=O+A,!(b.x+b.x0<0||b.y+b.y0<0||b.x+b.x1>t[0]||b.y+b.y1>t[1])&&(!x||!Z$(b,m,t[0]))&&(!x||J$(b,x))){const k=b.sprite,C=b.width>>5,L=t[0]>>5,I=b.x-(C<<4),R=I&127,j=32-R,D=b.y1-b.y0;let $,B=(b.y+b.y0)*L+(I>>5);for(let F=0;F>>R:0);B+=L}return delete b.sprite,!0}return!1}return v.createMask=m=>{const b=document.createElement("canvas"),[x,w]=t;if(!x||!w)return;const O=x>>5,S=Ym((x>>5)*w);b.width=x,b.height=w;const _=b.getContext("2d");_.drawImage(m,0,0,m.width,m.height,0,0,x,w);const M=_.getImageData(0,0,x,w).data;for(let E=0;E>5),A=E*x+P<<2,C=M[A]>=250&&M[A+1]>=250&&M[A+2]>=250?1<<31-P%32:0;S[T]|=C}v.board=S,v.hasImage=!0},v.timeInterval=function(m){d=m??1/0},v.words=function(m){u=m},v.size=function(m=[]){t=[+m[0],+m[1]]},v.text=function(m){e=$r(m)},v.font=function(m){n=$r(m)},v.fontWeight=function(m){i=$r(m)},v.rotate=function(m){a=$r(m)},v.spiral=function(m){s=nB[m]||m},v.fontSize=function(m){r=$r(m)},v.padding=function(m){o=$r(m)},v.random=function(m){c=$r(m)},v.on=function(m){l=$r(m)},v}var iB=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function aB(t,e){return{set(n,r,i){if(e[n]===void 0)return this;const a=r?r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this},setAsync(n,r,i){return iB(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this})}}}var oB=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},sB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(t instanceof HTMLImageElement){e(t);return}if(typeof t=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),n()};return}n()})}function uB(t,e){if(typeof t=="function")return t;if(Array.isArray(t)){const[n,r]=t;if(!e)return()=>(r+n)/2;const[i,a]=e;return a===i?()=>(r+n)/2:({value:o})=>(r-n)/(a-i)*(o-i)+n}return()=>t}const bM=t=>e=>oB(void 0,void 0,void 0,function*(){const n=Object.assign({},cB,t),r=rB();yield aB(r,n).set("fontSize",y=>{const m=e.map(b=>b.value);return uB(y,[bn(m),Ct(m)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",lB,r.createMask),r.words([...e]);const i=r.start(),[a,o]=n.size,s=[{x:0,y:0},{x:a,y:o}],{_bounds:c=s,_tags:l,hasImage:u}=i,f=l.map(y=>{var{x:m,y:b}=y,x=sB(y,["x","y"]);return Object.assign(Object.assign({},x),{x:m+a/2,y:b+o/2})}),[{x:d,y:h},{x:p,y:v}]=c,g={text:"",value:0,opacity:0,fontSize:0};return f.push(Object.assign(Object.assign({},g),{x:u?0:d,y:u?0:h}),Object.assign(Object.assign({},g),{x:u?a:p,y:u?o:v})),f});bM.props={};function Wm(t){return typeof t=="string"?e=>e[t]:t}const xM=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=Wm(s),l=Wm(o),u=vp(e,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,v,g)=>(p[i[g]]=h?h[v]:a,p),{}))})};xM.props={};const wM=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};wM.props={};var OM={exports:{}},SM={exports:{}};(function(t){var e=t.exports;t.exports.isNumber=function(n){return typeof n=="number"},t.exports.findMin=function(n){if(n.length===0)return 1/0;for(var r=n[0],i=1;i=y.length)){var A=Math.max(T-f,0),k=T,C=Math.min(T+f,y.length-1),L=A-(T-f),I=T+f-C,R=x[-f-1+L]||0,j=x[-f-1+I]||0,D=w/(w-R-j);L>0&&(S+=D*(L-1)*O);var $=Math.max(0,T-f+1);a.inside(0,y.length-1,$)&&(y[$].y+=D*1*O),a.inside(0,y.length-1,k+1)&&(y[k+1].y-=D*2*O),a.inside(0,y.length-1,C+1)&&(y[C+1].y+=D*1*O)}});var _=S,M=0,E=0;return y.forEach(function(P){M+=P.y,_+=M,P.y=_,E+=_}),E>0&&y.forEach(function(P){P.y/=E}),y};function s(c,l){for(var u={},f=0,d=-l;d<=l;d++)f+=c(d/l),u[d]=f;return u}t.exports.getExpectedValueFromPdf=function(c){if(!(!c||c.length===0)){var l=0;return c.forEach(function(u){l+=u.x*u.y}),l}},t.exports.getXWithLeftTailArea=function(c,l){if(!(!c||c.length===0)){for(var u=0,f=0,d=0;d=l));d++);return c[f].x}},t.exports.getPerplexity=function(c){if(!(!c||c.length===0)){var l=0;return c.forEach(function(u){var f=Math.log(u.y);isFinite(f)&&(l+=u.y*f)}),l=-l/r,Math.pow(2,l)}}})(OM);var dB=OM.exports;const hB=ip(dB),_M=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(te(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=hB.create(d.map(g=>g[e]),{min:i,max:a,size:o,width:s}),p=h.map(g=>g.x),v=h.map(g=>g.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:v})})};_M.props={};function pB(t,e,n,r){r=r||{};var i=r.maxIterations||100,a=r.tolerance||1e-10,o=t(e),s=t(n),c=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(o===0)return e;if(s===0)return n;for(var l=0;l=0&&(e=u),Math.abs(c)=p[h-1].fx){var P=!1;if(x.fx>E.fx?(Sr(w,1+u,b,-u,E),w.fx=t(w),w.fx=1)break;for(v=1;vs+a*i*c||l>=y)g=i;else{if(Math.abs(f)<=-o*c)return i;f*(g-v)>=0&&(g=v),v=i,y=l}return 0}for(var p=0;p<10;++p){if(Sr(r.x,1,n.x,i,e),l=r.fx=t(r.x,r.fxprime),f=Sa(r.fxprime,e),l>s+a*i*c||p&&l>=u)return h(d,i,u);if(Math.abs(f)<=-o*c)return i;if(f>=0)return h(i,d,l);u=l,d=i,i*=2}return i}function yB(t,e,n){var r={x:e.slice(),fx:0,fxprime:e.slice()},i={x:e.slice(),fx:0,fxprime:e.slice()},a=e.slice(),o,s,c=1,l;n=n||{},l=n.maxIterations||e.length*20,r.fx=t(r.x,r.fxprime),o=r.fxprime.slice(),_h(o,r.fxprime,-1);for(var u=0;u1){const c=xB(r);for(o=0;o-1){const p=t[u.parentIndex[h]],v=Math.atan2(u.x-p.x,u.y-p.y),g=Math.atan2(l.x-p.x,l.y-p.y);let y=g-v;y<0&&(y+=2*Math.PI);const m=g-y/2;let b=ws(f,{x:p.x+p.radius*Math.sin(m),y:p.y+p.radius*Math.cos(m)});b>p.radius*2&&(b=p.radius*2),(d===null||d.width>b)&&(d={circle:p,width:b,p1:u,p2:l})}d!==null&&(s.push(d),i+=Mh(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;oMath.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-MM,y:c.y+c.radius},width:c.radius*2}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+a}function mB(t,e){for(let n=0;ne[n].radius+MM)return!1;return!0}function bB(t){const e=[];for(let n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return Mh(t,r)+Mh(e,i)}function AM(t,e){const n=ws(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=t.x+a*(e.x-t.x)/n,c=t.y+a*(e.y-t.y)/n,l=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function xB(t){const e={x:0,y:0};for(let n=0;ns>c?1:-1),r=0;r=Math.min(e[o].size,e[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function _B(t,e,n,r){let i=0,a;for(a=0;a0&&p<=f||d<0&&p>=f||(i+=2*v*v,e[2*a]+=4*v*(o-l),e[2*a+1]+=4*v*(s-u),e[2*c]+=4*v*(l-o),e[2*c+1]+=4*v*(u-s))}}return i}function MB(t,e){let n=PB(t,e);const r=e.lossFunction||N0;if(t.length>=8){const i=EB(t,e),a=r(i,t),o=r(n,t);a+1e-8=Math.min(r[p].size,r[v].size)&&(h=0),i[p].push({set:v,size:d.size,weight:h}),i[v].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;do;r.push(` -A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const TM=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[e],size:f[n],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=wB(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||kB(l,p,v,i);const g=d.map(m=>u[m]);let y=CB(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};TM.props={};const CM=()=>t=>(console.log("G2 data section:",t),t);CM.props={};var LB=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},NB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iObject.assign(Object.assign({},i),{text:i[n],value:i[r]}))}const IB=(t,e)=>({size:[t,e]}),jB=(t,e)=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size"},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]},fontSize:{type:"identity"},rotate:{type:"identity"}},style:{textAlign:"center"}}),LM=(t,e)=>LB(void 0,void 0,void 0,function*(){const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={}}=t,l=NB(t,["data","encode","scale","style","layout"]),u=RB(i,a),f=yield bM(Object.assign(Object.assign({},IB(n,r)),c))(u);return X({},jB(n,r),Object.assign(Object.assign({data:f,encode:a,scale:o,style:s},l),{axis:!1}))});LM.props={};var sl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{shape:n,radius:r}=t,i=sl(t,["shape","radius"]),a=Q(i,"pointer"),o=Q(i,"pin"),{shape:s}=a,c=sl(a,["shape"]),{shape:l}=o,u=sl(o,["shape"]),{coordinate:f,theme:d}=e;return(h,p)=>{const v=h.map(k=>f.invert(k)),[g,y,m]=EL(f,"polar"),b=f.clone(),{color:x}=p,w=op({startAngle:g,endAngle:y,innerRadius:m,outerRadius:r});w.push(["cartesian"]),b.update({transformations:w});const O=v.map(k=>b.map(k)),[S,_]=rO(O),[M,E]=f.getCenter(),P=Object.assign(Object.assign({x1:S,y1:_,x2:M,y2:E,stroke:x},c),i),T=Object.assign(Object.assign({cx:M,cy:E,stroke:x},u),i),A=st(new Ce);return Lr(s)||(typeof s=="function"?A.append(()=>s(O,p,b,d)):A.append("line").call(at,P).node()),Lr(l)||(typeof l=="function"?A.append(()=>l(O,p,b,d)):A.append("circle").call(at,T).node()),A.node()}},Vm={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-11/10*Math.PI,endAngle:1/10*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},$B={style:{shape:DB,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},BB={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}};function FB(t){if(de(t)){const e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}function zB(t,e){const{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=FB(t),s=a||r,c=a?1:i,l=Object.assign({y:{domain:[0,c]}},e);return o.length?{targetData:[{x:n,y:s,color:"target"}],totalData:o.map((u,f)=>({x:n,y:f>=1?u-o[f-1]:u,color:f})),target:s,total:c,scale:l}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:c-s,color:"total"}],target:s,total:c,scale:l}}function GB(t,{target:e,total:n}){const{content:r}=t;return r?r(e,n):e.toString()}const NM=t=>{const{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=sl(t,["data","scale","style","animate","transform"]),{targetData:s,totalData:c,target:l,total:u,scale:f}=zB(e,n),d=Q(r,"text"),h=F5(r,["pointer","pin"]);return[X({},Vm,Object.assign({type:"interval",transform:[{type:"stackY"}],data:c,scale:f,style:Q(r,"arc"),animate:typeof i=="object"?Q(i,"arc"):i},o)),X({},Vm,$B,Object.assign({type:"point",data:s,scale:f,style:h,animate:typeof i=="object"?Q(i,"indicator"):i},o)),X({},BB,{style:Object.assign({text:GB(d,{target:l,total:u})},d),animate:typeof i=="object"?Q(i,"text"):i})]};NM.props={};const Xm={density:o_},RM=()=>(t,e,n,r)=>{const{x:i,series:a}=n,o=Object.entries(n).filter(([f])=>f.startsWith("y")).map(([,f])=>f),s=Object.entries(n).filter(([f])=>f.startsWith("size")).map(([,f])=>f);if(i===void 0||o===void 0||s===void 0)throw new Error("Missing encode for x or y or size channel.");const c=e.x,l=e.series,u=Array.from(t,f=>{const d=c.getBandWidth(c.invert(+i[f])),h=l?l.getBandWidth(l.invert(+(a==null?void 0:a[f]))):1,p=d*h,v=(+(a==null?void 0:a[f])||0)*d,g=+i[f]+v+p/2;return[...o.map((m,b)=>[g+ +s[b][f]/t.length,+o[b][f]]),...o.map((m,b)=>[g-+s[b][f]/t.length,+o[b][f]]).reverse()].map(m=>r.map(m))});return[t,u]};RM.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:Xm,channels:[...Ue({shapes:Object.keys(Xm)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...pe(),{type:js},{type:qi}],postInference:[...ge(),...io()],interaction:{shareTooltip:!0}};const Um={heatmap:c_},IM=t=>(e,n,r,i)=>{const{x:a,y:o,size:s,color:c}=r,l=Array.from(e,u=>{const f=s?+s[u]:40;return[...i.map([+a[u],+o[u]]),c[u],f]});return[[0],[l]]};IM.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:Um,channels:[...Ue({shapes:Object.keys(Um)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...pe(),{type:qi},{type:Ou}],postInference:[...ge(),...ui()]};var YB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{data:e={},style:n={},animate:r}=t,i=YB(t,["data","style","animate"]),a=Math.max(0,de(e)?e:e==null?void 0:e.percent),o=[{percent:a,type:"liquid"}],s=Object.assign(Object.assign({},Q(n,"text")),Q(n,"content")),c=Q(n,"outline"),l=Q(n,"wave"),u=Q(n,"background");return[X({},WB,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:c,wave:l,background:u})},animate:r},i)),X({},HB,{style:Object.assign({text:`${jl(a*100)} %`},s),animate:r})]};jM.props={};const DM=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];DM.props={};const $M=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];$M.props={};const BM=t=>new Ia(t);BM.props={};const FM=t=>new Yt(t);FM.props={};const zM=t=>new n2(t);zM.props={};const GM=t=>new o2(t);GM.props={};const YM=t=>new l2(t);YM.props={};const WM=t=>new kC(t);WM.props={};const HM=t=>new gC(t);HM.props={};const VM=t=>new f2(t);VM.props={};const XM=t=>new Au(t);XM.props={};const UM=t=>new m2(t);UM.props={};const qM=t=>new g2(t);qM.props={};const KM=t=>new pC(t);KM.props={};const ZM=t=>new Yd(t);ZM.props={};const QM=t=>new Ep(t);QM.props={};function R0({colorDefault:t,colorBlack:e,colorWhite:n,colorStroke:r,colorBackground:i,padding1:a,padding2:o,padding3:s,alpha90:c,alpha65:l,alpha45:u,alpha25:f,alpha10:d,category10:h,category20:p,sizeDefault:v=1,padding:g="auto",margin:y=16}){return{padding:g,margin:y,size:v,color:t,category10:h,category20:p,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:e,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,strokeWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,strokeWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:e,gridStrokeOpacity:d,labelAlign:"horizontal",labelFill:e,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:a,line:!1,lineLineWidth:.5,lineStroke:e,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:e,tickOpacity:u,titleFill:e,titleOpacity:c,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:e,itemLabelFillOpacity:c,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[a,a],itemValueFill:e,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:e,navButtonFillOpacity:.65,navPageNumFill:e,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:e,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:e,tickStrokeOpacity:.25,rowPadding:a,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:e,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:e,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:e,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:e,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:c,tickStroke:e,tickStrokeOpacity:u},label:{fill:e,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:e,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:e,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:t,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:e,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:e,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:e,titleFillOpacity:c,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:e,subtitleFillOpacity:l,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"}}}const VB={colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1},XB=R0(VB),I0=t=>X({},XB,t);I0.props={};const JM=t=>X({},I0(),{category10:"category10",category20:"category20"},t);JM.props={};const UB={colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"#141414",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25},qB=R0(UB),tE=t=>X({},qB,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},t),eE=t=>Object.assign({},tE(),{category10:"category10",category20:"category20"},t);eE.props={};const KB={colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1},ZB=R0(KB),nE=t=>X({},ZB,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(e,n)=>n!==0},axisRight:{gridFilter:(e,n)=>n!==0},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);nE.props={};function QB(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ul(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function JB(t){return t=Ul(Math.abs(t)),t?t[1]:NaN}function tF(t,e){return function(n,r){for(var i=n.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function eF(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var nF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ph(t){if(!(e=nF.exec(t)))throw new Error("invalid format: "+t);var e;return new j0({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Ph.prototype=j0.prototype;function j0(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}j0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function rF(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var rE;function iF(t,e){var n=Ul(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(rE=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ul(t,Math.max(0,e+a-1))[0]}function qm(t,e){var n=Ul(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Km={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:QB,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>qm(t*100,e),r:qm,s:iF,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Zm(t){return t}var Qm=Array.prototype.map,Jm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aF(t){var e=t.grouping===void 0||t.thousands===void 0?Zm:tF(Qm.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?Zm:eF(Qm.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(f){f=Ph(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,x=f.trim,w=f.type;w==="n"?(m=!0,w="g"):Km[w]||(b===void 0&&(b=12),x=!0,w="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var O=v==="$"?n:v==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",S=v==="$"?r:/[%p]/.test(w)?o:"",_=Km[w],M=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function E(P){var T=O,A=S,k,C,L;if(w==="c")A=_(P)+A,P="";else{P=+P;var I=P<0||1/P<0;if(P=isNaN(P)?c:_(Math.abs(P),b),x&&(P=rF(P)),I&&+P==0&&p!=="+"&&(I=!1),T=(I?p==="("?p:s:p==="-"||p==="("?"":p)+T,A=(w==="s"?Jm[8+rE/3]:"")+A+(I&&p==="("?")":""),M){for(k=-1,C=P.length;++kL||L>57){A=(L===46?i+P.slice(k+1):P.slice(k))+A,P=P.slice(0,k);break}}}m&&!g&&(P=e(P,1/0));var R=T.length+P.length+A.length,j=R>1)+T+P+A+j.slice(R);break;default:P=j+T+P+A;break}return a(P)}return E.toString=function(){return f+""},E}function u(f,d){var h=l((f=Ph(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(JB(d)/3)))*3,v=Math.pow(10,-p),g=Jm[8+p/3];return function(y){return h(v*y)+g}}return{format:l,formatPrefix:u}}var jc,fi;oF({thousands:",",grouping:[3],currency:["$",""]});function oF(t){return jc=aF(t),fi=jc.format,jc.formatPrefix,jc}var sF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir.getOptions().name===e))===null||n===void 0?void 0:n[0]}function uF(t){return t==="horizontal"||t===0}function fF(t){return t==="vertical"||t===-Math.PI/2}function oE(t,e,n){const{bbox:r}=t,{position:i="top",size:a,length:o}=e,s=["top","bottom","center"].includes(i),[c,l]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||c,h=o||f||l,p=s?"horizontal":"vertical",[v,g]=s?[h,d]:[d,h];return{orientation:p,width:v,height:g,size:d,length:h}}function dF(t){return t.find(e=>e.getOptions().domain.length>0).getOptions().domain}function ef(t){const e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=sF(t,["style"]),i={};return Object.entries(r).forEach(([a,o])=>{e.includes(a)?i[`show${ii(a)}`]=o:i[a]=o}),Object.assign(Object.assign({},i),n)}var sE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!fw(e))return i;const a=t==="bottom"?[i,1]:[0,i],o=e.map(a);if(t==="bottom"){const s=o[0];return new Yt({domain:[0,n],range:[0,1]}).map(s)}else if(t==="left"){const s=o[1];return new Yt({domain:[0,r],range:[0,1]}).map(s)}return i}}function pF(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;const[r,i]=Mr(e,o=>+o),{tickCount:a}=t.getOptions();return n(r,i,a)}function vF(t,e){if(Ht(e))return h=>h;const n=e.getOptions(),{innerWidth:r,innerHeight:i,insetTop:a,insetBottom:o,insetLeft:s,insetRight:c}=n,[l,u,f]=t==="left"||t==="right"?[a,o,i]:[s,c,r],d=new Yt({domain:[0,1],range:[l/f,1-u/f]});return h=>d.map(h)}function uE(t,e,n,r,i,a,o,s){var c;(n!==void 0||a!==void 0)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));const l=pF(t,e,a),u=i?l.filter(i):l,f=y=>y instanceof Date?String(y):typeof y=="object"&&y?y:String(y),d=r||((c=t.getFormatter)===null||c===void 0?void 0:c.call(t))||f,h=vF(o,s),p=hF(o,s),v=y=>["top","bottom","center","outer"].includes(y),g=y=>["left","right"].includes(y);return Ht(s)||qt(s)?u.map((y,m,b)=>{var x,w;const O=((x=t.getBandWidth)===null||x===void 0?void 0:x.call(t,y))/2||0,S=h(t.map(y)+O);return{value:Nu(s)&&o==="center"||qt(s)&&((w=t.getTicks)===null||w===void 0?void 0:w.call(t))&&v(o)||qt(s)&&g(o)?1-S:S,label:f(d(jl(y),m,b)),id:String(m)}}):u.map((y,m,b)=>{var x;const w=((x=t.getBandWidth)===null||x===void 0?void 0:x.call(t,y))/2||0,O=p(h(t.map(y)+w));return{value:g(o)?1-O:O,label:f(d(jl(y),m,b)),id:String(m)}})}function gF(t,e,n="xy"){const[r,i,a]=lE(e);return n==="xy"?t.includes("bottom")||t.includes("top")?i:r:n==="xz"?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}function yF(t=[],e){if(t.length>0)return t;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],s=(c,l)=>{l&&o.push(Object.assign(Object.assign({},c),l))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},i),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}function mF(t,e,n,r,i){const{x:a,y:o,width:s,height:c}=e,l=[a+s/2,o+c/2],u=Math.min(s,c)/2,[f,d]=Dp(i),[h,p]=lE(i),v=Math.min(h,p)/2,g={center:l,radius:u,startAngle:f,endAngle:d,gridLength:(r-n)*v};if(t==="inner"){const{insetLeft:y,insetTop:m}=i.getOptions();return Object.assign(Object.assign({},g),{center:[l[0]-y,l[1]-m],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},g),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}function bF(t,e,n){return _L(e)||Ru(e)?!1:t===void 0?!!n.getTicks:t}function xF(t){const{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function wF(t,e,n,r,i){const{x:a,y:o,width:s,height:c}=n;if(t==="bottom")return{startPos:[a,o],endPos:[a+s,o]};if(t==="left")return{startPos:[a+s,o+c],endPos:[a+s,o]};if(t==="right")return{startPos:[a,o+c],endPos:[a,o]};if(t==="top")return{startPos:[a,o+c],endPos:[a+s,o+c]};if(t==="center"){if(e==="vertical")return{startPos:[a,o],endPos:[a,o+c]};if(e==="horizontal")return{startPos:[a,o],endPos:[a+s,o]};if(typeof e=="number"){const[l,u]=r.getCenter(),[f,d]=Iu(r),[h,p]=Dp(r),v=Math.min(s,c)/2,{insetLeft:g,insetTop:y}=r.getOptions(),m=f*v,b=d*v,[x,w]=[l+a-g,u+o-y],[O,S]=[Math.cos(e),Math.sin(e)],_=[x+b*O,w+b*S],M=[x+m*O,w+m*S],E=()=>{const{domain:T}=i.getOptions();return T.length},P=Ht(r)&&i?E():3;return{startPos:_,endPos:M,gridClosed:Math.abs(p-h-360)<1e-6,gridCenter:[x,w],gridControlAngles:new Array(P).fill(0).map((T,A,k)=>(p-h)/P*A)}}}return{}}const OF=t=>{const{order:e,size:n,position:r,orientation:i,labelFormatter:a,tickFilter:o,tickCount:s,tickMethod:c,important:l={},style:u={},indexBBox:f,title:d,grid:h=!1}=t,p=sE(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return({scales:[v],value:g,coordinate:y,theme:m})=>{const{bbox:b}=g,{domain:x}=v.getOptions(),w=uE(v,x,s,a,o,c,r,y),O=f?w.map((A,k)=>{const C=f.get(k);return!C||C[0]!==A.label?A:Object.assign(Object.assign({},A),{bbox:C[1]})}):w,[S,_]=Iu(y),M=mF(r,b,S,_,y),{axis:E,axisArc:P={}}=m,T=ef(X({},E,P,M,Object.assign(Object.assign({type:"arc",data:O,titleText:tf(d),grid:h},p),l)));return new x0({style:Fb(T,["transform"])})}};function SF(t,e,n,r,i,a){const o=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${bp(i)}`]:n.axisLinear,c=t.getOptions().name,l=n[`axis${ii(c)}`]||{};return Object.assign({},o,s,l)}function _F(t,e,n,r,i,a){const o=SF(t,e,n,r,i);return i==="center"?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:r==="right"?"negative":"positive"}),r==="center"?{labelTransform:"translate(50%,0)"}:null),{tickDirection:r==="right"?"negative":"positive",labelSpacing:r==="center"?0:4,titleSpacing:fF(a)?10:0,tick:r==="center"?!1:void 0}):o}const MF=t=>{const{direction:e="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:s,size:c,style:l={},title:u,tickCount:f,tickFilter:d,tickMethod:h,transform:p,indexBBox:v}=t,g=sE(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return({scales:y,value:m,coordinate:b,theme:x})=>{const{bbox:w}=m,[O]=y,{domain:S,xScale:_}=O.getOptions(),M=_F(O,b,x,e,s,a),E=Object.assign(Object.assign(Object.assign({},M),l),g),P=gF(o||s,b,t.plane),T=wF(s,a,w,b,_),A=xF(b),k=uE(O,S,f,r,d,h,s,b),C=v?k.map((R,j)=>{const D=v.get(j);return!D||D[0]!==R.label?R:Object.assign(Object.assign({},R),{bbox:D[1]})}):k,L=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E),{type:"linear",data:C,crossSize:c,titleText:tf(u),labelOverlap:yF(p,E),grid:bF(E.grid,b,O),gridLength:P,line:!0,indexBBox:v}),E.line?null:{lineOpacity:0}),T),A),n);return L.labelOverlap.find(R=>R.type==="hide")&&(L.crossSize=!1),new x0({className:"axis",style:ef(L)})}},fE=t=>e=>{const{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;const{scales:[o]}=i,s=((a=o.getTicks)===null||a===void 0?void 0:a.call(o))||o.getOptions().domain,c=typeof n=="string"?fi(n):n,l=(f,d,h)=>r(s[d],d,s),u=Object.assign(Object.assign({},e),{labelFormatter:c,labelFilter:l,scale:o});return t(u)(i)}},di=fE(MF),dE=fE(OF);di.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};dE.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const hE=t=>(...e)=>{const n=di(Object.assign({},{crossPadding:50},t))(...e);return cE(n,t),n};hE.props=Object.assign(Object.assign({},di.props),{defaultPosition:"bottom"});const pE=t=>(...e)=>{const n=di(Object.assign({},{crossPadding:10},t))(...e);return cE(n,t),n};pE.props=Object.assign(Object.assign({},di.props),{defaultPosition:"left"});var EF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i-Math.PI/2&&eMath.PI/2&&e(c-s)/i.count*f)})}const vE=t=>{const{important:e={}}=t,n=EF(t,["important"]);return r=>{const{theme:i,coordinate:a,scales:o}=r;return di(Object.assign(Object.assign(Object.assign({},n),PF(t.orientation)),{important:Object.assign(Object.assign({},AF(t,i,a,o)),e)}))(r)}};vE.props=Object.assign(Object.assign({},di.props),{defaultPosition:"center"});var kF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?r==null?void 0:r.getOptions().domain:c.data).map((d,h)=>{var p;return i?i.map(d||"point"):((p=s==null?void 0:s.style)===null||p===void 0?void 0:p.shape)||c.defaultShape||"point"});typeof l=="string"&&a.push([l,f])}if(a.length===0)return["point",["point"]];if(a.length===1||!n)return a[0];const{range:o}=n.getOptions();return a.map(([s,c])=>{let l=0;for(let u=0;uc[0]-s[0])[0][1]}function CF(t,e){const{scales:n,library:r,markState:i}=e,[a,o]=TF(n,i),{itemMarker:s,itemMarkerSize:c}=t,l=(d,h)=>{var p,v,g;const y=((g=(v=(p=r[`mark.${a}`])===null||p===void 0?void 0:p.props)===null||v===void 0?void 0:v.shape[d])===null||g===void 0?void 0:g.props.defaultMarker)||Ns(d.split(".")),m=typeof c=="function"?c(h):c;return()=>tI(y,{color:h.color})(0,0,m)},u=d=>`${o[d]}`;return lr(n,"shape")&&!s?(d,h)=>l(u(h),d):typeof s=="function"?(d,h)=>{const p=s(d.id,h);return typeof p=="string"?l(p,d):p}:(d,h)=>l(s||u(h),d)}function LF(t){const e=lr(t,"opacity");if(e){const{range:n}=e.getOptions();return(r,i)=>n[i]}}function NF(t,e){const n=lr(t,"size");return n instanceof o2?n.map(NaN)*2:e}function RF(t,e){const{labelFormatter:n=d=>`${d}`}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=NF(r,a),s={itemMarker:CF(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:LF(r)},c=typeof n=="string"?fi(n):n,l=lr(r,"color"),u=dF(r),f=l?d=>l.map(d):()=>e.theme.color;return Object.assign(Object.assign({},s),{data:u.map(d=>({id:d,label:c(d),color:f(d)}))})}function IF(t,e,n){const{position:r}=e;if(r==="center"){const{bbox:o}=t,{width:s,height:c}=o;return{width:s,height:c}}const{width:i,height:a}=oE(t,e,n);return{width:i,height:a}}const D0=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,cols:c,itemMarker:l}=t,u=kF(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return d=>{const{value:h,theme:p}=d,{bbox:v}=h,{width:g,height:y}=IF(h,t,D0),m=iE(a,n),b=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:g,height:y,layout:c!==void 0?"grid":"flex"},c!==void 0&&{gridCol:c}),f!==void 0&&{gridRow:f}),{titleText:tf(s)}),RF(t,d)),{legendCategory:x={}}=p,w=ef(Object.assign({},x,b,u)),O=new lF({style:Object.assign(Object.assign({x:v.x,y:v.y,width:v.width,height:v.height},m),{subOptions:w})});return O.appendChild(new Ej({className:"legend-category",style:w})),O}};D0.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var jF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({value:e/t,label:String(e)})}function FF(t,e,n,r,i){const a=e.thresholds,o=BF(r);return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(o)})}function zF(t,e,n){const i=[-1/0,...e.thresholds,1/0].map((a,o)=>({value:o,label:a}));return Object.assign(Object.assign({},t),{data:i,color:n,labelFilter:(a,o)=>o>0&&op!==void 0).find(p=>!(p instanceof Ep)));return Object.assign(Object.assign({},t),{domain:[d,h],data:l.getTicks().map(p=>({value:p})),color:new Array(Math.floor(o)).fill(0).map((p,v)=>{const g=(f-u)/(o-1)*v+u,y=l.map(g)||c,m=r?r.map(g):1;return y.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(b,x,w,O)=>`rgba(${x}, ${w}, ${O}, ${m})`)})})}function WF(t,e,n,r,i,a){const o=lr(t,"color"),s=$F(n,r,i);if(o instanceof Au){const{range:u}=o.getOptions(),[f,d]=Ah(o);return o instanceof g2||o instanceof m2?FF(s,o,f,d,u):zF(s,o,u)}const c=lr(t,"size"),l=lr(t,"opacity");return YF(s,o,c,l,e,a)}const hi=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,style:c,crossPadding:l,padding:u}=t,f=jF(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:d,value:h,theme:p,scale:v})=>{const{bbox:g}=h,{x:y,y:m,width:b,height:x}=g,w=iE(a,n),{legendContinuous:O={}}=p,S=ef(Object.assign({},O,Object.assign(Object.assign({titleText:tf(s),labelAlign:"value",labelFormatter:typeof e=="string"?M=>fi(e)(M.label):e},WF(d,v,h,t,hi,p)),c),f)),_=new aE({style:Object.assign(Object.assign({x:y,y:m,width:b,height:x},w),{subOptions:S})});return _.appendChild(new $j({className:"legend-continuous",style:S})),_}};hi.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const gE=t=>(...e)=>hi(Object.assign({},{block:!0},t))(...e);gE.props=Object.assign(Object.assign({},hi.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const $0=t=>e=>{const{scales:n}=e,r=lr(n,"size");return hi(Object.assign({},{type:"size",data:r.getTicks().map((i,a)=>({value:i,label:String(i)}))},t))(e)};$0.props=Object.assign(Object.assign({},hi.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const yE=t=>$0(Object.assign({},{block:!0},t));yE.props=Object.assign(Object.assign({},hi.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var HF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!i)return d.node().remove();d.node().attr(Object.assign(Object.assign(Object.assign({},e1(0,f.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),l))})}}),mE=t=>({value:e,theme:n})=>{const{x:r,y:i,width:a,height:o}=e.bbox;return new VF({style:X({},n.title,Object.assign({x:r,y:i,width:a,height:o},t))})};mE.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};function XF(t,e,n){return Math.min(n,Math.max(e,t))}function Ho(t){return!!t.getBandWidth}function Ha(t,e,n){if(!Ho(t))return t.invert(e);const{adjustedRange:r}=t,{domain:i}=t.getOptions(),a=n?-1:0,o=t.getStep(),s=n?r:r.map(u=>u+o),c=h5(s,e),l=XF(c+a,0,i.length-1);return i[l]}function Vr(t,e,n){if(!e)return t.getOptions().domain;if(!Ho(t)){const c=Er(e);if(!n)return c;const[l]=c,{range:u}=t.getOptions(),[f,d]=u,h=f>d?-1:1,p=t.invert(t.map(l)+h*n);return[l,p]}const{domain:r}=t.getOptions(),i=e[0],a=r.indexOf(i);if(n){const c=a+Math.round(r.length*n);return r.slice(a,c)}const o=e[e.length-1],s=r.indexOf(o);return r.slice(a,s+1)}function cl(t,e,n,r,i,a){const{x:o,y:s}=i,c=(h,p)=>{const[v,g]=a.invert(h);return[Ha(o,v,p),Ha(s,g,p)]},l=c([t,e],!0),u=c([n,r],!1),f=Vr(o,[l[0],u[0]]),d=Vr(s,[l[1],u[1]]);return[f,d]}function ql(t,e){const[n,r]=t,i=a=>a.getStep?a.getStep():0;return[e.map(n),e.map(r)+i(e)]}function UF(t,e,n){const{x:r,y:i}=e,[a,o]=t,s=ql(a,r),c=ql(o,i),l=[s[0],c[0]],u=[s[1],c[1]],[f,d]=n.map(l),[h,p]=n.map(u);return[f,d,h,p]}var qF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=qF(t,["orientation","labelFormatter","size","style","position"]);return s=>{var c;const{scales:[l],value:u,theme:f,coordinate:d}=s,{bbox:h}=u,{width:p,height:v}=h,{slider:g={}}=f,y=((c=l.getFormatter)===null||c===void 0?void 0:c.call(l))||(_=>_+""),m=typeof n=="string"?fi(n):n,b=e==="horizontal",x=qt(d)&&b,{trackSize:w=g.trackSize}=i,[O,S]=KF(h,a,w);return new pS({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:O,y:S,trackLength:b?p:v,orientation:e,formatter:_=>{const M=m||y,E=x?1-_:_,P=Ha(l,E,!0);return M(P)},sparklineData:QF(t,s)},i),o))})}};function ZF(t,e){const[n]=Array.from(t.entries()).filter(([i])=>i.type==="line"||i.type==="area").map(([i])=>{const{encode:a,slider:o}=i;if(o!=null&&o.x&&Object.keys(o.x).length===0){const s=c=>{const l=a[c];return[c,l?l.value:void 0]};return Object.fromEntries(e.map(s))}});if(!(n!=null&&n.series))return n==null?void 0:n.y;const r=n.series.reduce((i,a,o)=>(i[a]=i[a]||[],i[a].push(n.y[o]),i),{});return Object.values(r)}function QF(t,e){const{markState:n}=e;return Le(t.sparklineData)?t.sparklineData:ZF(n,["y","series"])}Js.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const bE=t=>Js(Object.assign(Object.assign({},t),{orientation:"horizontal"}));bE.props=Object.assign(Object.assign({},Js.props),{defaultPosition:"bottom"});const xE=t=>Js(Object.assign(Object.assign({},t),{orientation:"vertical"}));xE.props=Object.assign(Object.assign({},Js.props),{defaultPosition:"left"});var JF=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,style:r}=t,i=JF(t,["orientation","labelFormatter","style"]);return({scales:[a],value:o,theme:s})=>{const{bbox:c}=o,{x:l,y:u,width:f,height:d}=c,{scrollbar:h={}}=s,{ratio:p,range:v}=a.getOptions(),g=e==="horizontal"?f:d,y=g/p,[m,b]=v,x=b>m?0:1;return new d8({className:"g2-scrollbar",style:Object.assign({},h,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:l,y:u,trackLength:g,value:x}),i),{orientation:e,contentLength:y,viewportLength:g}))})}};tc.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const wE=t=>tc(Object.assign(Object.assign({},t),{orientation:"horizontal"}));wE.props=Object.assign(Object.assign({},tc.props),{defaultPosition:"bottom"});const OE=t=>tc(Object.assign(Object.assign({},t),{orientation:"vertical"}));OE.props=Object.assign(Object.assign({},tc.props),{defaultPosition:"left"});const SE=t=>()=>new Ce;SE.props={};const B0=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=qt(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.01},{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f}];return s.animate(p,Object.assign(Object.assign({},o),t))}},tz=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=qt(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},_E=(t,e)=>{const{coordinate:r}=e;return Ww.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:tt.NUMBER}),(i,a,o)=>{const[s]=i,c=u=>{const{__data__:f,style:d}=u,{radius:h=0,inset:p=0,fillOpacity:v=1,strokeOpacity:g=1,opacity:y=1}=d,{points:m,y:b,y1:x}=f,w=Qi(r,m,[b,x]),{innerRadius:O,outerRadius:S}=w,_=Cu().cornerRadius(h).padAngle(p*Math.PI/180),M=new Xe({}),E=r.getCenter(),P=k=>{M.attr({d:_(k),transform:`translate(${E[0]}, ${E[1]})`});const C=Wp(M);return M.style.transform="",C},T=[{scaleInYRadius:O+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:O+1e-4,fillOpacity:v,strokeOpacity:g,opacity:y,offset:.01},{scaleInYRadius:S,fillOpacity:v,strokeOpacity:g,opacity:y}],A=u.animate(T,Object.assign(Object.assign({},o),t));return A.onframe=function(){u.style.path=P(Object.assign(Object.assign({},w),{outerRadius:Number(u.style.scaleInYRadius)}))},A.onfinish=function(){u.style.path=P(Object.assign(Object.assign({},w),{outerRadius:S}))},A},l=u=>{const{style:f}=u,{transform:d="",fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=f,[g,y]=qt(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],m=[{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{transform:`${d} scale(1, 1)`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v}];return u.animate(m,Object.assign(Object.assign({},o),t))};return Ht(r)?c(s):l(s)}},ez=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=qt(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},ME=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:s}];return i.animate(c,Object.assign(Object.assign({},r),t))};ME.props={};const EE=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:a,strokeOpacity:o,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(c,Object.assign(Object.assign({},r),t))};EE.props={};function Va(t,e){const n={};for(const r of e){const i=t.style[r];i&&(n[r]=i)}return n}const Xa=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function kh(t){const{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n,s=o-i,c=a-r;return[r,i,c,s]}function nz(t){const[e,n,r,i]=t;return` - M ${e} ${n} - L ${e+r} ${n} - L ${e+r} ${n+i} - L ${e} ${n+i} - Z - `}function rz(t,e){const[n,r,i,a]=kh(t),o=a/i,s=Math.ceil(Math.sqrt(e/o)),c=Math.ceil(e/s),l=[],u=a/c;let f=0,d=e;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let v=0;v{u.style.transform="none",xp(u,n)},u.style.transform="none",d}function cz(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new Xe({style:Object.assign({path:i[o]},Va(t,Xa))});return F0(a,s,a,n)})}function lz(t,e,n,r){const i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=e.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],l=e.animate(c,n);return[...t.map((f,d)=>{const h=new Xe({style:{path:i[d],fill:e.style.fill}});return F0(f,f,h,n)}),l]}const AE=t=>(e,n,r)=>{const i=iz(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[c]=e,[l]=n;return F0(c,c,l,a)}if(o===1&&s>1){const[c]=e;return cz(c,n,a,i)}if(o>1&&s===1){const[c]=n;return lz(e,c,a,i)}return null};AE.props={};const kE=(t,e)=>{Ww.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:tt.NUMBER});const{coordinate:r}=e;return(i,a,o)=>{const[s]=i;if(!Ht(r))return B0(t,e)(i,a,o);const c=r.getCenter(),{__data__:l,style:u}=s,{radius:f=0,inset:d=0,fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=u,{points:g,y,y1:m}=l,b=Cu().cornerRadius(f).padAngle(d*Math.PI/180),x=Qi(r,g,[y,m]),{startAngle:w,endAngle:O}=x,S=new Xe({}),_=P=>{S.attr({d:b(P),transform:`translate(${c[0]}, ${c[1]})`});const T=Wp(S);return S.style.transform="",T},M=[{waveInArcAngle:w+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:w+1e-4,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{waveInArcAngle:O,fillOpacity:h,strokeOpacity:p,opacity:v}],E=s.animate(M,Object.assign(Object.assign({},o),t));return E.onframe=function(){s.style.path=_(Object.assign(Object.assign({},x),{endAngle:Number(s.style.waveInArcAngle)}))},E.onfinish=function(){s.style.path=_(Object.assign(Object.assign({},x),{endAngle:O}))},E}};kE.props={};const uz=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.01},{transform:`${o} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l}];return a.animate(f,Object.assign(Object.assign({},i),t))},fz=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(1)`.trimStart(),transformOrigin:u},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.99},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(f,Object.assign(Object.assign({},i),t))},TE=t=>(e,n,r)=>{var i,a;const[o]=e,s=((a=(i=o).getTotalLength)===null||a===void 0?void 0:a.call(i))||0,c=[{lineDash:[0,s]},{lineDash:[s,0]}];return o.animate(c,Object.assign(Object.assign({},r),t))};TE.props={};const CE=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new Xe({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,B0(t,e)([c],r,i)};CE.props={};const LE=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new Xe({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,_E(t,e)([c],r,i)};LE.props={};const i1="main-layer",Th="label-layer",xr="element",Ch="view",Kl="plot",a1="component",Lh="label",o1="area";function dz(t,e){var n=e.r;t.arc(n,n,n,0,Math.PI*2,!1)}function hz(t,e){var n=e.rx,r=e.ry,i=n,a=r;if(t.ellipse)t.ellipse(i,a,i,a,0,0,Math.PI*2,!1);else{var o=i>a?i:a,s=i>a?1:i/a,c=i>a?a/i:1;t.save(),t.scale(s,c),t.arc(o,o,o,0,Math.PI*2)}}function pz(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.defX,s=o===void 0?0:o,c=e.defY,l=c===void 0?0:c,u=e.markerStart,f=e.markerEnd,d=e.markerStartOffset,h=e.markerEndOffset,p=0,v=0,g=0,y=0,m=0,b,x;u&&Mt(u)&&d&&(b=i-n,x=a-r,m=Math.atan2(x,b),p=Math.cos(m)*(d||0),v=Math.sin(m)*(d||0)),f&&Mt(f)&&h&&(b=n-i,x=r-a,m=Math.atan2(x,b),g=Math.cos(m)*(h||0),y=Math.sin(m)*(h||0)),t.moveTo(n-s+p,r-l+v),t.lineTo(i-s+g,a-l+y)}function vz(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.path,f=u.absolutePath,d=u.segments,h=0,p=0,v=0,g=0,y=0,m,b;if(o&&Mt(o)&&c){var x=N(o.parentNode.getStartTangent(),2),w=x[0],O=x[1];m=w[0]-O[0],b=w[1]-O[1],y=Math.atan2(b,m),h=Math.cos(y)*(c||0),p=Math.sin(y)*(c||0)}if(s&&Mt(s)&&l){var S=N(s.parentNode.getEndTangent(),2),w=S[0],O=S[1];m=w[0]-O[0],b=w[1]-O[1],y=Math.atan2(b,m),v=Math.cos(y)*(l||0),g=Math.sin(y)*(l||0)}for(var _=0;_R?I:R,Y=I>R?1:I/R,U=I>R?R/I:1;t.translate(C-r,L-a),t.rotate($),t.scale(Y,U),t.arc(0,0,F,j,D,!!(1-B)),t.scale(1/Y,1/U),t.rotate(-$),t.translate(-(C-r),-(L-a))}A&&t.lineTo(M[6]-r+v,M[7]-a+g);break}case"Z":t.closePath();break}}}function gz(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.points.points,f=u.length,d=u[0][0]-r,h=u[0][1]-a,p=u[f-1][0]-r,v=u[f-1][1]-a,g=0,y=0,m=0,b=0,x=0,w,O;o&&Mt(o)&&c&&(w=u[1][0]-u[0][0],O=u[1][1]-u[0][1],x=Math.atan2(O,w),g=Math.cos(x)*(c||0),y=Math.sin(x)*(c||0)),s&&Mt(s)&&l&&(w=u[f-1][0]-u[0][0],O=u[f-1][1]-u[0][1],x=Math.atan2(O,w),m=Math.cos(x)*(l||0),b=Math.sin(x)*(l||0)),t.moveTo(d+(g||m),h+(y||b));for(var S=1;S0?1:-1,l=i>0?1:-1,u=c+l===0,f=N(n.map(function(g){return ce(g,0,Math.min(Math.abs(a)/2,Math.abs(o)/2))}),4),d=f[0],h=f[1],p=f[2],v=f[3];t.moveTo(c*d,0),t.lineTo(a-c*h,0),h!==0&&t.arc(a-c*h,l*h,h,-l*Math.PI/2,c>0?0:Math.PI,u),t.lineTo(a,o-l*p),p!==0&&t.arc(a-c*p,o-l*p,p,c>0?0:Math.PI,l>0?Math.PI/2:1.5*Math.PI,u),t.lineTo(c*v,o),v!==0&&t.arc(c*v,o-l*v,v,l>0?Math.PI/2:-Math.PI/2,c>0?Math.PI:0,u),t.lineTo(0,l*d),d!==0&&t.arc(c*d,l*d,d,c>0?Math.PI:0,l>0?Math.PI*1.5:Math.PI/2,u)}}var bz=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.name="canvas-path-generator",n}return e.prototype.init=function(){var n,r=(n={},n[G.CIRCLE]=dz,n[G.ELLIPSE]=hz,n[G.RECT]=mz,n[G.LINE]=pz,n[G.POLYLINE]=yz,n[G.POLYGON]=gz,n[G.PATH]=vz,n[G.TEXT]=void 0,n[G.GROUP]=void 0,n[G.IMAGE]=void 0,n[G.HTML]=void 0,n[G.MESH]=void 0,n);this.context.pathGeneratorFactory=r},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(ci),xz=yt(),wz=yt(),Oz=yt(),Sz=Nt(),_z=function(){function t(){var e=this;this.isHit=function(n,r,i,a){var o=e.context.pointInPathPickerFactory[n.nodeName];if(o){var s=Wn(Sz,i),c=Oe(wz,Gn(Oz,r[0],r[1],0),s),l=n.getGeometryBounds().halfExtents,u=n.parsedStyle.anchor;if(c[0]+=(u&&u[0]||0)*l[0]*2,c[1]+=(u&&u[1]||0)*l[1]*2,o(n,new Ee(c[0],c[1]),a,e.isPointInPath,e.context,e.runtime))return!0}return!1},this.isPointInPath=function(n,r){var i=e.runtime.offscreenCanvasCreator.getOrCreateContext(e.context.config.offscreenCanvas),a=e.context.pathGeneratorFactory[n.nodeName];return a&&(i.beginPath(),a(i,n.parsedStyle),i.closePath()),i.isPointInPath(r.x,r.y)}}return t.prototype.apply=function(e,n){var r=this,i,a=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var s=(i=o.root)===null||i===void 0?void 0:i.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(c){return ka(r,void 0,void 0,function(){return Ta(this,function(l){return[2,this.pick(s,c)]})})}),a.hooks.pickSync.tap(t.tag,function(c){return r.pick(s,c)})},t.prototype.pick=function(e,n){var r,i,a=n.topmost,o=n.position,s=o.x,c=o.y,l=Gn(xz,s,c,0),u=e.elementsFromBBox(l[0],l[1],l[0],l[1]),f=[];try{for(var d=vn(u),h=d.next();!h.done;h=d.next()){var p=h.value,v=p.getWorldTransform(),g=this.isHit(p,l,v,!1);if(g){var y=Iw(p);if(y){var m=y.parsedStyle.clipPath,b=this.isHit(m,l,m.getWorldTransform(),!0);if(b){if(a)return n.picked=[p],n;f.push(p)}}else{if(a)return n.picked=[p],n;f.push(p)}}}}catch(x){r={error:x}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return n.picked=f,n},t.tag="CanvasPicker",t}();function Mz(t,e,n){var r=t.parsedStyle,i=r.r,a=r.fill,o=r.stroke,s=r.lineWidth,c=r.increasedLineWidthForHitTesting,l=r.pointerEvents,u=((s||0)+(c||0))/2,f=Pr(i,i,e.x,e.y),d=N(Ki(l,a,o),2),h=d[0],p=d[1];return h&&p||n?f<=i+u:h?f<=i:p?f>=i-u&&f<=i+u:!1}function Dc(t,e,n,r){return t/(n*n)+e/(r*r)}function Ez(t,e,n){var r=t.parsedStyle,i=r.rx,a=r.ry,o=r.fill,s=r.stroke,c=r.lineWidth,l=r.increasedLineWidthForHitTesting,u=r.pointerEvents,f=e.x,d=e.y,h=N(Ki(u,o,s),2),p=h[0],v=h[1],g=((c||0)+(l||0))/2,y=(f-i)*(f-i),m=(d-a)*(d-a);return p&&v||n?Dc(y,m,i+g,a+g)<=1:p?Dc(y,m,i,a)<=1:v?Dc(y,m,i-g,a-g)>=1&&Dc(y,m,i+g,a+g)<=1:!1}function Ei(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function Pz(t,e,n,r,i,a,o){var s=i/2;return Ei(t-s,e-s,n,i,a,o)||Ei(t+n-s,e-s,i,r,a,o)||Ei(t+s,e+r-s,n,i,a,o)||Ei(t-s,e+s,i,r,a,o)}function $c(t,e,n,r,i,a,o,s){var c=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2),l={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Pr(l.x,l.y,o,s)<=a/2}function Xr(t,e,n,r,i,a,o){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),f=i/2;return a>=s-f&&a<=c+f&&o>=l-f&&o<=u+f?HL(t,e,n,r,a,o)<=i/2:!1}function NE(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o0!=fd(s[1]-n)>0&&fd(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function s1(t,e,n){for(var r=!1,i=0;ix&&M>w,v&&(v.resetTransform?v.resetTransform():v.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(v,0,0,y*g,m*g,i.background))});var p=function(v,g){v.isVisible()&&!v.isCulled()&&(r.renderDisplayObject(v,g,r.context,r.restoreStack,n),r.saveDirtyAABB(v));var y=v.sortable.sorted||v.childNodes;y.forEach(function(m){p(m,g)})};o.hooks.endFrame.tap(t.tag,function(){var v=u.getContext(),g=u.getDPR();if(fp(r.dprMatrix,[g,g,1]),$e(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)p(s.root,v);else{var y=r.safeMergeAABB.apply(r,q([r.mergeDirtyAABBs(r.renderQueue)],N(r.removedRBushNodeAABBs.map(function($){var B=$.minX,F=$.minY,Y=$.maxX,U=$.maxY,K=new be;return K.setMinMax([B,F,0],[Y,U,0]),K})),!1));if(r.removedRBushNodeAABBs=[],be.isEmpty(y)){r.renderQueue=[];return}var m=r.convertAABB2Rect(y),b=m.x,x=m.y,w=m.width,O=m.height,S=Oe(r.vec3a,[b,x,0],r.vpMatrix),_=Oe(r.vec3b,[b+w,x,0],r.vpMatrix),M=Oe(r.vec3c,[b,x+O,0],r.vpMatrix),E=Oe(r.vec3d,[b+w,x+O,0],r.vpMatrix),P=Math.min(S[0],_[0],E[0],M[0]),T=Math.min(S[1],_[1],E[1],M[1]),A=Math.max(S[0],_[0],E[0],M[0]),k=Math.max(S[1],_[1],E[1],M[1]),C=Math.floor(P),L=Math.floor(T),I=Math.ceil(A-P),R=Math.ceil(k-T);v.save(),r.clearRect(v,C,L,I,R,i.background),v.beginPath(),v.rect(C,L,I,R),v.clip(),v.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var j=i.renderer.getConfig().enableDirtyRectangleRenderingDebug;j&&f.dispatchEvent(new Dt(an.DIRTY_RECTANGLE,{dirtyRect:{x:C,y:L,width:I,height:R}}));var D=r.searchDirtyObjects(y);D.sort(function($,B){return $.sortable.renderOrder-B.sortable.renderOrder}).forEach(function($){$&&$.isVisible()&&!$.isCulled()&&r.renderDisplayObject($,v,r.context,r.restoreStack,n)}),v.restore(),r.renderQueue.forEach(function($){r.saveDirtyAABB($)}),r.renderQueue=[]}r.restoreStack.forEach(function(){v.restore()}),r.restoreStack=[]}),o.hooks.render.tap(t.tag,function(v){r.clearFullScreen||r.renderQueue.push(v)})},t.prototype.clearRect=function(e,n,r,i,a,o){e.clearRect(n,r,i,a),o&&(e.fillStyle=o,e.fillRect(n,r,i,a))},t.prototype.renderDisplayObject=function(e,n,r,i,a){var o=e.nodeName,s=i[i.length-1];s&&!(e.compareDocumentPosition(s)&_e.DOCUMENT_POSITION_CONTAINS)&&(n.restore(),i.pop());var c=this.context.styleRendererFactory[o],l=this.pathGeneratorFactory[o],u=e.parsedStyle.clipPath;if(u){this.applyWorldTransform(n,u);var f=this.pathGeneratorFactory[u.nodeName];f&&(n.save(),i.push(e),n.beginPath(),f(n,u.parsedStyle),n.closePath(),n.clip())}c&&(this.applyWorldTransform(n,e),n.save(),this.applyAttributesToContext(n,e)),l&&(n.beginPath(),l(n,e.parsedStyle),e.nodeName!==G.LINE&&e.nodeName!==G.PATH&&e.nodeName!==G.POLYLINE&&n.closePath()),c&&(c.render(n,e.parsedStyle,e,r,this,a),n.restore()),e.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(e){var n=e.getMin(),r=e.getMax(),i=Math.floor(n[0]),a=Math.floor(n[1]),o=Math.ceil(r[0]),s=Math.ceil(r[1]),c=o-i,l=s-a;return{x:i,y:a,width:c,height:l}},t.prototype.mergeDirtyAABBs=function(e){var n=new be;return e.forEach(function(r){var i=r.getRenderBounds();n.add(i);var a=r.renderable.dirtyRenderBounds;a&&n.add(a)}),n},t.prototype.searchDirtyObjects=function(e){var n=N(e.getMin(),2),r=n[0],i=n[1],a=N(e.getMax(),2),o=a[0],s=a[1],c=this.rBush.search({minX:r,minY:i,maxX:o,maxY:s});return c.map(function(l){var u=l.displayObject;return u})},t.prototype.saveDirtyAABB=function(e){var n=e.renderable;n.dirtyRenderBounds||(n.dirtyRenderBounds=new be);var r=e.getRenderBounds();r&&n.dirtyRenderBounds.update(r.center,r.halfExtents)},t.prototype.applyAttributesToContext=function(e,n){var r=n.parsedStyle,i=r.stroke,a=r.fill,o=r.opacity,s=r.lineDash,c=r.lineDashOffset;s&&e.setLineDash(s),nt(c)||(e.lineDashOffset=c),nt(o)||(e.globalAlpha*=o),!nt(i)&&!Array.isArray(i)&&!i.isNone&&(e.strokeStyle=n.attributes.stroke),!nt(a)&&!Array.isArray(a)&&!a.isNone&&(e.fillStyle=n.attributes.fill)},t.prototype.applyWorldTransform=function(e,n,r){var i=0,a=0,o=(n.parsedStyle||{}).anchor,s=o&&o[0]||0,c=o&&o[1]||0;if(s!==0||c!==0){var l=n.geometry.contentBounds,u=l&&l.halfExtents[0]*2||0,f=l&&l.halfExtents[1]*2||0;i=-(s*u),a=-(c*f)}r?(Ri(this.tmpMat4,n.getLocalTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,Ur(this.tmpMat4,this.tmpMat4,this.vec3a),$e(this.tmpMat4,r,this.tmpMat4),$e(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(Ri(this.tmpMat4,n.getWorldTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,Ur(this.tmpMat4,this.tmpMat4,this.vec3a),$e(this.tmpMat4,this.vpMatrix,this.tmpMat4)),e.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var e=[],n=0;n0,S=s.alpha===0,_=!!(b&&b.length),M=!nt(y)&&m>0,E=r.nodeName,P=g==="inner",T=O&&M&&(E===G.PATH||E===G.LINE||E===G.POLYLINE||S||P);w&&(e.globalAlpha=l*u,T||Zl(r,e,M),this.fill(e,r,s,c,i,a,o),T||this.clearShadowAndFilter(e,_,M)),O&&(e.globalAlpha=l*d,e.lineWidth=h,nt(x)||(e.miterLimit=x),nt(p)||(e.lineCap=p),nt(v)||(e.lineJoin=v),T&&(P&&(e.globalCompositeOperation="source-atop"),Zl(r,e,!0),P&&(this.stroke(e,r,f,i,a,o),e.globalCompositeOperation="source-over",this.clearShadowAndFilter(e,_,!0))),this.stroke(e,r,f,i,a,o))},t.prototype.clearShadowAndFilter=function(e,n,r){if(r&&(e.shadowColor="transparent",e.shadowBlur=0),n){var i=e.filter;!nt(i)&&i.indexOf("drop-shadow")>-1&&(e.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t.prototype.fill=function(e,n,r,i,a,o,s){var c=this;Array.isArray(r)?r.forEach(function(l){e.fillStyle=c.getColor(l,n,e),i?e.fill(i):e.fill()}):(hs(r)&&(e.fillStyle=this.getPattern(r,n,e,a,o,s)),i?e.fill(i):e.fill())},t.prototype.stroke=function(e,n,r,i,a,o){var s=this;Array.isArray(r)?r.forEach(function(c){e.strokeStyle=s.getColor(c,n,e),e.stroke()}):(hs(r)&&(e.strokeStyle=this.getPattern(r,n,e,i,a,o)),e.stroke())},t.prototype.getPattern=function(e,n,r,i,a,o){var s,c;if(e.image.nodeName==="rect"){var l=e.image.parsedStyle,u=l.width,f=l.height;c=i.contextService.getDPR();var d=i.config.offscreenCanvas;s=o.offscreenCanvasCreator.getOrCreateCanvas(d),s.width=u*c,s.height=f*c;var h=o.offscreenCanvasCreator.getOrCreateContext(d),p=[];e.image.forEach(function(g){a.renderDisplayObject(g,h,i,p,o)}),p.forEach(function(){h.restore()})}var v=this.imagePool.getOrCreatePatternSync(e,r,s,c,function(){n.renderable.dirty=!0,i.renderingService.dirtify()});return v},t.prototype.getColor=function(e,n,r){var i;if(e.type===rr.LinearGradient||e.type===rr.RadialGradient){var a=n.getGeometryBounds(),o=a&&a.halfExtents[0]*2||1,s=a&&a.halfExtents[1]*2||1;i=this.imagePool.getOrCreateGradient(z(z({type:e.type},e.value),{width:o,height:s}),r)}return i},t}();function Zl(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,s=r.shadowOffsetX,c=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=c||0)}var Fz=function(){function t(e){this.imagePool=e}return t.prototype.render=function(e,n,r){var i=n.width,a=n.height,o=n.img,s=n.shadowColor,c=n.shadowBlur,l,u=i,f=a;if(le(o)?l=this.imagePool.getImageSync(o):(u||(u=o.width),f||(f=o.height),l=o),l){var d=!nt(s)&&c>0;Zl(r,e,d);try{e.drawImage(l,0,0,u,f)}catch{}}},t}(),zz=function(){function t(){}return t.prototype.render=function(e,n,r,i,a,o){var s=n,c=s.lineWidth,l=s.textAlign,u=s.textBaseline,f=s.lineJoin,d=s.miterLimit,h=s.letterSpacing,p=s.stroke,v=s.fill,g=s.fillOpacity,y=s.strokeOpacity,m=s.opacity,b=s.metrics,x=s.dx,w=s.dy,O=s.shadowColor,S=s.shadowBlur,_=b.font,M=b.lines,E=b.height,P=b.lineHeight,T=b.lineMetrics;e.font=_,e.lineWidth=c,e.textAlign=l==="middle"?"center":l;var A=u;!o.enableCSSParsing&&A==="alphabetic"&&(A="bottom"),e.lineJoin=f,nt(d)||(e.miterLimit=d);var k=0;u==="middle"?k=-E/2-P/2:u==="bottom"||u==="alphabetic"||u==="ideographic"?k=-E:(u==="top"||u==="hanging")&&(k=-P);var C=x||0;k+=w||0,M.length===1&&(A==="bottom"?(A="middle",k-=.5*E):A==="top"&&(A="middle",k+=.5*E)),e.textBaseline=A;var L=!nt(O)&&S>0;Zl(r,e,L);for(var I=0;I=1?Math.ceil(i):1,this.dpr=i,this.$canvas&&(this.$canvas.width=this.dpr*e,this.$canvas.height=this.dpr*n,F4(this.$canvas,e,n)),this.renderingContext.renderReasons.add(Qr.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(e){this.$container&&this.$container.style&&(this.$container.style.cursor=e)},t.prototype.toDataURL=function(e){return e===void 0&&(e={}),ka(this,void 0,void 0,function(){var n,r;return Ta(this,function(i){return n=e.type,r=e.encoderOptions,[2,this.context.canvas.toDataURL(n,r)]})})},t}(),Qz=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.name="canvas-context-register",n}return e.prototype.init=function(){this.context.ContextService=Zz},e.prototype.destroy=function(){delete this.context.ContextService},e}(ci),IE=function(t){rt(e,t);function e(n){var r=t.call(this,n)||this;return r.registerPlugin(new Qz),r.registerPlugin(new Kz),r.registerPlugin(new bz),r.registerPlugin(new Gz),r.registerPlugin(new Wz),r.registerPlugin(new $z),r.registerPlugin(new Xz),r}return e}(eN),Jz=function(){function t(e){this.dragndropPluginOptions=e}return t.prototype.apply=function(e){var n=this,r=e.renderingService,i=e.renderingContext,a=i.root.ownerDocument,o=a.defaultView,s=function(c){var l=c.target,u=l===a,f=u&&n.dragndropPluginOptions.isDocumentDraggable?a:l.closest&&l.closest("[draggable=true]");if(f){var d=!1,h=c.timeStamp,p=[c.clientX,c.clientY],v=null,g=[c.clientX,c.clientY],y=function(b){return ka(n,void 0,void 0,function(){var x,w,O,S,_,M;return Ta(this,function(E){switch(E.label){case 0:if(!d){if(x=b.timeStamp-h,w=nn([b.clientX,b.clientY],p),x<=this.dragndropPluginOptions.dragstartTimeThreshold||w<=this.dragndropPluginOptions.dragstartDistanceThreshold)return[2];b.type="dragstart",f.dispatchEvent(b),d=!0}return b.type="drag",b.dx=b.clientX-g[0],b.dy=b.clientY-g[1],f.dispatchEvent(b),g=[b.clientX,b.clientY],u?[3,2]:(O=this.dragndropPluginOptions.overlap==="pointer"?[b.canvasX,b.canvasY]:l.getBounds().center,[4,a.elementsFromPoint(O[0],O[1])]);case 1:S=E.sent(),_=S[S.indexOf(l)+1],M=(_==null?void 0:_.closest("[droppable=true]"))||(this.dragndropPluginOptions.isDocumentDroppable?a:null),v!==M&&(v&&(b.type="dragleave",b.target=v,v.dispatchEvent(b)),M&&(b.type="dragenter",b.target=M,M.dispatchEvent(b)),v=M,v&&(b.type="dragover",b.target=v,v.dispatchEvent(b))),E.label=2;case 2:return[2]}})})};o.addEventListener("pointermove",y);var m=function(b){if(d){b.detail={preventClick:!0};var x=b.clone();v&&(x.type="drop",x.target=v,v.dispatchEvent(x)),x.type="dragend",f.dispatchEvent(x),d=!1}o.removeEventListener("pointermove",y)};l.addEventListener("pointerup",m,{once:!0}),l.addEventListener("pointerupoutside",m,{once:!0})}};r.hooks.init.tap(t.tag,function(){o.addEventListener("pointerdown",s)}),r.hooks.destroy.tap(t.tag,function(){o.removeEventListener("pointerdown",s)})},t.tag="Dragndrop",t}(),jE=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=t.call(this)||this;return r.options=n,r.name="dragndrop",r}return e.prototype.init=function(){this.addRenderingPlugin(new Jz(z({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},e.prototype.destroy=function(){this.removeAllRenderingPlugins()},e.prototype.setOptions=function(n){Object.assign(this.plugins[0].dragndropPluginOptions,n)},e}(ci),tG="*",DE=function(){function t(){this._events={}}return t.prototype.on=function(e,n,r){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:n,once:!!r}),this},t.prototype.once=function(e,n){return this.on(e,n,!0)},t.prototype.emit=function(e){for(var n=this,r=[],i=1;i0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},HE=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;rn;)t-=Math.PI*2;return t}var dG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},hG=function(t,e,n,r,i){var a=dG(t,2),o=a[0],s=a[1],c=Ja();return Vk(c,[o,s])},l1=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},pG=function(t,e,n,r,i){var a=new Yt({range:[e,e+r]}),o=new Yt({range:[n,n+i]});return{transform:function(s){var c=l1(s,2),l=c[0],u=c[1];return[a.map(l),o.map(u)]},untransform:function(s){var c=l1(s,2),l=c[0],u=c[1];return[a.invert(l),o.invert(u)]}}},vG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},gG=function(t,e,n,r,i){var a=vG(t,1),o=a[0];return o(e,n,r,i)},yG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},mG=function(t,e,n,r,i){var a=yG(t,1),o=a[0];return o},dd=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},bG=function(t,e,n,r,i){var a=dd(t,4),o=a[0],s=a[1],c=a[2],l=a[3],u=new Yt({range:[c,l]}),f=new Yt({range:[o,s]}),d=i/r,h=d>1?1:d,p=d>1?1/d:1;return{transform:function(v){var g=dd(v,2),y=g[0],m=g[1],b=f.map(y),x=u.map(m),w=x*Math.cos(b)*h,O=x*Math.sin(b)*p,S=w*.5+.5,_=O*.5+.5;return[S,_]},untransform:function(v){var g=dd(v,2),y=g[0],m=g[1],b=(y-.5)*2/h,x=(m-.5)*2/p,w=Math.sqrt(Math.pow(b,2)+Math.pow(x,2)),O=Math.atan2(x,b),S=VE(O,o,s),_=f.invert(S),M=u.invert(w);return[_,M]}}},u1=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},xG=function(t,e,n,r,i){return{transform:function(a){var o=u1(a,2),s=o[0],c=o[1];return[c,s]},untransform:function(a){var o=u1(a,2),s=o[0],c=o[1];return[c,s]}}},wG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},rf=function(t,e,n,r,i){var a=wG(t,2),o=a[0],s=a[1],c=Ja();return Uk(c,[o,s])},G0=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Y0=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},EG=function(t,e,n,r,i){var a=MG(t,1),o=a[0],s=Ja();return Xk(s,o)},hd=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},PG=function(t,e,n,r,i){var a=hd(t,4),o=a[0],s=a[1],c=a[2],l=a[3],u=(s-0)/(2*Math.PI)+1,f=(l-c)/u,d=f/(Math.PI*2),h=new Yt({range:[c,c+f*.99]}),p=new Yt({range:[o,s]}),v=i/r,g=v>1?1:v,y=v>1?1/v:1;return{transform:function(m){var b=hd(m,2),x=b[0],w=b[1],O=p.map(x),S=h.map(w),_=Math.cos(O)*(d*O+S)*g,M=Math.sin(O)*(d*O+S)*y,E=_*.5+.5,P=M*.5+.5;return[E,P]},untransform:function(m){var b=hd(m,2),x=b[0],w=b[1],O=(x-.5)*2/g,S=(w-.5)*2/y,_=Math.sqrt(Math.pow(O,2)+Math.pow(S,2)),M=Math.atan2(S,O)+Math.floor(_/f)*Math.PI*2,E=VE(M,o,s),P=_-d*E,T=p.invert(E),A=h.invert(P);return[T,A]}}},AG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},kG=function(t,e,n,r,i){var a=AG(t,4),o=a[0],s=a[1],c=a[2],l=a[3],u=new Yt({range:[c,l]});return{transform:function(f){for(var d=[],h=f.length,p=new l2({domain:new Array(h).fill(0).map(function(b,x){return x}),range:[o,s]}),v=0;v0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function XE(t){return 1/Math.tan(t)}var TG=function(t,e,n,r,i){var a=_a(t,1),o=a[0],s=XE(o);return{transform:function(c){var l=_a(c,2),u=l[0],f=l[1],d=u+f*s;return[d,f]},untransform:function(c){var l=_a(c,2),u=l[0],f=l[1],d=u-f*s;return[d,f]}}},CG=function(t,e,n,r,i){var a=_a(t,1),o=a[0],s=XE(o);return{transform:function(c){var l=_a(c,2),u=l[0],f=l[1],d=f+u*s;return[u,d]},untransform:function(c){var l=_a(c,2),u=l[0],f=l[1],d=f-u*s;return[u,d]}}},Ln=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function Os(t,e,n,r,i){var a=tc)return[m,b];var S=Os(O,0,l,0,c),_=Math.atan2(w,x),M=p+S*Math.cos(_),E=v+S*Math.sin(_);return[d.invert(M),h.invert(E)]},untransform:function(g){var y=Ln(g,2),m=y[0],b=y[1],x=d.map(m)-p,w=h.map(b)-v,O=Math.sqrt(x*x+w*w);if(O>c)return[m,b];var S=Ss(O,0,l,0,c),_=Math.atan2(w,x),M=p+S*Math.cos(_),E=v+S*Math.sin(_);return[d.invert(M),h.invert(E)]}}},f1=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},jG=function(t,e,n,r,i,a,o){var s=new Yt({range:[e,e+i]}),c=new Yt({range:[n,n+a]}),l=new Yt({range:[r,r+o]});return{transform:function(u){var f=f1(u,3),d=f[0],h=f[1],p=f[2];return[s.map(d),c.map(h),l.map(p)]},untransform:function(u){var f=f1(u,3),d=f[0],h=f[1],p=f[2];return[s.invert(d),c.invert(h),l.invert(p)]}}},DG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},$G=function(t,e,n,r,i,a,o){var s=DG(t,3),c=s[0],l=s[1],u=s[2];return up(Nt(),[c,l,u])},d1=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},BG=function(t,e,n,r,i,a,o){return{transform:function(s){var c=d1(s,3),l=c[0],u=c[1],f=c[2];return[u,l,f]},untransform:function(s){var c=d1(s,3),l=c[0],u=c[1],f=c[2];return[u,l,f]}}},FG=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},zG=function(t,e,n,r,i,a,o){var s=FG(t,3),c=s[0],l=s[1],u=s[2];return fp(Nt(),[c,l,u])},ia=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},aa=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},YG=function(){function t(e){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:pG,translate:hG,custom:gG,matrix:mG,polar:bG,transpose:xG,scale:rf,"shear.x":TG,"shear.y":CG,reflect:OG,"reflect.x":SG,"reflect.y":_G,rotate:EG,helix:PG,parallel:kG,fisheye:RG,"fisheye.x":LG,"fisheye.y":NG,"fisheye.circular":IG},this.update(e)}return t.prototype.update=function(e){this.options=zE({},this.options,e),this.recoordinate()},t.prototype.clone=function(){return new t(this.options)},t.prototype.getOptions=function(){return this.options},t.prototype.clear=function(){this.update({transformations:[]})},t.prototype.getSize=function(){var e=this.options,n=e.width,r=e.height;return[n,r]},t.prototype.getCenter=function(){var e=this.options,n=e.x,r=e.y,i=e.width,a=e.height;return[(n*2+i)/2,(r*2+a)/2]},t.prototype.transform=function(){for(var e=[],n=0;n0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},sa=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},HG=function(){function t(e){this.options={x:0,y:0,z:0,width:300,height:150,depth:150,transformations:[]},this.transformers={cartesian3D:jG,translate3D:$G,scale3D:zG,transpose3D:BG},this.update(e)}return t.prototype.update=function(e){this.options=zE({},this.options,e),this.recoordinate()},t.prototype.clone=function(){return new t(this.options)},t.prototype.getOptions=function(){return this.options},t.prototype.clear=function(){this.update({transformations:[]})},t.prototype.getSize=function(){var e=this.options,n=e.width,r=e.height,i=e.depth;return[n,r,i]},t.prototype.getCenter=function(){var e=this.options,n=e.x,r=e.y,i=e.z,a=e.width,o=e.height,s=e.depth;return[(n*2+a)/2,(r*2+o)/2,(i*2+s)/2]},t.prototype.transform=function(){for(var e=[],n=0;nX({},t(e,...n),e)}function so(t){return(e,...n)=>X({},e,t(e,...n))}function W0(t,e){if(!t)return e;if(Array.isArray(t))return t;const{value:n=e}=t,r=VG(t,["value"]);return Object.assign(Object.assign({},r),{value:n})}var XG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(s=>{var{data:c,x:l,y:u,width:f,height:d}=s,h=XG(s,["data","x","y","width","height"]);return Object.assign(Object.assign({},h),{data:W0(c,o),x:l??n,y:u??r,width:f??i,height:d??a})})};UE.props={};var UG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,s,c,l]=n==="col"?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((v,g)=>v+g),f=t[s]-i*(e.length-1),d=r.map(v=>f*(v/u)),h=[];let p=t[o]||0;for(let v=0;vt=>{const{children:e}=t,n=pd(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={},axis:a={},legend:o={},encode:s={},transform:c=[]}=n,l=pd(n,["data","scale","axis","legend","encode","transform"]),u=e.map(f=>{var{data:d,scale:h={},axis:p={},legend:v={},encode:g={},transform:y=[]}=f,m=pd(f,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:W0(d,r),scale:X({},i,h),encode:X({},s,g),transform:[...c,...y],axis:p&&a?X({},a,p):!1,legend:v&&o?X({},o,v):!1},m)});return[Object.assign(Object.assign({},l),{marks:u,type:"standardView"})]};KE.props={};var qG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie=>{const{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:s,paddingBottom:c,padding:l,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,data:x,coordinate:w,theme:O,component:S,interaction:_,x:M,y:E,z:P,key:T,frame:A,labelTransform:k,parentKey:C,clip:L,viewStyle:I,title:R}=e,j=qG(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:M,y:E,z:P,key:T,width:n,height:r,depth:i,padding:l,paddingLeft:a,paddingRight:o,paddingTop:s,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:c,theme:O,coordinate:w,component:S,interaction:_,frame:A,labelTransform:k,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,parentKey:C,clip:L,style:I},!t&&{title:R}),{marks:[Object.assign(Object.assign(Object.assign({},j),{key:`${T}-0`,data:x}),t&&{title:R})]})]};ZE.props={};class ec{constructor(e){this.$value=e}static of(e){return new ec(e)}call(e,...n){return this.$value=e(this.$value,...n),this}value(){return this.$value}}var KG=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,s=(c,l)=>{var u;if(c===void 0||!i)return{};const f=te(n,p=>p[c]),d=((u=r==null?void 0:r[l])===null||u===void 0?void 0:u.domain)||Array.from(f.keys()),h=d.map(p=>f.has(p)?f.get(p).length:1);return{domain:d,flex:h}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:a===void 0?null:{position:"top"}},a===void 0&&{paddingInner:0}),s(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:o===void 0?null:{position:"right"}},o===void 0&&{paddingInner:0}),s(o,"y"))}}}),H0=oo(t=>{const{data:e,scale:n}=t,r=[t];let i,a,o;for(;r.length;){const f=r.shift(),{children:d,encode:h={},scale:p={},legend:v={}}=f,{color:g}=h,{color:y}=p,{color:m}=v;g!==void 0&&(i=g),y!==void 0&&(a=y),m!==void 0&&(o=m),Array.isArray(d)&&r.push(...d)}const s=()=>{var f;const d=(f=n==null?void 0:n.color)===null||f===void 0?void 0:f.domain;if(d!==void 0)return[d];if(i===void 0)return[void 0];const h=typeof i=="function"?i:v=>v[i],p=e.map(h);return p.some(v=>typeof v=="number")?[Mr(p)]:[Array.from(new Set(p)),"ordinal"]},c=typeof i=="string"?i:"",[l,u]=s();return{encode:{color:i},scale:{color:X({},a,{domain:l,type:u})},legend:{color:X({title:c},o)}}}),V0=oo(()=>({animate:{enterType:"fadeIn"}})),X0=so(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),U0=so(()=>({type:"cell"})),QE=so(t=>{const{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{const{data:r,encode:i}=t,{x:a,y:o}=i,s=a?Array.from(new Set(r.map(u=>u[a]))):[],c=o?Array.from(new Set(r.map(u=>u[o]))):[];return(()=>{if(s.length&&c.length){const u=[];for(const f of s)for(const d of c)u.push({[a]:f,[o]:d});return u}if(s.length)return s.map(u=>({[a]:u}));if(c.length)return c.map(u=>({[o]:u}))})()}}]}}}),JE=so((t,e=QG,n=JG,r=tY,i={})=>{const{data:a,encode:o,children:s,scale:c,x:l=0,y:u=0,shareData:f=!1,key:d}=t,{value:h}=a,{x:p,y:v}=o,{color:g}=c,{domain:y}=g;return{children:(b,x,w)=>{const{x:O,y:S}=x,{paddingLeft:_,paddingTop:M,marginLeft:E,marginTop:P}=w,{domain:T}=O.getOptions(),{domain:A}=S.getOptions(),k=Ui(b),C=b.map(e),L=b.map(({x:B,y:F})=>[O.invert(B),S.invert(F)]),R=L.map(([B,F])=>Y=>{const{[p]:U,[v]:K}=Y;return(p!==void 0?U===B:!0)&&(v!==void 0?K===F:!0)}).map(B=>h.filter(B)),j=f?Ct(R,B=>B.length):void 0,D=L.map(([B,F])=>({columnField:p,columnIndex:T.indexOf(B),columnValue:B,columnValuesLength:T.length,rowField:v,rowIndex:A.indexOf(F),rowValue:F,rowValuesLength:A.length})),$=D.map(B=>Array.isArray(s)?s:[s(B)].flat(1));return k.flatMap(B=>{const[F,Y,U,K]=C[B],V=D[B],W=R[B];return $[B].map(et=>{var it,ct,{scale:ot,key:lt,facet:xt=!0,axis:Et={},legend:Xt={}}=et,ue=KG(et,["scale","key","facet","axis","legend"]);const Ke=((it=ot==null?void 0:ot.y)===null||it===void 0?void 0:it.guide)||Et.y,vr=((ct=ot==null?void 0:ot.x)===null||ct===void 0?void 0:ct.guide)||Et.x,gi={x:{tickCount:p?5:void 0},y:{tickCount:v?5:void 0}},Ge=xt?W:W.length===0?[]:h,wn={color:{domain:y}},_t={x:h1(vr,n)(V,Ge),y:h1(Ke,r)(V,Ge)};return Object.assign(Object.assign({key:`${lt}-${B}`,data:Ge,margin:0,x:F+_+l+E,y:Y+M+u+P,parentKey:d,width:U,height:K,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!Ge.length,dataDomain:j,scale:X(gi,ot,wn),axis:X({},Et,_t),legend:!1},ue),i)})})}}});function QG(t){const{points:e}=t;return kp(e)}function af(t,e){return e.length?X({title:!1,tick:null,label:null},t):X({title:!1,tick:null,label:null,grid:null},t)}function JG(t){return(e,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return af(t,n);const s=a!==o-1?!1:void 0,c=n.length?void 0:null;return X({title:s,grid:c},t)}}function tY(t){return(e,n)=>{const{rowIndex:r,columnIndex:i}=e;if(i!==0)return af(t,n);const a=r!==0?!1:void 0,o=n.length?void 0:null;return X({title:a,grid:o},t)}}function h1(t,e){return typeof t=="function"?t:t===null||t===!1?()=>null:e(t)}const tP=()=>t=>[ec.of(t).call(U0).call(H0).call(V0).call(ZG).call(X0).call(QE).call(JE).value()];tP.props={};var Nh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),nY=so(t=>{const{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(s,c,l)=>{const{x:u,y:f}=c,{paddingLeft:d,paddingTop:h,marginLeft:p,marginTop:v}=l,{domain:g}=u.getOptions(),{domain:y}=f.getOptions(),m=Ui(s),b=s.map(({points:S})=>kp(S)),x=s.map(({x:S,y:_})=>[u.invert(S),f.invert(_)]),w=x.map(([S,_])=>({columnField:S,columnIndex:g.indexOf(S),columnValue:S,columnValuesLength:g.length,rowField:_,rowIndex:y.indexOf(_),rowValue:_,rowValuesLength:y.length})),O=w.map(S=>Array.isArray(n)?n:[n(S)].flat(1));return m.flatMap(S=>{const[_,M,E,P]=b[S],[T,A]=x[S],k=w[S];return O[S].map(L=>{var I,R;const{scale:j,key:D,encode:$,axis:B,interaction:F}=L,Y=Nh(L,["scale","key","encode","axis","interaction"]),U=(I=j==null?void 0:j.y)===null||I===void 0?void 0:I.guide,K=(R=j==null?void 0:j.x)===null||R===void 0?void 0:R.guide,V={x:{facet:!1},y:{facet:!1}},W={x:iY(K)(k,e),y:aY(U)(k,e)},J={x:{tickCount:5},y:{tickCount:5}};return Object.assign({data:e,parentKey:a,key:`${D}-${S}`,x:_+d+r+p,y:M+h+i+v,width:E,height:P,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:X(V,j),axis:X(J,B,W),legend:!1,encode:X({},$,{x:T,y:A}),interaction:X({},F,{legendFilter:!1})},Y)})})}}}),rY=so(t=>{const{encode:e}=t,n=Nh(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=Nh(e,["position","x","y"]),s=[];for(const c of[i].flat(1))for(const l of[a].flat(1))s.push({$x:c,$y:l});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},[i].flat(1).length===1&&{x:{paddingInner:0}}),[a].flat(1).length===1&&{y:{paddingInner:0}})})});function iY(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{rowIndex:r,rowValuesLength:i}=e;if(r!==i-1)return af(t,n)}}function aY(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{columnIndex:r}=e;if(r!==0)return af(t,n)}}const oY=()=>t=>[ec.of(t).call(U0).call(H0).call(nY).call(rY).call(V0).call(X0).call(eY).value()];var sY=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),lY=oo(t=>({coordinate:{type:"polar"}})),uY=t=>{const{encode:e}=t,n=sY(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function p1(t){return e=>null}function fY(t){const{points:e}=t,[n,r,i,a]=e,o=Jt(n,a),s=se(n,a),c=se(r,i),l=B2(s,c),u=1/Math.sin(l/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=ja(s)+l/2,y=f*u,m=h+y*Math.sin(g),b=p-y*Math.cos(g);return[m-d/2,b-d/2,d,d]}const dY=()=>t=>[ec.of(t).call(U0).call(uY).call(H0).call(lY).call(QE).call(JE,fY,p1,p1,{frame:!1}).call(V0).call(X0).call(cY).value()];function hY(t,e,n){const i=n,a=[0,i],o=[-i+1,1];if(t==="normal")return a;if(t==="reverse")return o;if(t==="alternate")return e%2===0?a:o;if(t==="reverse-alternate")return e%2===0?o:a}function pY(t,e,n){const r=[t];for(;r.length;){const i=r.pop();i.animate=X({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},i.animate||{});const{children:a}=i;Array.isArray(a)&&r.push(...a)}return t}const eP=()=>t=>{const{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||o===0)return[];const{key:s}=e[0],c=e.map(l=>Object.assign(Object.assign({},l),{key:s})).map(l=>pY(l,n,a));return function*(){let l=0,u;for(;r==="infinite"||lt=>{const{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:s,state:c}=t,l=vY(t,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},l),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:i,style:a,animate:o,state:c}]})]};nP.props={};var ut=1e-6,rP=1e-12,wt=Math.PI,fe=wt/2,v1=wt/4,xn=wt*2,De=180/wt,ae=wt/180,At=Math.abs,co=Math.atan,Ir=Math.atan2,mt=Math.cos,Fc=Math.ceil,iP=Math.exp,Jl=Math.log,vd=Math.pow,pt=Math.sin,kn=Math.sign||function(t){return t>0?1:t<0?-1:0},cn=Math.sqrt,q0=Math.tan;function aP(t){return t>1?0:t<-1?wt:Math.acos(t)}function In(t){return t>1?fe:t<-1?-fe:Math.asin(t)}function Tn(){}function tu(t,e){t&&y1.hasOwnProperty(t.type)&&y1[t.type](t,e)}var g1={Feature:function(t,e){tu(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rwt&&(t-=Math.round(t/xn)*xn),[t,e]}$h.invert=$h;function oP(t,e,n){return(t%=xn)?e||n?Dh(x1(t),w1(e,n)):x1(t):e||n?w1(e,n):$h}function b1(t){return function(e,n){return e+=t,At(e)>wt&&(e-=Math.round(e/xn)*xn),[e,n]}}function x1(t){var e=b1(t);return e.invert=b1(-t),e}function w1(t,e){var n=mt(t),r=pt(t),i=mt(e),a=pt(e);function o(s,c){var l=mt(c),u=mt(s)*l,f=pt(s)*l,d=pt(c),h=d*n+u*r;return[Ir(f*i-h*a,u*n-d*r),In(h*i+f*a)]}return o.invert=function(s,c){var l=mt(c),u=mt(s)*l,f=pt(s)*l,d=pt(c),h=d*i-f*a;return[Ir(f*i+d*a,u*n+h*r),In(h*n-u*r)]},o}function gY(t){t=oP(t[0]*ae,t[1]*ae,t.length>2?t[2]*ae:0);function e(n){return n=t(n[0]*ae,n[1]*ae),n[0]*=De,n[1]*=De,n}return e.invert=function(n){return n=t.invert(n[0]*ae,n[1]*ae),n[0]*=De,n[1]*=De,n},e}function yY(t,e,n,r,i,a){if(n){var o=mt(e),s=pt(e),c=r*n;i==null?(i=e+r*xn,a=e-c/2):(i=O1(o,i),a=O1(o,a),(r>0?ia)&&(i+=r*xn));for(var l,u=i;r>0?u>a:u1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function ll(t,e){return At(t[0]-e[0])=0;--s)i.point((f=u[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,u=d.z,h=!h}while(!d.v);i.lineEnd()}}}function S1(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n=0?1:-1,E=M*_,P=E>wt,T=g*O;if(c.add(Ir(T*M*pt(E),y*S+T*mt(E))),o+=P?_+M*xn:_,P^p>=n^x>=n){var A=eu(Ua(h),Ua(b));jh(A);var k=eu(a,A);jh(k);var C=(P^_>=0?-1:1)*In(k[2]);(r>C||r===C&&(A[0]||A[1]))&&(s+=P^_>=0?1:-1)}}return(o<-ut||o0){for(c||(i.polygonStart(),c=!0),i.lineStart(),O=0;O<_;++O)i.point((E=M[O])[0],E[1]);i.lineEnd()}return}S>1&&x&2&&w.push(w.pop().concat(w.shift())),u.push(w.filter(bY))}}return d}}function bY(t){return t.length>1}function xY(t,e){return((t=t.x)[0]<0?t[1]-fe-ut:fe-t[1])-((e=e.x)[0]<0?e[1]-fe-ut:fe-e[1])}const _1=lP(function(){return!0},wY,SY,[-wt,-fe]);function wY(t){var e=NaN,n=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(a,o){var s=a>0?wt:-wt,c=At(a-e);At(c-wt)0?fe:-fe),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),i=0):r!==s&&c>=wt&&(At(e-r)ut?co((pt(e)*(a=mt(r))*pt(n)-pt(r)*(i=mt(e))*pt(t))/(i*a*o)):(e+r)/2}function SY(t,e,n,r){var i;if(t==null)i=n*fe,r.point(-wt,i),r.point(0,i),r.point(wt,i),r.point(wt,0),r.point(wt,-i),r.point(0,-i),r.point(-wt,-i),r.point(-wt,0),r.point(-wt,i);else if(At(t[0]-e[0])>ut){var a=t[0]0,i=At(e)>ut;function a(u,f,d,h){yY(h,t,n,d,u,f)}function o(u,f){return mt(u)*mt(f)>e}function s(u){var f,d,h,p,v;return{lineStart:function(){p=h=!1,v=1},point:function(g,y){var m=[g,y],b,x=o(g,y),w=r?x?0:l(g,y):x?l(g+(g<0?wt:-wt),y):0;if(!f&&(p=h=x)&&u.lineStart(),x!==h&&(b=c(f,m),(!b||ll(f,b)||ll(m,b))&&(m[2]=1)),x!==h)v=0,x?(u.lineStart(),b=c(m,f),u.point(b[0],b[1])):(b=c(f,m),u.point(b[0],b[1],2),u.lineEnd()),f=b;else if(i&&f&&r^x){var O;!(w&d)&&(O=c(m,f,!0))&&(v=0,r?(u.lineStart(),u.point(O[0][0],O[0][1]),u.point(O[1][0],O[1][1]),u.lineEnd()):(u.point(O[1][0],O[1][1]),u.lineEnd(),u.lineStart(),u.point(O[0][0],O[0][1],3)))}x&&(!f||!ll(f,m))&&u.point(m[0],m[1]),f=m,h=x,d=w},lineEnd:function(){h&&u.lineEnd(),f=null},clean:function(){return v|(p&&h)<<1}}}function c(u,f,d){var h=Ua(u),p=Ua(f),v=[1,0,0],g=eu(h,p),y=zc(g,g),m=g[0],b=y-m*m;if(!b)return!d&&u;var x=e*y/b,w=-e*m/b,O=eu(v,g),S=Gc(v,x),_=Gc(g,w);gd(S,_);var M=O,E=zc(S,M),P=zc(M,M),T=E*E-P*(zc(S,S)-1);if(!(T<0)){var A=cn(T),k=Gc(M,(-E-A)/P);if(gd(k,S),k=Ih(k),!d)return k;var C=u[0],L=f[0],I=u[1],R=f[1],j;L0^k[1]<(At(k[0]-C)wt^(C<=k[0]&&k[0]<=L)){var F=Gc(M,(-E+A)/P);return gd(F,S),[k,Ih(F)]}}}function l(u,f){var d=r?t:wt-t,h=0;return u<-d?h|=1:u>d&&(h|=2),f<-d?h|=4:f>d&&(h|=8),h}return lP(o,s,a,r?[0,-t]:[-wt,t-wt])}function MY(t,e,n,r,i,a){var o=t[0],s=t[1],c=e[0],l=e[1],u=0,f=1,d=c-o,h=l-s,p;if(p=n-o,!(!d&&p>0)){if(p/=d,d<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=i-o,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>u&&(u=p)}else if(d>0){if(p0)){if(p/=h,h<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=a-s,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>u&&(u=p)}else if(h>0){if(p0&&(t[0]=o+u*d,t[1]=s+u*h),f<1&&(e[0]=o+f*d,e[1]=s+f*h),!0}}}}}var Io=1e9,Wc=-Io;function uP(t,e,n,r){function i(l,u){return t<=l&&l<=n&&e<=u&&u<=r}function a(l,u,f,d){var h=0,p=0;if(l==null||(h=o(l,f))!==(p=o(u,f))||c(l,u)<0^f>0)do d.point(h===0||h===3?t:n,h>1?r:e);while((h=(h+f+4)%4)!==p);else d.point(u[0],u[1])}function o(l,u){return At(l[0]-t)0?0:3:At(l[0]-n)0?2:1:At(l[1]-e)0?1:0:u>0?3:2}function s(l,u){return c(l.x,u.x)}function c(l,u){var f=o(l,1),d=o(u,1);return f!==d?f-d:f===0?u[1]-l[1]:f===1?l[0]-u[0]:f===2?l[1]-u[1]:u[0]-l[0]}return function(l){var u=l,f=sP(),d,h,p,v,g,y,m,b,x,w,O,S={point:_,lineStart:T,lineEnd:A,polygonStart:E,polygonEnd:P};function _(C,L){i(C,L)&&u.point(C,L)}function M(){for(var C=0,L=0,I=h.length;Lr&&(Y-B)*(r-F)>(U-F)*(t-B)&&++C:U<=r&&(Y-B)*(r-F)<(U-F)*(t-B)&&--C;return C}function E(){u=f,d=[],h=[],O=!0}function P(){var C=M(),L=O&&C,I=(d=px(d)).length;(L||I)&&(l.polygonStart(),L&&(l.lineStart(),a(null,null,1,l),l.lineEnd()),I&&cP(d,s,C,a,l),l.polygonEnd()),u=l,d=h=p=null}function T(){S.point=k,h&&h.push(p=[]),w=!0,x=!1,m=b=NaN}function A(){d&&(k(v,g),y&&x&&f.rejoin(),d.push(f.result())),S.point=_,x&&u.lineEnd()}function k(C,L){var I=i(C,L);if(h&&p.push([C,L]),w)v=C,g=L,y=I,w=!1,I&&(u.lineStart(),u.point(C,L));else if(I&&x)u.point(C,L);else{var R=[m=Math.max(Wc,Math.min(Io,m)),b=Math.max(Wc,Math.min(Io,b))],j=[C=Math.max(Wc,Math.min(Io,C)),L=Math.max(Wc,Math.min(Io,L))];MY(R,j,t,e,n,r)?(x||(u.lineStart(),u.point(R[0],R[1])),u.point(j[0],j[1]),I||u.lineEnd(),O=!1):I&&(u.lineStart(),u.point(C,L),O=!1)}m=C,b=L,x=I}return S}}function M1(t,e,n){var r=pa(t,e-ut,n).concat(e);return function(i){return r.map(function(a){return[i,a]})}}function E1(t,e,n){var r=pa(t,e-ut,n).concat(e);return function(i){return r.map(function(a){return[a,i]})}}function EY(){var t,e,n,r,i,a,o,s,c=10,l=c,u=90,f=360,d,h,p,v,g=2.5;function y(){return{type:"MultiLineString",coordinates:m()}}function m(){return pa(Fc(r/u)*u,n,u).map(p).concat(pa(Fc(s/f)*f,o,f).map(v)).concat(pa(Fc(e/c)*c,t,c).filter(function(b){return At(b%u)>ut}).map(d)).concat(pa(Fc(a/l)*l,i,l).filter(function(b){return At(b%f)>ut}).map(h))}return y.lines=function(){return m().map(function(b){return{type:"LineString",coordinates:b}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(v(o).slice(1),p(n).reverse().slice(1),v(s).reverse().slice(1))]}},y.extent=function(b){return arguments.length?y.extentMajor(b).extentMinor(b):y.extentMinor()},y.extentMajor=function(b){return arguments.length?(r=+b[0][0],n=+b[1][0],s=+b[0][1],o=+b[1][1],r>n&&(b=r,r=n,n=b),s>o&&(b=s,s=o,o=b),y.precision(g)):[[r,s],[n,o]]},y.extentMinor=function(b){return arguments.length?(e=+b[0][0],t=+b[1][0],a=+b[0][1],i=+b[1][1],e>t&&(b=e,e=t,t=b),a>i&&(b=a,a=i,i=b),y.precision(g)):[[e,a],[t,i]]},y.step=function(b){return arguments.length?y.stepMajor(b).stepMinor(b):y.stepMinor()},y.stepMajor=function(b){return arguments.length?(u=+b[0],f=+b[1],y):[u,f]},y.stepMinor=function(b){return arguments.length?(c=+b[0],l=+b[1],y):[c,l]},y.precision=function(b){return arguments.length?(g=+b,d=M1(a,i,90),h=E1(e,t,g),p=M1(s,o,90),v=E1(r,n,g),y):g},y.extentMajor([[-180,-90+ut],[180,90-ut]]).extentMinor([[-180,-80-ut],[180,80+ut]])}function PY(){return EY()()}const _s=t=>t;var md=new Ii,Bh=new Ii,fP,dP,Fh,zh,_r={point:Tn,lineStart:Tn,lineEnd:Tn,polygonStart:function(){_r.lineStart=AY,_r.lineEnd=TY},polygonEnd:function(){_r.lineStart=_r.lineEnd=_r.point=Tn,md.add(At(Bh)),Bh=new Ii},result:function(){var t=md/2;return md=new Ii,t}};function AY(){_r.point=kY}function kY(t,e){_r.point=hP,fP=Fh=t,dP=zh=e}function hP(t,e){Bh.add(zh*t-Fh*e),Fh=t,zh=e}function TY(){hP(fP,dP)}var qa=1/0,nu=qa,Ms=-qa,ru=Ms,iu={point:CY,lineStart:Tn,lineEnd:Tn,polygonStart:Tn,polygonEnd:Tn,result:function(){var t=[[qa,nu],[Ms,ru]];return Ms=ru=-(nu=qa=1/0),t}};function CY(t,e){tMs&&(Ms=t),eru&&(ru=e)}var Gh=0,Yh=0,jo=0,au=0,ou=0,ma=0,Wh=0,Hh=0,Do=0,pP,vP,tr,er,An={point:Hi,lineStart:P1,lineEnd:A1,polygonStart:function(){An.lineStart=RY,An.lineEnd=IY},polygonEnd:function(){An.point=Hi,An.lineStart=P1,An.lineEnd=A1},result:function(){var t=Do?[Wh/Do,Hh/Do]:ma?[au/ma,ou/ma]:jo?[Gh/jo,Yh/jo]:[NaN,NaN];return Gh=Yh=jo=au=ou=ma=Wh=Hh=Do=0,t}};function Hi(t,e){Gh+=t,Yh+=e,++jo}function P1(){An.point=LY}function LY(t,e){An.point=NY,Hi(tr=t,er=e)}function NY(t,e){var n=t-tr,r=e-er,i=cn(n*n+r*r);au+=i*(tr+t)/2,ou+=i*(er+e)/2,ma+=i,Hi(tr=t,er=e)}function A1(){An.point=Hi}function RY(){An.point=jY}function IY(){gP(pP,vP)}function jY(t,e){An.point=gP,Hi(pP=tr=t,vP=er=e)}function gP(t,e){var n=t-tr,r=e-er,i=cn(n*n+r*r);au+=i*(tr+t)/2,ou+=i*(er+e)/2,ma+=i,i=er*t-tr*e,Wh+=i*(tr+t),Hh+=i*(er+e),Do+=i*3,Hi(tr=t,er=e)}function yP(t){this._context=t}yP.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,xn);break}}},result:Tn};var Vh=new Ii,bd,mP,bP,$o,Bo,Es={point:Tn,lineStart:function(){Es.point=DY},lineEnd:function(){bd&&xP(mP,bP),Es.point=Tn},polygonStart:function(){bd=!0},polygonEnd:function(){bd=null},result:function(){var t=+Vh;return Vh=new Ii,t}};function DY(t,e){Es.point=xP,mP=$o=t,bP=Bo=e}function xP(t,e){$o-=t,Bo-=e,Vh.add(cn($o*$o+Bo*Bo)),$o=t,Bo=e}let k1,su,T1,C1;class L1{constructor(e){this._append=e==null?wP:$Y(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,n){switch(this._point){case 0:{this._append`M${e},${n}`,this._point=1;break}case 1:{this._append`L${e},${n}`;break}default:{if(this._append`M${e},${n}`,this._radius!==T1||this._append!==su){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,T1=r,su=this._append,C1=this._,this._=i}this._+=C1;break}}}result(){const e=this._;return this._="",e.length?e:null}}function wP(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return wP;if(e!==k1){const n=10**e;k1=e,su=function(i){let a=1;this._+=i[0];for(const o=i.length;a=0))throw new RangeError(`invalid digits: ${s}`);n=c}return e===null&&(a=new L1(n)),o},o.projection(t).digits(n).context(e)}function of(t){return function(e){var n=new Xh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Xh(){}Xh.prototype={constructor:Xh,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function K0(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),fa(n,t.stream(iu)),e(iu.result()),r!=null&&t.clipExtent(r),t}function sf(t,e,n){return K0(t,function(r){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+e[0][0]+(i-o*(r[1][0]+r[0][0]))/2,c=+e[0][1]+(a-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,c])},n)}function Z0(t,e,n){return sf(t,[[0,0],e],n)}function Q0(t,e,n){return K0(t,function(r){var i=+e,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];t.scale(150*a).translate([o,s])},n)}function J0(t,e,n){return K0(t,function(r){var i=+e,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])},n)}var N1=16,BY=mt(30*ae);function R1(t,e){return+e?zY(t,e):FY(t)}function FY(t){return of({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function zY(t,e){function n(r,i,a,o,s,c,l,u,f,d,h,p,v,g){var y=l-r,m=u-i,b=y*y+m*m;if(b>4*e&&v--){var x=o+d,w=s+h,O=c+p,S=cn(x*x+w*w+O*O),_=In(O/=S),M=At(At(O)-1)e||At((y*A+m*k)/b-.5)>.3||o*d+s*h+c*p2?C[2]%360*ae:0,A()):[s*De,c*De,l*De]},P.angle=function(C){return arguments.length?(f=C%360*ae,A()):f*De},P.reflectX=function(C){return arguments.length?(d=C?-1:1,A()):d<0},P.reflectY=function(C){return arguments.length?(h=C?-1:1,A()):h<0},P.precision=function(C){return arguments.length?(O=R1(S,w=C*C),k()):cn(w)},P.fitExtent=function(C,L){return sf(P,C,L)},P.fitSize=function(C,L){return Z0(P,C,L)},P.fitWidth=function(C,L){return Q0(P,C,L)},P.fitHeight=function(C,L){return J0(P,C,L)};function A(){var C=I1(n,0,0,d,h,f).apply(null,e(a,o)),L=I1(n,r-C[0],i-C[1],d,h,f);return u=oP(s,c,l),S=Dh(e,L),_=Dh(u,S),O=R1(S,w),k()}function k(){return M=E=null,P}return function(){return e=t.apply(this,arguments),P.invert=e.invert&&T,A()}}function ev(t){var e=0,n=wt/3,r=tv(t),i=r(e,n);return i.parallels=function(a){return arguments.length?r(e=a[0]*ae,n=a[1]*ae):[e*De,n*De]},i}function HY(t){var e=mt(t);function n(r,i){return[r*e,pt(i)/e]}return n.invert=function(r,i){return[r/e,In(i*e)]},n}function SP(t,e){var n=pt(t),r=(n+pt(e))/2;if(At(r)=.12&&g<.234&&v>=-.425&&v<-.214?i:g>=.166&&g<.234&&v>=-.214&&v<-.115?o:n).invert(d)},u.stream=function(d){return t&&e===d?t:t=VY([n.stream(e=d),i.stream(d),o.stream(d)])},u.precision=function(d){return arguments.length?(n.precision(d),i.precision(d),o.precision(d),f()):n.precision()},u.scale=function(d){return arguments.length?(n.scale(d),i.scale(d*.35),o.scale(d),u.translate(n.translate())):n.scale()},u.translate=function(d){if(!arguments.length)return n.translate();var h=n.scale(),p=+d[0],v=+d[1];return r=n.translate(d).clipExtent([[p-.455*h,v-.238*h],[p+.455*h,v+.238*h]]).stream(l),a=i.translate([p-.307*h,v+.201*h]).clipExtent([[p-.425*h+ut,v+.12*h+ut],[p-.214*h-ut,v+.234*h-ut]]).stream(l),s=o.translate([p-.205*h,v+.212*h]).clipExtent([[p-.214*h+ut,v+.166*h+ut],[p-.115*h-ut,v+.234*h-ut]]).stream(l),f()},u.fitExtent=function(d,h){return sf(u,d,h)},u.fitSize=function(d,h){return Z0(u,d,h)},u.fitWidth=function(d,h){return Q0(u,d,h)},u.fitHeight=function(d,h){return J0(u,d,h)};function f(){return t=e=null,u}return u.scale(1070)}function MP(t){return function(e,n){var r=mt(e),i=mt(n),a=t(r*i);return a===1/0?[2,0]:[a*i*pt(e),a*pt(n)]}}function nc(t){return function(e,n){var r=cn(e*e+n*n),i=t(r),a=pt(i),o=mt(i);return[Ir(e*a,r*o),In(r&&n*a/r)]}}var nv=MP(function(t){return cn(2/(1+t))});nv.invert=nc(function(t){return 2*In(t/2)});function UY(){return pr(nv).scale(124.75).clipAngle(180-.001)}var rv=MP(function(t){return(t=aP(t))&&t/pt(t)});rv.invert=nc(function(t){return t});function qY(){return pr(rv).scale(79.4188).clipAngle(180-.001)}function rc(t,e){return[t,Jl(q0((fe+e)/2))]}rc.invert=function(t,e){return[t,2*co(iP(e))-fe]};function KY(){return EP(rc).scale(961/xn)}function EP(t){var e=pr(t),n=e.center,r=e.scale,i=e.translate,a=e.clipExtent,o=null,s,c,l;e.scale=function(f){return arguments.length?(r(f),u()):r()},e.translate=function(f){return arguments.length?(i(f),u()):i()},e.center=function(f){return arguments.length?(n(f),u()):n()},e.clipExtent=function(f){return arguments.length?(f==null?o=s=c=l=null:(o=+f[0][0],s=+f[0][1],c=+f[1][0],l=+f[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var f=wt*r(),d=e(gY(e.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:t===rc?[[Math.max(d[0]-f,o),s],[Math.min(d[0]+f,c),l]]:[[o,Math.max(d[1]-f,s)],[c,Math.min(d[1]+f,l)]])}return u()}function Hc(t){return q0((fe+t)/2)}function PP(t,e){var n=mt(t),r=t===e?pt(t):Jl(n/mt(e))/Jl(Hc(e)/Hc(t)),i=n*vd(Hc(t),r)/r;if(!r)return rc;function a(o,s){i>0?s<-fe+ut&&(s=-fe+ut):s>fe-ut&&(s=fe-ut);var c=i/vd(Hc(s),r);return[c*pt(r*o),i-c*mt(r*o)]}return a.invert=function(o,s){var c=i-s,l=kn(r)*cn(o*o+c*c),u=Ir(o,At(c))*kn(c);return c*r<0&&(u-=wt*kn(o)*kn(c)),[u/r,2*co(vd(i/l,1/r))-fe]},a}function ZY(){return ev(PP).scale(109.5).parallels([30,30])}function Ps(t,e){return[t,e]}Ps.invert=Ps;function QY(){return pr(Ps).scale(152.63)}function AP(t,e){var n=mt(t),r=t===e?pt(t):(n-mt(e))/(e-t),i=n/r+t;if(At(r)ut&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function iW(){return pr(ov).scale(175.295)}function sv(t,e){return[mt(e)*pt(t),pt(e)]}sv.invert=nc(In);function aW(){return pr(sv).scale(249.5).clipAngle(90+ut)}function cv(t,e){var n=mt(e),r=1+mt(t)*n;return[n*pt(t)/r,pt(e)/r]}cv.invert=nc(function(t){return 2*co(t)});function oW(){return pr(cv).scale(250).clipAngle(142)}function lv(t,e){return[Jl(q0((fe+e)/2)),-t]}lv.invert=function(t,e){return[-e,2*co(iP(t))-fe]};function sW(){var t=EP(lv),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}const cW=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:_P,geoAlbersUsa:XY,geoAzimuthalEqualArea:UY,geoAzimuthalEqualAreaRaw:nv,geoAzimuthalEquidistant:qY,geoAzimuthalEquidistantRaw:rv,geoConicConformal:ZY,geoConicConformalRaw:PP,geoConicEqualArea:cu,geoConicEqualAreaRaw:SP,geoConicEquidistant:JY,geoConicEquidistantRaw:AP,geoEqualEarth:eW,geoEqualEarthRaw:iv,geoEquirectangular:QY,geoEquirectangularRaw:Ps,geoGnomonic:nW,geoGnomonicRaw:av,geoIdentity:rW,geoMercator:KY,geoMercatorRaw:rc,geoNaturalEarth1:iW,geoNaturalEarth1Raw:ov,geoOrthographic:aW,geoOrthographicRaw:sv,geoProjection:pr,geoProjectionMutator:tv,geoStereographic:oW,geoStereographicRaw:cv,geoTransverseMercator:sW,geoTransverseMercatorRaw:lv},Symbol.toStringTag,{value:"Module"}));var lW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);idW(e).features)}}function dW(t){const e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"};if(!t||!t.type)return null;const n=e[t.type];if(!n)return null;if(n==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]};if(n==="feature")return{type:"FeatureCollection",features:[t]};if(n==="featureCollection")return t}function hW(t,e){var n;for(const[r,i]of Object.entries(e))(n=t[r])===null||n===void 0||n.call(t,i)}function pW(t,e,n,r){const i=()=>{const s=e.filter(kP);return s.find(l=>l.sphere)?{type:"Sphere"}:fW(s.filter(l=>!l.sphere).flatMap(l=>l.data.value))},{outline:a=i()}=r,{size:o="fitExtent"}=r;if(o==="fitExtent")return vW(t,a,n);if(o==="fitWidth")return gW(t,a,n)}function vW(t,e,n){const{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}function gW(t,e,n){const{width:r,height:i}=n,[[a,o],[s,c]]=OP(t.fitWidth(r,e)).bounds(e),l=Math.ceil(c-o),u=Math.min(Math.ceil(s-a),l),f=t.scale()*(u-1)/u,[d,h]=t.translate(),p=h+(i-l)/2;t.scale(f).translate([d,p]).precision(.2)}function yW(t){const{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});const{type:n}=e;return n==="graticule10"?Object.assign(Object.assign({},t),{data:{value:[PY()]}}):n==="sphere"?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function kP(t){return t.type==="geoPath"}const TP=()=>t=>{const{children:e,coordinate:n={}}=t;if(!Array.isArray(e))return[];const{type:r="equalEarth"}=n,i=lW(n,["type"]),a=uW(r),o=e.map(yW);let s;function c(){return[["custom",(f,d,h,p)=>{const v=a();pW(v,o,{x:f,y:d,width:h,height:p},i),hW(v,i),s=OP(v);const y=new Yt({domain:[f,f+h]}),m=new Yt({domain:[d,d+p]}),b=w=>{const O=v(w);if(!O)return[null,null];const[S,_]=O;return[y.map(S),m.map(_)]},x=w=>{if(!w)return null;const[O,S]=w,_=[y.invert(O),m.invert(S)];return v.invert(_)};return{transform:w=>b(w),untransform:w=>x(w)}}]]}function l(f){const{style:d,tooltip:h={}}=f;return Object.assign(Object.assign({},f),{type:"path",tooltip:Hl(h,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},d),{d:p=>s(p)||[]})})}const u=f=>kP(f)?l(f):f;return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:c},children:o.flatMap(u)})]};TP.props={};function CP(t,e){const{__data__:n}=t,{markKey:r,index:i,seriesIndex:a}=n,{markState:o}=e,s=Array.from(o.keys()).find(c=>c.key===r);if(s)return a?a.map(c=>s.data[c]):s.data[i]}function uv(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}function mW(t){return uv(t,e=>e.className==="component")}function bW(t){return uv(t,e=>e.className==="element")}function xW(t){return uv(t,e=>e.className==="label")}function Se(t,e,n,r=i=>!0){return i=>{if(!r(i))return;n.emit(`plot:${t}`,i);const{target:a}=i;if(!a)return;const{className:o}=a;if(o==="plot")return;const s=bW(a),c=mW(a),l=xW(a),u=s||c||l;if(!u)return;const{className:f,markType:d}=u,h=Object.assign(Object.assign({},i),{nativeEvent:!0});f==="element"?(h.data={data:CP(u,e)},n.emit(`element:${t}`,h),n.emit(`${d}:${t}`,h)):f==="label"?(h.data={data:u.attributes.datum},n.emit(`label:${t}`,h),n.emit(`${o}:${t}`,h)):(n.emit(`component:${t}`,h),n.emit(`${o}:${t}`,h))}}function LP(){return(t,e,n)=>{const{container:r,view:i}=t,a=Se(Lt.CLICK,i,n,S=>S.detail===1),o=Se(Lt.DBLCLICK,i,n,S=>S.detail===2),s=Se(Lt.POINTER_TAP,i,n),c=Se(Lt.POINTER_DOWN,i,n),l=Se(Lt.POINTER_UP,i,n),u=Se(Lt.POINTER_OVER,i,n),f=Se(Lt.POINTER_OUT,i,n),d=Se(Lt.POINTER_MOVE,i,n),h=Se(Lt.POINTER_ENTER,i,n),p=Se(Lt.POINTER_LEAVE,i,n),v=Se(Lt.POINTER_UPOUTSIDE,i,n),g=Se(Lt.DRAG_START,i,n),y=Se(Lt.DRAG,i,n),m=Se(Lt.DRAG_END,i,n),b=Se(Lt.DRAG_ENTER,i,n),x=Se(Lt.DRAG_LEAVE,i,n),w=Se(Lt.DRAG_OVER,i,n),O=Se(Lt.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",c),r.addEventListener("pointerup",l),r.addEventListener("pointerover",u),r.addEventListener("pointerout",f),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",h),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",v),r.addEventListener("dragstart",g),r.addEventListener("drag",y),r.addEventListener("dragend",m),r.addEventListener("dragenter",b),r.addEventListener("dragleave",x),r.addEventListener("dragover",w),r.addEventListener("drop",O),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",c),r.removeEventListener("pointerup",l),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",h),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",v),r.removeEventListener("dragstart",g),r.removeEventListener("drag",y),r.removeEventListener("dragend",m),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",x),r.removeEventListener("dragover",w),r.removeEventListener("drop",O)}}}LP.props={reapplyWhenUpdate:!0};function wW(){return{"component.axisRadar":vE,"component.axisLinear":di,"component.axisArc":dE,"component.legendContinuousBlock":gE,"component.legendContinuousBlockSize":yE,"component.legendContinuousSize":$0,"interaction.event":LP,"composition.mark":ZE,"composition.view":KE,"shape.label.label":r_}}var OW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(typeof a!="string")return a;const o=`${t}.${a}`;return n[o]||La(`Unknown Component: ${o}`)};return[(a,o)=>{const{type:s}=a,c=OW(a,["type"]);s||La("Plot type is required!");const l=r(s);return l==null?void 0:l(c,o)},r]}function NP(t){const{canvas:e,group:n}=t;return(e==null?void 0:e.document)||(n==null?void 0:n.ownerDocument)||La("Cannot find library document")}var j1=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);in.type===e)}function Pi(t){return Xn(t,"polar").length>0}function _W(t){return Xn(t,"helix").length>0}function Ma(t){return Xn(t,"transpose").length%2===1}function MW(t){return Xn(t,"parallel").length>0}function IP(t){return Xn(t,"theta").length>0}function EW(t){return Xn(t,"reflect").length>0}function Ko(t){return Xn(t,"radial").length>0}function PW(t){return Xn(t,"radar").length>0}function AW(t){return Xn(t,"reflectY").length>0}function kW(t){return t.find(e=>e.type==="cartesian"||e.type==="cartesian3D")?t:[...t,{type:"cartesian"}]}function gt(t){for(var e=t.length/6|0,n=new Array(e),r=0;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Vc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Vc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=zW.exec(t))?new Be(e[1],e[2],e[3],1):(e=GW.exec(t))?new Be(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=YW.exec(t))?Vc(e[1],e[2],e[3],e[4]):(e=WW.exec(t))?Vc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=HW.exec(t))?Y1(e[1],e[2]/100,e[3]/100,1):(e=VW.exec(t))?Y1(e[1],e[2]/100,e[3]/100,e[4]):D1.hasOwnProperty(t)?F1(D1[t]):t==="transparent"?new Be(NaN,NaN,NaN,0):null}function F1(t){return new Be(t>>16&255,t>>8&255,t&255,1)}function Vc(t,e,n,r){return r<=0&&(t=e=n=NaN),new Be(t,e,n,r)}function jP(t){return t instanceof lo||(t=dv(t)),t?(t=t.rgb(),new Be(t.r,t.g,t.b,t.opacity)):new Be}function ks(t,e,n,r){return arguments.length===1?jP(t):new Be(t,e,n,r??1)}function Be(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}cf(Be,ks,fv(lo,{brighter(t){return t=t==null?Ka:Math.pow(Ka,t),new Be(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Vi:Math.pow(Vi,t),new Be(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Be(Ci(this.r),Ci(this.g),Ci(this.b),uu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:z1,formatHex:z1,formatHex8:qW,formatRgb:G1,toString:G1}));function z1(){return`#${Ai(this.r)}${Ai(this.g)}${Ai(this.b)}`}function qW(){return`#${Ai(this.r)}${Ai(this.g)}${Ai(this.b)}${Ai((isNaN(this.opacity)?1:this.opacity)*255)}`}function G1(){const t=uu(this.opacity);return`${t===1?"rgb(":"rgba("}${Ci(this.r)}, ${Ci(this.g)}, ${Ci(this.b)}${t===1?")":`, ${t})`}`}function uu(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ci(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ai(t){return t=Ci(t),(t<16?"0":"")+t.toString(16)}function Y1(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Yn(t,e,n,r)}function DP(t){if(t instanceof Yn)return new Yn(t.h,t.s,t.l,t.opacity);if(t instanceof lo||(t=dv(t)),!t)return new Yn;if(t instanceof Yn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Yn(o,s,c,t.opacity)}function KW(t,e,n,r){return arguments.length===1?DP(t):new Yn(t,e,n,r??1)}function Yn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}cf(Yn,KW,fv(lo,{brighter(t){return t=t==null?Ka:Math.pow(Ka,t),new Yn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Vi:Math.pow(Vi,t),new Yn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Be(xd(t>=240?t-240:t+120,i,r),xd(t,i,r),xd(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Yn(W1(this.h),Xc(this.s),Xc(this.l),uu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=uu(this.opacity);return`${t===1?"hsl(":"hsla("}${W1(this.h)}, ${Xc(this.s)*100}%, ${Xc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function W1(t){return t=(t||0)%360,t<0?t+360:t}function Xc(t){return Math.max(0,Math.min(1,t||0))}function xd(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const ZW=Math.PI/180,QW=180/Math.PI;var $P=-.14861,hv=1.78277,pv=-.29227,lf=-.90649,Ts=1.97294,H1=Ts*lf,V1=Ts*hv,X1=hv*pv-lf*$P;function JW(t){if(t instanceof Li)return new Li(t.h,t.s,t.l,t.opacity);t instanceof Be||(t=jP(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(X1*r+H1*e-V1*n)/(X1+H1-V1),a=r-i,o=(Ts*(n-i)-pv*a)/lf,s=Math.sqrt(o*o+a*a)/(Ts*i*(1-i)),c=s?Math.atan2(o,a)*QW-120:NaN;return new Li(c<0?c+360:c,s,i,t.opacity)}function hr(t,e,n,r){return arguments.length===1?JW(t):new Li(t,e,n,r??1)}function Li(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}cf(Li,hr,fv(lo,{brighter(t){return t=t==null?Ka:Math.pow(Ka,t),new Li(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Vi:Math.pow(Vi,t),new Li(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*ZW,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Be(255*(e+n*($P*r+hv*i)),255*(e+n*(pv*r+lf*i)),255*(e+n*(Ts*r)),this.opacity)}}));function tH(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function eH(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r()=>t;function BP(t,e){return function(n){return t+n*e}}function nH(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function rH(t,e){var n=e-t;return n?BP(t,n>180||n<-180?n-360*Math.round(n/360):n):vv(isNaN(t)?e:t)}function iH(t){return(t=+t)==1?Pa:function(e,n){return n-e?nH(e,n,t):vv(isNaN(e)?n:e)}}function Pa(t,e){var n=e-t;return n?BP(t,n):vv(isNaN(t)?e:t)}(function t(e){var n=iH(e);function r(i,a){var o=n((i=ks(i)).r,(a=ks(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=Pa(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=t,r})(1);function aH(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;ooH(t[t.length-1]);var zP=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(gt);const sH=Vt(zP);var GP=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(gt);const cH=Vt(GP);var YP=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(gt);const lH=Vt(YP);var WP=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(gt);const uH=Vt(WP);var HP=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(gt);const fH=Vt(HP);var VP=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(gt);const dH=Vt(VP);var XP=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(gt);const hH=Vt(XP);var UP=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(gt);const pH=Vt(UP);var qP=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(gt);const vH=Vt(qP);var KP=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(gt);const gH=Vt(KP);var ZP=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(gt);const yH=Vt(ZP);var QP=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(gt);const mH=Vt(QP);var JP=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(gt);const bH=Vt(JP);var tA=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(gt);const xH=Vt(tA);var eA=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(gt);const wH=Vt(eA);var nA=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(gt);const OH=Vt(nA);var rA=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(gt);const SH=Vt(rA);var iA=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(gt);const _H=Vt(iA);var aA=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(gt);const MH=Vt(aA);var oA=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(gt);const EH=Vt(oA);var sA=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(gt);const PH=Vt(sA);var cA=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(gt);const AH=Vt(cA);var lA=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(gt);const kH=Vt(lA);var uA=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(gt);const TH=Vt(uA);var fA=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(gt);const CH=Vt(fA);var dA=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(gt);const LH=Vt(dA);var hA=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(gt);const NH=Vt(hA);function RH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}const IH=gv(hr(300,.5,0),hr(-240,.5,1));var jH=gv(hr(-100,.75,.35),hr(80,1.5,.8)),DH=gv(hr(260,.75,.35),hr(80,1.5,.8)),Uc=hr();function $H(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Uc.h=360*t-100,Uc.s=1.5-1.5*e,Uc.l=.8-.9*e,Uc+""}var qc=ks(),BH=Math.PI/3,FH=Math.PI*2/3;function zH(t){var e;return t=(.5-t)*Math.PI,qc.r=255*(e=Math.sin(t))*e,qc.g=255*(e=Math.sin(t+BH))*e,qc.b=255*(e=Math.sin(t+FH))*e,qc+""}function GH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function uf(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const YH=uf(gt("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var WH=uf(gt("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),HH=uf(gt("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),VH=uf(gt("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));const Uh=Object.freeze(Object.defineProperty({__proto__:null,interpolateBlues:AH,interpolateBrBG:sH,interpolateBuGn:gH,interpolateBuPu:yH,interpolateCividis:RH,interpolateCool:DH,interpolateCubehelixDefault:IH,interpolateGnBu:mH,interpolateGreens:kH,interpolateGreys:TH,interpolateInferno:HH,interpolateMagma:WH,interpolateOrRd:bH,interpolateOranges:NH,interpolatePRGn:cH,interpolatePiYG:lH,interpolatePlasma:VH,interpolatePuBu:wH,interpolatePuBuGn:xH,interpolatePuOr:uH,interpolatePuRd:OH,interpolatePurples:CH,interpolateRainbow:$H,interpolateRdBu:fH,interpolateRdGy:dH,interpolateRdPu:SH,interpolateRdYlBu:hH,interpolateRdYlGn:pH,interpolateReds:LH,interpolateSinebow:zH,interpolateSpectral:vH,interpolateTurbo:GH,interpolateViridis:YH,interpolateWarm:jH,interpolateYlGn:MH,interpolateYlGnBu:_H,interpolateYlOrBr:EH,interpolateYlOrRd:PH,schemeAccent:CW,schemeBlues:cA,schemeBrBG:zP,schemeBuGn:KP,schemeBuPu:ZP,schemeCategory10:TW,schemeDark2:LW,schemeGnBu:QP,schemeGreens:lA,schemeGreys:uA,schemeOrRd:JP,schemeOranges:hA,schemePRGn:GP,schemePaired:NW,schemePastel1:RW,schemePastel2:IW,schemePiYG:YP,schemePuBu:eA,schemePuBuGn:tA,schemePuOr:WP,schemePuRd:nA,schemePurples:fA,schemeRdBu:HP,schemeRdGy:VP,schemeRdPu:rA,schemeRdYlBu:XP,schemeRdYlGn:UP,schemeReds:dA,schemeSet1:jW,schemeSet2:DW,schemeSet3:$W,schemeSpectral:qP,schemeTableau10:BW,schemeYlGn:aA,schemeYlGnBu:iA,schemeYlOrBr:oA,schemeYlOrRd:sA},Symbol.toStringTag,{value:"Module"}));function XH(t,e,n,r,i,a){const{guide:o={}}=n,s=nV(t,e,n);if(typeof s!="string")return n;const c=rV(s,t,e,n),l=JH(s,c,n);return Object.assign(Object.assign(Object.assign({},n),aV(s,t,e,n,r)),{domain:l,range:iV(s,t,e,n,l,i,a),expectedDomain:c,guide:o,name:t,type:s})}function UH(t,e){const n={};for(const r of t){const{values:i,name:a}=r,o=e[a];for(const s of i){const{name:c,value:l}=s;n[c]=l.map(u=>o.map(u))}}return n}function qH(t,e){var n;const{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(s=>s.channels.map(c=>c.scale)))),o=new Map(a.map(s=>[s.name,s]));for(const s of r){const c=QH(s);for(const l of c){const u=o.get(l),f=((n=s.scale)===null||n===void 0?void 0:n[l])||{},{independent:d=!1}=f;if(u&&!d){const{guide:h}=u,p=typeof h=="boolean"?{}:h;u.guide=X({},p,s),Object.assign(u,f)}else{const h=Object.assign(Object.assign({},f),{expectedDomain:f.domain,name:l,guide:Fb(s,i)});a.push(h)}}}return a}function KH(t){if(!t||!Array.isArray(t))return[ji,ji];let e,n;return[a=>{var o;e=a.map.bind(a),n=(o=a.invert)===null||o===void 0?void 0:o.bind(a);const s=t.filter(([d])=>typeof d=="function"),c=t.filter(([d])=>typeof d!="function"),l=new Map(c);if(a.map=d=>{for(const[h,p]of s)if(h(d))return p;return l.has(d)?l.get(d):e(d)},!n)return a;const u=new Map(c.map(([d,h])=>[h,d])),f=new Map(s.map(([d,h])=>[h,d]));return a.invert=d=>f.has(d)?d:u.has(d)?u.get(d):n(d),a},a=>(e!==null&&(a.map=e),n!==null&&(a.invert=n),a)]}function U1(t,e){const n=Object.keys(t);for(const r of Object.values(e)){const{name:i}=r.getOptions();if(!(i in t))t[i]=r;else{const a=n.filter(c=>c.startsWith(i)).map(c=>+(c.replace(i,"")||0)),o=Ct(a)+1,s=`${i}${o}`;t[s]=r,r.getOptions().key=s}}return t}function q1(t,e){const[n]=Kt("scale",e),{relations:r}=t,[i]=KH(r),a=n(t);return i(a)}function ZH(t){const e=t.flatMap(n=>Array.from(n.values())).flatMap(n=>n.channels.map(r=>r.scale));K1(e,"x"),K1(e,"y")}function QH(t){const{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return e.length!==0?e:n==="axisX"?["x"]:n==="axisY"?["y"]:n==="legends"?Object.keys(r).filter(a=>i.includes(a)):[]}function K1(t,e){const n=t.filter(({name:a,facet:o=!0})=>o&&a===e),r=n.flatMap(a=>a.domain),i=n.every(pA)?Mr(r):n.every(vA)?Array.from(new Set(r)):null;if(i!==null)for(const a of n)a.domain=i}function JH(t,e,n){const{ratio:r}=n;return r==null?e:pA({type:t})?tV(e,r,t):vA({type:t})?eV(e,r):e}function tV(t,e,n){const r=t.map(Number),i=new Yt({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return n==="time"?t.map(a=>new Date(i.map(a))):t.map(a=>i.map(a))}function eV(t,e){const n=Math.round(t.length*e);return t.slice(0,n)}function pA(t){const{type:e}=t;return typeof e!="string"?!1:["linear","log","pow","time"].includes(e)}function vA(t){const{type:e}=t;return typeof e!="string"?!1:["band","point","ordinal"].includes(e)}function nV(t,e,n){const{type:r,domain:i,range:a,quantitative:o,ordinal:s}=n;return r!==void 0?r:gV(e)?"identity":typeof a=="string"?"linear":(i||a||[]).length>2?wd(t,s):i!==void 0?tb([i])?wd(t,s):eb(e)?"time":Q1(t,a,o):tb(e)?wd(t,s):eb(e)?"time":Q1(t,a,o)}function rV(t,e,n,r){const{domain:i}=r;if(i!==void 0)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return J1(dV(n,r),r);case"band":case"ordinal":case"point":return gA(n);case"quantile":return hV(n);case"sequential":return J1(pV(n),r);default:return[]}}function iV(t,e,n,r,i,a,o){const{range:s}=r;if(typeof s=="string")return oV(s);if(s!==void 0)return s;const{rangeMin:c,rangeMax:l}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{const u=Z1(n,r,i,a,o),[f,d]=vV(e,u);return[c||f,l||d]}case"band":case"point":return[c||(e==="size"?5:0),l||(e==="size"?10:1)];case"ordinal":return Z1(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function aV(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return lV(i,r);case"band":case"point":return uV(t,e,i,r);case"sequential":return cV(r);default:return r}}function Z1(t,e,n,r,i){const[a]=Kt("palette",i),{category10:o,category20:s}=r,c=G5(t.flat()).length<=o.length?o:s,{palette:l=c,offset:u}=e;if(Array.isArray(l))return l;try{return a({type:l})}catch{const d=sV(l,n,u);if(d)return d;throw new Error(`Unknown Component: ${l} `)}}function oV(t){return t.split("-")}function sV(t,e,n=r=>r){if(!t)return null;const r=ii(t),i=Uh[`scheme${r}`],a=Uh[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;const o=i[e.length];if(o)return o}return e.map((o,s)=>a(n(s/e.length)))}function cV(t){const{palette:e="ylGnBu",offset:n}=t,r=ii(e),i=Uh[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?a=>i(n(a)):i}}function lV(t,e){const{interpolate:n=Fs,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}function uV(t,e,n,r){if(r.padding!==void 0||r.paddingInner!==void 0||r.paddingOuter!==void 0)return Object.assign(Object.assign({},r),{unknown:NaN});const i=fV(t,e,n),{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}function fV(t,e,n){return e==="enterDelay"||e==="enterDuration"||e==="size"?0:t==="band"?IP(n)?0:.1:t==="point"?.5:0}function wd(t,e){return e||(yV(t)?"point":"ordinal")}function Q1(t,e,n){return n||(t!=="color"||e?"linear":"sequential")}function J1(t,e){if(t.length===0)return t;const{domainMin:n,domainMax:r}=e,[i,a]=t;return[n??i,r??a]}function dV(t,e){const{zero:n=!1}=e;let r=1/0,i=-1/0;for(const a of t)for(const o of a)zt(o)&&(r=Math.min(r,+o),i=Math.max(i,+o));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function gA(t){return Array.from(new Set(t.flat()))}function hV(t){return gA(t).sort()}function pV(t){let e=1/0,n=-1/0;for(const r of t)for(const i of r)zt(i)&&(e=Math.min(e,+i),n=Math.max(n,+i));return e===1/0?[]:[e<0?-n:e,n]}function vV(t,e){return t==="enterDelay"?[0,1e3]:t=="enterDuration"?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:t==="color"?[z5(e),yx(e)]:t==="opacity"?[0,1]:t==="size"?[1,10]:[0,1]}function tb(t){return yv(t,e=>{const n=typeof e;return n==="string"||n==="boolean"})}function eb(t){return yv(t,e=>e instanceof Date)}function gV(t){return yv(t,is)}function yv(t,e){for(const n of t)if(n.some(e))return!0;return!1}function yV(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")}function mV(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t==="enterDelay"||t==="enterDuration"||t==="updateDelay"||t==="updateDuration"||t==="exitDelay"||t==="exitDuration"}function bV(t){if(!t||!t.type)return!1;if(typeof t.type=="function")return!0;const{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)}const xV={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},wV={threshold:"threshold",quantize:"quantize",quantile:"quantile"},OV={ordinal:"ordinal",band:"band",point:"point"},SV={constant:"constant"};var vi=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iu!==null),s=[],c=RV(e,t,n);if(s.push(...c),i){const{props:u}=a("title"),{defaultPosition:f,defaultOrientation:d,defaultOrder:h,defaultSize:p,defaultCrossPadding:v}=u,g=typeof i=="string"?{title:i}:i;s.push(Object.assign({type:"title",position:f,orientation:d,order:h,crossPadding:v[0],defaultSize:p},g))}return kV(o,r).forEach(([u,f])=>{const{props:d}=a(u),{defaultPosition:h,defaultPlane:p="xy",defaultOrientation:v,defaultSize:g,defaultOrder:y,defaultLength:m,defaultPadding:b=[0,0],defaultCrossPadding:x=[0,0]}=d,w=X({},...f),{guide:O,field:S}=w,_=Array.isArray(O)?O:[O];for(const M of _){const[E,P]=LV(u,h,v,M,f,o,r);if(!E&&!P)continue;const T=E==="left"||E==="right",A=T?b[1]:b[0],k=T?x[1]:x[0],{size:C,order:L=y,length:I=m,padding:R=A,crossPadding:j=k}=M;s.push(Object.assign(Object.assign({title:S},M),{defaultSize:g,length:I,position:E,plane:p,orientation:P,padding:R,order:L,crossPadding:j,size:C,type:u,scales:f}))}}),s}function nb(t,e,n,r,i){const[a]=Kt("component",r),{scaleInstances:o,scale:s,bbox:c}=t,l=vi(t,["scaleInstances","scale","bbox"]),u={bbox:c,library:r};return a(l)({coordinate:e,library:r,markState:i,scales:o,theme:n,value:u,scale:s})}function MV(t){return t.map(e=>{const n=X(e,e.style);return delete n.style,n})}function yA(t,e){const n=["left","right","bottom","top"];return pp(t,({type:a,position:o,group:s})=>n.includes(o)?s===void 0?a.startsWith("legend")?`legend-${o}`:Symbol("independent"):s==="independent"?Symbol("independent"):s:Symbol("independent")).flatMap(([,a])=>{if(a.length===1)return a[0];if(e!==void 0){const u=a.filter(v=>v.length!==void 0).map(v=>v.length),f=Cn(u);if(f>e)return a.forEach(v=>v.group=Symbol("independent")),a;const d=e-f,h=a.length-u.length,p=d/h;a.forEach(v=>{v.length===void 0&&(v.length=p)})}const o=Ct(a,u=>u.size),s=Ct(a,u=>u.order),c=Ct(a,u=>u.crossPadding),l=a[0].position;return{type:"group",size:o,order:s,position:l,children:a,crossPadding:c}})}function EV(t,e){const n=["shape","size","color","opacity"],r=(d,h)=>d==="constant"&&h==="size",i=t.filter(({type:d,name:h})=>typeof d=="string"&&n.includes(h)&&!r(d,h)),a=i.filter(({type:d})=>d==="constant"),o=i.filter(({type:d})=>d!=="constant"),c=pp(o,d=>d.field?d.field:Symbol("independent")).map(([d,h])=>[d,[...h,...a]]).filter(([,d])=>d.some(h=>h.type!=="constant")),l=new Map(c);if(l.size===0)return[];const u=d=>d.sort(([h],[p])=>h.localeCompare(p));return Array.from(l).map(([,d])=>{const p=Y5(d).sort((v,g)=>g.length-v.length).map(v=>({combination:v,option:v.map(g=>[g.name,PV(g)])}));for(const{option:v,combination:g}of p)if(!v.every(y=>y[1]==="constant")&&v.every(y=>y[1]==="discrete"||y[1]==="constant"))return["legendCategory",g];for(const[v,g]of eG)for(const{option:y,combination:m}of p)if(g.some(b=>pl(u(b),u(y))))return[v,m];return null}).filter(zt)}function PV(t){const{type:e}=t;return typeof e!="string"?null:e in xV?"continuous":e in OV?"discrete":e in wV?"distribution":e in SV?"constant":null}function AV(t,e){return t.map(n=>{const{name:r}=n;if(_W(e)||IP(e)||Ma(e)&&(Pi(e)||Ko(e)))return null;if(r.startsWith("x"))return Pi(e)?["axisArc",[n]]:Ko(e)?["axisLinear",[n]]:[Ma(e)?"axisY":"axisX",[n]];if(r.startsWith("y"))return Pi(e)?["axisLinear",[n]]:Ko(e)?["axisArc",[n]]:[Ma(e)?"axisX":"axisY",[n]];if(r.startsWith("z"))return["axisZ",[n]];if(r.startsWith("position")){if(PW(e))return["axisRadar",[n]];if(!Pi(e))return["axisY",[n]]}return null}).filter(zt)}function kV(t,e){const n=t.filter(r=>bV(r));return[...EV(n),...AV(n,e)]}function qh(t){const e=Xn(t,"polar");if(e.length){const r=e[e.length-1],{startAngle:i,endAngle:a}=Mb(r);return[i,a]}const n=Xn(t,"radial");if(n.length){const r=n[n.length-1],{startAngle:i,endAngle:a}=Pb(r);return[i,a]}return[-Math.PI/2,Math.PI/2*3]}function TV(t){const e=/position(\d*)/g.exec(t);return e?+e[1]:null}function CV(t,e,n,r,i){const{name:a}=n[0];if(t==="axisRadar"){const o=r.filter(f=>f.name.startsWith("position")),s=TV(a);if(a===o.slice(-1)[0].name||s===null)return[null,null];const[c,l]=qh(i);return["center",(l-c)/(o.length-1)*s+c]}if(t==="axisY"&&MW(i))return Ma(i)?["center","horizontal"]:["center","vertical"];if(t==="axisLinear"){const[o]=qh(i);return["center",o]}return t==="axisArc"?e[0]==="inner"?["inner",null]:["outer",null]:Pi(i)?["center",null]:Ko(i)?["center",null]:t==="axisX"&&EW(i)||t==="axisX"&&AW(i)?["top",null]:e}function LV(t,e,n,r,i,a,o){const[s]=qh(o),c=[r.position||e,s??n];return typeof t=="string"&&t.startsWith("axis")?CV(t,c,i,a,o):typeof t=="string"&&t.startsWith("legend")&&Pi(o)&&r.position==="center"?["center","vertical"]:c}function NV(t,e,n=[]){return t==="x"?Ma(n)?`${e}Y`:`${e}X`:t==="y"?Ma(n)?`${e}X`:`${e}Y`:null}function RV(t,e,n){const[,r]=Kt("component",n),{coordinates:i}=t;function a(o,s,c,l){const u=NV(s,o,i);if(!l||!u)return;const{props:f}=r(u),{defaultPosition:d,defaultSize:h,defaultOrder:p,defaultCrossPadding:[v]}=f;return Object.assign(Object.assign({position:d,defaultSize:h,order:p,type:u,crossPadding:v},l),{scales:[c]})}return e.filter(o=>o.slider||o.scrollbar).flatMap(o=>{const{slider:s,scrollbar:c,name:l}=o;return[a("slider",l,o,s),a("scrollbar",l,o,c)]}).filter(o=>!!o)}function mA(t,e,n,r,i,a){const{type:o}=t;if(!["left","right","bottom","top"].includes(r)||typeof o!="string")return;const c=o;return(c.startsWith("axis")?BV:c.startsWith("group")?IV:c.startsWith("legendContinuous")?FV:c==="legendCategory"?zV:c.startsWith("slider")?$V:c==="title"?DV:c.startsWith("scrollbar")?jV:()=>{})(t,e,n,r,i,a)}function IV(t,e,n,r,i,a){const{children:o}=t,s=Ct(o,l=>l.crossPadding);o.forEach(l=>l.crossPadding=s),o.forEach(l=>mA(l,e,n,r,i,a));const c=Ct(o,l=>l.size);t.size=c,o.forEach(l=>l.size=c)}function jV(t,e,n,r,i,a){const{trackSize:o=6}=X({},i.scrollbar,t);t.size=o}function DV(t,e,n,r,i,a){const o=X({},i.title,t),{title:s,subtitle:c,spacing:l=0}=o,u=vi(o,["title","subtitle","spacing"]);if(s){const f=Q(u,"title"),d=fu(s,f);t.size=d.height}if(c){const f=Q(u,"subtitle"),d=fu(c,f);t.size+=l+d.height}}function $V(t,e,n,r,i,a){const o=()=>{const{slider:u}=i;return X({},u,t)},{trackSize:s,handleIconSize:c}=o(),l=Math.max(s,c*2.4);t.size=l}function BV(t,e,n,r,i,a){t.transform=t.transform||[{type:"hide"}];const o=r==="left"||r==="right",s=bA(t,r,i),{tickLength:c=0,labelSpacing:l=0,titleSpacing:u=0,labelAutoRotate:f}=s,d=vi(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),h=ff(t,a),p=df(d,h),v=c+l;if(p&&p.length){const y=Ct(p,b=>b.width),m=Ct(p,b=>b.height);if(o)t.size=y+v;else{const{tickFilter:b,labelTransform:x}=t;WV(h,p,e,n,b)&&!x&&f!==!1&&f!==null?(t.labelTransform="rotate(90)",t.size=y+v):t.size=m+v}}else t.size=c;const g=hf(d);g&&(o?t.size+=u+g.width:t.size+=u+g.height)}function FV(t,e,n,r,i,a){const s=(()=>{const{legendContinuous:x}=i;return X({},x,t)})(),{labelSpacing:c=0,titleSpacing:l=0}=s,u=vi(s,["labelSpacing","titleSpacing"]),f=r==="left"||r==="right",d=Q(u,"ribbon"),{size:h}=d,p=Q(u,"handleIcon"),{size:v}=p,g=Math.max(h,v*2.4);t.size=g;const y=ff(t,a),m=df(u,y);if(m){const x=f?"width":"height",w=Ct(m,O=>O[x]);t.size+=w+c}const b=hf(u);b&&(f?t.size=Math.max(t.size,b.width):t.size+=l+b.height)}function zV(t,e,n,r,i,a){const s=(()=>{const{legendCategory:k}=i,{title:C}=t,[L,I]=Array.isArray(C)?[C,void 0]:[void 0,C];return X({title:L},k,Object.assign(Object.assign({},t),{title:I}))})(),{itemSpacing:c,itemMarkerSize:l,titleSpacing:u,rowPadding:f,colPadding:d,maxCols:h=1/0,maxRows:p=1/0}=s,v=vi(s,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:y}=t,m=k=>Math.min(k,p),b=k=>Math.min(k,h),x=r==="left"||r==="right",w=y===void 0?e+(x?0:n[0]+n[1]):y,O=hf(v),S=ff(t,a),_=df(v,S,"itemLabel"),M=Math.max(_[0].height,l)+f,E=(k,C=0)=>l+k+c[0]+C;x?(()=>{let k=-1/0,C=0,L=1,I=0,R=-1/0,j=-1/0;const D=O?O.height:0,$=w-D;for(const{width:B}of _){const F=E(B,d);k=Math.max(k,F),C+M>$?(L++,R=Math.max(R,I),j=Math.max(j,C),I=1,C=M):(C+=M,I++)}L<=1&&(R=I,j=C),t.size=k*b(L),t.length=j+D,X(t,{cols:b(L),gridRow:R})})():typeof g=="number"?(()=>{const k=Math.ceil(_.length/g),C=Ct(_,L=>E(L.width))*g;t.size=M*m(k)-f,t.length=Math.min(C,w)})():(()=>{let k=1,C=0,L=-1/0;for(const{width:I}of _){const R=E(I,d);C+R>w?(L=Math.max(L,C),C=R,k++):C+=R}k===1&&(L=C),t.size=M*m(k)-f,t.length=L})(),O&&(x?t.size=Math.max(t.size,O.width):t.size+=u+O.height)}function ff(t,e){const[n]=Kt("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(s=>s.type!=="constant"&&s.type!=="identity");return i!==void 0&&(o.tickCount=i),a!==void 0&&(o.tickMethod=a),n(o)}function df(t,e,n="label"){const{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=vi(t,["labelFormatter","tickFilter","label"]);if(!a)return null;const s=GV(e,r,i),c=Q(o,n),l=s.map((d,h)=>Object.fromEntries(Object.entries(c).map(([p,v])=>[p,typeof v=="function"?v(d,h):v]))),u=s.map((d,h)=>{const p=l[h];return fu(d,p)});if(!l.some(d=>d.transform)){const d=s.map((h,p)=>p);t.indexBBox=new Map(d.map(h=>[h,[s[h],u[h]]]))}return u}function hf(t){const e=l=>l===!1||l===null,{title:n}=t,r=vi(t,["title"]);if(e(n)||n===void 0)return null;const i=Q(r,"title"),{direction:a,transform:o}=i,s=Array.isArray(n)?n.join(","):n;return typeof s!="string"?null:fu(s,Object.assign(Object.assign({},i),{transform:o||(a==="vertical"?"rotate(-90)":"")}))}function bA(t,e,n){const{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${bp(e)}`]:s}=n;return X({title:i},o,s,Object.assign(Object.assign({},t),{title:a}))}function xA(t,e){const n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function GV(t,e,n){const i=xA(t,n).map(o=>typeof o=="number"?jl(o):o),a=e?typeof e=="string"?fi(e):e:t.getFormatter?t.getFormatter():o=>`${o}`;return i.map(a)}function YV(t,e){return t.getBandWidth?t.getBandWidth(e)/2:0}function WV(t,e,n,r,i){if(Cn(e,h=>h.width)>n)return!0;const o=t.clone();o.update({range:[0,n]});const s=xA(t,i),c=s.map(h=>o.map(h)+YV(o,h)),l=s.map((h,p)=>p),u=-r[0],f=n+r[1],d=(h,p)=>{const{width:v}=p;return[h-v/2,h+v/2]};for(let h=0;hf)return!0;const y=c[h+1];if(y){const[m]=d(y,e[h+1]);if(g>m)return!0}}return!1}function fu(t,e){const n=HV(t),r=vi(e,["filter"]);return n.attr(Object.assign(Object.assign({},r),{visibility:"none"})),n.getBBox()}function HV(t){return t instanceof ze?t:new ei({style:{text:`${t}`}})}function VV(t){const e=t.find(({type:n})=>n==="axisZ");if(e){const n=t.find(({type:i})=>i==="axisX");n.plane="xy";const r=t.find(({type:i})=>i==="axisY");r.plane="xy",e.plane="yz",e.origin=[n.bbox.x,n.bbox.y,0],e.eulerAngles=[0,-90,0],e.bbox.x=n.bbox.x,e.bbox.y=n.bbox.y,t.push(Object.assign(Object.assign({},n),{plane:"xz",showLabel:!1,showTitle:!1,origin:[n.bbox.x,n.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},r),{plane:"yz",showLabel:!1,showTitle:!1,origin:[r.bbox.x+r.bbox.width,r.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},e),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]}))}}function XV(t,e,n,r){var i,a;const{width:o,height:s,depth:c,x:l=0,y:u=0,z:f=0,inset:d=(i=n.inset)!==null&&i!==void 0?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:v=d,insetRight:g=d,margin:y=(a=n.margin)!==null&&a!==void 0?a:0,marginLeft:m=y,marginBottom:b=y,marginTop:x=y,marginRight:w=y,padding:O=n.padding,paddingBottom:S=O,paddingLeft:_=O,paddingRight:M=O,paddingTop:E=O}=qV(t,e,n,r),P=1/4,T=(et,it,ct,ot,lt)=>{const{marks:xt}=e;if(xt.length===0)return[ot,lt];if(et-ot-lt-et*P>0)return[ot,lt];const ue=et*(1-P);return[it==="auto"?ue*ot/(ot+lt):ot,ct==="auto"?ue*lt/(ot+lt):lt]},A=et=>et==="auto"?20:et??20,k=A(E),C=A(S),L=rb(t,s-k-C,[k+x,C+b],["left","right"],e,n,r),{paddingLeft:I,paddingRight:R}=L,j=o-m-w,[D,$]=T(j,_,M,I,R),B=j-D-$,F=rb(t,B,[D+m,$+w],["bottom","top"],e,n,r),{paddingTop:Y,paddingBottom:U}=F,K=s-b-x,[V,W]=T(K,S,E,U,Y),J=K-V-W;return{width:o,height:s,depth:c,insetLeft:h,insetTop:p,insetBottom:v,insetRight:g,innerWidth:B,innerHeight:J,paddingLeft:D,paddingRight:$,paddingTop:W,paddingBottom:V,marginLeft:m,marginBottom:b,marginTop:x,marginRight:w,x:l,y:u,z:f}}function UV(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=16,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=w=>w==="auto"?20:w,b=n-m(i)-m(a)-l-u-p-v,x=e-m(o)-m(s)-f-d-g-y;return{width:b,height:x}}function qV(t,e,n,r){const{coordinates:i}=e;if(!Pi(i)&&!Ko(i))return e;const a=t.filter(y=>typeof y.type=="string"&&y.type.startsWith("axis"));if(a.length===0)return e;const o=a.map(y=>{const m=y.type==="axisArc"?"arc":"linear";return bA(y,m,n)}),s=Ct(o,y=>{var m;return(m=y.labelSpacing)!==null&&m!==void 0?m:0}),c=a.flatMap((y,m)=>{const b=o[m],x=ff(y,r);return df(b,x)}).filter(zt),l=Ct(c,y=>y.height)+s,u=a.flatMap((y,m)=>{const b=o[m];return hf(b)}).filter(y=>y!==null),f=u.length===0?0:Ct(u,y=>y.height),{inset:d=l,insetLeft:h=d,insetBottom:p=d,insetTop:v=d+f,insetRight:g=d}=e;return Object.assign(Object.assign({},e),{insetLeft:h,insetBottom:p,insetTop:v,insetRight:g})}function rb(t,e,n,r,i,a,o){const s=te(t,p=>p.position),{padding:c=a.padding,paddingLeft:l=c,paddingRight:u=c,paddingBottom:f=c,paddingTop:d=c}=i,h={paddingBottom:f,paddingLeft:l,paddingTop:d,paddingRight:u};for(const p of r){const v=`padding${bp(ZS(p))}`,g=s.get(p)||[],y=h[v],m=M=>{M.size===void 0&&(M.size=M.defaultSize)},b=M=>{M.type==="group"?(M.children.forEach(m),M.size=Ct(M.children,E=>E.size)):M.size=M.defaultSize},x=M=>{M.size||(y!=="auto"?b(M):(mA(M,e,n,p,a,o),m(M)))},w=M=>{M.type.startsWith("axis")&&M.labelAutoHide===void 0&&(M.labelAutoHide=!0)},O=p==="bottom"||p==="top",S=bn(g,M=>M.order),_=g.filter(M=>M.type.startsWith("axis")&&M.order==S);if(_.length&&(_[0].crossPadding=0),typeof y=="number")g.forEach(m),g.forEach(w);else if(g.length===0)h[v]=0;else{const M=O?e+n[0]+n[1]:e,E=yA(g,M);E.forEach(x);const P=E.reduce((T,{size:A,crossPadding:k=12})=>T+A+k,0);h[v]=P}}return h}function KV(t,e,n){const r=te(t,O=>`${O.plane||"xy"}-${O.position}`),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y,height:m,width:b,depth:x}=n,w={xy:Od({width:b,height:m,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y}),yz:Od({width:x,height:m,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:x,innerHeight:m,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:Od({width:b,height:x,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:x,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[O,S]of r.entries()){const[_,M]=O.split("-"),E=w[_][M],[P,T]=mx(S,A=>typeof A.type!="string"?!1:!!(M==="center"||A.type.startsWith("axis")&&["inner","outer"].includes(M)));P.length&&ZV(P,e,E,M),T.length&&oX(S,e,E)}}function Od({width:t,height:e,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:a,marginLeft:o,marginTop:s,marginBottom:c,marginRight:l,innerHeight:u,innerWidth:f,insetBottom:d,insetLeft:h,insetRight:p,insetTop:v}){const g=n+o,y=i+s,m=r+l,b=a+c,x=t-o-l,w=[g+h,y+v,f-h-p,u-v-d,"center",null,null];return{top:[g,0,f,y,"vertical",!0,oe,o,x],right:[t-m,y,m,u,"horizontal",!1,oe],bottom:[g,e-b,f,b,"vertical",!1,oe,o,x],left:[0,y,g,u,"horizontal",!0,oe],"top-left":[g,0,f,y,"vertical",!0,oe],"top-right":[g,0,f,y,"vertical",!0,oe],"bottom-left":[g,e-b,f,b,"vertical",!1,oe],"bottom-right":[g,e-b,f,b,"vertical",!1,oe],center:w,inner:w,outer:w}}function ZV(t,e,n,r){const[i,a]=mx(t,o=>!!(typeof o.type=="string"&&o.type.startsWith("axis")));QV(i,e,n,r),sX(a,e,n)}function QV(t,e,n,r){r==="center"?SL(e)?aX(t,e,n):Ht(e)?eX(t,e,n):Ru(e)&&nX(t,e,n,t[0].orientation):r==="inner"?JV(t,e,n):r==="outer"&&tX(t,e,n)}function JV(t,e,n){const[r,i,,a]=n,[o,s]=e.getCenter(),[c]=Iu(e),l=a/2,u=c*l,f=o-u,d=s-u;for(let h=0;hu%2===0).map(l=>l+r);for(let l=0;lu%2===1).map(l=>l+i);for(let l=0;ll==null?void 0:l(M.order,E.order));const x=M=>M==="title"||M==="group"||M.startsWith("legend"),w=(M,E,P)=>P===void 0?E:x(M)?P:E,O=(M,E,P)=>P===void 0?E:x(M)?P:E,S=c?h+y:h;for(let M=0,E=S;MM.type==="group");for(const M of _){const{bbox:E,children:P}=M,T=E[m],A=T/P.length,k=P.reduce((j,D)=>{var $;const B=($=D.layout)===null||$===void 0?void 0:$.justifyContent;return B||j},"flex-start"),C=P.map((j,D)=>{const{length:$=A,padding:B=0}=j;return $+(D===P.length-1?0:B)}),L=Cn(C),I=T-L,R=k==="flex-start"?0:k==="center"?I/2:I;for(let j=0,D=E[p]+R;jbX(o)?o:{type:xX(i,o),value:o});return[t,Object.assign(Object.assign({},e),{encode:a})]}function dX(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i=ai(r,(a,o)=>{const{type:s}=a;return s!=="constant"||mV(o)?a:Object.assign(Object.assign({},a),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function hX(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const{library:a}=n,o=MX(a),s=ai(r,c=>o(i,c));return[t,Object.assign(Object.assign({},e),{encode:s})]}function pX(t,e,n){const{tooltip:r={}}=e;return Lr(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:is(r)&&k_(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function vX(t,e,n){const{data:r,encode:i,tooltip:a={}}=e;if(Lr(a))return[t,e];const o=f=>{if(!f)return f;if(typeof f=="string")return t.map(d=>({name:f,value:r[d][f]}));if(is(f)){const{field:d,channel:h,color:p,name:v=d,valueFormatter:g=O=>O}=f,y=typeof g=="string"?fi(g):g,m=h&&i[h],b=m&&i[h].field,x=v||b||h,w=[];for(const O of t){const S=d?r[O][d]:m?i[h].value[O]:null;w[O]={name:x,color:p,value:y(S)}}return w}if(typeof f=="function"){const d=[];for(const h of t){const p=f(r[h],h,r,i);is(p)?d[h]=p:d[h]={value:p}}return d}return f},{title:s,items:c=[]}=a,l=Za(a,["title","items"]),u=Object.assign({title:o(s),items:Array.isArray(c)?c.map(o):[]},l);return[t,Object.assign(Object.assign({},e),{tooltip:u})]}function gX(t,e,n){const{encode:r}=e,i=Za(e,["encode"]);if(!r)return[t,e];const a=Object.entries(r),o=a.filter(([,c])=>{const{value:l}=c;return Array.isArray(l[0])}).flatMap(([c,l])=>{const u=[[c,new Array(t.length).fill(void 0)]],{value:f}=l,d=Za(l,["value"]);for(let h=0;h[h,Object.assign({type:"column",value:p},d)])}),s=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:s})]}function yX(t,e,n){const{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,s=(l,u)=>{if(typeof l=="boolean")return l?{}:null;const f=l[u];return f===void 0||f?f:null},c=typeof r=="object"?Array.from(new Set(["x","y",...Object.keys(r)])):["x","y"];return X(e,{scale:Object.assign(Object.assign({},Object.fromEntries(c.map(l=>{const u=s(o,l);return[l,Object.assign({guide:s(r,l),slider:s(a,l),scrollbar:u},u&&{ratio:u.ratio===void 0?.5:u.ratio})]}))),{color:{guide:s(i,"color")},size:{guide:s(i,"size")},shape:{guide:s(i,"shape")},opacity:{guide:s(i,"opacity")}})}),[t,e]}function mX(t,e,n){const{animate:r}=e;return r||r===void 0?[t,e]:(X(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e])}function bX(t){if(typeof t!="object"||t instanceof Date||t===null)return!1;const{type:e}=t;return zt(e)}function xX(t,e){return typeof e=="function"?"transform":typeof e=="string"&&wX(t,e)?"field":"constant"}function wX(t,e){return Array.isArray(t)?t.some(n=>n[e]!==void 0):!1}function OX(t){if(de(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};const{type:e="inline"}=t,n=Za(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}var OA=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},SX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);izt(h)),h=>h.map(([p,v])=>Object.assign({name:p},v)),([h])=>{var p;const v=(p=/([^\d]+)\d*$/.exec(h))===null||p===void 0?void 0:p[1],g=u.find(y=>y.name===v);return g!=null&&g.independent?h:v}),d=u.filter(h=>{const{name:p,required:v}=h;if(f.find(([g])=>g===p))return!0;if(v)throw new Error(`Missing encoding for channel: ${p}.`);return!1}).flatMap(h=>{const{name:p,scale:v,scaleKey:g,range:y,quantitative:m,ordinal:b}=h;return f.filter(([w])=>w.startsWith(p)).map(([w,O],S)=>{const _=O.some(I=>I.visual),M=O.some(I=>I.constant),E=s[w]||{},{independent:P=!1,key:T=g||w,type:A=M?"constant":_?"identity":v}=E,k=SX(E,["independent","key","type"]),C=A==="constant",L=C?void 0:y;return{name:w,values:O,scaleKey:P||C?Symbol("independent"):T,scale:Object.assign(Object.assign({type:A,range:L},k),{quantitative:m,ordinal:b})}})});return[a,Object.assign(Object.assign({},e),{index:i,channels:d,tooltip:l})]})}function MX(t){const[e]=Kt("encode",t);return(n,r)=>r===void 0||n===void 0?null:Object.assign(Object.assign({},r),{type:"column",value:e(r)(n),field:PX(r)})}function EX(t,e,n){return OA(this,void 0,void 0,function*(){const{library:r}=n,[i]=Kt("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:s=[]}=t,c=[lX,wA,uX,fX,dX,hX,gX,mX,yX,pX,...a.map(i),...s.map(i),...o.map(i),vX];let l=[],u=t;for(const f of c)[l,u]=yield f(l,u,n);return[l,u]})}function PX(t){const{type:e,value:n}=t;return e==="field"&&typeof n=="string"?n:null}var kr=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},ni=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var k;return(k=/mark\.(.*)/.exec(A))===null||k===void 0?void 0:k[1]}).filter(zt)),c=new Set(Object.keys(n).map(A=>{var k;return(k=/component\.(.*)/.exec(A))===null||k===void 0?void 0:k[1]}).filter(zt)),l=A=>{const{type:k}=A;if(typeof k=="function"){const{props:C={}}=k,{composite:L=!0}=C;if(L)return"mark"}return typeof k!="string"?k:s.has(k)||c.has(k)?"mark":k},u=A=>l(A)==="mark",f=A=>l(A)==="standardView",d=A=>{const{type:k}=A;return typeof k!="string"?!1:!!c.has(k)},h=A=>{if(f(A))return[A];const k=l(A);return a({type:k,static:d(A)})(A)},p=[],v=new Map,g=new Map,y=[t],m=[];for(;y.length;){const A=y.shift();if(f(A)){const k=g.get(A),[C,L]=k?MA(k,A,n):yield SA(A,n);v.set(C,A),p.push(C);const I=L.flatMap(h).map(R=>RP(R,n));if(y.push(...I),I.every(f)){const R=yield Promise.all(I.map(j=>_A(j,n)));ZH(R);for(let j=0;jA.key).join(A=>A.append("g").attr("className",Ch).attr("id",k=>k.key).call(ib).each(function(k,C,L){Zh(k,st(L),w,n,r),b.set(k,L)}),A=>A.call(ib).each(function(k,C,L){Zh(k,st(L),w,n,r),x.set(k,L)}),A=>A.each(function(k,C,L){const I=L.nameInteraction.values();for(const R of I)R.destroy()}).remove());const O=(A,k,C)=>Array.from(A.entries()).map(([L,I])=>{const R=C||new Map,j=(B,F=Y=>Y)=>R.set(B,F),D=v.get(L),$=kX(st(I),D,n,r);return{view:L,container:I,options:D,setState:j,update:(B,F)=>kr(this,void 0,void 0,function*(){const U=mp(Array.from(R.values()))(D);return yield $(U,B,()=>{Le(F)&&k(A,F,R)})})}}),S=(A=x,k,C)=>{var L;const I=O(A,S,C);for(const R of I){const{options:j,container:D}=R,$=D.nameInteraction;let B=du(j);k&&(B=B.filter(F=>k.includes(F[0])));for(const F of B){const[Y,U]=F,K=$.get(Y);if(K&&((L=K.destroy)===null||L===void 0||L.call(K)),U){const W=Kh(R.view,Y,U,o)(R,I,r.emitter);$.set(Y,{destroy:W})}}}},_=O(b,S);for(const A of _){const{options:k}=A,C=new Map;A.container.nameInteraction=C;for(const L of du(k)){const[I,R]=L;if(R){const D=Kh(A.view,I,R,o)(A,_,r.emitter);C.set(I,{destroy:D})}}}S();const{width:M,height:E}=t,P=[];for(const A of m){const k=new Promise(C=>kr(this,void 0,void 0,function*(){for(const L of A){const I=Object.assign({width:M,height:E},L);yield mv(I,e,n,r)}C()}));P.push(k)}r.views=p,(i=r.animations)===null||i===void 0||i.forEach(A=>A==null?void 0:A.cancel()),r.animations=w,r.emitter.emit(Lt.AFTER_PAINT);const T=w.filter(zt).map(WX).map(A=>A.finished);return Promise.all([...T,...P])})}function ib(t){t.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function AX(t){const[,e]=Kt("interaction",t);return n=>{const[r,i]=n;try{return[r,e(r)]}catch{return[r,i.type]}}}function kX(t,e,n,r){const i=AX(n),a=c=>c[1]&&c[1].props&&c[1].props.reapplyWhenUpdate,s=du(e).map(i).filter(a).map(c=>c[0]);return(c,l,u)=>kr(this,void 0,void 0,function*(){const f=[],[d,h]=yield SA(c,n);Zh(d,t,f,n,r);for(const p of s.filter(v=>v!==l))TX(p,t,c,d,n,r);for(const p of h)mv(p,t,n,r);return u(),{options:c,view:d}})}function TX(t,e,n,r,i,a){var o;const[s]=Kt("interaction",i),l=e.node().nameInteraction,u=du(n).find(([v])=>v===t),f=l.get(t);if(!f||((o=f.destroy)===null||o===void 0||o.call(f),!u[1]))return;const d=Kh(r,t,u[1],s),h={options:n,view:r,container:e.node(),update:v=>Promise.resolve(v)},p=d(h,[],a.emitter);l.set(t,{destroy:p})}function SA(t,e){return kr(this,void 0,void 0,function*(){const n=yield LX(t,e),r=CX(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];const i=RP(r,e),a=yield _A(i,e);return MA(a,i,e)})}function CX(t){const{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=ni(t,["coordinate","interaction","style","marks"]),o=i.map(d=>d.coordinate||{}),s=i.map(d=>d.interaction||{}),c=i.map(d=>d.viewStyle||{}),l=[...o,e].reduceRight((d,h)=>X(d,h),{}),u=[n,...s].reduce((d,h)=>X(d,h),{}),f=[...c,r].reduce((d,h)=>X(d,h),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:l,interaction:u,style:f})}function LX(t,e){return kr(this,void 0,void 0,function*(){const[n,r]=Kt("mark",e),i=new Set(Object.keys(e).map(d=>{var h;return(h=/component\.(.*)/.exec(d))===null||h===void 0?void 0:h[1]}).filter(zt)),{marks:a}=t,o=[],s=[],c=[...a],{width:l,height:u}=UV(t),f={options:t,width:l,height:u};for(;c.length;){const[d]=c.splice(0,1),h=yield kA(d,e),{type:p=La("G2Mark type is required."),key:v}=h;if(i.has(p))s.push(h);else{const{props:g={}}=r(p),{composite:y=!0}=g;if(!y)o.push(h);else{const{data:m}=h,b=Object.assign(Object.assign({},h),{data:m&&(Array.isArray(m)?m:m.value)}),x=yield n(b,f),w=Array.isArray(x)?x:[x];c.unshift(...w.map((O,S)=>Object.assign(Object.assign({},O),{key:`${v}-${S}`})))}}}return Object.assign(Object.assign({},t),{marks:o,components:s})})}function _A(t,e){return kr(this,void 0,void 0,function*(){const[n]=Kt("theme",e),[,r]=Kt("mark",e),{theme:i,marks:a,coordinates:o=[]}=t,s=n(AA(i)),c=new Map;for(const u of a){const{type:f}=u,{props:d={}}=r(f),h=yield _X(u,d,e);if(h){const[p,v]=h;c.set(p,v)}}const l=te(Array.from(c.values()).flatMap(u=>u.channels),({scaleKey:u})=>u);for(const u of l.values()){const f=u.reduce((b,{scale:x})=>X(b,x),{}),{scaleKey:d}=u[0],{values:h}=u[0],p=Array.from(new Set(h.map(b=>b.field).filter(zt))),v=X({guide:{title:p.length===0?void 0:p},field:p[0]},f),{name:g}=u[0],y=u.flatMap(({values:b})=>b.map(x=>x.value)),m=Object.assign(Object.assign({},XH(g,y,v,o,s,e)),{key:d});u.forEach(b=>b.scale=m)}return c})}function Kh(t,e,n,r){const i=t.theme,a=typeof e=="string"?i[e]||{}:{};return r(X(a,Object.assign({type:e},n)))}function MA(t,e,n){const[r]=Kt("mark",n),[i]=Kt("theme",n),[a]=Kt("labelTransform",n),{key:o,frame:s=!1,theme:c,clip:l,style:u={},labelTransform:f=[]}=e,d=i(AA(c)),h=Array.from(t.values()),p=qH(h,e),v=MV(_V(UX(Array.from(p),h,t),e,n)),g=XV(v,e,d,n),y=SW(g,e,n),m=s?X({mainLineWidth:1,mainStroke:"#000"},u):u;KV(yA(v),y,g),VV(v);const b={};for(const O of v){const{scales:S=[]}=O,_=[];for(const M of S){const{name:E}=M,P=q1(M,n);_.push(P),E==="y"&&P.update(Object.assign(Object.assign({},P.getOptions()),{xScale:b.x})),U1(b,{[E]:P})}O.scaleInstances=_}const x=[];for(const[O,S]of t.entries()){const{children:_,dataDomain:M,modifier:E,key:P}=O,{index:T,channels:A,tooltip:k}=S,C=Object.fromEntries(A.map(({name:W,scale:J})=>[W,J])),L=ai(C,W=>q1(W,n));U1(b,L);const I=UH(A,L),R=r(O),[j,D,$]=IX(R(T,L,I,y)),B=M||j.length,F=E?E(D,B,g):[],Y=W=>{var J,et;return(et=(J=k.title)===null||J===void 0?void 0:J[W])===null||et===void 0?void 0:et.value},U=W=>k.items.map(J=>J[W]),K=j.map((W,J)=>{const et=Object.assign({points:D[J],transform:F[J],index:W,markKey:P,viewKey:o},k&&{title:Y(W),items:U(W)});for(const[it,ct]of Object.entries(I))et[it]=ct[W],$&&(et[`series${ii(it)}`]=$[J].map(ot=>ct[ot]));return $&&(et.seriesIndex=$[J]),$&&k&&(et.seriesItems=$[J].map(it=>U(it)),et.seriesTitle=$[J].map(it=>Y(it))),et});S.data=K,S.index=j;const V=_==null?void 0:_(K,L,g);x.push(...V||[])}return[{layout:g,theme:d,coordinate:y,markState:t,key:o,clip:l,scale:b,style:m,components:v,labelTransform:mp(f.map(a))},x]}function Zh(t,e,n,r,i){return kr(this,void 0,void 0,function*(){const{components:a,theme:o,layout:s,markState:c,coordinate:l,key:u,style:f,clip:d,scale:h}=t,{x:p,y:v,width:g,height:y}=s,m=ni(s,["x","y","width","height"]),b=["view","plot","main","content"],x=b.map((R,j)=>j),w=["a","margin","padding","inset"],O=b.map(R=>vx(Object.assign({},o.view,f),R)),S=w.map(R=>Q(m,R)),_=R=>R.style("x",j=>A[j].x).style("y",j=>A[j].y).style("width",j=>A[j].width).style("height",j=>A[j].height).each(function(j,D,$){qX(st($),O[j])});let M=0,E=0,P=g,T=y;const A=x.map(R=>{const j=S[R],{left:D=0,top:$=0,bottom:B=0,right:F=0}=j;return M+=D,E+=$,P-=D+F,T-=$+B,{x:M,y:E,width:P,height:T}});e.selectAll(ar(o1)).data(x.filter(R=>zt(O[R])),R=>b[R]).join(R=>R.append("rect").attr("className",o1).style("zIndex",-2).call(_),R=>R.call(_),R=>R.remove());const k=BX(c),C=k?{duration:k[1]}:!1;for(const[,R]of pp(a,j=>`${j.type}-${j.position}`))R.forEach((j,D)=>j.index=D);const L=e.selectAll(ar(a1)).data(a,R=>`${R.type}-${R.position}-${R.index}`).join(R=>R.append("g").style("zIndex",({zIndex:j})=>j||-1).attr("className",a1).append(j=>nb(X({animate:C,scale:h},j),l,o,r,c)),R=>R.transition(function(j,D,$){const{preserve:B=!1}=j;if(B)return;const F=nb(X({animate:C,scale:h},j),l,o,r,c),{attributes:Y}=F,[U]=$.childNodes;return U.update(Y,!1)})).transitions();n.push(...L.flat().filter(zt));const I=e.selectAll(ar(Kl)).data([s],()=>u).join(R=>R.append("rect").style("zIndex",0).style("fill","transparent").attr("className",Kl).call(ab).call(ob,Array.from(c.keys())).call(sb,d),R=>R.call(ob,Array.from(c.keys())).call(j=>k?XX(j,k):ab(j)).call(sb,d)).transitions();n.push(...I.flat());for(const[R,j]of c.entries()){const{data:D}=j,{key:$,class:B,type:F}=R,Y=e.select(`#${$}`),U=GX(R,j,t,r,i),K=YX(R,j,t,r),V=HX(R,j,t,r),W=VX(R,j,t,r),J=FX(e,Y,B,"element"),et=Y.selectAll(ar(xr)).selectFacetAll(J).data(D,it=>it.key,it=>it.groupKey).join(it=>it.append(U).attr("className",xr).attr("markType",F).transition(function(ct,ot,lt){return K(ct,[lt])}),it=>it.call(ct=>{const ot=ct.parent(),lt=$5(xt=>{const[Et,Xt]=xt.getBounds().min;return[Et,Xt]});ct.transition(function(xt,Et,Xt){zX(Xt,ot,lt);const ue=U(xt,Et),Ke=V(xt,[Xt],[ue]);return Ke!==null||(Xt.nodeName===ue.nodeName&&ue.nodeName!=="g"?xp(Xt,ue):(Xt.parentNode.replaceChild(ue,Xt),ue.className=xr,ue.markType=F,ue.__data__=Xt.__data__)),Ke}).attr("markType",F).attr("className",xr)}),it=>it.each(function(ct,ot,lt){lt.__removed__=!0}).transition(function(ct,ot,lt){return W(ct,[lt])}).remove(),it=>it.append(U).attr("className",xr).attr("markType",F).transition(function(ct,ot,lt){const{__fromElements__:xt}=lt,Et=V(ct,xt,[lt]);return new Il(xt,null,lt.parentNode).transition(Et).remove(),Et}),it=>it.transition(function(ct,ot,lt){const Et=new Il([],lt.__toData__,lt.parentNode).append(U).attr("className",xr).attr("markType",F).nodes();return V(ct,[lt],Et)}).remove()).transitions();n.push(...et.flat())}NX(t,e,n,r,i)})}function NX(t,e,n,r,i){const[a]=Kt("labelTransform",r),{markState:o,labelTransform:s}=t,c=e.select(ar(Th)).node(),l=new Map,u=new Map,f=Array.from(o.entries()).flatMap(([v,g])=>{const{labels:y=[],key:m}=v,b=$X(v,g,t,r,i),x=e.select(`#${m}`).selectAll(ar(xr)).nodes().filter(w=>!w.__removed__);return y.flatMap((w,O)=>{const S=ni(w,["transform"]);return x.flatMap(_=>{const M=RX(S,O,_);return M.forEach(E=>{l.set(E,b),u.set(E,w)}),M})})}),d=st(c).selectAll(ar(Lh)).data(f,v=>v.key).join(v=>v.append(g=>l.get(g)(g)).attr("className",Lh),v=>v.each(function(g,y,m){const x=l.get(g)(g);xp(m,x)}),v=>v.remove()).nodes(),h=te(d,v=>u.get(v.__data__)),{coordinate:p}=t;for(const[v,g]of h){const{transform:y=[]}=v;mp(y.map(a))(g,p)}s&&s(d,p)}function RX(t,e,n){const{seriesIndex:r,seriesKey:i,points:a,key:o,index:s}=n.__data__,c=DX(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:c,index:s,points:a,dependentElement:n})];const l=jX(t),u=r.map((f,d)=>Object.assign(Object.assign({},t),{key:`${i[d]}-${e}`,bounds:[a[d]],index:f,points:a,dependentElement:n}));return l?l(u):u}function IX([t,e,n]){if(n)return[t,e,n];const r=[],i=[];for(let a=0;azt(c)&&zt(l))&&(r.push(o),i.push(s))}return[r,i]}function jX(t){const{selector:e}=t;if(!e)return null;if(typeof e=="function")return e;if(e==="first")return n=>[n[0]];if(e==="last")return n=>[n[n.length-1]];throw new Error(`Unknown selector: ${e}`)}function DX(t){const e=t.cloneNode(),n=t.getAnimations();e.style.visibility="hidden",n.forEach(o=>{const s=o.effect.getKeyframes();e.attr(s[s.length-1])}),t.parentNode.appendChild(e);const r=e.getLocalBounds();e.destroy();const{min:i,max:a}=r;return[i,a]}function $X(t,e,n,r,i){const[a]=Kt("shape",r),{data:o}=t,{data:s,defaultLabelShape:c}=e,l=s.map(h=>h.points),{theme:u,coordinate:f}=n,d=Object.assign(Object.assign({},i),{document:NP(i),theme:u,coordinate:f});return h=>{const{index:p,points:v}=h,g=o[p],{formatter:y=C=>`${C}`,transform:m,style:b,render:x}=h,w=ni(h,["formatter","transform","style","render"]),O=ai(Object.assign(Object.assign({},w),b),C=>EA(C,g,p,o)),{shape:S=c,text:_}=O,M=ni(O,["shape","text"]),E=typeof y=="string"?fi(y):y,P=Object.assign(Object.assign({},M),{text:E(_,g,p,o),datum:g}),T=Object.assign({type:`label.${S}`,render:x},M),A=a(T,d),k=PA(u,"label",S,"label");return A(v,P,k,l)}}function EA(t,e,n,r){return typeof t=="function"?t(e,n,r):typeof t!="string"?t:e[t]!==void 0?e[t]:t}function BX(t){let e=-1/0,n=1/0;for(const[r,i]of t){const{animate:a={}}=r,{data:o}=i,{enter:s={},update:c={},exit:l={}}=a,{type:u,duration:f=300,delay:d=0}=c,{type:h,duration:p=300,delay:v=0}=s,{type:g,duration:y=300,delay:m=0}=l;for(const b of o){const{updateType:x=u,updateDuration:w=f,updateDelay:O=d,enterType:S=h,enterDuration:_=p,enterDelay:M=v,exitDuration:E=y,exitDelay:P=m,exitType:T=g}=b;(x===void 0||x)&&(e=Math.max(e,w+O),n=Math.min(n,O)),(T===void 0||T)&&(e=Math.max(e,E+P),n=Math.min(n,P)),(S===void 0||S)&&(e=Math.max(e,_+M),n=Math.min(n,M))}}return e===-1/0?null:[n,e-n]}function FX(t,e,n,r){return t.node().parentElement.findAll(a=>a.style.facet!==void 0&&a.style.facet===n&&a!==e.node()).flatMap(a=>a.getElementsByClassName(r))}function zX(t,e,n){if(!t.__facet__)return;const r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[s,c]=n(i),l=`translate(${a-s}, ${o-c})`;B5(t,l),e.append(t)}function GX(t,e,n,r,i){const[a]=Kt("shape",r),{data:o}=t,{defaultShape:s,data:c,shape:l}=e,u=c.map(g=>g.points),{theme:f,coordinate:d}=n,{type:h,style:p={}}=t,v=Object.assign(Object.assign({},i),{document:NP(i),coordinate:d,theme:f});return g=>{const{shape:y=s}=p,{shape:m=y,points:b,seriesIndex:x,index:w}=g,O=ni(g,["shape","points","seriesIndex","index"]),S=Object.assign(Object.assign({},O),{index:w}),_=x?x.map(A=>o[A]):o[w],M=x||w,E=ai(p,A=>EA(A,_,M,o)),P=l[m]?l[m](E,v):a(Object.assign(Object.assign({},E),{type:TA(t,m)}),v),T=PA(f,h,m,s);return P(b,S,T,u)}}function PA(t,e,n,r){if(typeof e!="string")return;const{color:i}=t,a=t[e]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function bv(t,e,n,r,i){var a,o;const[,s]=Kt("shape",i),[c]=Kt("animation",i),{defaultShape:l,shape:u}=n,{theme:f,coordinate:d}=r,p=`default${ii(t)}Animation`,{[p]:v}=((a=u[l])===null||a===void 0?void 0:a.props)||s(TA(e,l)).props,{[t]:g={}}=f,y=((o=e.animate)===null||o===void 0?void 0:o[t])||{},m={coordinate:d};return(b,x,w)=>{const{[`${t}Type`]:O,[`${t}Delay`]:S,[`${t}Duration`]:_,[`${t}Easing`]:M}=b,E=Object.assign({type:O||v},y);if(!E.type)return null;const A=c(E,m)(x,w,X(g,{delay:S,duration:_,easing:M}));return Array.isArray(A)?A:[A]}}function YX(t,e,n,r){return bv("enter",t,e,n,r)}function WX(t){return t.finished.then(()=>{t.cancel()}),t}function HX(t,e,n,r){return bv("update",t,e,n,r)}function VX(t,e,n,r){return bv("exit",t,e,n,r)}function AA(t={}){if(typeof t=="string")return{type:t};const{type:e="light"}=t,n=ni(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function du(t){const e={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=t;return Object.entries(X(e,n)).reverse()}function kA(t,e){return kr(this,void 0,void 0,function*(){const n={library:e},{data:r}=t,i=ni(t,["data"]);if(r==null)return t;const[,{data:a}]=yield wA([],{data:r},n);return Object.assign({data:a},i)})}function ab(t){t.style("x",e=>e.paddingLeft+e.marginLeft).style("y",e=>e.paddingTop+e.marginTop).style("width",e=>e.innerWidth).style("height",e=>e.innerHeight)}function XX(t,e){const[n,r]=e;t.transition(function(i,a,o){const{x:s,y:c,width:l,height:u}=o.style,{paddingLeft:f,paddingTop:d,innerWidth:h,innerHeight:p,marginLeft:v,marginTop:g}=i,y=[{x:s,y:c,width:l,height:u},{x:f+v,y:d+g,width:h,height:p}];return o.animate(y,{delay:n,duration:r,fill:"both"})})}function TA(t,e){const{type:n}=t;return typeof e=="string"?`${n}.${e}`:e}function ob(t,e){const n=a=>a.class!==void 0?`${a.class}`:"";t.nodes().length===0||(t.selectAll(ar(i1)).data(e,a=>a.key).join(a=>a.append("g").attr("className",i1).attr("id",o=>o.key).style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.remove()),t.select(ar(Th)).node())||t.append("g").attr("className",Th).style("zIndex",0)}function ar(...t){return t.map(e=>`.${e}`).join("")}function sb(t,e){t.node()&&t.style("clipPath",n=>{if(!e)return null;const{paddingTop:r,paddingLeft:i,marginLeft:a,marginTop:o,innerWidth:s,innerHeight:c}=n;return new Zi({style:{x:i+a,y:r+o,width:s,height:c}})})}function UX(t,e,n){var r;for(const[l]of n.entries())if(l.type==="cell")return t.filter(u=>u.name!=="shape");if(e.length!==1||t.some(l=>l.name==="shape"))return t;const{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;const o={point:"point",line:"hyphen",rect:"square",hollow:"hollow"},c={field:((r=t.find(l=>l.name==="color"))===null||r===void 0?void 0:r.field)||null,name:"shape",type:"constant",domain:[],range:[o[i]]};return[...t,c]}function qX(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function KX(t){const e=X({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){const a=i.shift();if(a.key===void 0){const s=n.get(a),c=r.get(a),l=s===null?"0":`${s.key}-${c}`;a.key=l}const{children:o=[]}=a;if(Array.isArray(o))for(let s=0;s{},r=i=>{throw i}){const{width:i=640,height:a=480,depth:o=0}=t,s=KX(t),{canvas:c=ZX(i,a),emitter:l=new DE,library:u}=e;e.canvas=c,e.emitter=l;const{width:f,height:d}=c.getConfig();(f!==i||d!==a)&&c.resize(i,a),l.emit(Lt.BEFORE_RENDER);const h=st(c.document.documentElement);return c.ready.then(()=>mv(Object.assign(Object.assign({},s),{width:i,height:a,depth:o}),h,u,e)).then(()=>{if(o){const[p,v]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(p,v,-o/2)}c.requestAnimationFrame(()=>{l.emit(Lt.AFTER_RENDER),n==null||n()})}).catch(p=>{r==null||r(p)}),tU(c.getConfig().container)}function cb(t,e={},n=!1){const{canvas:r,emitter:i}=e;r&&(JX(r),n?r.destroy():r.destroyChildren()),i.off()}function JX(t){const e=t.getRoot().querySelectorAll(`.${Ch}`);e==null||e.forEach(n=>{const{nameInteraction:r=new Map}=n;(r==null?void 0:r.size)>0&&Array.from(r==null?void 0:r.values()).forEach(i=>{i==null||i.destroy()})})}function tU(t){return typeof t=="string"?document.getElementById(t):t}const eU={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function nU(t,e){var n;return(n=t.style[e])!==null&&n!==void 0?n:eU[e]}function xv(t,e,n,r){t.style[e]=n,r&&t.children.forEach(i=>xv(i,e,n,r))}function wv(t){xv(t,"visibility","hidden",!0)}function Ov(t){xv(t,"visibility","visible",!0)}var Zo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e.__removed__)}function CA(t,e){return Qh(t,e).flatMap(({container:n})=>ri(n))}function Qh(t,e){return e.filter(n=>n!==t&&n.options.parentKey===t.options.key)}function jr(t){return st(t).select(`.${Kl}`).node()}function LA(t){if(t.nodeName!=="rect")return t.getRenderBounds();const{x:e,y:n,width:r,height:i}=t.style;return{min:[e,n],max:[e+r,n+i]}}function Sv(t,e){const{offsetX:n,offsetY:r}=e,i=LA(t),{min:[a,o],max:[s,c]}=i,l=ns,u=rc;return l||u?null:[n-a,r-o]}function Sd(t,e){const{offsetX:n,offsetY:r}=e,[i,a,o,s]=rU(t);return[Math.min(o,Math.max(i,n))-i,Math.min(s,Math.max(a,r))-a]}function rU(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}function NA(t){return e=>e.__data__.color}function _v(t){return e=>e.__data__.x}function Xi(t){const e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(r=>Array.from(r.markState.keys()).map(a=>[hu(r.key,a.key),a.data])));return r=>{const{index:i,markKey:a,viewKey:o}=r.__data__;return n.get(hu(o,a))[i]}}function Tr(t,e=(r,i)=>r,n=(r,i,a)=>r.setAttribute(i,a)){const r="__states__",i="__ordinal__",a=u=>{const{[r]:f=[],[i]:d={}}=u,h=f.reduce((p,v)=>Object.assign(Object.assign({},p),t[v]),d);if(Object.keys(h).length!==0){for(const[p,v]of Object.entries(h)){const g=nU(u,p),y=e(v,u);n(u,p,y),p in d||(d[p]=g)}u[i]=d}},o=u=>{u[r]||(u[r]=[])};return{setState:(u,...f)=>{o(u),u[r]=[...f],a(u)},removeState:(u,...f)=>{o(u);for(const d of f){const h=u[r].indexOf(d);h!==-1&&u[r].splice(h,1)}a(u)},hasState:(u,f)=>(o(u),u[r].indexOf(f)!==-1)}}function iU(t){return t===void 0?!0:typeof t!="object"?!1:Object.keys(t).length===0}function hu(t,e){return`${t},${e}`}function Qa(t,e){const r=(Array.isArray(t)?t:[t]).flatMap(a=>a.marks.map(o=>[hu(a.key,o.key),o.state])),i={};for(const a of e){const[o,s]=Array.isArray(a)?a:[a,{}];i[o]=r.reduce((c,l)=>{const[u,f={}]=l,d=iU(f[o])?s:f[o];for(const[h,p]of Object.entries(d)){const v=c[h],g=(y,m,b,x)=>{const w=hu(x.__data__.viewKey,x.__data__.markKey);return u!==w?v==null?void 0:v(y,m,b,x):typeof p!="function"?p:p(y,m,b,x)};c[h]=g}return c},{})}return i}function ic(t,e){const n=new Map(t.map((i,a)=>[i,a])),r=e?t.map(e):t;return(i,a)=>{if(typeof i!="function")return i;const o=n.get(a),s=e?e(a):a;return i(s,o,r,a)}}function RA(t){var{link:e=!1,valueof:n=(u,f)=>u,coordinate:r}=t,i=Zo(t,["link","valueof","coordinate"]);const a="element-link";if(!e)return[()=>{},()=>{}];const o=u=>u.__data__.points,s=(u,f)=>{const[,d,h]=u,[p,,,v]=f;return[d,p,v,h]};return[u=>{var f;if(u.length<=1)return;const d=Er(u,(h,p)=>{const{x:v}=h.__data__,{x:g}=p.__data__;return v-g});for(let h=1;hn(M,v)),{fill:O=v.getAttribute("fill")}=w,S=Zo(w,["fill"]),_=new Xe({className:a,style:Object.assign({d:p.toString(),fill:O,zIndex:-2},S)});(f=v.link)===null||f===void 0||f.remove(),v.parentNode.appendChild(_),v.link=_}},u=>{var f;(f=u.link)===null||f===void 0||f.remove(),u.link=null}]}function IA(t,e,n){const r=i=>{const{transform:a}=t.style;return a?`${a} ${i}`:i};if(Ht(n)){const{points:i}=t.__data__,[a,o]=qt(n)?Gu(i):i,s=n.getCenter(),c=se(a,s),l=se(o,s),u=Nn(c),f=B2(c,l),d=u+f/2,h=e*Math.cos(d),p=e*Math.sin(d);return r(`translate(${h}, ${p})`)}return qt(n)?r(`translate(${e}, 0)`):r(`translate(0, ${-e})`)}function jA(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=Zo(t,["document","background","scale","coordinate","valueof"]);const s="element-background";if(!n)return[()=>{},()=>{}];const c=(y,m,b)=>{const x=y.invert(m),w=m+y.getBandWidth(x)/2,O=y.getStep(x)/2,S=O*b;return[w-O+S,w+O-S]},l=(y,m)=>{const{x:b}=r;if(!Ho(b))return[0,1];const{__data__:x}=y,{x:w}=x,[O,S]=c(b,w,m);return[O,S]},u=(y,m)=>{const{y:b}=r;if(!Ho(b))return[0,1];const{__data__:x}=y,{y:w}=x,[O,S]=c(b,w,m);return[O,S]},f=(y,m)=>{const{padding:b}=m,[x,w]=l(y,b),[O,S]=u(y,b),_=[[x,O],[w,O],[w,S],[x,S]].map(T=>i.map(T)),{__data__:M}=y,{y:E,y1:P}=M;return iO(e,_,{y:E,y1:P},i,m)},d=(y,m)=>{const{transform:b="scale(1.2, 1.2)",transformOrigin:x="center center",stroke:w=""}=m,O=Zo(m,["transform","transformOrigin","stroke"]),S=Object.assign({transform:b,transformOrigin:x,stroke:w},O),_=y.cloneNode(!0);for(const[M,E]of Object.entries(S))_.style[M]=E;return _},h=()=>{const{x:y,y:m}=r;return[y,m].some(Ho)};return[y=>{y.background&&y.background.remove();const m=ai(o,T=>a(T,y)),{fill:b="#CCD6EC",fillOpacity:x=.3,zIndex:w=-2,padding:O=.001,strokeWidth:S=0}=m,_=Zo(m,["fill","fillOpacity","zIndex","padding","strokeWidth"]),M=Object.assign(Object.assign({},_),{fill:b,fillOpacity:x,zIndex:w,padding:O,strokeWidth:S}),P=(h()?f:d)(y,M);P.className=s,y.parentNode.parentNode.appendChild(P),y.background=P},y=>{var m;(m=y.background)===null||m===void 0||m.remove(),y.background=null},y=>y.className===s]}function Gr(t,e){const r=t.getRootNode().defaultView.getContextService().getDomElement();r!=null&&r.style&&(t.cursor=r.style.cursor,r.style.cursor=e)}function aU(t){Gr(t,t.cursor)}function Mv(t,e,n){return t.find(r=>Object.entries(e).every(([i,a])=>n(r)[i]===a))}var oU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,background:a=!1,delay:o=60,scale:s,coordinate:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=te(d,r),v=ic(d,n),[g,y]=RA(Object.assign({elements:d,valueof:v,link:i,coordinate:c},Q(u.active,"link"))),[m,b,x]=jA(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},Q(u.active,"background"))),w=X(u,{active:Object.assign({},((f=u.active)===null||f===void 0?void 0:f.offset)&&{transform:(...I)=>{const R=u.active.offset(...I),[,j]=I;return IA(d[j],R,c)}})}),{setState:O,removeState:S,hasState:_}=Tr(w,v);let M;const E=I=>{const{target:R,nativeEvent:j=!0}=I;if(!h.has(R))return;M&&clearTimeout(M);const D=r(R),$=p.get(D),B=new Set($);for(const F of d)B.has(F)?_(F,"active")||O(F,"active"):(O(F,"inactive"),y(F)),F!==R&&b(F);m(R),g($),j&&l.emit("element:highlight",{nativeEvent:j,data:{data:n(R),group:$.map(n)}})},P=()=>{M&&clearTimeout(M),M=setTimeout(()=>{T(),M=null},o)},T=(I=!0)=>{for(const R of d)S(R,"active","inactive"),b(R),y(R);I&&l.emit("element:unhighlight",{nativeEvent:I})},A=I=>{const{target:R}=I;a&&!x(R)||!a&&!h.has(R)||(o>0?P():T())},k=()=>{T()};t.addEventListener("pointerover",E),t.addEventListener("pointerout",A),t.addEventListener("pointerleave",k);const C=I=>{const{nativeEvent:R}=I;R||T(!1)},L=I=>{const{nativeEvent:R}=I;if(R)return;const{data:j}=I.data,D=Mv(d,j,n);D&&E({target:D,nativeEvent:!1})};return l.on("element:highlight",L),l.on("element:unhighlight",C),()=>{t.removeEventListener("pointerover",E),t.removeEventListener("pointerout",A),t.removeEventListener("pointerleave",k),l.off("element:highlight",L),l.off("element:unhighlight",C);for(const I of d)b(I),y(I)}}function pf(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=oU(t,["delay","createGroup","background","link"]);return(o,s,c)=>{const{container:l,view:u,options:f}=o,{scale:d,coordinate:h}=u,p=jr(l);return sU(p,Object.assign({elements:ri,datum:Xi(u),groupKey:n?n(u):void 0,coordinate:h,scale:d,state:Qa(f,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:c},a))}}pf.props={reapplyWhenUpdate:!0};function DA(t){return pf(Object.assign(Object.assign({},t),{createGroup:_v}))}DA.props={reapplyWhenUpdate:!0};function $A(t){return pf(Object.assign(Object.assign({},t),{createGroup:NA}))}$A.props={reapplyWhenUpdate:!0};var cU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,single:a=!1,coordinate:o,background:s=!1,scale:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=te(d,r),v=ic(d,n),[g,y]=RA(Object.assign({link:i,elements:d,valueof:v,coordinate:o},Q(u.selected,"link"))),[m,b]=jA(Object.assign({document:t.ownerDocument,background:s,coordinate:o,scale:c,valueof:v},Q(u.selected,"background"))),x=X(u,{selected:Object.assign({},((f=u.selected)===null||f===void 0?void 0:f.offset)&&{transform:(...k)=>{const C=u.selected.offset(...k),[,L]=k;return IA(d[L],C,o)}})}),{setState:w,removeState:O,hasState:S}=Tr(x,v),_=(k=!0)=>{for(const C of d)O(C,"selected","unselected"),y(C),b(C);k&&l.emit("element:unselect",{nativeEvent:!0})},M=(k,C,L=!0)=>{if(S(C,"selected"))_();else{const I=r(C),R=p.get(I),j=new Set(R);for(const D of d)j.has(D)?w(D,"selected"):(w(D,"unselected"),y(D)),D!==C&&b(D);if(g(R),m(C),!L)return;l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:L,data:{data:[n(C),...R.map(n)]}}))}},E=(k,C,L=!0)=>{const I=r(C),R=p.get(I),j=new Set(R);if(S(C,"selected")){if(!d.some($=>!j.has($)&&S($,"selected")))return _();for(const $ of R)w($,"unselected"),y($),b($)}else{const D=R.some($=>S($,"selected"));for(const $ of d)j.has($)?w($,"selected"):S($,"selected")||w($,"unselected");!D&&i&&g(R),m(C)}L&&l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:L,data:{data:d.filter(D=>S(D,"selected")).map(n)}}))},P=k=>{const{target:C,nativeEvent:L=!0}=k;return h.has(C)?a?M(k,C,L):E(k,C,L):_()};t.addEventListener("click",P);const T=k=>{const{nativeEvent:C,data:L}=k;if(C)return;const I=a?L.data.slice(0,1):L.data;for(const R of I){const j=Mv(d,R,n);P({target:j,nativeEvent:!1})}},A=()=>{_(!1)};return l.on("element:select",T),l.on("element:unselect",A),()=>{for(const k of d)y(k);t.removeEventListener("click",P),l.off("element:select",T),l.off("element:unselect",A)}}function vf(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=cU(t,["createGroup","background","link"]);return(a,o,s)=>{const{container:c,view:l,options:u}=a,{coordinate:f,scale:d}=l,h=jr(c);return lU(h,Object.assign({elements:ri,datum:Xi(l),groupKey:e?e(l):void 0,coordinate:f,scale:d,state:Qa(u,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:s},i))}}vf.props={reapplyWhenUpdate:!0};function BA(t){return vf(Object.assign(Object.assign({},t),{createGroup:_v}))}BA.props={reapplyWhenUpdate:!0};function FA(t){return vf(Object.assign(Object.assign({},t),{createGroup:NA}))}FA.props={reapplyWhenUpdate:!0};var uU=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},fU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii.type==="normalizeY");if(n)return n;const r={type:"normalizeY"};return e.push(r),t.transform=e,r}function hU(t,e,n){const[r]=Array.from(t.entries()).filter(([i])=>i.type===e).map(([i])=>{const{encode:a}=i,o=s=>{const c=a[s];return[s,c?c.value:void 0]};return Object.fromEntries(n.map(o))});return r}function zA(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=o=>`${o}`}=t,a=fU(t,["wait","leading","trailing","labelFormatter"]);return o=>{const{view:s,container:c,update:l,setState:u}=o,{markState:f,scale:d,coordinate:h}=s,p=hU(f,"line",["x","y","series"]);if(!p)return;const{y:v,x:g,series:y=[]}=p,m=v.map((I,R)=>R),b=Er(m.map(I=>g[I])),x=jr(c),w=c.getElementsByClassName(xr),O=c.getElementsByClassName(Lh),_=te(O,I=>I.__data__.key.split("-")[0]),M=new Us({style:Object.assign({x1:0,y1:0,x2:0,y2:x.getAttribute("height"),stroke:"black",lineWidth:1},Q(a,"rule"))}),E=new ei({style:Object.assign({x:0,y:x.getAttribute("height"),text:"",fontSize:10},Q(a,"label"))});M.append(E),x.appendChild(M);const P=(I,R,j)=>{const[D]=I.invert(j),$=R.invert(D);return b[p5(b,$)]},T=(I,R)=>{M.setAttribute("x1",I[0]),M.setAttribute("x2",I[0]),E.setAttribute("text",i(R))};let A;const k=I=>uU(this,void 0,void 0,function*(){const{x:R}=d,j=P(h,R,I);T(I,j),u("chartIndex",$=>{const B=X({},$),F=B.marks.find(W=>W.type==="line"),U=Ct(vp(m,W=>Ct(W,J=>+v[J])/bn(W,J=>+v[J]),W=>y[W]).values()),K=[1/U,U];X(F,{scale:{y:{domain:K}}});const V=dU(F);V.groupBy="color",V.basis=(W,J)=>{const et=W[Ca(it=>g[+it]).center(W,j)];return J[et]};for(const W of B.marks)W.animate=!1;return B}),A=(yield l("chartIndex")).view}),C=I=>{const{scale:R,coordinate:j}=A,{x:D,y:$}=R,B=P(j,D,I);T(I,B);for(const F of w){const{seriesIndex:Y,key:U}=F.__data__,K=Y[Ca(ot=>g[+ot]).center(Y,B)],V=[0,$.map(1)],W=[0,$.map(v[K]/v[Y[0]])],[,J]=j.map(V),[,et]=j.map(W),it=J-et;F.setAttribute("transform",`translate(0, ${it})`);const ct=_.get(U)||[];for(const ot of ct)ot.setAttribute("dy",it)}},L=Ni(I=>{const R=Sv(x,I);R&&C(R)},e,{leading:n,trailing:r});return k([0,0]),x.addEventListener("pointerenter",L),x.addEventListener("pointermove",L),x.addEventListener("pointerleave",L),()=>{M.remove(),x.removeEventListener("pointerenter",L),x.removeEventListener("pointermove",L),x.removeEventListener("pointerleave",L)}}}zA.props={reapplyWhenUpdate:!0};function pU(t){const{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(a=>a.type==="fisheye");if(r)return r;const i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}function vU({wait:t=30,leading:e,trailing:n=!1}){return r=>{const{options:i,update:a,setState:o,container:s}=r,c=jr(s),l=Ni(u=>{const f=Sv(c,u);if(!f){o("fisheye"),a();return}o("fisheye",d=>{const h=X({},d,{interaction:{tooltip:{preserve:!0}}});for(const y of h.marks)y.animate=!1;const[p,v]=f,g=pU(h);return g.focusX=p,g.focusY=v,g.visual=!0,h}),a()},t,{leading:e,trailing:n});return c.addEventListener("pointerenter",l),c.addEventListener("pointermove",l),c.addEventListener("pointerleave",l),()=>{c.removeEventListener("pointerenter",l),c.removeEventListener("pointermove",l),c.removeEventListener("pointerleave",l)}}}var ac=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{color:o=WA(t)}=a,s=ac(a,["color"]);return Object.assign(Object.assign({},s),{color:o})}).map(YA);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function xU(t,e){const{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e,s=c=>c&&c.invert&&!(c instanceof Ia)&&!(c instanceof Ep);if(s(r))return r.clone().invert(o);if(o&&r instanceof Ia&&r.invert(o)!==a&&!i)return r.invert(o);if(s(n)){const c=n.invert(a);return Array.isArray(c)?null:c}return null}function WA(t){const e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&e!=="transparent"?e:n}=r;return i}function lb(t,e=n=>n){const n=new Map(t.map(r=>[e(r),r]));return Array.from(n.values())}function HA(t,e,n,r=t.map(a=>a.__data__),i={}){const a=c=>c instanceof Date?+c:c,o=lb(r.map(c=>c.title),a).filter(zt),s=r.flatMap((c,l)=>{const u=t[l],{items:f=[],title:d}=c,h=f.filter(zt),p=n!==void 0?n:f.length<=1;return h.map(v=>{var{color:g=WA(u)||i.color,name:y}=v,m=ac(v,["color","name"]);const b=xU(e,c),x=p?b||y:y||b;return Object.assign(Object.assign({},m),{color:g,name:x||d})})}).map(YA);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:lb(s,c=>`(${a(c.name)}, ${a(c.value)}, ${a(c.color)})`)})}function wU(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:s,startY:c,transposed:l,polar:u,insetLeft:f,insetTop:d}=n,h=ac(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),v=e.map(M=>M[1]),g=e.map(M=>M[0]),y=rs(v),m=rs(g),b=()=>{if(u){const M=Math.min(a,o)/2,E=s+f+a/2,P=c+d+o/2,T=Nn(se([m,y],[E,P])),A=E+M*Math.cos(T),k=P+M*Math.sin(T);return[E,A,P,k]}return l?[s,s+r,y+c,y+c]:[m+s,m+s,c,c+i]},[x,w,O,S]=b(),_=()=>{const M=new Us({style:Object.assign({x1:x,x2:w,y1:O,y2:S},p)});return t.appendChild(M),M};if(g.length>0){const M=t.ruleY||_();M.style.x1=x,M.style.x2=w,M.style.y1=O,M.style.y2=S,t.ruleY=M}}function ub(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function OU(t,{data:e,style:n,theme:r}){t.markers&&t.markers.forEach(a=>a.remove());const i=e.filter(a=>{const[{x:o,y:s}]=a;return zt(o)&&zt(s)}).map(a=>{const[{color:o,element:s},c]=a,l=o||s.style.fill||s.style.stroke||r.color;return new Xs({style:Object.assign({cx:c[0],cy:c[1],fill:l,r:4,stroke:"#fff",strokeWidth:2},n)})});for(const a of i)t.appendChild(a);t.markers=i}function fb(t){t.markers&&(t.markers.forEach(e=>e.remove()),t.markers=[])}function db(t,e){return Array.from(t.values()).some(n=>{var r;return(r=n.interaction)===null||r===void 0?void 0:r[e]})}function _d(t,e){return t===void 0?e:t}function VA(t){const{title:e,items:n}=t;return n.length===0&&e===void 0}function SU(t){return Array.from(t.values()).some(e=>{var n;return((n=e.interaction)===null||n===void 0?void 0:n.seriesTooltip)&&e.tooltip})}function hb(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:s,render:c,groupName:l,emitter:u,wait:f=50,leading:d=!0,trailing:h=!1,startX:p=0,startY:v=0,body:g=!0,single:y=!0,position:m,enterable:b,mount:x,bounding:w,theme:O,disableNative:S=!1,marker:_=!0,preserve:M=!1,style:E={},css:P={}}=e,T=ac(e,["elements","sort","filter","scale","coordinate","crosshairs","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","disableNative","marker","preserve","style","css"]);const A=n(t),k=qt(o),C=Ht(o),L=X(E,T),{innerWidth:I,innerHeight:R,width:j,height:D,insetLeft:$,insetTop:B}=o.getOptions(),F=[],Y=[];for(const _t of A){const{__data__:Pt}=_t,{seriesX:ee,title:kt,items:ye}=Pt;ee?F.push(_t):(kt||ye)&&Y.push(_t)}const K=!!(k?a.y:a.x).getBandWidth&&Y.length>0;F.sort((_t,Pt)=>{const ee=k?0:1,kt=ye=>ye.getBounds().min[ee];return k?kt(Pt)-kt(_t):kt(_t)-kt(Pt)});const V=_t=>{const Pt=k?1:0,{min:ee,max:kt}=_t.getLocalBounds();return Er([ee[Pt],kt[Pt]])};Y.sort((_t,Pt)=>{const[ee,kt]=V(_t),[ye,xe]=V(Pt),Ze=(ee+kt)/2,ln=(ye+xe)/2;return k?ln-Ze:Ze-ln});const W=new Map(F.map(_t=>{const{__data__:Pt}=_t,{seriesX:ee}=Pt,kt=ee.map((xe,Ze)=>Ze),ye=Er(kt,xe=>ee[+xe]);return[_t,[ye,ee]]})),{x:J}=a,et=J!=null&&J.getBandWidth?J.getBandWidth()/2:0,it=_t=>{const[Pt]=o.invert(_t);return Pt-et},ct=(_t,Pt,ee)=>{const kt=it(_t),ye=ee.filter(zt),[xe,Ze]=Er([ye[0],ye[ye.length-1]]),ln=xe===Ze;if(!K&&(ktZe)&&!ln)return null;const Bn=Ca(gf=>ee[+gf]).center,Dr=Bn(Pt,kt);return Pt[Dr]},ot=(_t,Pt)=>{const kt=_t[k?1:0],ye=Pt.filter(ln=>{const[Bn,Dr]=V(ln);return kt>=Bn&&kt<=Dr});if(!K||ye.length>0)return ye;const xe=Ca(ln=>{const[Bn,Dr]=V(ln);return(Bn+Dr)/2}).center,Ze=xe(Pt,kt);return[Pt[Ze]].filter(zt)},lt=(_t,Pt)=>{const{__data__:ee}=_t;return Object.fromEntries(Object.entries(ee).filter(([kt])=>kt.startsWith("series")&&kt!=="series").map(([kt,ye])=>{const xe=ye[Pt];return[Db(kt.replace("series","")),xe]}))},xt=Ni(_t=>{const Pt=Sv(t,_t);if(!Pt)return;const ee=LA(t),kt=ee.min[0],ye=ee.min[1],xe=[Pt[0]-p,Pt[1]-v];if(!xe)return;const Ze=ot(xe,Y),ln=[],Bn=[];for(const me of F){const[fo,mf]=W.get(me),Dv=ct(xe,fo,mf);if(Dv!==null){ln.push(me);const $v=lt(me,Dv),{x:dk,y:hk}=$v,pk=o.map([(dk||0)+et,hk||0]);Bn.push([Object.assign(Object.assign({},$v),{element:me}),pk])}}const Dr=Array.from(new Set(Bn.map(me=>me[0].x))),gf=Dr[bu(Dr,me=>Math.abs(me-it(xe)))],yf=Bn.filter(me=>me[0].x===gf),fk=[...yf.map(me=>me[0]),...Ze.map(me=>me.__data__)],jv=[...ln,...Ze],uo=HA(jv,a,l,fk,O);if(r&&uo.items.sort((me,fo)=>r(me)-r(fo)),i&&(uo.items=uo.items.filter(i)),jv.length===0||VA(uo)){Et(_t);return}if(g&&GA({root:t,data:uo,x:Pt[0]+kt,y:Pt[1]+ye,render:c,event:_t,single:y,position:m,enterable:b,mount:x,bounding:w,css:P}),s){const me=yf.map(mf=>mf[1]),fo=Q(L,"crosshairs");wU(t,me,Object.assign(Object.assign({},fo),{plotWidth:I,plotHeight:R,mainWidth:j,mainHeight:D,insetLeft:$,insetTop:B,startX:p,startY:v,transposed:k,polar:C}))}if(_){const me=Q(L,"marker");OU(t,{data:yf,style:me,theme:O})}u.emit("tooltip:show",Object.assign(Object.assign({},_t),{nativeEvent:!0,data:{data:{x:Ha(a.x,it(xe),!0)}}}))},f,{leading:d,trailing:h}),Et=_t=>{Wr({root:t,single:y,emitter:u,event:_t}),s&&ub(t),_&&fb(t)},Xt=()=>{Jh({root:t,single:y}),s&&ub(t),_&&fb(t)},ue=({nativeEvent:_t,data:Pt})=>{if(_t)return;const{x:ee}=Pt.data,{x:kt}=a,ye=kt.map(ee),[xe,Ze]=o.map([ye,.5]),{min:[ln,Bn]}=t.getRenderBounds();xt({offsetX:xe+ln,offsetY:Ze+Bn})},Ke=()=>{Wr({root:t,single:y,emitter:u,nativeEvent:!1})},vr=()=>{wn(),Xt()},gi=()=>{Ge()},Ge=()=>{S||(t.addEventListener("pointerenter",xt),t.addEventListener("pointermove",xt),t.addEventListener("pointerleave",Et))},wn=()=>{S||(t.removeEventListener("pointerenter",xt),t.removeEventListener("pointermove",xt),t.removeEventListener("pointerleave",Et))};return Ge(),u.on("tooltip:show",ue),u.on("tooltip:hide",Ke),u.on("tooltip:disable",vr),u.on("tooltip:enable",gi),()=>{wn(),u.off("tooltip:show",ue),u.off("tooltip:hide",Ke),u.off("tooltip:disable",vr),u.off("tooltip:enable",gi),M?Wr({root:t,single:y,emitter:u,nativeEvent:!1}):Xt()}}function _U(t,{elements:e,scale:n,render:r,groupName:i,sort:a,filter:o,emitter:s,wait:c=50,leading:l=!0,trailing:u=!1,groupKey:f=M=>M,single:d=!0,position:h,enterable:p,datum:v,view:g,mount:y,bounding:m,theme:b,shared:x=!1,body:w=!0,disableNative:O=!1,preserve:S=!1,css:_={}}){const M=e(t),E=new Set(M),P=te(M,f),T=Ni(D=>{const{target:$}=D;if(!E.has($)){Wr({root:t,single:d,emitter:s,event:D});return}const B=f($),F=P.get(B),Y=F.length===1&&!x?bU(F[0]):HA(F,n,i,void 0,b);if(a&&Y.items.sort((V,W)=>a(V)-a(W)),o&&(Y.items=Y.items.filter(o)),VA(Y)){Wr({root:t,single:d,emitter:s,event:D});return}const{offsetX:U,offsetY:K}=D;w&&GA({root:t,data:Y,x:U,y:K,render:r,event:D,single:d,position:h,enterable:p,mount:y,bounding:m,css:_}),s.emit("tooltip:show",Object.assign(Object.assign({},D),{nativeEvent:!0,data:{data:CP($,g)}}))},c,{leading:l,trailing:u}),A=D=>{Wr({root:t,single:d,emitter:s,event:D})},k=()=>{O||(t.addEventListener("pointermove",T),t.addEventListener("pointerleave",A))},C=()=>{O||(t.removeEventListener("pointermove",T),t.removeEventListener("pointerleave",A))},L=({nativeEvent:D,data:$})=>{if(D)return;const B=Mv(M,$.data,v);if(!B)return;const F=B.getBBox(),{x:Y,y:U,width:K,height:V}=F;T({target:B,offsetX:Y+K/2,offsetY:U+V/2})},I=({nativeEvent:D}={})=>{D||Wr({root:t,single:d,emitter:s,nativeEvent:!1})},R=()=>{C(),Jh({root:t,single:d})},j=()=>{k()};return s.on("tooltip:show",L),s.on("tooltip:hide",I),s.on("tooltip:enable",j),s.on("tooltip:disable",R),k(),()=>{C(),s.off("tooltip:show",L),s.off("tooltip:hide",I),S?Wr({root:t,single:d,emitter:s,nativeEvent:!1}):Jh({root:t,single:d})}}function XA(t){const{shared:e,crosshairs:n,series:r,name:i,item:a=()=>({}),facet:o=!1}=t,s=ac(t,["shared","crosshairs","series","name","item","facet"]);return(c,l,u)=>{const{container:f,view:d}=c,{scale:h,markState:p,coordinate:v,theme:g}=d,y=db(p,"seriesTooltip"),m=db(p,"crosshairs"),b=jr(f),x=_d(r,y);if(x&&SU(p)&&!o)return hb(b,Object.assign(Object.assign({},s),{theme:g,elements:ri,scale:h,coordinate:v,crosshairs:_d(n,m),item:a,emitter:u}));if(x&&o){const w=l.filter(P=>P!==c&&P.options.parentKey===c.options.key),O=CA(c,l),S=w[0].view.scale,_=b.getBounds(),M=_.min[0],E=_.min[1];return Object.assign(S,{facet:!0}),hb(b.parentNode.parentNode,Object.assign(Object.assign({},s),{theme:g,elements:()=>O,scale:S,coordinate:v,crosshairs:_d(n,m),item:a,startX:M,startY:E,emitter:u}))}return _U(b,Object.assign(Object.assign({},s),{datum:Xi(d),elements:ri,scale:h,coordinate:v,groupKey:e?_v():void 0,item:a,emitter:u,view:d,theme:g,shared:e}))}}XA.props={reapplyWhenUpdate:!0};var ul=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const UA="legend-category",MU="legend-continuous",EU="items-item",PU="legend-category-item-marker",AU="legend-category-item-label";function qA(t){return t.getElementsByClassName(PU)[0]}function KA(t){return t.getElementsByClassName(AU)[0]}function ZA(t){return t.getElementsByClassName(EU)}function Ev(t){return t.getElementsByClassName(UA)}function QA(t){return t.getElementsByClassName(MU)}function kU(t,e){[...Ev(t),...QA(t)].forEach(r=>{e(r,i=>i)})}function tp(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function TU(t,{legends:e,marker:n,label:r,datum:i,filter:a,emitter:o,channel:s,state:c={}}){const l=new Map,u=new Map,f=new Map,{unselected:d={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,h={unselected:Q(d,"marker")},p={unselected:Q(d,"label")},{setState:v,removeState:g}=Tr(h,void 0),{setState:y,removeState:m}=Tr(p,void 0),b=Array.from(e(t));let x=b.map(i);const w=()=>{for(const _ of b){const M=i(_),E=n(_),P=r(_);x.includes(M)?(g(E,"unselected"),m(P,"unselected")):(v(E,"unselected"),y(P,"unselected"))}};for(const _ of b){const M=()=>{Gr(t,"pointer")},E=()=>{aU(t)},P=T=>ul(this,void 0,void 0,function*(){const A=i(_),k=x.indexOf(A);k===-1?x.push(A):x.splice(k,1),x.length===0&&x.push(...b.map(i)),yield a(x),w();const{nativeEvent:C=!0}=T;C&&(x.length===b.length?o.emit("legend:reset",{nativeEvent:C}):o.emit("legend:filter",Object.assign(Object.assign({},T),{nativeEvent:C,data:{channel:s,values:x}})))});_.addEventListener("click",P),_.addEventListener("pointerenter",M),_.addEventListener("pointerout",E),l.set(_,P),u.set(_,M),f.set(_,E)}const O=_=>ul(this,void 0,void 0,function*(){const{nativeEvent:M}=_;if(M)return;const{data:E}=_,{channel:P,values:T}=E;P===s&&(x=T,yield a(x),w())}),S=_=>ul(this,void 0,void 0,function*(){const{nativeEvent:M}=_;M||(x=b.map(i),yield a(x),w())});return o.on("legend:filter",O),o.on("legend:reset",S),()=>{for(const _ of b)_.removeEventListener("click",l.get(_)),_.removeEventListener("pointerenter",u.get(_)),_.removeEventListener("pointerout",f.get(_)),o.off("legend:filter",O),o.off("legend:reset",S)}}function CU(t,{legend:e,filter:n,emitter:r,channel:i}){const a=({detail:{value:o}})=>{n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return e.addEventListener("valuechange",a),()=>{e.removeEventListener("valuechange",a)}}function JA(t,{legend:e,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:s=!1}){return ul(this,void 0,void 0,function*(){const{view:c,update:l,setState:u}=t;u(e,f=>{const{marks:d}=f,h=d.map(p=>{if(p.type==="legends")return p;const{transform:v=[]}=p,g=v.findIndex(({type:b})=>b.startsWith("group")||b.startsWith("bin")),y=[...v];y.splice(g+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const m=Object.fromEntries(a.map(b=>[b,{domain:c.scale[b].getOptions().domain}]));return X({},p,Object.assign(Object.assign({transform:y,scale:m},!i&&{animate:!1}),{legend:s?!1:Object.fromEntries(o.map(b=>[b,{preserve:!0}]))}))});return Object.assign(Object.assign({},f),{marks:h})}),yield l()})}function LU(t,e){for(const n of t)JA(n,Object.assign(Object.assign({},e),{facet:!0}))}function NU(){return(t,e,n)=>{const{container:r}=t,i=e.filter(f=>f!==t),a=i.length>0,o=f=>tp(f).scales.map(d=>d.name),s=[...Ev(r),...QA(r)],c=s.flatMap(o),l=a?Ni(LU,50,{trailing:!0}):Ni(JA,50,{trailing:!0}),u=s.map(f=>{const{name:d,domain:h}=tp(f).scales[0],p=o(f),v={legend:f,channel:d,channels:p,allChannels:c};return f.className===UA?TU(r,{legends:ZA,marker:qA,label:KA,datum:g=>{const{__data__:y}=g,{index:m}=y;return h[m]},filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!0});l(a?i:t,y)},state:f.attributes.state,channel:d,emitter:n}):CU(r,{legend:f,filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!1});l(a?i:t,y)},emitter:n,channel:d})});return()=>{u.forEach(f=>f())}}}function RU(){return(t,e,n)=>{const{container:r,view:i,options:a}=t,o=Ev(r),s=ri(r),c=h=>tp(h).scales[0].name,l=h=>{const{scale:{[h]:p}}=i;return p},u=Qa(a,["active","inactive"]),f=ic(s,Xi(i)),d=[];for(const h of o){const p=D=>{const{data:$}=h.attributes,{__data__:B}=D,{index:F}=B;return $[F].label},v=c(h),g=ZA(h),y=l(v),m=te(s,D=>y.invert(D.__data__[v])),{state:b={}}=h.attributes,{inactive:x={}}=b,{setState:w,removeState:O}=Tr(u,f),S={inactive:Q(x,"marker")},_={inactive:Q(x,"label")},{setState:M,removeState:E}=Tr(S),{setState:P,removeState:T}=Tr(_),A=D=>{for(const $ of g){const B=qA($),F=KA($);$===D||D===null?(E(B,"inactive"),T(F,"inactive")):(M(B,"inactive"),P(F,"inactive"))}},k=(D,$)=>{const B=p($),F=new Set(m.get(B));for(const U of s)F.has(U)?w(U,"active"):w(U,"inactive");A($);const{nativeEvent:Y=!0}=D;Y&&n.emit("legend:highlight",Object.assign(Object.assign({},D),{nativeEvent:Y,data:{channel:v,value:B}}))},C=new Map;for(const D of g){const $=B=>{k(B,D)};D.addEventListener("pointerover",$),C.set(D,$)}const L=D=>{for(const B of s)O(B,"inactive","active");A(null);const{nativeEvent:$=!0}=D;$&&n.emit("legend:unhighlight",{nativeEvent:$})},I=D=>{const{nativeEvent:$,data:B}=D;if($)return;const{channel:F,value:Y}=B;if(F!==v)return;const U=g.find(K=>p(K)===Y);U&&k({nativeEvent:!1},U)},R=D=>{const{nativeEvent:$}=D;$||L({nativeEvent:!1})};h.addEventListener("pointerleave",L),n.on("legend:highlight",I),n.on("legend:unhighlight",R);const j=()=>{h.removeEventListener(L),n.off("legend:highlight",I),n.off("legend:unhighlight",R);for(const[D,$]of C)D.removeEventListener($)};d.push(j)}return()=>d.forEach(h=>h())}}var fn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii||ca||l{const e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:s={},handleSize:c=10,document:l}=e,u=fn(e,["x","y","width","height","class","renders","handleSize","document"]);if(!l||i===void 0||a===void 0||n===void 0||r===void 0)return;const f=c/2,d=(Y,U,K)=>{Y.handle||(Y.handle=K.createElement("rect"),Y.append(Y.handle));const{handle:V}=Y;return V.attr(U),V},h=Q(Pf(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,v=fn(h,["render"]),g=Q(u,"handleE"),{render:y=d}=g,m=fn(g,["render"]),b=Q(Pf(u,"handleSE","handleSW"),"handleS"),{render:x=d}=b,w=fn(b,["render"]),O=Q(u,"handleW"),{render:S=d}=O,_=fn(O,["render"]),M=Q(u,"handleNW"),{render:E=d}=M,P=fn(M,["render"]),T=Q(u,"handleNE"),{render:A=d}=T,k=fn(T,["render"]),C=Q(u,"handleSE"),{render:L=d}=C,I=fn(C,["render"]),R=Q(u,"handleSW"),{render:j=d}=R,D=fn(R,["render"]),$=(Y,U)=>{const{id:K}=Y,V=Y.attributes,W=fn(V,["x","y"]),J=U(Y,Object.assign({x:0,y:0},W),l);J.id=K,J.style.draggable=!0},B=Y=>()=>{const U=Fa(K=>$(K,Y));return new U({})},F=st(t).attr("className",o).style("x",n).style("y",r).style("draggable",!0);F.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(mr,Object.assign({width:i,height:a},Pf(u,"handle"))),F.maybeAppend("handle-n",B(p)).style("x",f).style("y",-f).style("width",i-c).style("height",c).style("fill","transparent").call(mr,v),F.maybeAppend("handle-e",B(y)).style("x",i-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(mr,m),F.maybeAppend("handle-s",B(x)).style("x",f).style("y",a-f).style("width",i-c).style("height",c).style("fill","transparent").call(mr,w),F.maybeAppend("handle-w",B(S)).style("x",-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(mr,_),F.maybeAppend("handle-nw",B(E)).style("x",-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(mr,P),F.maybeAppend("handle-ne",B(A)).style("x",i-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(mr,k),F.maybeAppend("handle-se",B(L)).style("x",i-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(mr,I),F.maybeAppend("handle-sw",B(j)).style("x",-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(mr,D)});function Pv(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:s=DU(t),brushRegion:c=(V,W,J,et,it)=>[V,W,J,et],reverse:l=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,p=fn(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let v=null,g=null,y=null,m=null,b=null,x=!1;const[w,O,S,_]=s;Gr(t,"crosshair"),t.style.draggable=!0;const M=(V,W,J)=>{if(a(J),m&&m.remove(),b&&b.remove(),v=[V,W],l)return E();P()},E=()=>{b=new Xe({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),m=new pb({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(m)},P=()=>{m=new pb({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(m)},T=(V=!0)=>{m&&m.remove(),b&&b.remove(),v=null,g=null,y=null,x=!1,m=null,b=null,r(V)},A=(V,W,J=!0)=>{const[et,it,ct,ot]=jU(V[0],V[1],W[0],W[1],s),[lt,xt,Et,Xt]=c(et,it,ct,ot,s);return l?C(lt,xt,Et,Xt):k(lt,xt,Et,Xt),n(lt,xt,Et,Xt,J),[lt,xt,Et,Xt]},k=(V,W,J,et)=>{m.style.x=V,m.style.y=W,m.style.width=J-V,m.style.height=et-W},C=(V,W,J,et)=>{b.style.d=` - M${w},${O}L${S},${O}L${S},${_}L${w},${_}Z - M${V},${W}L${V},${et}L${J},${et}L${J},${W}Z - `,m.style.x=V,m.style.y=W,m.style.width=J-V,m.style.height=et-W},L=V=>{const W=(xt,Et,Xt,ue,Ke)=>xt+EtKe?Ke-Xt:xt,J=V[0]-y[0],et=V[1]-y[1],it=W(J,v[0],g[0],w,S),ct=W(et,v[1],g[1],O,_),ot=[v[0]+it,v[1]+ct],lt=[g[0]+it,g[1]+ct];A(ot,lt)},I={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},R=V=>D(V)||j(V),j=V=>{const{id:W}=V;return h.indexOf(W)===-1?!1:new Set(Object.keys(I)).has(W)},D=V=>V===m.getElementById("selection"),$=V=>{const{target:W}=V,[J,et]=Sd(t,V);if(!m||!R(W)){M(J,et,V),x=!0;return}R(W)&&(y=[J,et])},B=V=>{const{target:W}=V,J=Sd(t,V);if(!v)return;if(!y)return A(v,J);if(D(W))return L(J);const[et,it]=[J[0]-y[0],J[1]-y[1]],{id:ct}=W;if(I[ct]){const[ot,lt,xt,Et]=I[ct].vector;return A([v[0]+et*ot,v[1]+it*lt],[g[0]+et*xt,g[1]+it*Et])}},F=V=>{if(y){y=null;const{x:ct,y:ot,width:lt,height:xt}=m.style;v=[ct,ot],g=[ct+lt,ot+xt],o(ct,ot,ct+lt,ot+xt,V);return}g=Sd(t,V);const[W,J,et,it]=A(v,g);x=!1,i(W,J,et,it,V)},Y=V=>{const{target:W}=V;m&&!R(W)&&T()},U=V=>{const{target:W}=V;!m||!R(W)||x?Gr(t,"crosshair"):D(W)?Gr(t,"move"):j(W)&&Gr(t,I[W.id].cursor)},K=()=>{Gr(t,"default")};return t.addEventListener("dragstart",$),t.addEventListener("drag",B),t.addEventListener("dragend",F),t.addEventListener("click",Y),t.addEventListener("pointermove",U),t.addEventListener("pointerleave",K),{mask:m,move(V,W,J,et,it=!0){m||M(V,W,{}),v=[V,W],g=[J,et],A([V,W],[J,et],it)},remove(V=!0){m&&T(V)},destroy(){m&&T(!1),Gr(t,"default"),t.removeEventListener("dragstart",$),t.removeEventListener("drag",B),t.removeEventListener("dragend",F),t.removeEventListener("click",Y),t.removeEventListener("pointermove",U),t.removeEventListener("pointerleave",K)}}}function Av(t,e,n){return e.filter(r=>{if(r===t)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function $U(t,e,n){return Av(t,e,n).map(r=>jr(r.container))}function BU(t,e,n){return Av(t,e,n).map(r=>r.options)}function vb(t,e){var{elements:n,selectedHandles:r,siblings:i=B=>[],datum:a,brushRegion:o,extent:s,reverse:c,scale:l,coordinate:u,series:f=!1,key:d=B=>B,bboxOf:h=B=>{const{x:F,y:Y,width:U,height:K}=B.style;return{x:F,y:Y,width:U,height:K}},state:p={},emitter:v}=e,g=fn(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(t),m=i(t),b=m.flatMap(n),x=ic(y,a),w=Q(g,"mask"),{setState:O,removeState:S}=Tr(p,x),_=new Map,{width:M,height:E,x:P=0,y:T=0}=h(t),A=s||[0,0,M,E],k=()=>{for(const B of[...y,...b])S(B,"active","inactive")},C=(B,F,Y,U)=>{var K;for(const W of m)(K=W.brush)===null||K===void 0||K.remove();const V=new Set;for(const W of y){const{min:J,max:et}=W.getLocalBounds(),[it,ct]=J,[ot,lt]=et;IU([it,ct,ot,lt],[B,F,Y,U])?(O(W,"active"),V.add(d(W))):O(W,"inactive")}for(const W of b)V.has(d(W))?O(W,"active"):O(W,"inactive")},L=()=>{for(const B of y)S(B,"inactive");for(const B of _.values())B.remove();_.clear()},I=(B,F,Y,U)=>{const K=V=>{const W=V.cloneNode();return W.__data__=V.__data__,V.parentNode.appendChild(W),_.set(V,W),W};for(const V of y){const W=_.get(V)||K(V);W.style.clipPath=new Zi({style:{x:B+P,y:F+T,width:Y-B,height:U-F}}),O(V,"inactive"),O(W,"active")}},R=Pv(t,Object.assign(Object.assign({},w),{extent:A,brushRegion:o,reverse:c,selectedHandles:r,brushended:B=>{const F=f?L:k;B&&v.emit("brush:remove",{nativeEvent:!0}),F()},brushed:(B,F,Y,U,K)=>{const V=cl(B,F,Y,U,l,u);K&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:V}}),(f?I:C)(B,F,Y,U)},brushcreated:(B,F,Y,U,K)=>{const V=cl(B,F,Y,U,l,u);v.emit("brush:end",Object.assign(Object.assign({},K),{nativeEvent:!0,data:{selection:V}}))},brushupdated:(B,F,Y,U,K)=>{const V=cl(B,F,Y,U,l,u);v.emit("brush:end",Object.assign(Object.assign({},K),{nativeEvent:!0,data:{selection:V}}))},brushstarted:B=>{v.emit("brush:start",B)}})),j=({nativeEvent:B,data:F})=>{if(B)return;const{selection:Y}=F,[U,K,V,W]=UF(Y,l,u);R.move(U,K,V,W,!1)};v.on("brush:highlight",j);const D=({nativeEvent:B}={})=>{B||R.remove(!1)};v.on("brush:remove",D);const $=R.destroy.bind(R);return R.destroy=()=>{v.off("brush:highlight",j),v.off("brush:remove",D),$()},R}function kv(t){var{facet:e,brushKey:n}=t,r=fn(t,["facet","brushKey"]);return(i,a,o)=>{const{container:s,view:c,options:l}=i,u=jr(s),f={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:h,coordinate:p}=c;if(e){const g=u.getBounds(),y=g.min[0],m=g.min[1],b=g.max[0],x=g.max[1];return vb(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>CA(i,a),datum:Xi(Qh(i,a).map(w=>w.view)),brushRegion:(w,O,S,_)=>[w,O,S,_],extent:[y,m,b,x],state:Qa(Qh(i,a).map(w=>w.options),d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r))}const v=vb(u,Object.assign(Object.assign({elements:ri,key:g=>g.__data__.key,siblings:()=>$U(i,a,n),datum:Xi([c,...Av(i,a,n).map(g=>g.view)]),brushRegion:(g,y,m,b)=>[g,y,m,b],extent:void 0,state:Qa([l,...BU(i,a,n)],d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r));return u.brush=v,()=>v.destroy()}}function Tv(t,e,n,r,i){const[,a,,o]=i;return[t,a,n,o]}function FU(t){return kv(Object.assign(Object.assign({},t),{brushRegion:Tv,selectedHandles:["handle-e","handle-w"]}))}function Cv(t,e,n,r,i){const[a,,o]=i;return[a,e,o,r]}function zU(t){return kv(Object.assign(Object.assign({},t),{brushRegion:Cv,selectedHandles:["handle-n","handle-s"]}))}var Lv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[-1/0,v,1/0,y]:(p,v,g,y)=>[Math.floor(l-r),v,Math.ceil(f-r),y]}}function UU(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=Lv(e,["offsetY","offsetX","cross"]);const o=nk(t),s=ek(t),[,c]=s.getLocalBounds().min,[l,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:Tv,hotZone:new Zi({className:tk,style:Object.assign({x:l,width:f-l,y:i?u:c-h,height:i?h:h*2},a)}),extent:i?(p,v,g,y)=>[p,-1/0,g,1/0]:(p,v,g,y)=>[p,Math.floor(u-n),g,Math.ceil(d-n)]}}function qU(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:s,offsetX:c,reverse:l=!1,state:u={},emitter:f,coordinate:d}=e,h=Lv(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(t),v=n(t),g=ic(p,o),{setState:y,removeState:m}=Tr(u,g),b=new Map,x=Q(h,"mask"),w=j=>Array.from(b.values()).every(([D,$,B,F])=>j.some(([Y,U])=>Y>=D&&Y<=B&&U>=$&&U<=F)),O=v.map(j=>j.attributes.scale),S=j=>j.length>2?[j[0],j[j.length-1]]:j,_=new Map,M=()=>{_.clear();for(let j=0;j{const $=[];for(const F of p){const Y=i(F);w(Y)?(y(F,"active"),$.push(F)):y(F,"inactive")}if(_.set(j,T($,j)),!D)return;const B=()=>{if(!A)return Array.from(_.values());const F=[];for(const[Y,U]of _){const K=O[Y],{name:V}=K.getOptions();V==="x"?F[0]=U:F[1]=U}return F};f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:B()}})},P=j=>{for(const D of p)m(D,"active","inactive");M(),j&&f.emit("brushAxis:remove",{nativeEvent:!0})},T=(j,D)=>{const $=O[D],{name:B}=$.getOptions(),F=j.map(Y=>{const U=Y.__data__;return $.invert(U[B])});return S(Vr($,F))},A=v.some(a)&&v.some(j=>!a(j)),k=[];for(let j=0;j{const{nativeEvent:D}=j;D||k.forEach($=>$.remove(!1))},L=(j,D,$)=>{const[B,F]=j,Y=V=>V.getStep?V.getStep():0,U=I(B,D,$),K=I(F,D,$)+Y(D);return a($)?[U,-1/0,K,1/0]:[-1/0,U,1/0,K]},I=(j,D,$)=>{const{height:B,width:F}=d.getOptions(),Y=D.clone();return a($)?Y.update({range:[0,F]}):Y.update({range:[B,0]}),Y.map(j)},R=j=>{const{nativeEvent:D}=j;if(D)return;const{selection:$}=j.data;for(let B=0;B{k.forEach(j=>j.destroy()),f.off("brushAxis:remove",C),f.off("brushAxis:highlight",R)}}function KU(t){return(e,n,r)=>{const{container:i,view:a,options:o}=e,s=jr(i),{x:c,y:l}=s.getBBox(),{coordinate:u}=a;return qU(i,Object.assign({elements:ri,axes:HU,offsetY:l,offsetX:c,points:f=>f.__data__.points,horizontal:f=>{const{startPos:[d,h],endPos:[p,v]}=f.attributes;return d!==p&&h===v},datum:Xi(a),state:Qa(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}}var ZU=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},rk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{timeStamp:r}=n;return e!==null&&r-e{if(O)return;const{selection:_}=S;n(_,{nativeEvent:!1})};return s.on("brush:filter",w),()=>{m.destroy(),s.off("brush:filter",w),t.removeEventListener("click",x)}}function Nv(t){var{hideX:e=!0,hideY:n=!0}=t,r=rk(t,["hideX","hideY"]);return(i,a,o)=>{const{container:s,view:c,options:l,update:u,setState:f}=i,d=jr(s),h={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1};let p=!1,v=!1,g=c;const{scale:y,coordinate:m}=c;return JU(d,Object.assign(Object.assign({brushRegion:(b,x,w,O)=>[b,x,w,O],selection:(b,x,w,O)=>{const{scale:S,coordinate:_}=g;return cl(b,x,w,O,S,_)},filter:(b,x)=>ZU(this,void 0,void 0,function*(){if(v)return;v=!0;const[w,O]=b;f("brushFilter",_=>{const{marks:M}=_,E=M.map(P=>X({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},P,{scale:{x:{domain:w,nice:!1},y:{domain:O,nice:!1}}}));return Object.assign(Object.assign({},l),{marks:E,clip:!0})}),o.emit("brush:filter",Object.assign(Object.assign({},x),{data:{selection:[w,O]}})),g=(yield u()).view,v=!1,p=!0}),reset:b=>{if(v||!p)return;const{scale:x}=c,{x:w,y:O}=x,S=w.getOptions().domain,_=O.getOptions().domain;o.emit("brush:filter",Object.assign(Object.assign({},b),{data:{selection:[S,_]}})),p=!1,g=c,f("brushFilter"),u()},extent:void 0,emitter:o,scale:y,coordinate:m},h),r))}}function tq(t){return Nv(Object.assign(Object.assign({hideX:!0},t),{brushRegion:Tv}))}function eq(t){return Nv(Object.assign(Object.assign({hideY:!0},t),{brushRegion:Cv}))}var nq=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const rq="slider";function iq(t,e,n,r=!1,i="x",a="y"){const{marks:o}=t,s=o.map(c=>{var l,u;return X({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},c,{scale:e,[n]:Object.assign(Object.assign({},((l=c[n])===null||l===void 0?void 0:l[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),((u=c[n])===null||u===void 0?void 0:u[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:s,clip:!0,animate:!1})}function aq(t,e,n){const[r,i]=t,a=n?c=>1-c:c=>c,o=Ha(e,a(r),!0),s=Ha(e,a(i),!1);return Vr(e,[o,s])}function Kc(t){return[t[0],t[t.length-1]]}function ik({initDomain:t={},className:e=rq,prefix:n="slider",setValue:r=(l,u)=>l.setValues(u),hasState:i=!1,wait:a=50,leading:o=!0,trailing:s=!1,getInitValues:c=l=>{var u;const f=(u=l==null?void 0:l.attributes)===null||u===void 0?void 0:u.values;if(f[0]!==0||f[1]!==1)return f}}){return(l,u,f)=>{const{container:d,view:h,update:p,setState:v}=l,g=d.getElementsByClassName(e);if(!g.length)return()=>{};let y=!1;const{scale:m,coordinate:b,layout:x}=h,{paddingLeft:w,paddingTop:O,paddingBottom:S,paddingRight:_}=x,{x:M,y:E}=m,P=qt(b),T=L=>{const I=L==="vertical"?"y":"x",R=L==="vertical"?"x":"y";return P?[R,I]:[I,R]},A=new Map,k=new Set,C={x:t.x||M.getOptions().domain,y:t.y||E.getOptions().domain};for(const L of g){const{orientation:I}=L.attributes,[R,j]=T(I),D=`${n}${ii(R)}:filter`,$=R==="x",{ratio:B}=M.getOptions(),{ratio:F}=E.getOptions(),Y=W=>{if(W.data){const{selection:ot}=W.data,[lt=Kc(C.x),xt=Kc(C.y)]=ot;return $?[Vr(M,lt,B),Vr(E,xt,F)]:[Vr(E,xt,F),Vr(M,lt,B)]}const{value:J}=W.detail,et=m[R],it=aq(J,et,P&&I==="horizontal"),ct=C[j];return[it,ct]},U=Ni(W=>nq(this,void 0,void 0,function*(){const{initValue:J=!1}=W;if(y&&!J)return;y=!0;const{nativeEvent:et=!0}=W,[it,ct]=Y(W);if(C[R]=it,C[j]=ct,et){const ot=$?it:ct,lt=$?ct:it;f.emit(D,Object.assign(Object.assign({},W),{nativeEvent:et,data:{selection:[Kc(ot),Kc(lt)]}}))}v(L,ot=>Object.assign(Object.assign({},iq(ot,{[R]:{domain:it,nice:!1}},n,i,R,j)),{paddingLeft:w,paddingTop:O,paddingBottom:S,paddingRight:_})),yield p(),y=!1}),a,{leading:o,trailing:s}),K=W=>{const{nativeEvent:J}=W;if(J)return;const{data:et}=W,{selection:it}=et,[ct,ot]=it;L.dispatchEvent(new Dt("valuechange",{data:et,nativeEvent:!1}));const lt=$?ql(ct,M):ql(ot,E);r(L,lt)};f.on(D,K),L.addEventListener("valuechange",U),A.set(L,U),k.add([D,K]);const V=c(L);V&&L.dispatchEvent(new Dt("valuechange",{detail:{value:V},nativeEvent:!1,initValue:!0}))}return p(),()=>{for(const[L,I]of A)L.removeEventListener("valuechange",I);for(const[L,I]of k)f.off(L,I)}}}const gb="g2-scrollbar";function oq(t={}){return(e,n,r)=>{const{view:i,container:a}=e;if(!a.getElementsByClassName(gb).length)return()=>{};const{scale:s}=i,{x:c,y:l}=s,u={x:[...c.getOptions().domain],y:[...l.getOptions().domain]};return c.update({domain:c.getOptions().expectedDomain}),l.update({domain:l.getOptions().expectedDomain}),ik(Object.assign(Object.assign({},t),{initDomain:u,className:gb,prefix:"scrollbar",hasState:!0,setValue:(d,h)=>d.setValue(h[0]),getInitValues:d=>{const h=d.slider.attributes.values;if(h[0]!==0)return h}}))(e,n,r)}}var sq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i${e}`}const lq={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function yb(t){return t.nodeName!=="text"?!1:!!t.isOverflowing()}function ak(t){var{offsetX:e=8,offsetY:n=8}=t,r=sq(t,["offsetX","offsetY"]);return i=>{const{container:a}=i,[o,s]=a.getBounds().min,c=Q(r,"tip"),l=new Set,u=d=>{const{target:h}=d;if(!yb(h)){d.stopPropagation();return}const{offsetX:p,offsetY:v}=d,g=p+e-o,y=v+n-s;if(h.tip){h.tip.style.x=g,h.tip.style.y=y;return}const{text:m}=h.style,b=new Bu({className:"poptip",style:{innerHTML:cq("div",m,Object.assign(Object.assign({},lq),c)),x:g,y}});a.appendChild(b),h.tip=b,l.add(b)},f=d=>{const{target:h}=d;if(!yb(h)){d.stopPropagation();return}h.tip&&(h.tip.remove(),h.tip=null,l.delete(h.tip))};return a.addEventListener("pointerover",u),a.addEventListener("pointerout",f),()=>{a.removeEventListener("pointerover",u),a.removeEventListener("pointerout",f),l.forEach(d=>d.remove())}}}ak.props={reapplyWhenUpdate:!0};var uq=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},fq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.querySelectorAll(".element");function hq(t){return st(t).select(`.${Kl}`).node()}const pq={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};function vq(t={}){const{originData:e=[],layout:n}=t,r=fq(t,["originData","layout"]),i=X({},pq,r),a=Q(i,"breadCrumb"),o=Q(i,"active");return s=>{const{update:c,setState:l,container:u,options:f}=s,d=hq(u),h=f.marks[0],{state:p}=h,v=new Ce;d.appendChild(v);const g=(x,w)=>uq(this,void 0,void 0,function*(){if(v.removeChildren(),w){let O="",S=a.y,_=0;const M=[],E=d.getBBox().width,P=x.map((T,A)=>{O=`${O}${T}/`,M.push(T);const k=new ei({name:O.replace(/\/$/,""),style:Object.assign(Object.assign({text:T,x:_,path:[...M],depth:A},a),{y:S})});v.appendChild(k),_+=k.getBBox().width;const C=new ei({style:Object.assign(Object.assign({x:_,text:" / "},a),{y:S})});return v.appendChild(C),_+=C.getBBox().width,_>E&&(S=v.getBBox().height+a.y,_=0,k.attr({x:_,y:S}),_+=k.getBBox().width,C.attr({x:_,y:S}),_+=C.getBBox().width),A===Uv(x)-1&&C.remove(),k});P.forEach((T,A)=>{if(A===Uv(P)-1)return;const k=Object.assign({},T.attributes);T.attr("cursor","pointer"),T.addEventListener("mouseenter",()=>{T.attr(o)}),T.addEventListener("mouseleave",()=>{T.attr(k)}),T.addEventListener("click",()=>{g(je(T,["style","path"]),je(T,["style","depth"]))})})}kU(u,l),l("treemapDrillDown",O=>{const{marks:S}=O,_=x.join("/"),M=S.map(E=>{if(E.type!=="rect")return E;let P=e;if(w){const A=e.filter(R=>{const j=je(R,["id"]);return j&&(j.match(`${_}/`)||_.match(j))}).map(R=>({value:R.height===0?je(R,["value"]):void 0,name:je(R,["id"])})),{paddingLeft:k,paddingBottom:C,paddingRight:L}=n,I=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||v.getBBox().height+10)/(w+1),paddingLeft:k/(w+1),paddingBottom:C/(w+1),paddingRight:L/(w+1),path:R=>R.name,layer:R=>R.depth===w+1});P=G_(A,I,{value:"value"})[0]}else P=e.filter(A=>A.depth===1);const T=[];return P.forEach(({path:A})=>{T.push(Ns(A))}),X({},E,{data:P,scale:{color:{domain:T}}})});return Object.assign(Object.assign({},O),{marks:M})}),yield c(void 0,["legendFilter"])}),y=x=>{const w=x.target;if(je(w,["markType"])!=="rect")return;const O=je(w,["__data__","key"]),S=Vv(e,_=>_.id===O);je(S,"height")&&g(je(S,"path"),je(S,"depth"))};d.addEventListener("click",y);const m=Rb(Object.assign(Object.assign({},p.active),p.inactive)),b=()=>{dq(d).forEach(w=>{const O=je(w,["style","cursor"]),S=Vv(e,_=>_.id===je(w,["__data__","key"]));if(O!=="pointer"&&(S!=null&&S.height)){w.style.cursor="pointer";const _=Fk(w.attributes,m);w.addEventListener("mouseenter",()=>{w.attr(p.active)}),w.addEventListener("mouseleave",()=>{w.attr(X(_,p.inactive))})}})};return b(),d.addEventListener("mousemove",b),()=>{v.remove(),d.removeEventListener("click",y),d.removeEventListener("mousemove",b)}}}function ep(t){const{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function mb(t,e){const[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}function gq(t,e){const[n,r]=t;return!(mb(n,e)&&mb(r,e))}function yq(t,e){const[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]}const mq=t=>{const{priority:e}=t;return n=>{const r=[];return e&&n.sort(e),n.forEach(i=>{Ov(i);const a=i.getLocalBounds();r.some(s=>yq(ep(a),ep(s.getLocalBounds())))?wv(i):r.push(i)}),n}};function bq([t,e],[n,r]){return r>t&&e>n}function Zc(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function xq(t){const e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);const{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}const wq=t=>{const{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=Zc(),[c,l]=Zc(),[u,f]=Zc(),[d,h]=Zc();for(const p of i){const{min:v,max:g}=xq(p),[y,m]=v,[b,x]=g;s(p,m),l(p,m),f(p,x-m),h(p,[y,b])}for(let p=0;poe(c(g),c(y)));let v=0;for(let g=0;gok(t,Oq(r)));return e[n]}const _q=t=>{const{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;ok(o,a)t=>(t.forEach(e=>{Ov(e);const n=e.attr("bounds"),r=e.getLocalBounds();gq(ep(r),n)&&wv(e)}),t);function Eq(){return{"data.fetch":cM,"data.inline":vM,"data.sortBy":pM,"data.sort":fM,"data.filter":uM,"data.pick":dM,"data.rename":hM,"data.fold":lM,"data.slice":wM,"data.custom":gM,"data.map":yM,"data.join":xM,"data.kde":_M,"data.log":CM,"transform.stackY":Sx,"transform.binX":G2,"transform.bin":Tp,"transform.dodgeX":Rx,"transform.jitter":_2,"transform.jitterX":M2,"transform.jitterY":E2,"transform.symmetryY":P2,"transform.diffY":A2,"transform.stackEnter":Ix,"transform.normalizeY":jx,"transform.select":ku,"transform.selectX":k2,"transform.selectY":T2,"transform.groupX":C2,"transform.groupY":L2,"transform.groupColor":N2,"transform.group":Gs,"transform.sortX":I2,"transform.sortY":D2,"transform.sortColor":j2,"transform.flexX":$2,"transform.pack":z2,"transform.sample":Y2,"transform.filter":W2,"coordinate.cartesian":_b,"coordinate.polar":Cs,"coordinate.transpose":ap,"coordinate.theta":Eb,"coordinate.parallel":sp,"coordinate.fisheye":Ab,"coordinate.radial":op,"coordinate.radar":kb,"encode.constant":Tb,"encode.field":Lb,"encode.transform":Cb,"encode.column":Nb,"mark.interval":f_,"mark.rect":d_,"mark.line":h_,"mark.point":p_,"mark.text":v_,"mark.cell":g_,"mark.area":y_,"mark.link":P0,"mark.image":m_,"mark.polygon":b_,"mark.box":x_,"mark.vector":w_,"mark.lineX":S_,"mark.lineY":O_,"mark.connector":__,"mark.range":M_,"mark.rangeX":E_,"mark.rangeY":P_,"mark.path":L_,"mark.shape":U_,"mark.density":RM,"mark.heatmap":IM,"palette.category10":DM,"palette.category20":$M,"scale.linear":FM,"scale.ordinal":zM,"scale.band":BM,"scale.identity":GM,"scale.point":YM,"scale.time":WM,"scale.log":HM,"scale.pow":VM,"scale.sqrt":KM,"scale.threshold":XM,"scale.quantile":UM,"scale.quantize":qM,"scale.sequential":ZM,"scale.constant":QM,"theme.classic":JM,"theme.classicDark":eE,"theme.academy":nE,"theme.light":I0,"theme.dark":tE,"component.axisX":hE,"component.axisY":pE,"component.legendCategory":D0,"component.legendContinuous":hi,"component.legends":SE,"component.title":mE,"component.sliderX":bE,"component.sliderY":xE,"component.scrollbarX":wE,"component.scrollbarY":OE,"animation.scaleInX":B0,"animation.scaleOutX":tz,"animation.scaleInY":_E,"animation.scaleOutY":ez,"animation.waveIn":kE,"animation.fadeIn":ME,"animation.fadeOut":EE,"animation.zoomIn":uz,"animation.zoomOut":fz,"animation.pathIn":TE,"animation.morphing":AE,"animation.growInX":CE,"animation.growInY":LE,"interaction.elementHighlight":pf,"interaction.elementHighlightByX":DA,"interaction.elementHighlightByColor":$A,"interaction.elementSelect":vf,"interaction.elementSelectByX":BA,"interaction.elementSelectByColor":FA,"interaction.fisheye":vU,"interaction.chartIndex":zA,"interaction.tooltip":XA,"interaction.legendFilter":NU,"interaction.legendHighlight":RU,"interaction.brushHighlight":kv,"interaction.brushXHighlight":FU,"interaction.brushYHighlight":zU,"interaction.brushAxisHighlight":KU,"interaction.brushFilter":Nv,"interaction.brushXFilter":tq,"interaction.brushYFilter":eq,"interaction.sliderFilter":ik,"interaction.scrollbarFilter":oq,"interaction.poptip":ak,"interaction.treemapDrillDown":vq,"composition.spaceLayer":UE,"composition.spaceFlex":qE,"composition.facetRect":tP,"composition.repeatMatrix":oY,"composition.facetCircle":dY,"composition.timingKeyframe":eP,"labelTransform.overlapHide":mq,"labelTransform.overlapDodgeY":wq,"labelTransform.overflowHide":Mq,"labelTransform.contrastReverse":_q}}function Pq(){return{"composition.geoView":TP,"composition.geoPath":nP}}function Aq(){return{"data.arc":k0,"data.cluster":iM,"mark.forceGraph":nM,"mark.tree":oM,"mark.pack":W_,"mark.sankey":T_,"mark.chord":C_,"mark.treemap":Y_}}function kq(){return{"data.venn":TM,"mark.boxplot":X_,"mark.gauge":NM,"mark.wordCloud":LM,"mark.liquid":jM}}function Tq(){return Object.assign(Object.assign(Object.assign(Object.assign({},Pq()),Aq()),kq()),Eq())}function Cq(t,e){class n extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:e}))}}return n}const Lq={},ca=t=>t?parseInt(t):0;function Nq(t){const e=getComputedStyle(t),n=t.clientWidth||ca(e.width),r=t.clientHeight||ca(e.height),i=ca(e.paddingLeft)+ca(e.paddingRight),a=ca(e.paddingTop)+ca(e.paddingBottom);return{width:n-i,height:r-a}}function Ed(t,e){const n=[t];for(;n.length;){const r=n.shift();e&&e(r);const i=r.children||[];for(const a of i)n.push(a)}}class Rv{constructor(e={},n){this.parentNode=null,this.children=[],this.index=0,this.type=n,this.value=e}map(e=n=>n){const n=e(this.value);return this.value=n,this}attr(e,n){return arguments.length===1?this.value[e]:this.map(r=>(r[e]=n,r))}append(e){const n=new e({});return n.children=[],this.push(n),n}push(e){return e.parentNode=this,e.index=this.children.length,this.children.push(e),this}remove(){const e=this.parentNode;if(e){const{children:n}=e,r=n.findIndex(i=>i===this);n.splice(r,1)}return this}getNodeByKey(e){let n=null;return Ed(this,i=>{e===i.attr("key")&&(n=i)}),n}getNodesByType(e){const n=[];return Ed(this,i=>{e===i.type&&n.push(i)}),n}getNodeByType(e){let n=null;return Ed(this,r=>{n||e===r.type&&(n=r)}),n}call(e,...n){return e(this.map(),...n),this}getRoot(){let e=this;for(;e&&e.parentNode;)e=e.parentNode;return e}}var sk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{e=r,t=i}),e,t]}function Xq(t,e,{key:n=e}){t.prototype[e]=function(r){return arguments.length===0?this.attr(n):this.attr(n,r)}}function Uq(t,e,{key:n=e}){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,r);const i=[...this.attr(n)||[],r];return this.attr(n,i)}}function qq(t,e,{key:n=e}){t.prototype[e]=function(r,i){if(arguments.length===0)return this.attr(n);if(arguments.length===1&&typeof r!="string")return this.attr(n,r);const a=this.attr(n)||{};return a[r]=arguments.length===1?!0:i,this.attr(n,a)}}function Kq(t,e,n){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,{items:r});if(is(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(e,r);if(r===null||r===!1)return this.attr(e,r);const i=this.attr(e)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(e,i)}}function Zq(t,e,{ctor:n}){t.prototype[e]=function(r){const i=this.append(n);return e==="mark"&&(i.type=r),i}}function Qq(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}function vu(t){return e=>{for(const[n,r]of Object.entries(t)){const{type:i}=r;i==="value"?Xq(e,n,r):i==="array"?Uq(e,n,r):i==="object"?qq(e,n,r):i==="node"?Zq(e,n,r):i==="container"?Qq(e,n,r):i==="mix"&&Kq(e,n)}return e}}function Sb(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,{type:"node",ctor:n}]))}const uk={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},Jq=Object.assign(Object.assign({},uk),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),tK=Object.assign(Object.assign({},uk),{labelTransform:{type:"array"}});var eK=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let gu=class extends Rv{changeData(e){var n;const r=this.getRoot();if(r)return this.attr("data",e),!((n=this.children)===null||n===void 0)&&n.length&&this.children.forEach(i=>{i.attr("data",e)}),r==null?void 0:r.render()}getView(){const e=this.getRoot(),{views:n}=e.getContext();if(n!=null&&n.length)return n.find(r=>r.key===this._key)}getScale(){var e;return(e=this.getView())===null||e===void 0?void 0:e.scale}getScaleByChannel(e){const n=this.getScale();if(n)return n[e]}getCoordinate(){var e;return(e=this.getView())===null||e===void 0?void 0:e.coordinate}getTheme(){var e;return(e=this.getView())===null||e===void 0?void 0:e.theme}getGroup(){const e=this._key;return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}show(){const e=this.getGroup();e&&!e.isVisible()&&Ov(e)}hide(){const e=this.getGroup();e&&e.isVisible()&&wv(e)}};gu=eK([vu(tK)],gu);var nK=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let rp=class extends Rv{changeData(e){const n=this.getRoot();if(n)return this.attr("data",e),n==null?void 0:n.render()}getMark(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(!n)return;const{markState:r}=n,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(n)return n==null?void 0:n.scale}getScaleByChannel(e){var n,r;const i=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[e]}getGroup(){const e=this.attr("key");return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}};rp=nK([vu(Jq)],rp);var rK=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},iK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{this.forceFit()},300),this._renderer=i||new IE,this._plugins=a||[],this._container=Rq(n),this._emitter=new DE,this._context={library:Object.assign(Object.assign({},o),Lq),emitter:this._emitter,canvas:r},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;const e=new Promise((a,o)=>QX(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[n,r,i]=Vq();return e.then(r).catch(i).then(()=>this._renderTrailing()),n}options(e){if(arguments.length===0)return Dq(this);const{type:n}=e;return n&&(this._previousDefinedType=n),Hq(this,e,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(e,n,r){return this._emitter.on(e,n,r),this}once(e,n){return this._emitter.once(e,n),this}emit(e,...n){return this._emitter.emit(e,...n),this}off(e,n){return this._emitter.off(e,n),this}clear(){const e=this.options();this.emit(Lt.BEFORE_CLEAR),this._reset(),cb(e,this._context,!1),this.emit(Lt.AFTER_CLEAR)}destroy(){const e=this.options();this.emit(Lt.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),cb(e,this._context,!0),this._container[ck]&&Iq(this._container),this.emit(Lt.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:e,height:n}=Pd(this.options(),this._container);if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(Lt.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Lt.AFTER_CHANGE_SIZE)}),r}changeSize(e,n){if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(Lt.BEFORE_CHANGE_SIZE),this.attr("width",e),this.attr("height",n);const r=this.render();return r.then(()=>{this.emit(Lt.AFTER_CHANGE_SIZE)}),r}_create(){const{library:e}=this._context,n=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(e).filter(n)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends rp{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(e).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends gu{constructor(){super({},o)}};return s=rK([vu(Sb(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))vu(Sb(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const e=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([n])=>n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||e.includes(n))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const e=this._trailingResolve.bind(this);this._trailingResolve=null,e(this)}).catch(e=>{const n=this._trailingReject.bind(this);this._trailingReject=null,n(e)}))}_createResolve(e){return()=>{this._rendering=!1,e(this)}}_createReject(e){return n=>{this._rendering=!1,e(n)}}_computedOptions(){const e=this.options(),{key:n=aK}=e,{width:r,height:i,depth:a}=Pd(e,this._container);return this._width=r,this._height=i,this._key=n,Object.assign(Object.assign({key:this._key},e),{width:r,height:i,depth:a})}_createCanvas(){const{width:e,height:n}=Pd(this.options(),this._container);this._plugins.push(new jE),this._plugins.forEach(r=>this._renderer.registerPlugin(r)),this._context.canvas=new Hw({container:this._container,width:e,height:n,renderer:this._renderer})}_addToTrailing(){var e;return(e=this._trailingResolve)===null||e===void 0||e.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const e=this.options(),{autoFit:n}=e;if(this._hasBindAutoFit){n||this._unbindAutoFit();return}n&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}H.enableCSSParsing=!1;const sK=Object.assign({},Tq()),Ad=Cq(oK,sK),Iv=t=>(bk("data-v-a6d34c3f"),t=t(),xk(),t),cK={class:"__container_home_index"},lK={class:"statistic-icon-big"},uK=Iv(()=>Qo("div",{id:"releases_container"},null,-1)),fK=Iv(()=>Qo("div",{id:"protocols_container"},null,-1)),dK=Iv(()=>Qo("div",{id:"discoveries_container"},null,-1)),hK=vk({__name:"index",setup(t){gk(i=>({a8c0aff4:yi(Fv)+"22",db6f68ac:yi(Fv)}));const e=yk().name;let n=Bv({info:{},report:{}}),r=Bv({info:{}});return mk(()=>{setTimeout(async()=>{let i=(await Ok({})).data;r.info=(await Sk({})).data,n.info=i,n.report={application:{icon:"cil:applications-settings",value:n.info.appCount},services:{icon:"carbon:microservices-1",value:n.info.serviceCount},instances:{icon:"ri:instance-line",value:n.info.insCount}};const a=[],o=Object.values(n.info.releases).reduce((p,v)=>p+v,0);typeof n.info.releases=="object"&&Object.keys(n.info.releases).forEach(p=>{const v=n.info.releases[p];a.push({item:p,count:v,percent:v/o})});const s=new Ad({container:"releases_container",width:200,height:200,autoFit:!1});s.coordinate({type:"theta",outerRadius:.8,innerRadius:.5}),s.interval().data(a).transform({type:"stackY"}).encode("y","percent").encode("color","item").legend("color",{position:"bottom",layout:{justifyContent:"center"}}).label({position:"outside",text:p=>`${p.item}: ${(p.percent*100).toFixed(2)}%`}).tooltip(p=>({name:p.item,value:`${(p.percent*100).toFixed(2)}%`})),s.text().style("text","版本分布").style("x","50%").style("y","50%").style("fontSize",10).style("fill","#8c8c8c").style("textAlign","center").style("textBaseline","middle"),await s.render();const c=[],l=Object.values(n.info.protocols).reduce((p,v)=>p+v,0);typeof n.info.protocols=="object"&&Object.keys(n.info.protocols).forEach(p=>{const v=n.info.protocols[p];c.push({item:p,count:v,percent:v/l})});const u=new Ad({container:"protocols_container",width:200,height:200,autoFit:!1});u.coordinate({type:"theta",outerRadius:.8,innerRadius:.5}),u.interval().data(c).transform({type:"stackY"}).encode("y","percent").encode("color","item").legend("color",{position:"bottom",layout:{justifyContent:"center"}}).label({position:"outside",text:p=>`${p.item}: ${(p.percent*100).toFixed(2)}%`}).tooltip(p=>({name:p.item,value:`${(p.percent*100).toFixed(2)}%`})),u.text().style("text","协议分布").style("x","50%").style("y","50%").style("fontSize",10).style("fill","#8c8c8c").style("textAlign","center").style("textBaseline","middle"),await u.render();const f=[],d=Object.values(n.info.discoveries).reduce((p,v)=>p+v,0);typeof n.info.discoveries=="object"&&Object.keys(n.info.discoveries).forEach(p=>{const v=n.info.discoveries[p];f.push({item:p,count:v,percent:v/d})});const h=new Ad({container:"discoveries_container",width:200,height:200,autoFit:!1});h.coordinate({type:"theta",outerRadius:.8,innerRadius:.5}),h.interval().data(f).transform({type:"stackY"}).encode("y","percent").encode("color","item").legend("color",{position:"bottom",layout:{justifyContent:"center"}}).label({position:"outside",text:p=>`${p.item}: ${(p.percent*100).toFixed(2)}%`}).tooltip(p=>({name:p.item,value:`${(p.percent*100).toFixed(2)}%`})),h.text().style("text","服务发现类型分布").style("x","50%").style("y","50%").style("fontSize",10).style("fill","#8c8c8c").style("textAlign","center").style("textBaseline","middle"),await h.render()})}),(i,a)=>{const o=ho("a-statistic"),s=ho("a-flex"),c=ho("a-card"),l=ho("a-descriptions-item"),u=ho("a-descriptions");return po(),bf("div",cK,[Qo("h1",null,xf(i.$t(yi(e))),1),Fn(s,{wrap:"wrap",gap:"small",vertical:!1,justify:"space-between",align:"center"},{default:On(()=>[(po(!0),bf(zv,null,Gv(yi(n).report,(f,d)=>(po(),Yv(c,{class:"statistic-card"},{default:On(()=>[Fn(s,{gap:"middle",vertical:!1,justify:"space-between",align:"center"},{default:On(()=>[Fn(o,{value:f.value,class:"statistic"},{prefix:On(()=>[Fn(yi(Wv),{class:"statistic-icon",icon:"svg-spinners:pulse-ring"})]),title:On(()=>[Hv(xf(i.$t(d.toString())),1)]),_:2},1032,["value"]),Qo("div",lK,[Fn(yi(Wv),{icon:f.icon},null,8,["icon"])])]),_:2},1024)]),_:2},1024))),256))]),_:1}),Fn(s,{wrap:"wrap",gap:"middle",vertical:!1,justify:"space-between",align:"center"},{default:On(()=>[Fn(c,{class:"card chart"},{default:On(()=>[uK]),_:1}),Fn(c,{class:"card chart"},{default:On(()=>[fK]),_:1}),Fn(c,{class:"card chart"},{default:On(()=>[dK]),_:1})]),_:1}),Fn(c,{class:"card"},{default:On(()=>[Fn(u,{title:" ",bordered:"",column:{xxl:2,xl:2,lg:2,md:2,sm:1,xs:1},layout:"horizontal"},{default:On(()=>[(po(!0),bf(zv,null,Gv(yi(r).info,(f,d)=>(po(),Yv(l,{label:d},{default:On(()=>[Hv(xf(f),1)]),_:2},1032,["label"]))),256))]),_:1})]),_:1})])}}}),_K=wk(hK,[["__scopeId","data-v-a6d34c3f"]]);export{_K as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-rpFThF7n.css b/app/dubbo-ui/dist/admin/assets/index-rpFThF7n.css deleted file mode 100644 index 9f047a5e8..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-rpFThF7n.css +++ /dev/null @@ -1 +0,0 @@ -.search-table-container[data-v-fcc0f0eb]{min-height:60vh} diff --git a/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js b/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js deleted file mode 100644 index 949b74377..000000000 --- a/app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js +++ /dev/null @@ -1,574 +0,0 @@ -(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)}})();/** -* @vue/shared v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function e2(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const Mn={},od=[],Ei=()=>{},kZ=()=>!1,mb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),t2=e=>e.startsWith("onUpdate:"),mr=Object.assign,n2=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},BZ=Object.prototype.hasOwnProperty,dn=(e,t)=>BZ.call(e,t),Lt=Array.isArray,id=e=>bb(e)==="[object Map]",SL=e=>bb(e)==="[object Set]",Ut=e=>typeof e=="function",Qn=e=>typeof e=="string",Jd=e=>typeof e=="symbol",Tn=e=>e!==null&&typeof e=="object",CL=e=>(Tn(e)||Ut(e))&&Ut(e.then)&&Ut(e.catch),$L=Object.prototype.toString,bb=e=>$L.call(e),FZ=e=>bb(e).slice(8,-1),xL=e=>bb(e)==="[object Object]",r2=e=>Qn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rm=e2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},HZ=/-(\w)/g,Da=yb(e=>e.replace(HZ,(t,n)=>n?n.toUpperCase():"")),zZ=/\B([A-Z])/g,jc=yb(e=>e.replace(zZ,"-$1").toLowerCase()),Sb=yb(e=>e.charAt(0).toUpperCase()+e.slice(1)),PS=yb(e=>e?`on${Sb(e)}`:""),Cs=(e,t)=>!Object.is(e,t),TS=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},jZ=e=>{const t=parseFloat(e);return isNaN(t)?e:t},WZ=e=>{const t=Qn(e)?Number(e):NaN;return isNaN(t)?e:t};let v4;const wL=()=>v4||(v4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gr(e){if(Lt(e)){const t={};for(let n=0;n{if(n){const r=n.split(KZ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _r(e){let t="";if(Qn(e))t=e;else if(Lt(e))for(let n=0;nQn(e)?e:e==null?"":Lt(e)||Tn(e)&&(e.toString===$L||!Ut(e.toString))?JSON.stringify(e,OL,2):String(e),OL=(e,t)=>t&&t.__v_isRef?OL(e,t.value):id(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[ES(r,i)+" =>"]=o,n),{})}:SL(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ES(n))}:Jd(t)?ES(t):Tn(t)&&!Lt(t)&&!xL(t)?String(t):t,ES=(e,t="")=>{var n;return Jd(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let li;class IL{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=li,!t&&li&&(this.index=(li.scopes||(li.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=li;try{return li=this,t()}finally{li=n}}}on(){li=this}off(){li=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Vc()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=hs,n=bc;try{return hs=!0,bc=this,this._runnings++,m4(this),this.fn()}finally{b4(this),this._runnings--,bc=n,hs=t}}stop(){var t;this.active&&(m4(this),b4(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function ZZ(e){return e.value}function m4(e){e._trackId++,e._depsLength=0}function b4(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},Jm=new WeakMap,yc=Symbol(""),E$=Symbol("");function zo(e,t,n){if(hs&&bc){let r=Jm.get(e);r||Jm.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=RL(()=>r.delete(n))),EL(bc,o)}}function ml(e,t,n,r,o,i){const a=Jm.get(e);if(!a)return;let l=[];if(t==="clear")l=[...a.values()];else if(n==="length"&&Lt(e)){const s=Number(r);a.forEach((c,u)=>{(u==="length"||!Jd(u)&&u>=s)&&l.push(c)})}else switch(n!==void 0&&l.push(a.get(n)),t){case"add":Lt(e)?r2(n)&&l.push(a.get("length")):(l.push(a.get(yc)),id(e)&&l.push(a.get(E$)));break;case"delete":Lt(e)||(l.push(a.get(yc)),id(e)&&l.push(a.get(E$)));break;case"set":id(e)&&l.push(a.get(yc));break}l2();for(const s of l)s&&AL(s,2);s2()}function QZ(e,t){var n;return(n=Jm.get(e))==null?void 0:n.get(t)}const JZ=e2("__proto__,__v_isRef,__isVue"),DL=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jd)),y4=eQ();function eQ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=$t(this);for(let i=0,a=this.length;i{e[t]=function(...n){Wc(),l2();const r=$t(this)[t].apply(this,n);return s2(),Vc(),r}}),e}function tQ(e){const t=$t(this);return zo(t,"has",e),t.hasOwnProperty(e)}class LL{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,r){const o=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?hQ:FL:i?BL:kL).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Lt(t);if(!o){if(a&&dn(y4,n))return Reflect.get(y4,n,r);if(n==="hasOwnProperty")return tQ}const l=Reflect.get(t,n,r);return(Jd(n)?DL.has(n):JZ(n))||(o||zo(t,"get",n),i)?l:Wn(l)?a&&r2(n)?l:l.value:Tn(l)?o?d2(l):St(l):l}}class NL extends LL{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._shallow){const s=Sd(i);if(!e0(r)&&!Sd(r)&&(i=$t(i),r=$t(r)),!Lt(t)&&Wn(i)&&!Wn(r))return s?!1:(i.value=r,!0)}const a=Lt(t)&&r2(n)?Number(n)e,$b=e=>Reflect.getPrototypeOf(e);function ov(e,t,n=!1,r=!1){e=e.__v_raw;const o=$t(e),i=$t(t);n||(Cs(t,i)&&zo(o,"get",t),zo(o,"get",i));const{has:a}=$b(o),l=r?c2:n?p2:Gp;if(a.call(o,t))return l(e.get(t));if(a.call(o,i))return l(e.get(i));e!==o&&e.get(t)}function iv(e,t=!1){const n=this.__v_raw,r=$t(n),o=$t(e);return t||(Cs(e,o)&&zo(r,"has",e),zo(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function av(e,t=!1){return e=e.__v_raw,!t&&zo($t(e),"iterate",yc),Reflect.get(e,"size",e)}function S4(e){e=$t(e);const t=$t(this);return $b(t).has.call(t,e)||(t.add(e),ml(t,"add",e,e)),this}function C4(e,t){t=$t(t);const n=$t(this),{has:r,get:o}=$b(n);let i=r.call(n,e);i||(e=$t(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Cs(t,a)&&ml(n,"set",e,t):ml(n,"add",e,t),this}function $4(e){const t=$t(this),{has:n,get:r}=$b(t);let o=n.call(t,e);o||(e=$t(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&ml(t,"delete",e,void 0),i}function x4(){const e=$t(this),t=e.size!==0,n=e.clear();return t&&ml(e,"clear",void 0,void 0),n}function lv(e,t){return function(r,o){const i=this,a=i.__v_raw,l=$t(a),s=t?c2:e?p2:Gp;return!e&&zo(l,"iterate",yc),a.forEach((c,u)=>r.call(o,s(c),s(u),i))}}function sv(e,t,n){return function(...r){const o=this.__v_raw,i=$t(o),a=id(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,c=o[e](...r),u=n?c2:t?p2:Gp;return!t&&zo(i,"iterate",s?E$:yc),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:l?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Ul(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aQ(){const e={get(i){return ov(this,i)},get size(){return av(this)},has:iv,add:S4,set:C4,delete:$4,clear:x4,forEach:lv(!1,!1)},t={get(i){return ov(this,i,!1,!0)},get size(){return av(this)},has:iv,add:S4,set:C4,delete:$4,clear:x4,forEach:lv(!1,!0)},n={get(i){return ov(this,i,!0)},get size(){return av(this,!0)},has(i){return iv.call(this,i,!0)},add:Ul("add"),set:Ul("set"),delete:Ul("delete"),clear:Ul("clear"),forEach:lv(!0,!1)},r={get(i){return ov(this,i,!0,!0)},get size(){return av(this,!0)},has(i){return iv.call(this,i,!0)},add:Ul("add"),set:Ul("set"),delete:Ul("delete"),clear:Ul("clear"),forEach:lv(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=sv(i,!1,!1),n[i]=sv(i,!0,!1),t[i]=sv(i,!1,!0),r[i]=sv(i,!0,!0)}),[e,n,t,r]}const[lQ,sQ,cQ,uQ]=aQ();function u2(e,t){const n=t?e?uQ:cQ:e?sQ:lQ;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(dn(n,o)&&o in r?n:r,o,i)}const dQ={get:u2(!1,!1)},fQ={get:u2(!1,!0)},pQ={get:u2(!0,!1)},kL=new WeakMap,BL=new WeakMap,FL=new WeakMap,hQ=new WeakMap;function gQ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vQ(e){return e.__v_skip||!Object.isExtensible(e)?0:gQ(FZ(e))}function St(e){return Sd(e)?e:f2(e,!1,rQ,dQ,kL)}function HL(e){return f2(e,!1,iQ,fQ,BL)}function d2(e){return f2(e,!0,oQ,pQ,FL)}function f2(e,t,n,r,o){if(!Tn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=vQ(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function gs(e){return Sd(e)?gs(e.__v_raw):!!(e&&e.__v_isReactive)}function Sd(e){return!!(e&&e.__v_isReadonly)}function e0(e){return!!(e&&e.__v_isShallow)}function zL(e){return gs(e)||Sd(e)}function $t(e){const t=e&&e.__v_raw;return t?$t(t):e}function xb(e){return Qm(e,"__v_skip",!0),e}const Gp=e=>Tn(e)?St(e):e,p2=e=>Tn(e)?d2(e):e;class jL{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new a2(()=>t(this._value),()=>up(this,1),()=>this.dep&&ML(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=$t(this);return(!t._cacheable||t.effect.dirty)&&Cs(t._value,t._value=t.effect.run())&&up(t,2),WL(t),t.effect._dirtyLevel>=1&&up(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function mQ(e,t,n=!1){let r,o;const i=Ut(e);return i?(r=e,o=Ei):(r=e.get,o=e.set),new jL(r,o,i||!o,n)}function WL(e){hs&&bc&&(e=$t(e),EL(bc,e.dep||(e.dep=RL(()=>e.dep=void 0,e instanceof jL?e:void 0))))}function up(e,t=2,n){e=$t(e);const r=e.dep;r&&AL(r,t)}function Wn(e){return!!(e&&e.__v_isRef===!0)}function he(e){return VL(e,!1)}function ve(e){return VL(e,!0)}function VL(e,t){return Wn(e)?e:new bQ(e,t)}class bQ{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:$t(t),this._value=n?t:Gp(t)}get value(){return WL(this),this._value}set value(t){const n=this.__v_isShallow||e0(t)||Sd(t);t=n?t:$t(t),Cs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Gp(t),up(this,2))}}function KL(e){up(e,2)}function wt(e){return Wn(e)?e.value:e}const yQ={get:(e,t,n)=>wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Wn(o)&&!Wn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function UL(e){return gs(e)?e:new Proxy(e,yQ)}function ra(e){const t=Lt(e)?new Array(e.length):{};for(const n in e)t[n]=GL(e,n);return t}class SQ{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QZ($t(this._object),this._key)}}class CQ{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function st(e,t,n){return Wn(e)?e:Ut(e)?new CQ(e):Tn(e)&&arguments.length>1?GL(e,t,n):he(e)}function GL(e,t,n){const r=e[t];return Wn(r)?r:new SQ(e,t,n)}/** -* @vue/runtime-core v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function vs(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){wb(i,t,n)}return o}function Ai(e,t,n,r){if(Ut(e)){const i=vs(e,t,n,r);return i&&CL(i)&&i.catch(a=>{wb(a,t,n)}),i}const o=[];for(let i=0;i>>1,o=oo[r],i=Xp(o);iOa&&oo.splice(t,1)}function _Q(e){Lt(e)?ad.push(...e):(!ns||!ns.includes(e,e.allowRecurse?ac+1:ac))&&ad.push(e),XL()}function w4(e,t,n=Yp?Oa+1:0){for(;nXp(n)-Xp(r));if(ad.length=0,ns){ns.push(...t);return}for(ns=t,ac=0;ace.id==null?1/0:e.id,OQ=(e,t)=>{const n=Xp(e)-Xp(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ZL(e){A$=!1,Yp=!0,oo.sort(OQ);try{for(Oa=0;OaQn(h)?h.trim():h)),d&&(o=n.map(jZ))}let l,s=r[l=PS(t)]||r[l=PS(Da(t))];!s&&i&&(s=r[l=PS(jc(t))]),s&&Ai(s,e,6,o);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ai(c,e,6,o)}}function QL(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let a={},l=!1;if(!Ut(e)){const s=c=>{const u=QL(c,t,!0);u&&(l=!0,mr(a,u))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(Tn(e)&&r.set(e,null),null):(Lt(i)?i.forEach(s=>a[s]=null):mr(a,i),Tn(e)&&r.set(e,a),a)}function _b(e,t){return!e||!mb(t)?!1:(t=t.slice(2).replace(/Once$/,""),dn(e,t[0].toLowerCase()+t.slice(1))||dn(e,jc(t))||dn(e,t))}let pr=null,Ob=null;function t0(e){const t=pr;return pr=e,Ob=e&&e.type.__scopeId||null,t}function Kc(e){Ob=e}function Uc(){Ob=null}function bn(e,t=pr,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&F4(-1);const i=t0(t);let a;try{a=e(...o)}finally{t0(i),r._d&&F4(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function AS(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:l,attrs:s,emit:c,render:u,renderCache:d,data:f,setupState:h,ctx:m,inheritAttrs:v}=e;let y,b;const $=t0(e);try{if(n.shapeFlag&4){const _=o||r,w=_;y=_a(u.call(w,_,d,i,h,f,m)),b=s}else{const _=t;y=_a(_.length>1?_(i,{attrs:s,slots:l,emit:c}):_(i,null)),b=t.props?s:PQ(s)}}catch(_){hp.length=0,wb(_,e,1),y=g(ko)}let x=y;if(b&&v!==!1){const _=Object.keys(b),{shapeFlag:w}=x;_.length&&w&7&&(a&&_.some(t2)&&(b=TQ(b,a)),x=kr(x,b))}return n.dirs&&(x=kr(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),y=x,t0($),y}const PQ=e=>{let t;for(const n in e)(n==="class"||n==="style"||mb(n))&&((t||(t={}))[n]=e[n]);return t},TQ=(e,t)=>{const n={};for(const r in e)(!t2(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function EQ(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:l,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return r?_4(r,a,c):!!a;if(s&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function LQ(e,t){t&&t.pendingBranch?Lt(e)?t.effects.push(...e):t.effects.push(e):_Q(e)}const NQ=Symbol.for("v-scx"),kQ=()=>it(NQ);function ct(e,t){return Ib(e,null,t)}function BQ(e,t){return Ib(e,null,{flush:"post"})}const cv={};function Ie(e,t,n){return Ib(e,t,n)}function Ib(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:l}=Mn){if(t&&i){const I=t;t=(...O)=>{I(...O),w()}}const s=Rr,c=I=>r===!0?I:hc(I,r===!1?1:void 0);let u,d=!1,f=!1;if(Wn(e)?(u=()=>e.value,d=e0(e)):gs(e)?(u=()=>c(e),d=!0):Lt(e)?(f=!0,d=e.some(I=>gs(I)||e0(I)),u=()=>e.map(I=>{if(Wn(I))return I.value;if(gs(I))return c(I);if(Ut(I))return vs(I,s,2)})):Ut(e)?t?u=()=>vs(e,s,2):u=()=>(h&&h(),Ai(e,s,3,[m])):u=Ei,t&&r){const I=u;u=()=>hc(I())}let h,m=I=>{h=x.onStop=()=>{vs(I,s,4),h=x.onStop=void 0}},v;if(Db)if(m=Ei,t?n&&Ai(t,s,3,[u(),f?[]:void 0,m]):u(),o==="sync"){const I=kQ();v=I.__watcherHandles||(I.__watcherHandles=[])}else return Ei;let y=f?new Array(e.length).fill(cv):cv;const b=()=>{if(!(!x.active||!x.dirty))if(t){const I=x.run();(r||d||(f?I.some((O,P)=>Cs(O,y[P])):Cs(I,y)))&&(h&&h(),Ai(t,s,3,[I,y===cv?void 0:f&&y[0]===cv?[]:y,m]),y=I)}else x.run()};b.allowRecurse=!!t;let $;o==="sync"?$=b:o==="post"?$=()=>Ro(b,s&&s.suspense):(b.pre=!0,s&&(b.id=s.uid),$=()=>g2(b));const x=new a2(u,Ei,$),_=Cb(),w=()=>{x.stop(),_&&n2(_.effects,x)};return t?n?b():y=x.run():o==="post"?Ro(x.run.bind(x),s&&s.suspense):x.run(),v&&v.push(w),w}function FQ(e,t,n){const r=this.proxy,o=Qn(e)?e.includes(".")?eN(r,e):()=>r[e]:e.bind(r,r);let i;Ut(t)?i=t:(i=t.handler,n=t);const a=Lh(this),l=Ib(o,i.bind(r),n);return a(),l}function eN(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Wn(e))hc(e.value,t,n,r);else if(Lt(e))for(let o=0;o{hc(o,t,n,r)});else if(xL(e))for(const o in e)hc(e[o],t,n,r);return e}function Ln(e,t){if(pr===null)return e;const n=Lb(pr)||pr.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),Ct(()=>{e.isUnmounting=!0}),e}const xi=[Function,Array],nN={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xi,onEnter:xi,onAfterEnter:xi,onEnterCancelled:xi,onBeforeLeave:xi,onLeave:xi,onAfterLeave:xi,onLeaveCancelled:xi,onBeforeAppear:xi,onAppear:xi,onAfterAppear:xi,onAppearCancelled:xi},HQ={name:"BaseTransition",props:nN,setup(e,{slots:t}){const n=Nn(),r=tN();let o;return()=>{const i=t.default&&b2(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const v of i)if(v.type!==ko){a=v;break}}const l=$t(e),{mode:s}=l;if(r.isLeaving)return MS(a);const c=P4(a);if(!c)return MS(a);const u=qp(c,l,r,n);Zp(c,u);const d=n.subTree,f=d&&P4(d);let h=!1;const{getTransitionKey:m}=c.type;if(m){const v=m();o===void 0?o=v:v!==o&&(o=v,h=!0)}if(f&&f.type!==ko&&(!lc(c,f)||h)){const v=qp(f,l,r,n);if(Zp(f,v),s==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},MS(a);s==="in-out"&&c.type!==ko&&(v.delayLeave=(y,b,$)=>{const x=rN(r,f);x[String(f.key)]=f,y[rs]=()=>{b(),y[rs]=void 0,delete u.delayedLeave},u.delayedLeave=$})}return a}}},zQ=HQ;function rN(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function qp(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:y,onAfterAppear:b,onAppearCancelled:$}=t,x=String(e.key),_=rN(n,e),w=(P,E)=>{P&&Ai(P,r,9,E)},I=(P,E)=>{const R=E[1];w(P,E),Lt(P)?P.every(A=>A.length<=1)&&R():P.length<=1&&R()},O={mode:i,persisted:a,beforeEnter(P){let E=l;if(!n.isMounted)if(o)E=v||l;else return;P[rs]&&P[rs](!0);const R=_[x];R&&lc(e,R)&&R.el[rs]&&R.el[rs](),w(E,[P])},enter(P){let E=s,R=c,A=u;if(!n.isMounted)if(o)E=y||s,R=b||c,A=$||u;else return;let N=!1;const F=P[uv]=W=>{N||(N=!0,W?w(A,[P]):w(R,[P]),O.delayedLeave&&O.delayedLeave(),P[uv]=void 0)};E?I(E,[P,F]):F()},leave(P,E){const R=String(e.key);if(P[uv]&&P[uv](!0),n.isUnmounting)return E();w(d,[P]);let A=!1;const N=P[rs]=F=>{A||(A=!0,E(),F?w(m,[P]):w(h,[P]),P[rs]=void 0,_[R]===e&&delete _[R])};_[R]=e,f?I(f,[P,N]):N()},clone(P){return qp(P,t,n,r)}};return O}function MS(e){if(Pb(e))return e=kr(e),e.children=null,e}function P4(e){return Pb(e)?e.children?e.children[0]:void 0:e}function Zp(e,t){e.shapeFlag&6&&e.component?Zp(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function b2(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Pb=e=>e.type.__isKeepAlive;function Tb(e,t){iN(e,"a",t)}function oN(e,t){iN(e,"da",t)}function iN(e,t,n=Rr){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Eb(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Pb(o.parent.vnode)&&jQ(r,t,n,o),o=o.parent}}function jQ(e,t,n,r){const o=Eb(t,e,r,!0);Fr(()=>{n2(r[t],o)},n)}function Eb(e,t,n=Rr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Wc();const l=Lh(n),s=Ai(t,n,e,a);return l(),Vc(),s});return r?o.unshift(i):o.push(i),i}}const wl=e=>(t,n=Rr)=>(!Db||e==="sp")&&Eb(e,(...r)=>t(...r),n),Dh=wl("bm"),lt=wl("m"),Ab=wl("bu"),fo=wl("u"),Ct=wl("bum"),Fr=wl("um"),WQ=wl("sp"),VQ=wl("rtg"),KQ=wl("rtc");function UQ(e,t=Rr){Eb("ec",e,t)}function Cd(e,t,n,r){let o;const i=n&&n[r];if(Lt(e)||Qn(e)){o=new Array(e.length);for(let a=0,l=e.length;at(a,l,void 0,i&&i[l]));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,s=a.length;l{const i=r.fn(...o);return i&&(i.key=r.key),i}:r.fn)}return e}function GQ(e,t,n={},r,o){if(pr.isCE||pr.parent&&dp(pr.parent)&&pr.parent.isCE)return t!=="default"&&(n.name=t),g("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),ht();const a=i&&aN(i(n)),l=jn(Je,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function aN(e){return e.some(t=>vr(t)?!(t.type===ko||t.type===Je&&!aN(t.children)):!0)?e:null}const M$=e=>e?bN(e)?Lb(e)||e.proxy:M$(e.parent):null,fp=mr(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>M$(e.parent),$root:e=>M$(e.root),$emit:e=>e.emit,$options:e=>y2(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,g2(e.update)}),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>FQ.bind(e)}),RS=(e,t)=>e!==Mn&&!e.__isScriptSetup&&dn(e,t),YQ={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:l,appContext:s}=e;let c;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(RS(r,t))return a[t]=1,r[t];if(o!==Mn&&dn(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&dn(c,t))return a[t]=3,i[t];if(n!==Mn&&dn(n,t))return a[t]=4,n[t];R$&&(a[t]=0)}}const u=fp[t];let d,f;if(u)return t==="$attrs"&&zo(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==Mn&&dn(n,t))return a[t]=4,n[t];if(f=s.config.globalProperties,dn(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return RS(o,t)?(o[t]=n,!0):r!==Mn&&dn(r,t)?(r[t]=n,!0):dn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let l;return!!n[a]||e!==Mn&&dn(e,a)||RS(t,a)||(l=i[0])&&dn(l,a)||dn(r,a)||dn(fp,a)||dn(o.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:dn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function XQ(){return qQ().attrs}function qQ(){const e=Nn();return e.setupContext||(e.setupContext=SN(e))}function T4(e){return Lt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let R$=!0;function ZQ(e){const t=y2(e),n=e.proxy,r=e.ctx;R$=!1,t.beforeCreate&&E4(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:s,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:m,activated:v,deactivated:y,beforeDestroy:b,beforeUnmount:$,destroyed:x,unmounted:_,render:w,renderTracked:I,renderTriggered:O,errorCaptured:P,serverPrefetch:E,expose:R,inheritAttrs:A,components:N,directives:F,filters:W}=t;if(c&&QQ(c,r,null),a)for(const k in a){const L=a[k];Ut(L)&&(r[k]=L.bind(n))}if(o){const k=o.call(n,n);Tn(k)&&(e.data=St(k))}if(R$=!0,i)for(const k in i){const L=i[k],z=Ut(L)?L.bind(n,n):Ut(L.get)?L.get.bind(n,n):Ei,K=!Ut(L)&&Ut(L.set)?L.set.bind(n):Ei,G=M({get:z,set:K});Object.defineProperty(r,k,{enumerable:!0,configurable:!0,get:()=>G.value,set:Y=>G.value=Y})}if(l)for(const k in l)lN(l[k],r,n,k);if(s){const k=Ut(s)?s.call(n):s;Reflect.ownKeys(k).forEach(L=>{ft(L,k[L])})}u&&E4(u,e,"c");function B(k,L){Lt(L)?L.forEach(z=>k(z.bind(n))):L&&k(L.bind(n))}if(B(Dh,d),B(lt,f),B(Ab,h),B(fo,m),B(Tb,v),B(oN,y),B(UQ,P),B(KQ,I),B(VQ,O),B(Ct,$),B(Fr,_),B(WQ,E),Lt(R))if(R.length){const k=e.exposed||(e.exposed={});R.forEach(L=>{Object.defineProperty(k,L,{get:()=>n[L],set:z=>n[L]=z})})}else e.exposed||(e.exposed={});w&&e.render===Ei&&(e.render=w),A!=null&&(e.inheritAttrs=A),N&&(e.components=N),F&&(e.directives=F)}function QQ(e,t,n=Ei){Lt(e)&&(e=D$(e));for(const r in e){const o=e[r];let i;Tn(o)?"default"in o?i=it(o.from||r,o.default,!0):i=it(o.from||r):i=it(o),Wn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function E4(e,t,n){Ai(Lt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lN(e,t,n,r){const o=r.includes(".")?eN(n,r):()=>n[r];if(Qn(e)){const i=t[e];Ut(i)&&Ie(o,i)}else if(Ut(e))Ie(o,e.bind(n));else if(Tn(e))if(Lt(e))e.forEach(i=>lN(i,t,n,r));else{const i=Ut(e.handler)?e.handler.bind(n):t[e.handler];Ut(i)&&Ie(o,i,e)}}function y2(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!o.length&&!n&&!r?s=t:(s={},o.length&&o.forEach(c=>n0(s,c,a,!0)),n0(s,t,a)),Tn(t)&&i.set(t,s),s}function n0(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&n0(e,i,n,!0),o&&o.forEach(a=>n0(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=JQ[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const JQ={data:A4,props:M4,emits:M4,methods:tp,computed:tp,beforeCreate:mo,created:mo,beforeMount:mo,mounted:mo,beforeUpdate:mo,updated:mo,beforeDestroy:mo,beforeUnmount:mo,destroyed:mo,unmounted:mo,activated:mo,deactivated:mo,errorCaptured:mo,serverPrefetch:mo,components:tp,directives:tp,watch:tJ,provide:A4,inject:eJ};function A4(e,t){return t?e?function(){return mr(Ut(e)?e.call(this,this):e,Ut(t)?t.call(this,this):t)}:t:e}function eJ(e,t){return tp(D$(e),D$(t))}function D$(e){if(Lt(e)){const t={};for(let n=0;n1)return n&&Ut(t)?t.call(r&&r.proxy):t}}function oJ(){return!!(Rr||pr||Qp)}function iJ(e,t,n,r=!1){const o={},i={};Qm(i,Rb,1),e.propsDefaults=Object.create(null),cN(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:HL(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function aJ(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,l=$t(o),[s]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let d=0;d{s=!0;const[f,h]=uN(d,t,!0);mr(a,f),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!s)return Tn(e)&&r.set(e,od),od;if(Lt(i))for(let u=0;u-1,h[1]=v<0||m-1||dn(h,"default"))&&l.push(d)}}}const c=[a,l];return Tn(e)&&r.set(e,c),c}function R4(e){return e[0]!=="$"}function D4(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function L4(e,t){return D4(e)===D4(t)}function N4(e,t){return Lt(t)?t.findIndex(n=>L4(n,e)):Ut(t)&&L4(t,e)?0:-1}const dN=e=>e[0]==="_"||e==="$stable",S2=e=>Lt(e)?e.map(_a):[_a(e)],lJ=(e,t,n)=>{if(t._n)return t;const r=bn((...o)=>S2(t(...o)),n);return r._c=!1,r},fN=(e,t,n)=>{const r=e._ctx;for(const o in e){if(dN(o))continue;const i=e[o];if(Ut(i))t[o]=lJ(o,i,r);else if(i!=null){const a=S2(i);t[o]=()=>a}}},pN=(e,t)=>{const n=S2(t);e.slots.default=()=>n},sJ=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=$t(t),Qm(t,"_",n)):fN(t,e.slots={})}else e.slots={},t&&pN(e,t);Qm(e.slots,Rb,1)},cJ=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=Mn;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(mr(o,t),!n&&l===1&&delete o._):(i=!t.$stable,fN(t,o)),a=t}else t&&(pN(e,t),a={default:1});if(i)for(const l in o)!dN(l)&&a[l]==null&&delete o[l]};function N$(e,t,n,r,o=!1){if(Lt(e)){e.forEach((f,h)=>N$(f,t&&(Lt(t)?t[h]:t),n,r,o));return}if(dp(r)&&!o)return;const i=r.shapeFlag&4?Lb(r.component)||r.component.proxy:r.el,a=o?null:i,{i:l,r:s}=e,c=t&&t.r,u=l.refs===Mn?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==s&&(Qn(c)?(u[c]=null,dn(d,c)&&(d[c]=null)):Wn(c)&&(c.value=null)),Ut(s))vs(s,l,12,[a,u]);else{const f=Qn(s),h=Wn(s),m=e.f;if(f||h){const v=()=>{if(m){const y=f?dn(d,s)?d[s]:u[s]:s.value;o?Lt(y)&&n2(y,i):Lt(y)?y.includes(i)||y.push(i):f?(u[s]=[i],dn(d,s)&&(d[s]=u[s])):(s.value=[i],e.k&&(u[e.k]=s.value))}else f?(u[s]=a,dn(d,s)&&(d[s]=a)):h&&(s.value=a,e.k&&(u[e.k]=a))};o||m?v():(v.id=-1,Ro(v,n))}}}const Ro=LQ;function uJ(e){return dJ(e)}function dJ(e,t){const n=wL();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:a,createText:l,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=Ei,insertStaticContent:m}=e,v=(H,j,q,se=null,ae=null,ge=null,Se=void 0,$e=null,_e=!!j.dynamicChildren)=>{if(H===j)return;H&&!lc(H,j)&&(se=ee(H),Y(H,ae,ge,!0),H=null),j.patchFlag===-2&&(_e=!1,j.dynamicChildren=null);const{type:be,ref:Te,shapeFlag:Pe}=j;switch(be){case _l:y(H,j,q,se);break;case ko:b(H,j,q,se);break;case om:H==null&&$(j,q,se,Se);break;case Je:N(H,j,q,se,ae,ge,Se,$e,_e);break;default:Pe&1?w(H,j,q,se,ae,ge,Se,$e,_e):Pe&6?F(H,j,q,se,ae,ge,Se,$e,_e):(Pe&64||Pe&128)&&be.process(H,j,q,se,ae,ge,Se,$e,_e,X)}Te!=null&&ae&&N$(Te,H&&H.ref,ge,j||H,!j)},y=(H,j,q,se)=>{if(H==null)r(j.el=l(j.children),q,se);else{const ae=j.el=H.el;j.children!==H.children&&c(ae,j.children)}},b=(H,j,q,se)=>{H==null?r(j.el=s(j.children||""),q,se):j.el=H.el},$=(H,j,q,se)=>{[H.el,H.anchor]=m(H.children,j,q,se,H.el,H.anchor)},x=({el:H,anchor:j},q,se)=>{let ae;for(;H&&H!==j;)ae=f(H),r(H,q,se),H=ae;r(j,q,se)},_=({el:H,anchor:j})=>{let q;for(;H&&H!==j;)q=f(H),o(H),H=q;o(j)},w=(H,j,q,se,ae,ge,Se,$e,_e)=>{j.type==="svg"?Se="svg":j.type==="math"&&(Se="mathml"),H==null?I(j,q,se,ae,ge,Se,$e,_e):E(H,j,ae,ge,Se,$e,_e)},I=(H,j,q,se,ae,ge,Se,$e)=>{let _e,be;const{props:Te,shapeFlag:Pe,transition:re,dirs:le}=H;if(_e=H.el=a(H.type,ge,Te&&Te.is,Te),Pe&8?u(_e,H.children):Pe&16&&P(H.children,_e,null,se,ae,DS(H,ge),Se,$e),le&&Gs(H,null,se,"created"),O(_e,H,H.scopeId,Se,se),Te){for(const Ae in Te)Ae!=="value"&&!rm(Ae)&&i(_e,Ae,null,Te[Ae],ge,H.children,se,ae,te);"value"in Te&&i(_e,"value",null,Te.value,ge),(be=Te.onVnodeBeforeMount)&&ya(be,se,H)}le&&Gs(H,null,se,"beforeMount");const xe=fJ(ae,re);xe&&re.beforeEnter(_e),r(_e,j,q),((be=Te&&Te.onVnodeMounted)||xe||le)&&Ro(()=>{be&&ya(be,se,H),xe&&re.enter(_e),le&&Gs(H,null,se,"mounted")},ae)},O=(H,j,q,se,ae)=>{if(q&&h(H,q),se)for(let ge=0;ge{for(let be=_e;be{const $e=j.el=H.el;let{patchFlag:_e,dynamicChildren:be,dirs:Te}=j;_e|=H.patchFlag&16;const Pe=H.props||Mn,re=j.props||Mn;let le;if(q&&Ys(q,!1),(le=re.onVnodeBeforeUpdate)&&ya(le,q,j,H),Te&&Gs(j,H,q,"beforeUpdate"),q&&Ys(q,!0),be?R(H.dynamicChildren,be,$e,q,se,DS(j,ae),ge):Se||L(H,j,$e,null,q,se,DS(j,ae),ge,!1),_e>0){if(_e&16)A($e,j,Pe,re,q,se,ae);else if(_e&2&&Pe.class!==re.class&&i($e,"class",null,re.class,ae),_e&4&&i($e,"style",Pe.style,re.style,ae),_e&8){const xe=j.dynamicProps;for(let Ae=0;Ae{le&&ya(le,q,j,H),Te&&Gs(j,H,q,"updated")},se)},R=(H,j,q,se,ae,ge,Se)=>{for(let $e=0;$e{if(q!==se){if(q!==Mn)for(const $e in q)!rm($e)&&!($e in se)&&i(H,$e,q[$e],null,Se,j.children,ae,ge,te);for(const $e in se){if(rm($e))continue;const _e=se[$e],be=q[$e];_e!==be&&$e!=="value"&&i(H,$e,be,_e,Se,j.children,ae,ge,te)}"value"in se&&i(H,"value",q.value,se.value,Se)}},N=(H,j,q,se,ae,ge,Se,$e,_e)=>{const be=j.el=H?H.el:l(""),Te=j.anchor=H?H.anchor:l("");let{patchFlag:Pe,dynamicChildren:re,slotScopeIds:le}=j;le&&($e=$e?$e.concat(le):le),H==null?(r(be,q,se),r(Te,q,se),P(j.children||[],q,Te,ae,ge,Se,$e,_e)):Pe>0&&Pe&64&&re&&H.dynamicChildren?(R(H.dynamicChildren,re,q,ae,ge,Se,$e),(j.key!=null||ae&&j===ae.subTree)&&C2(H,j,!0)):L(H,j,q,Te,ae,ge,Se,$e,_e)},F=(H,j,q,se,ae,ge,Se,$e,_e)=>{j.slotScopeIds=$e,H==null?j.shapeFlag&512?ae.ctx.activate(j,q,se,Se,_e):W(j,q,se,ae,ge,Se,_e):D(H,j,_e)},W=(H,j,q,se,ae,ge,Se)=>{const $e=H.component=$J(H,se,ae);if(Pb(H)&&($e.ctx.renderer=X),xJ($e),$e.asyncDep){if(ae&&ae.registerDep($e,B),!H.el){const _e=$e.subTree=g(ko);b(null,_e,j,q)}}else B($e,H,j,q,ae,ge,Se)},D=(H,j,q)=>{const se=j.component=H.component;if(EQ(H,j,q))if(se.asyncDep&&!se.asyncResolved){k(se,j,q);return}else se.next=j,wQ(se.update),se.effect.dirty=!0,se.update();else j.el=H.el,se.vnode=j},B=(H,j,q,se,ae,ge,Se)=>{const $e=()=>{if(H.isMounted){let{next:Te,bu:Pe,u:re,parent:le,vnode:xe}=H;{const Le=hN(H);if(Le){Te&&(Te.el=xe.el,k(H,Te,Se)),Le.asyncDep.then(()=>{H.isUnmounted||$e()});return}}let Ae=Te,Be;Ys(H,!1),Te?(Te.el=xe.el,k(H,Te,Se)):Te=xe,Pe&&TS(Pe),(Be=Te.props&&Te.props.onVnodeBeforeUpdate)&&ya(Be,le,Te,xe),Ys(H,!0);const Ye=AS(H),Re=H.subTree;H.subTree=Ye,v(Re,Ye,d(Re.el),ee(Re),H,ae,ge),Te.el=Ye.el,Ae===null&&AQ(H,Ye.el),re&&Ro(re,ae),(Be=Te.props&&Te.props.onVnodeUpdated)&&Ro(()=>ya(Be,le,Te,xe),ae)}else{let Te;const{el:Pe,props:re}=j,{bm:le,m:xe,parent:Ae}=H,Be=dp(j);if(Ys(H,!1),le&&TS(le),!Be&&(Te=re&&re.onVnodeBeforeMount)&&ya(Te,Ae,j),Ys(H,!0),Pe&&ye){const Ye=()=>{H.subTree=AS(H),ye(Pe,H.subTree,H,ae,null)};Be?j.type.__asyncLoader().then(()=>!H.isUnmounted&&Ye()):Ye()}else{const Ye=H.subTree=AS(H);v(null,Ye,q,se,H,ae,ge),j.el=Ye.el}if(xe&&Ro(xe,ae),!Be&&(Te=re&&re.onVnodeMounted)){const Ye=j;Ro(()=>ya(Te,Ae,Ye),ae)}(j.shapeFlag&256||Ae&&dp(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&H.a&&Ro(H.a,ae),H.isMounted=!0,j=q=se=null}},_e=H.effect=new a2($e,Ei,()=>g2(be),H.scope),be=H.update=()=>{_e.dirty&&_e.run()};be.id=H.uid,Ys(H,!0),be()},k=(H,j,q)=>{j.component=H;const se=H.vnode.props;H.vnode=j,H.next=null,aJ(H,j.props,se,q),cJ(H,j.children,q),Wc(),w4(H),Vc()},L=(H,j,q,se,ae,ge,Se,$e,_e=!1)=>{const be=H&&H.children,Te=H?H.shapeFlag:0,Pe=j.children,{patchFlag:re,shapeFlag:le}=j;if(re>0){if(re&128){K(be,Pe,q,se,ae,ge,Se,$e,_e);return}else if(re&256){z(be,Pe,q,se,ae,ge,Se,$e,_e);return}}le&8?(Te&16&&te(be,ae,ge),Pe!==be&&u(q,Pe)):Te&16?le&16?K(be,Pe,q,se,ae,ge,Se,$e,_e):te(be,ae,ge,!0):(Te&8&&u(q,""),le&16&&P(Pe,q,se,ae,ge,Se,$e,_e))},z=(H,j,q,se,ae,ge,Se,$e,_e)=>{H=H||od,j=j||od;const be=H.length,Te=j.length,Pe=Math.min(be,Te);let re;for(re=0;reTe?te(H,ae,ge,!0,!1,Pe):P(j,q,se,ae,ge,Se,$e,_e,Pe)},K=(H,j,q,se,ae,ge,Se,$e,_e)=>{let be=0;const Te=j.length;let Pe=H.length-1,re=Te-1;for(;be<=Pe&&be<=re;){const le=H[be],xe=j[be]=_e?os(j[be]):_a(j[be]);if(lc(le,xe))v(le,xe,q,null,ae,ge,Se,$e,_e);else break;be++}for(;be<=Pe&&be<=re;){const le=H[Pe],xe=j[re]=_e?os(j[re]):_a(j[re]);if(lc(le,xe))v(le,xe,q,null,ae,ge,Se,$e,_e);else break;Pe--,re--}if(be>Pe){if(be<=re){const le=re+1,xe=lere)for(;be<=Pe;)Y(H[be],ae,ge,!0),be++;else{const le=be,xe=be,Ae=new Map;for(be=xe;be<=re;be++){const Ue=j[be]=_e?os(j[be]):_a(j[be]);Ue.key!=null&&Ae.set(Ue.key,be)}let Be,Ye=0;const Re=re-xe+1;let Le=!1,Ne=0;const Ke=new Array(Re);for(be=0;be=Re){Y(Ue,ae,ge,!0);continue}let Xe;if(Ue.key!=null)Xe=Ae.get(Ue.key);else for(Be=xe;Be<=re;Be++)if(Ke[Be-xe]===0&&lc(Ue,j[Be])){Xe=Be;break}Xe===void 0?Y(Ue,ae,ge,!0):(Ke[Xe-xe]=be+1,Xe>=Ne?Ne=Xe:Le=!0,v(Ue,j[Xe],q,null,ae,ge,Se,$e,_e),Ye++)}const Ze=Le?pJ(Ke):od;for(Be=Ze.length-1,be=Re-1;be>=0;be--){const Ue=xe+be,Xe=j[Ue],xt=Ue+1{const{el:ge,type:Se,transition:$e,children:_e,shapeFlag:be}=H;if(be&6){G(H.component.subTree,j,q,se);return}if(be&128){H.suspense.move(j,q,se);return}if(be&64){Se.move(H,j,q,X);return}if(Se===Je){r(ge,j,q);for(let Pe=0;Pe<_e.length;Pe++)G(_e[Pe],j,q,se);r(H.anchor,j,q);return}if(Se===om){x(H,j,q);return}if(se!==2&&be&1&&$e)if(se===0)$e.beforeEnter(ge),r(ge,j,q),Ro(()=>$e.enter(ge),ae);else{const{leave:Pe,delayLeave:re,afterLeave:le}=$e,xe=()=>r(ge,j,q),Ae=()=>{Pe(ge,()=>{xe(),le&&le()})};re?re(ge,xe,Ae):Ae()}else r(ge,j,q)},Y=(H,j,q,se=!1,ae=!1)=>{const{type:ge,props:Se,ref:$e,children:_e,dynamicChildren:be,shapeFlag:Te,patchFlag:Pe,dirs:re}=H;if($e!=null&&N$($e,null,q,H,!0),Te&256){j.ctx.deactivate(H);return}const le=Te&1&&re,xe=!dp(H);let Ae;if(xe&&(Ae=Se&&Se.onVnodeBeforeUnmount)&&ya(Ae,j,H),Te&6)J(H.component,q,se);else{if(Te&128){H.suspense.unmount(q,se);return}le&&Gs(H,null,j,"beforeUnmount"),Te&64?H.type.remove(H,j,q,ae,X,se):be&&(ge!==Je||Pe>0&&Pe&64)?te(be,j,q,!1,!0):(ge===Je&&Pe&384||!ae&&Te&16)&&te(_e,j,q),se&&ne(H)}(xe&&(Ae=Se&&Se.onVnodeUnmounted)||le)&&Ro(()=>{Ae&&ya(Ae,j,H),le&&Gs(H,null,j,"unmounted")},q)},ne=H=>{const{type:j,el:q,anchor:se,transition:ae}=H;if(j===Je){oe(q,se);return}if(j===om){_(H);return}const ge=()=>{o(q),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(H.shapeFlag&1&&ae&&!ae.persisted){const{leave:Se,delayLeave:$e}=ae,_e=()=>Se(q,ge);$e?$e(H.el,ge,_e):_e()}else ge()},oe=(H,j)=>{let q;for(;H!==j;)q=f(H),o(H),H=q;o(j)},J=(H,j,q)=>{const{bum:se,scope:ae,update:ge,subTree:Se,um:$e}=H;se&&TS(se),ae.stop(),ge&&(ge.active=!1,Y(Se,H,j,q)),$e&&Ro($e,j),Ro(()=>{H.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},te=(H,j,q,se=!1,ae=!1,ge=0)=>{for(let Se=ge;SeH.shapeFlag&6?ee(H.component.subTree):H.shapeFlag&128?H.suspense.next():f(H.anchor||H.el);let fe=!1;const ie=(H,j,q)=>{H==null?j._vnode&&Y(j._vnode,null,null,!0):v(j._vnode||null,H,j,null,null,null,q),fe||(fe=!0,w4(),qL(),fe=!1),j._vnode=H},X={p:v,um:Y,m:G,r:ne,mt:W,mc:P,pc:L,pbc:R,n:ee,o:e};let ue,ye;return t&&([ue,ye]=t(X)),{render:ie,hydrate:ue,createApp:rJ(ie,ue)}}function DS({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ys({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function fJ(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function C2(e,t,n=!1){const r=e.children,o=t.children;if(Lt(r)&&Lt(o))for(let i=0;i>1,e[n[l]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function hN(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:hN(t)}const hJ=e=>e.__isTeleport,pp=e=>e&&(e.disabled||e.disabled===""),k4=e=>typeof SVGElement<"u"&&e instanceof SVGElement,B4=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,k$=(e,t)=>{const n=e&&e.to;return Qn(n)?t?t(n):null:n},gJ={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,l,s,c){const{mc:u,pc:d,pbc:f,o:{insert:h,querySelector:m,createText:v,createComment:y}}=c,b=pp(t.props);let{shapeFlag:$,children:x,dynamicChildren:_}=t;if(e==null){const w=t.el=v(""),I=t.anchor=v("");h(w,n,r),h(I,n,r);const O=t.target=k$(t.props,m),P=t.targetAnchor=v("");O&&(h(P,O),a==="svg"||k4(O)?a="svg":(a==="mathml"||B4(O))&&(a="mathml"));const E=(R,A)=>{$&16&&u(x,R,A,o,i,a,l,s)};b?E(n,I):O&&E(O,P)}else{t.el=e.el;const w=t.anchor=e.anchor,I=t.target=e.target,O=t.targetAnchor=e.targetAnchor,P=pp(e.props),E=P?n:I,R=P?w:O;if(a==="svg"||k4(I)?a="svg":(a==="mathml"||B4(I))&&(a="mathml"),_?(f(e.dynamicChildren,_,E,o,i,a,l),C2(e,t,!0)):s||d(e,t,E,R,o,i,a,l,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):dv(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=k$(t.props,m);A&&dv(t,A,null,c,0)}else P&&dv(t,I,O,c,1)}gN(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:l,children:s,anchor:c,targetAnchor:u,target:d,props:f}=e;if(d&&i(u),a&&i(c),l&16){const h=a||!pp(f);for(let m=0;m0?ea||od:null,mJ(),Jp>0&&ea&&ea.push(e),e}function qt(e,t,n,r,o,i){return vN(tt(e,t,n,r,o,i,!0))}function jn(e,t,n,r,o){return vN(g(e,t,n,r,o,!0))}function vr(e){return e?e.__v_isVNode===!0:!1}function lc(e,t){return e.type===t.type&&e.key===t.key}const Rb="__vInternal",mN=({key:e})=>e??null,im=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Qn(e)||Wn(e)||Ut(e)?{i:pr,r:e,k:t,f:!!n}:e:null);function tt(e,t=null,n=null,r=0,o=null,i=e===Je?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mN(t),ref:t&&im(t),scopeId:Ob,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:pr};return l?($2(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Qn(n)?8:16),Jp>0&&!a&&ea&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ea.push(s),s}const g=bJ;function bJ(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===JL)&&(e=ko),vr(e)){const l=kr(e,t,!0);return n&&$2(l,n),Jp>0&&!i&&ea&&(l.shapeFlag&6?ea[ea.indexOf(e)]=l:ea.push(l)),l.patchFlag|=-2,l}if(IJ(e)&&(e=e.__vccOpts),t){t=yJ(t);let{class:l,style:s}=t;l&&!Qn(l)&&(t.class=_r(l)),Tn(s)&&(zL(s)&&!Lt(s)&&(s=mr({},s)),t.style=gr(s))}const a=Qn(e)?1:DQ(e)?128:hJ(e)?64:Tn(e)?4:Ut(e)?2:0;return tt(e,t,n,r,o,a,i,!0)}function yJ(e){return e?zL(e)||Rb in e?mr({},e):e:null}function kr(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,l=t?B$(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&mN(l),ref:t&&t.ref?n&&o?Lt(o)?o.concat(im(t)):[o,im(t)]:im(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Je?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kr(e.ssContent),ssFallback:e.ssFallback&&kr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Dr(e=" ",t=0){return g(_l,null,e,t)}function zn(e="",t=!1){return t?(ht(),jn(ko,null,e)):g(ko,null,e)}function _a(e){return e==null||typeof e=="boolean"?g(ko):Lt(e)?g(Je,null,e.slice()):typeof e=="object"?os(e):g(_l,null,String(e))}function os(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:kr(e)}function $2(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Lt(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),$2(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Rb in t)?t._ctx=pr:o===3&&pr&&(pr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ut(t)?(t={default:t,_ctx:pr},n=32):(t=String(t),r&64?(n=16,t=[Dr(t)]):n=8);e.children=t,e.shapeFlag|=n}function B$(...e){const t={};for(let n=0;nRr||pr;let r0,F$;{const e=wL(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(a=>a(i)):o[0](i)}};r0=t("__VUE_INSTANCE_SETTERS__",n=>Rr=n),F$=t("__VUE_SSR_SETTERS__",n=>Db=n)}const Lh=e=>{const t=Rr;return r0(e),e.scope.on(),()=>{e.scope.off(),r0(t)}},H4=()=>{Rr&&Rr.scope.off(),r0(null)};function bN(e){return e.vnode.shapeFlag&4}let Db=!1;function xJ(e,t=!1){t&&F$(t);const{props:n,children:r}=e.vnode,o=bN(e);iJ(e,n,o,t),sJ(e,r);const i=o?wJ(e,t):void 0;return t&&F$(!1),i}function wJ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xb(new Proxy(e.ctx,YQ));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?SN(e):null,i=Lh(e);Wc();const a=vs(r,e,0,[e.props,o]);if(Vc(),i(),CL(a)){if(a.then(H4,H4),t)return a.then(l=>{z4(e,l,t)}).catch(l=>{wb(l,e,0)});e.asyncDep=a}else z4(e,a,t)}else yN(e,t)}function z4(e,t,n){Ut(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Tn(t)&&(e.setupState=UL(t)),yN(e,n)}let j4;function yN(e,t,n){const r=e.type;if(!e.render){if(!t&&j4&&!r.render){const o=r.template||y2(e).template;if(o){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:s}=r,c=mr(mr({isCustomElement:i,delimiters:l},a),s);r.render=j4(o,c)}}e.render=r.render||Ei}{const o=Lh(e);Wc();try{ZQ(e)}finally{Vc(),o()}}}function _J(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return zo(e,"get","$attrs"),t[n]}}))}function SN(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return _J(e)},slots:e.slots,emit:e.emit,expose:t}}function Lb(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(UL(xb(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fp)return fp[n](e)},has(t,n){return n in t||n in fp}}))}function OJ(e,t=!0){return Ut(e)?e.displayName||e.name:e.name||t&&e.__name}function IJ(e){return Ut(e)&&"__vccOpts"in e}const M=(e,t)=>mQ(e,t,Db);function Ni(e,t,n){const r=arguments.length;return r===2?Tn(t)&&!Lt(t)?vr(t)?g(e,null,[t]):g(e,t):g(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&vr(n)&&(n=[n]),g(e,t,n))}const PJ="3.4.15";/** -* @vue/runtime-dom v3.4.15 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/const TJ="http://www.w3.org/2000/svg",EJ="http://www.w3.org/1998/Math/MathML",is=typeof document<"u"?document:null,W4=is&&is.createElement("template"),AJ={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?is.createElementNS(TJ,e):t==="mathml"?is.createElementNS(EJ,e):is.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>is.createTextNode(e),createComment:e=>is.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>is.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{W4.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=W4.content;if(r==="svg"||r==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Gl="transition",Ff="animation",$d=Symbol("_vtc"),sr=(e,{slots:t})=>Ni(zQ,$N(e),t);sr.displayName="Transition";const CN={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},MJ=sr.props=mr({},nN,CN),Xs=(e,t=[])=>{Lt(e)?e.forEach(n=>n(...t)):e&&e(...t)},V4=e=>e?Lt(e)?e.some(t=>t.length>1):e.length>1:!1;function $N(e){const t={};for(const N in e)N in CN||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:c=a,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=RJ(o),v=m&&m[0],y=m&&m[1],{onBeforeEnter:b,onEnter:$,onEnterCancelled:x,onLeave:_,onLeaveCancelled:w,onBeforeAppear:I=b,onAppear:O=$,onAppearCancelled:P=x}=t,E=(N,F,W)=>{Jl(N,F?u:l),Jl(N,F?c:a),W&&W()},R=(N,F)=>{N._isLeaving=!1,Jl(N,d),Jl(N,h),Jl(N,f),F&&F()},A=N=>(F,W)=>{const D=N?O:$,B=()=>E(F,N,W);Xs(D,[F,B]),K4(()=>{Jl(F,N?s:i),il(F,N?u:l),V4(D)||U4(F,r,v,B)})};return mr(t,{onBeforeEnter(N){Xs(b,[N]),il(N,i),il(N,a)},onBeforeAppear(N){Xs(I,[N]),il(N,s),il(N,c)},onEnter:A(!1),onAppear:A(!0),onLeave(N,F){N._isLeaving=!0;const W=()=>R(N,F);il(N,d),wN(),il(N,f),K4(()=>{N._isLeaving&&(Jl(N,d),il(N,h),V4(_)||U4(N,r,y,W))}),Xs(_,[N,W])},onEnterCancelled(N){E(N,!1),Xs(x,[N])},onAppearCancelled(N){E(N,!0),Xs(P,[N])},onLeaveCancelled(N){R(N),Xs(w,[N])}})}function RJ(e){if(e==null)return null;if(Tn(e))return[LS(e.enter),LS(e.leave)];{const t=LS(e);return[t,t]}}function LS(e){return WZ(e)}function il(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$d]||(e[$d]=new Set)).add(t)}function Jl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[$d];n&&(n.delete(t),n.size||(e[$d]=void 0))}function K4(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let DJ=0;function U4(e,t,n,r){const o=e._endId=++DJ,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:l,propCount:s}=xN(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++u>=s&&d()};setTimeout(()=>{u(n[m]||"").split(", "),o=r(`${Gl}Delay`),i=r(`${Gl}Duration`),a=G4(o,i),l=r(`${Ff}Delay`),s=r(`${Ff}Duration`),c=G4(l,s);let u=null,d=0,f=0;t===Gl?a>0&&(u=Gl,d=a,f=i.length):t===Ff?c>0&&(u=Ff,d=c,f=s.length):(d=Math.max(a,c),u=d>0?a>c?Gl:Ff:null,f=u?u===Gl?i.length:s.length:0);const h=u===Gl&&/\b(transform|all)(,|$)/.test(r(`${Gl}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function G4(e,t){for(;e.lengthY4(n)+Y4(e[r])))}function Y4(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function wN(){return document.body.offsetHeight}function LJ(e,t,n){const r=e[$d];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const x2=Symbol("_vod"),Br={beforeMount(e,{value:t},{transition:n}){e[x2]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Hf(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Hf(e,!0),r.enter(e)):r.leave(e,()=>{Hf(e,!1)}):Hf(e,t))},beforeUnmount(e,{value:t}){Hf(e,t)}};function Hf(e,t){e.style.display=t?e[x2]:"none"}const _N=Symbol("");function ON(e){const t=Nn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>z$(i,o))},r=()=>{const o=e(t.proxy);H$(t.subTree,o),n(o)};BQ(r),lt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Fr(()=>o.disconnect())})}function H$(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{H$(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)z$(e.el,t);else if(e.type===Je)e.children.forEach(n=>H$(n,t));else if(e.type===om){let{el:n,anchor:r}=e;for(;n&&(z$(n,t),n!==r);)n=n.nextSibling}}function z$(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[_N]=r}}function NJ(e,t,n){const r=e.style,o=r.display,i=Qn(n);if(n&&!i){if(t&&!Qn(t))for(const a in t)n[a]==null&&j$(r,a,"");for(const a in n)j$(r,a,n[a])}else if(i){if(t!==n){const a=r[_N];a&&(n+=";"+a),r.cssText=n}}else t&&e.removeAttribute("style");x2 in e&&(r.display=o)}const X4=/\s*!important$/;function j$(e,t,n){if(Lt(n))n.forEach(r=>j$(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kJ(e,t);X4.test(n)?e.setProperty(jc(r),n.replace(X4,""),"important"):e[r]=n}}const q4=["Webkit","Moz","ms"],NS={};function kJ(e,t){const n=NS[t];if(n)return n;let r=Da(t);if(r!=="filter"&&r in e)return NS[t]=r;r=Sb(r);for(let o=0;okS||(VJ.then(()=>kS=0),kS=Date.now());function UJ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ai(GJ(r,n.value),t,5,[r])};return n.value=e,n.attached=KJ(),n}function GJ(e,t){if(Lt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const e3=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,YJ=(e,t,n,r,o,i,a,l,s)=>{const c=o==="svg";t==="class"?LJ(e,r,c):t==="style"?NJ(e,n,r):mb(t)?t2(t)||jJ(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):XJ(e,t,r,c))?FJ(e,t,r,i,a,l,s):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),BJ(e,t,r,c))};function XJ(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&e3(t)&&Ut(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return e3(t)&&Qn(n)?!1:t in e}const IN=new WeakMap,PN=new WeakMap,o0=Symbol("_moveCb"),t3=Symbol("_enterCb"),TN={name:"TransitionGroup",props:mr({},MJ,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Nn(),r=tN();let o,i;return fo(()=>{if(!o.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!eee(o[0].el,n.vnode.el,a))return;o.forEach(ZJ),o.forEach(QJ);const l=o.filter(JJ);wN(),l.forEach(s=>{const c=s.el,u=c.style;il(c,a),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[o0]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[o0]=null,Jl(c,a))};c.addEventListener("transitionend",d)})}),()=>{const a=$t(e),l=$N(a);let s=a.tag||Je;o=i,i=t.default?b2(t.default()):[];for(let c=0;cdelete e.mode;TN.props;const Nb=TN;function ZJ(e){const t=e.el;t[o0]&&t[o0](),t[t3]&&t[t3]()}function QJ(e){PN.set(e,e.el.getBoundingClientRect())}function JJ(e){const t=IN.get(e),n=PN.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function eee(e,t,n){const r=e.cloneNode(),o=e[$d];o&&o.forEach(l=>{l.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=xN(r);return i.removeChild(r),a}const tee=["ctrl","shift","alt","meta"],nee={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tee.some(n=>e[`${n}Key`]&&!t.includes(n))},n3=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=jc(o.key);if(t.some(a=>a===i||ree[a]===i))return e(o)})},oee=mr({patchProp:YJ},AJ);let r3;function EN(){return r3||(r3=uJ(oee))}const Pc=(...e)=>{EN().render(...e)},AN=(...e)=>{const t=EN().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=aee(r);if(!o)return;const i=t._component;!Ut(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,iee(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function iee(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function aee(e){return Qn(e)?document.querySelector(e):e}function eh(e){"@babel/helpers - typeof";return eh=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},eh(e)}function lee(e,t){if(eh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(eh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function see(e){var t=lee(e,"string");return eh(t)=="symbol"?t:String(t)}function cee(e,t,n){return t=see(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o3(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 V(e){for(var t=1;ttypeof e=="function",dee=Array.isArray,fee=e=>typeof e=="string",pee=e=>e!==null&&typeof e=="object",hee=/^on[^a-z]/,gee=e=>hee.test(e),w2=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vee=/-(\w)/g,Gc=w2(e=>e.replace(vee,(t,n)=>n?n.toUpperCase():"")),mee=/\B([A-Z])/g,bee=w2(e=>e.replace(mee,"-$1").toLowerCase()),yee=w2(e=>e.charAt(0).toUpperCase()+e.slice(1)),See=Object.prototype.hasOwnProperty,i3=(e,t)=>See.call(e,t);function Cee(e,t,n,r){const o=e[n];if(o!=null){const i=i3(o,"default");if(i&&r===void 0){const a=o.default;r=o.type!==Function&&uee(a)?a():a}o.type===Boolean&&(!i3(t,n)&&!i?r=!1:r===""&&(r=!0))}return r}function $ee(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function sc(e){return typeof e=="number"?`${e}px`:e}function Xu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function xee(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}function me(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!W$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Tee?(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(){!W$||!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=Pee.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}(),RN=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Bee(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 xd(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 Fee(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}(),LN=typeof WeakMap<"u"?new WeakMap:new MN,NN=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=Eee.getInstance(),r=new Hee(t,n,this);LN.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){NN.prototype[e]=function(){var t;return(t=LN.get(this))[e].apply(t,arguments)}});var zee=function(){return typeof i0.ResizeObserver<"u"?i0.ResizeObserver:NN}();const _2=zee,V$=e=>e!=null&&e!=="",bt=(e,t)=>{const n=S({},e);return Object.keys(t).forEach(r=>{const o=n[r];if(o)o.type||o.default?o.default=t[r]:o.def?o.def(t[r]):n[r]={type:o,default:t[r]};else throw new Error(`not have ${r} prop`)}),n},O2=e=>{const t=Object.keys(e),n={},r={},o={};for(let i=0,a=t.length;i0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return typeof e=="object"?e:(e.split(r).forEach(function(i){if(i){const a=i.split(o);if(a.length>1){const l=t?Gc(a[0].trim()):a[0].trim();n[l]=a[1].trim()}}}),n)},ul=(e,t)=>e[t]!==void 0,kN=Symbol("skipFlatten"),ln=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],r=[];return n.forEach(o=>{Array.isArray(o)?r.push(...ln(o,t)):o&&o.type===Je?o.key===kN?r.push(o):r.push(...ln(o.children,t)):o&&vr(o)?t&&!Nh(o)?r.push(o):t||r.push(o):V$(o)&&r.push(o)}),r},Bb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(vr(e))return e.type===Je?t==="default"?ln(e.children):[]:e.children&&e.children[t]?ln(e.children[t](n)):[];{const r=e.$slots[t]&&e.$slots[t](n);return ln(r)}},No=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},BN=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const o=e.$props[r],i=bee(r);(o!==void 0||i in n)&&(t[r]=o)})}else if(vr(e)&&typeof e.type=="object"){const n=e.props||{},r={};Object.keys(n).forEach(i=>{r[Gc(i)]=n[i]});const o=e.type.props||{};Object.keys(o).forEach(i=>{const a=Cee(o,r,i,r[i]);(a!==void 0||i in r)&&(t[i]=a)})}return t},FN=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o;if(e.$){const i=e[t];if(i!==void 0)return typeof i=="function"&&r?i(n):i;o=e.$slots[t],o=r&&o?o(n):o}else if(vr(e)){const i=e.props&&e.props[t];if(i!==void 0&&e.props!==null)return typeof i=="function"&&r?i(n):i;e.type===Je?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=r&&o?o(n):o)}return Array.isArray(o)&&(o=ln(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function l3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=S(S({},n),e.$attrs):n=S(S({},n),e.props),O2(n)[t?"onEvents":"events"]}function Wee(e){const n=((vr(e)?e.props:e.$attrs)||{}).class||{};let r={};return typeof n=="string"?n.split(" ").forEach(o=>{r[o.trim()]=!0}):Array.isArray(n)?me(n).split(" ").forEach(o=>{r[o.trim()]=!0}):r=S(S({},r),n),r}function HN(e,t){let r=((vr(e)?e.props:e.$attrs)||{}).style||{};if(typeof r=="string")r=jee(r,t);else if(t&&r){const o={};return Object.keys(r).forEach(i=>o[Gc(i)]=r[i]),o}return r}function Vee(e){return e.length===1&&e[0].type===Je}function Kee(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Nh(e){return e&&(e.type===ko||e.type===Je&&e.children.length===0||e.type===_l&&e.children.trim()==="")}function Uee(e){return e&&e.type===_l}function _n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===Je?t.push(..._n(n.children)):t.push(n)}),t.filter(n=>!Nh(n))}function zf(e){if(e){const t=_n(e);return t.length?t:void 0}else return e}function Jn(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function lr(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,o;return(r=t[n])!==null&&r!==void 0?r:(o=e[n])===null||o===void 0?void 0:o.call(e)}const ki=pe({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const r=St({width:0,height:0,offsetHeight:0,offsetWidth:0});let o=null,i=null;const a=()=>{i&&(i.disconnect(),i=null)},l=u=>{const{onResize:d}=e,f=u[0].target,{width:h,height:m}=f.getBoundingClientRect(),{offsetWidth:v,offsetHeight:y}=f,b=Math.floor(h),$=Math.floor(m);if(r.width!==b||r.height!==$||r.offsetWidth!==v||r.offsetHeight!==y){const x={width:b,height:$,offsetWidth:v,offsetHeight:y};S(r,x),d&&Promise.resolve().then(()=>{d(S(S({},x),{offsetWidth:v,offsetHeight:y}),f)})}},s=Nn(),c=()=>{const{disabled:u}=e;if(u){a();return}const d=No(s);d!==o&&(a(),o=d),!i&&d&&(i=new _2(l),i.observe(d))};return lt(()=>{c()}),fo(()=>{c()}),Fr(()=>{a()}),Ie(()=>e.disabled,()=>{c()},{flush:"post"}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});let zN=e=>setTimeout(e,16),jN=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(zN=e=>window.requestAnimationFrame(e),jN=e=>window.cancelAnimationFrame(e));let s3=0;const I2=new Map;function WN(e){I2.delete(e)}function mt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;s3+=1;const n=s3;function r(o){if(o===0)WN(n),e();else{const i=zN(()=>{r(o-1)});I2.set(n,i)}}return r(t),n}mt.cancel=e=>{const t=I2.get(e);return WN(t),jN(t)};function K$(e){let t;const n=o=>()=>{t=null,e(...o)},r=function(){if(t==null){for(var o=arguments.length,i=new Array(o),a=0;a{mt.cancel(t),t=null},r}const Ur=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Tc(){return{type:[Function,Array]}}function qe(e){return{type:Object,default:e}}function De(e){return{type:Boolean,default:e}}function Oe(e){return{type:Function,default:e}}function cn(e,t){const n={validator:()=>!0,default:e};return n}function ro(){return{validator:()=>!0}}function kt(e){return{type:Array,default:e}}function Qe(e){return{type:String,default:e}}function ot(e,t){return e?{type:e,default:t}:cn(t)}let VN=!1;try{const e=Object.defineProperty({},"passive",{get(){VN=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const dr=VN;function wn(e,t,n,r){if(e&&e.addEventListener){let o=r;o===void 0&&dr&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function fv(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function c3(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function u3(e,t,n){if(n!==void 0&&t.bottomr.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},gp.push(n),KN.forEach(r=>{n.eventHandlers[r]=wn(e,r,()=>{n.affixList.forEach(o=>{const{lazyUpdatePosition:i}=o.exposed;i()},(r==="touchstart"||r==="touchmove")&&dr?{passive:!0}:!1)})}))}function f3(e){const t=gp.find(n=>{const r=n.affixList.some(o=>o===e);return r&&(n.affixList=n.affixList.filter(o=>o!==e)),r});t&&t.affixList.length===0&&(gp=gp.filter(n=>n!==t),KN.forEach(n=>{const r=t.eventHandlers[n];r&&r.remove&&r.remove()}))}const P2="anticon",UN=Symbol("GlobalFormContextKey"),Yee=e=>{ft(UN,e)},Xee=()=>it(UN,{validateMessages:M(()=>{})}),qee=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:qe(),input:qe(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:qe(),pageHeader:qe(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:qe(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:qe(),pagination:qe(),theme:qe(),select:qe(),wave:qe()}),T2=Symbol("configProvider"),GN={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:M(()=>P2),getPopupContainer:M(()=>()=>document.body),direction:M(()=>"ltr")},Fb=()=>it(T2,GN),Zee=e=>ft(T2,e),YN=Symbol("DisabledContextKey"),jo=()=>it(YN,he(void 0)),XN=e=>{const t=jo();return ft(YN,M(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},qN={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},Qee={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},Jee=Qee,ete={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ZN=ete,tte={lang:S({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Jee),timePickerLocale:S({},ZN)},th=tte,ei="${label} is not a valid ${type}",so={locale:"en",Pagination:qN,DatePicker:th,TimePicker:ZN,Calendar:th,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ei,method:ei,array:ei,object:ei,number:ei,date:ei,boolean:ei,integer:ei,float:ei,regexp:ei,email:ei,url:ei,hex:ei},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},Yc=pe({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const r=it("localeData",{}),o=M(()=>{const{componentName:a="global",defaultLocale:l}=e,s=l||so[a||"global"],{antLocale:c}=r,u=a&&c?c[a]:{};return S(S({},typeof s=="function"?s():s),u||{})}),i=M(()=>{const{antLocale:a}=r,l=a&&a.locale;return a&&a.exist&&!l?so.locale:l});return()=>{const a=e.children||n.default,{antLocale:l}=r;return a==null?void 0:a(o.value,i.value,l)}}});function Wi(e,t,n){const r=it("localeData",{});return[M(()=>{const{antLocale:i}=r,a=wt(t)||so[e||"global"],l=e&&i?i[e]:{};return S(S(S({},typeof a=="function"?a():a),l||{}),wt(n)||{})})]}function E2(e){for(var t=0,n,r=0,o=e.length;o>=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)}const p3="%";class nte{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(p3):t)||null}update(t,n){const r=Array.isArray(t)?t.join(p3):t,o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}const rte=nte,A2="data-token-hash",ms="data-css-hash",qu="__cssinjs_instance__";function wd(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ms}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[qu]=o[qu]||e,o[qu]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${ms}]`)).forEach(o=>{var i;const a=o.getAttribute(ms);r[a]?o[qu]===e&&((i=o.parentNode)===null||i===void 0||i.removeChild(o)):r[a]=!0})}return new rte(e)}const QN=Symbol("StyleContextKey"),ote=()=>{var e,t,n;const r=Nn();let o;if(r&&r.appContext){const i=(n=(t=(e=r.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=wd(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=wd();return o},JN={cache:wd(),defaultCache:!0,hashPriority:"low"},kh=()=>{const e=ote();return it(QN,ve(S(S({},JN),{cache:e})))},e7=e=>{const t=kh(),n=ve(S(S({},JN),{cache:wd()}));return Ie([()=>wt(e),t],()=>{const r=S({},t.value),o=wt(e);Object.keys(o).forEach(a=>{const l=o[a];o[a]!==void 0&&(r[a]=l)});const{cache:i}=o;r.cache=r.cache||wd(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),ft(QN,n),n},ite=()=>({autoClear:De(),mock:Qe(),cache:qe(),defaultCache:De(),hashPriority:Qe(),container:ot(),ssrInline:De(),transformers:kt(),linters:kt()}),ate=$n(pe({name:"AStyleProvider",inheritAttrs:!1,props:ite(),setup(e,t){let{slots:n}=t;return e7(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function t7(e,t,n,r){const o=kh(),i=ve(""),a=ve();ct(()=>{i.value=[e,...t.value].join("%")});const l=s=>{o.value.cache.update(s,c=>{const[u=0,d]=c||[];return u-1===0?(r==null||r(d,!1),null):[u-1,d]})};return Ie(i,(s,c)=>{c&&l(c),o.value.cache.update(s,u=>{const[d=0,f]=u||[],m=f||n();return[d+1,m]}),a.value=o.value.cache.get(i.value)[1]},{immediate:!0}),Ct(()=>{l(i.value)}),a}function co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ss(e,t){return e&&e.contains?e.contains(t):!1}const h3="data-vc-order",lte="vc-util-key",U$=new Map;function n7(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:lte}function Hb(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ste(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function r7(e){return Array.from((U$.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function o7(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!co())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(h3,ste(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;const i=Hb(t),{firstChild:a}=i;if(r){if(r==="queue"){const l=r7(i).filter(s=>["prepend","prependQueue"].includes(s.getAttribute(h3)));if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function i7(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Hb(t);return r7(n).find(r=>r.getAttribute(n7(t))===e)}function l0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=i7(e,t);n&&Hb(t).removeChild(n)}function cte(e,t){const n=U$.get(e);if(!n||!ss(document,n)){const r=o7("",t),{parentNode:o}=r;U$.set(e,o),e.removeChild(r)}}function nh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,o,i;const a=Hb(n);cte(a,n);const l=i7(t,n);if(l)return!((r=n.csp)===null||r===void 0)&&r.nonce&&l.nonce!==((o=n.csp)===null||o===void 0?void 0:o.nonce)&&(l.nonce=(i=n.csp)===null||i===void 0?void 0:i.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const s=o7(e,n);return s.setAttribute(n7(n),t),s}function ute(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var i;r?r=(i=r==null?void 0:r.map)===null||i===void 0?void 0:i.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>_d.MAX_CACHE_SIZE+_d.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,a)=>{const[,l]=i;return this.internalGet(a)[1]{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const a=r.get(o);a?a.map||(a.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!ute(n,t)),this.deleteByPath(this.cache,t)}}_d.MAX_CACHE_SIZE=20;_d.MAX_CACHE_OFFSET=5;let g3={};function dte(e,t){}function fte(e,t){}function a7(e,t,n){!t&&!g3[n]&&(e(!1,n),g3[n]=!0)}function zb(e,t){a7(dte,e,t)}function pte(e,t){a7(fte,e,t)}function hte(){}let gte=hte;const Sn=gte;let v3=0;class M2{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=v3,t.length===0&&Sn(t.length>0),v3+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const BS=new _d;function R2(e){const t=Array.isArray(e)?e:[e];return BS.has(t)||BS.set(t,new M2(t)),BS.get(t)}const m3=new WeakMap;function s0(e){let t=m3.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof M2?t+=r.id:r&&typeof r=="object"?t+=s0(r):t+=r}),m3.set(e,t)),t}function vte(e,t){return E2(`${t}_${s0(e)}`)}const vp=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),l7="_bAmBoO_";function mte(e,t,n){var r,o;if(co()){nh(e,vp);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);const a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(l7);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),l0(vp),a}return!1}let FS;function bte(){return FS===void 0&&(FS=mte(`@layer ${vp} { .${vp} { content: "${l7}"!important; } }`,e=>{e.className=vp})),FS}const b3={},yte=!0,Ste=!1,Cte=!yte&&!Ste?"css-dev-only-do-not-override":"css",cc=new Map;function $te(e){cc.set(e,(cc.get(e)||0)+1)}function xte(e,t){typeof document<"u"&&document.querySelectorAll(`style[${A2}="${e}"]`).forEach(r=>{var o;r[qu]===t&&((o=r.parentNode)===null||o===void 0||o.removeChild(r))})}const wte=0;function _te(e,t){cc.set(e,(cc.get(e)||0)-1);const n=Array.from(cc.keys()),r=n.filter(o=>(cc.get(o)||0)<=0);n.length-r.length>wte&&r.forEach(o=>{xte(o,t),cc.delete(o)})}const Ote=(e,t,n,r)=>{const o=n.getDerivativeToken(e);let i=S(S({},o),t);return r&&(i=r(i)),i};function s7(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he({});const r=kh(),o=M(()=>S({},...t.value)),i=M(()=>s0(o.value)),a=M(()=>s0(n.value.override||b3));return t7("token",M(()=>[n.value.salt||"",e.value.id,i.value,a.value]),()=>{const{salt:s="",override:c=b3,formatToken:u,getComputedToken:d}=n.value,f=d?d(o.value,c,e.value):Ote(o.value,c,e.value,u),h=vte(f,s);f._tokenKey=h,$te(h);const m=`${Cte}-${E2(h)}`;return f._hashId=m,[f,m]},s=>{var c;_te(s[0]._tokenKey,(c=r.value)===null||c===void 0?void 0:c.cache.instanceId)})}var c7={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},u7="comm",d7="rule",f7="decl",Ite="@import",Pte="@keyframes",Tte="@layer",p7=Math.abs,D2=String.fromCharCode;function h7(e){return e.trim()}function am(e,t,n){return e.replace(t,n)}function Ete(e,t,n){return e.indexOf(t,n)}function rh(e,t){return e.charCodeAt(t)|0}function oh(e,t,n){return e.slice(t,n)}function cl(e){return e.length}function Ate(e){return e.length}function pv(e,t){return t.push(e),e}var jb=1,Od=1,g7=0,Bi=0,fr=0,ef="";function L2(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jb,column:Od,length:a,return:"",siblings:l}}function Mte(){return fr}function Rte(){return fr=Bi>0?rh(ef,--Bi):0,Od--,fr===10&&(Od=1,jb--),fr}function oa(){return fr=Bi2||G$(fr)>3?"":" "}function kte(e,t){for(;--t&&oa()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return Wb(e,lm()+(t<6&&Sc()==32&&oa()==32))}function Y$(e){for(;oa();)switch(fr){case e:return Bi;case 34:case 39:e!==34&&e!==39&&Y$(fr);break;case 40:e===41&&Y$(e);break;case 92:oa();break}return Bi}function Bte(e,t){for(;oa()&&e+fr!==57;)if(e+fr===84&&Sc()===47)break;return"/*"+Wb(t,Bi-1)+"*"+D2(e===47?e:oa())}function Fte(e){for(;!G$(Sc());)oa();return Wb(e,Bi)}function Hte(e){return Lte(sm("",null,null,null,[""],e=Dte(e),0,[0],e))}function sm(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,h=0,m=0,v=1,y=1,b=1,$=0,x="",_=o,w=i,I=r,O=x;y;)switch(m=$,$=oa()){case 40:if(m!=108&&rh(O,d-1)==58){Ete(O+=am(HS($),"&","&\f"),"&\f",p7(c?l[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:O+=HS($);break;case 9:case 10:case 13:case 32:O+=Nte(m);break;case 92:O+=kte(lm()-1,7);continue;case 47:switch(Sc()){case 42:case 47:pv(zte(Bte(oa(),lm()),t,n,s),s);break;default:O+="/"}break;case 123*v:l[c++]=cl(O)*b;case 125*v:case 59:case 0:switch($){case 0:case 125:y=0;case 59+u:b==-1&&(O=am(O,/\f/g,"")),h>0&&cl(O)-d&&pv(h>32?S3(O+";",r,n,d-1,s):S3(am(O," ","")+";",r,n,d-2,s),s);break;case 59:O+=";";default:if(pv(I=y3(O,t,n,c,u,o,l,x,_=[],w=[],d,i),i),$===123)if(u===0)sm(O,t,I,I,_,i,d,l,w);else switch(f===99&&rh(O,3)===110?100:f){case 100:case 108:case 109:case 115:sm(e,I,I,r&&pv(y3(e,I,I,0,0,o,l,x,o,_=[],d,w),w),o,w,d,l,r?_:w);break;default:sm(O,I,I,I,[""],w,0,l,w)}}c=u=h=0,v=b=1,x=O="",d=a;break;case 58:d=1+cl(O),h=m;default:if(v<1){if($==123)--v;else if($==125&&v++==0&&Rte()==125)continue}switch(O+=D2($),$*v){case 38:b=u>0?1:(O+="\f",-1);break;case 44:l[c++]=(cl(O)-1)*b,b=1;break;case 64:Sc()===45&&(O+=HS(oa())),f=Sc(),u=d=cl(x=O+=Fte(lm())),$++;break;case 45:m===45&&cl(O)==2&&(v=0)}}return i}function y3(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,h=o===0?i:[""],m=Ate(h),v=0,y=0,b=0;v0?h[$]+" "+x:am(x,/&\f/g,h[$])))&&(s[b++]=_);return L2(e,t,n,o===0?d7:l,s,c,u,d)}function zte(e,t,n,r){return L2(e,t,n,u7,D2(Mte()),oh(e,2,-2),0,r)}function S3(e,t,n,r,o){return L2(e,t,n,f7,oh(e,0,r),oh(e,r+1,-1),r,o)}function X$(e,t){for(var n="",r=0;r ")}`:""}`)}function Wte(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(o=>o).length>1}function Vte(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const Kte=(e,t,n)=>{const o=Vte(n).match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(Wte)&&Zu("Concat ':not' selector not support in legacy browsers.",n)},Ute=Kte,Gte=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":Zu(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const r=t.split(" ").map(o=>o.trim());r.length===4&&r[1]!==r[3]&&Zu(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":(t==="left"||t==="right")&&Zu(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case"borderRadius":typeof t=="string"&&t.split("/").map(i=>i.trim()).reduce((i,a)=>{if(i)return i;const l=a.split(" ").map(s=>s.trim());return l.length>=2&&l[0]!==l[1]||l.length===3&&l[1]!==l[2]||l.length===4&&l[2]!==l[3]?!0:i},!1)&&Zu(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return}},Yte=Gte,Xte=(e,t,n)=>{n.parentSelectors.some(r=>r.split(",").some(i=>i.split("&").length>2))&&Zu("Should not use more than one `&` in a selector.",n)},qte=Xte,mp="data-ant-cssinjs-cache-path",Zte="_FILE_STYLE__";function Qte(e){return Object.keys(e).map(t=>{const n=e[t];return`${t}:${n}`}).join(";")}let Cc,v7=!0;function Jte(){var e;if(!Cc&&(Cc={},co())){const t=document.createElement("div");t.className=mp,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(o=>{const[i,a]=o.split(":");Cc[i]=a});const r=document.querySelector(`style[${mp}]`);r&&(v7=!1,(e=r.parentNode)===null||e===void 0||e.removeChild(r)),document.body.removeChild(t)}}function ene(e){return Jte(),!!Cc[e]}function tne(e){const t=Cc[e];let n=null;if(t&&co())if(v7)n=Zte;else{const r=document.querySelector(`style[${ms}="${Cc[e]}"]`);r?n=r.innerHTML:delete Cc[e]}return[n,t]}const C3=co(),nne="_skip_check_",m7="_multi_value_";function q$(e){return X$(Hte(e),jte).replace(/\{%%%\:[^;];}/g,";")}function rne(e){return typeof e=="object"&&e&&(nne in e||m7 in e)}function one(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(a=>{var l;const s=a.trim().split(/\s+/);let c=s[0]||"";const u=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c=`${u}${o}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const $3=new Set,Z$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:a,path:l,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",f={};function h(y){const b=y.getName(i);if(!f[b]){const[$]=Z$(y.style,t,{root:!1,parentSelectors:o});f[b]=`@keyframes ${y.getName(i)}${$}`}}function m(y){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach($=>{Array.isArray($)?m($,b):$&&b.push($)}),b}if(m(Array.isArray(e)?e:[e]).forEach(y=>{const b=typeof y=="string"&&!n?{}:y;if(typeof b=="string")d+=`${b} -`;else if(b._keyframe)h(b);else{const $=c.reduce((x,_)=>{var w;return((w=_==null?void 0:_.visit)===null||w===void 0?void 0:w.call(_,x))||x},b);Object.keys($).forEach(x=>{var _;const w=$[x];if(typeof w=="object"&&w&&(x!=="animationName"||!w._keyframe)&&!rne(w)){let I=!1,O=x.trim(),P=!1;(n||r)&&i?O.startsWith("@")?I=!0:O=one(x,i,s):n&&!i&&(O==="&"||O==="")&&(O="",P=!0);const[E,R]=Z$(w,t,{root:P,injectHash:I,parentSelectors:[...o,O]});f=S(S({},f),R),d+=`${O}${E}`}else{let I=function(P,E){const R=P.replace(/[A-Z]/g,N=>`-${N.toLowerCase()}`);let A=E;!c7[P]&&typeof A=="number"&&A!==0&&(A=`${A}px`),P==="animationName"&&(E!=null&&E._keyframe)&&(h(E),A=E.getName(i)),d+=`${R}:${A};`};const O=(_=w==null?void 0:w.value)!==null&&_!==void 0?_:w;typeof w=="object"&&(w!=null&&w[m7])&&Array.isArray(O)?O.forEach(P=>{I(x,P)}):I(x,O)}})}}),!n)d=`{${d}}`;else if(a&&bte()){const y=a.split(",");d=`@layer ${y[y.length-1].trim()} {${d}}`,y.length>1&&(d=`@layer ${a}{%%%:%}${d}`)}return[d,f]};function ine(e,t){return E2(`${e.join("%")}${t}`)}function c0(e,t){const n=kh(),r=M(()=>e.value.token._tokenKey),o=M(()=>[r.value,...e.value.path]);let i=C3;return t7("style",o,()=>{const{path:a,hashId:l,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,f=o.value.join("|");if(ene(f)){const[O,P]=tne(f);if(O)return[O,r.value,P,{},u,d]}const h=t(),{hashPriority:m,container:v,transformers:y,linters:b,cache:$}=n.value,[x,_]=Z$(h,{hashId:l,hashPriority:m,layer:s,path:a.join("-"),transformers:y,linters:b}),w=q$(x),I=ine(o.value,w);if(i){const O={mark:ms,prepend:"queue",attachTo:v,priority:d},P=typeof c=="function"?c():c;P&&(O.csp={nonce:P});const E=nh(w,I,O);E[qu]=$.instanceId,E.setAttribute(A2,r.value),Object.keys(_).forEach(R=>{$3.has(R)||($3.add(R),nh(q$(_[R]),`_effect-${R}`,{mark:ms,prepend:"queue",attachTo:v}))})}return[w,r.value,I,_,u,d]},(a,l)=>{let[,,s]=a;(l||n.value.autoClear)&&C3&&l0(s,{mark:ms})}),a=>a}function ane(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n="style%",r=Array.from(e.cache.keys()).filter(c=>c.startsWith(n)),o={},i={};let a="";function l(c,u,d){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const h=S(S({},f),{[A2]:u,[ms]:d}),m=Object.keys(h).map(v=>{const y=h[v];return y?`${v}="${y}"`:null}).filter(v=>v).join(" ");return t?c:``}return r.map(c=>{const u=c.slice(n.length).replace(/%/g,"|"),[d,f,h,m,v,y]=e.cache.get(c)[1];if(v)return null;const b={"data-vc-order":"prependQueue","data-vc-priority":`${y}`};let $=l(d,f,h,b);return i[u]=h,m&&Object.keys(m).forEach(_=>{o[_]||(o[_]=!0,$+=l(q$(m[_]),f,`_effect-${_}`,b))}),[y,$]}).filter(c=>c).sort((c,u)=>c[0]-u[0]).forEach(c=>{let[,u]=c;a+=u}),a+=l(`.${mp}{content:"${Qte(i)}";}`,void 0,void 0,{[mp]:mp}),a}class lne{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const Pt=lne;function sne(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",r=0;return t.reduce((o,i)=>(i.includes("(")?(n+=i,r+=i.split("(").length-1):i.includes(")")?(n+=` ${i}`,r-=i.split(")").length-1,r===0&&(o.push(n),n="")):r>0?n+=` ${i}`:o.push(i),o),[])}function Iu(e){return e.notSplit=!0,e}const cne={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:Iu(["borderTop","borderBottom"]),borderBlockStart:Iu(["borderTop"]),borderBlockEnd:Iu(["borderBottom"]),borderInline:Iu(["borderLeft","borderRight"]),borderInlineStart:Iu(["borderLeft"]),borderInlineEnd:Iu(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function hv(e){return{_skip_check_:!0,value:e}}const une={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const r=e[n],o=cne[n];if(o&&(typeof r=="number"||typeof r=="string")){const i=sne(r);o.length&&o.notSplit?o.forEach(a=>{t[a]=hv(r)}):o.length===1?t[o[0]]=hv(r):o.length===2?o.forEach((a,l)=>{var s;t[a]=hv((s=i[l])!==null&&s!==void 0?s:i[0])}):o.length===4?o.forEach((a,l)=>{var s,c;t[a]=hv((c=(s=i[l])!==null&&s!==void 0?s:i[l-2])!==null&&c!==void 0?c:i[0])}):t[n]=r}else t[n]=r}),t}},dne=une,zS=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function fne(e,t){const n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}const pne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:r=!1}=e,o=(a,l)=>{if(!l)return a;const s=parseFloat(l);return s<=1?a:`${fne(s/t,n)}rem`};return{visit:a=>{const l=S({},a);return Object.entries(a).forEach(s=>{let[c,u]=s;if(typeof u=="string"&&u.includes("px")){const f=u.replace(zS,o);l[c]=f}!c7[c]&&typeof u=="number"&&u!==0&&(l[c]=`${u}px`.replace(zS,o));const d=c.trim();if(d.startsWith("@")&&d.includes("px")&&r){const f=c.replace(zS,o);l[f]=l[c],delete l[c]}}),l}}},hne=pne,gne={Theme:M2,createTheme:R2,useStyleRegister:c0,useCacheToken:s7,createCache:wd,useStyleInject:kh,useStyleProvider:e7,Keyframes:Pt,extractStyle:ane,legacyLogicalPropertiesTransformer:dne,px2remTransformer:hne,logicalPropertiesLinter:Yte,legacyNotSelectorLinter:Ute,parentSelectorLinter:qte,StyleProvider:ate},vne=gne,b7="4.1.2",ih=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Vr(e,t){mne(e)&&(e="100%");var n=bne(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gv(e){return Math.min(1,Math.max(0,e))}function mne(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function bne(e){return typeof e=="string"&&e.indexOf("%")!==-1}function y7(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vv(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gc(e){return e.length===1?"0"+e:String(e)}function yne(e,t,n){return{r:Vr(e,255)*255,g:Vr(t,255)*255,b:Vr(n,255)*255}}function x3(e,t,n){e=Vr(e,255),t=Vr(t,255),n=Vr(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 Sne(e,t,n){var r,o,i;if(e=Vr(e,360),t=Vr(t,100),n=Vr(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=jS(l,a,e+1/3),o=jS(l,a,e),i=jS(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Q$(e,t,n){e=Vr(e,255),t=Vr(t,255),n=Vr(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 ex={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 Wu(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=Ine(e)),typeof e=="object"&&(Qa(e.r)&&Qa(e.g)&&Qa(e.b)?(t=yne(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qa(e.h)&&Qa(e.s)&&Qa(e.v)?(r=vv(e.s),o=vv(e.v),t=Cne(e.h,r,o),a=!0,l="hsv"):Qa(e.h)&&Qa(e.s)&&Qa(e.l)&&(r=vv(e.s),i=vv(e.l),t=Sne(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=y7(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 _ne="[-\\+]?\\d+%?",One="[-\\+]?\\d*\\.\\d+%?",ds="(?:".concat(One,")|(?:").concat(_ne,")"),WS="[\\s|\\(]+(".concat(ds,")[,|\\s]+(").concat(ds,")[,|\\s]+(").concat(ds,")\\s*\\)?"),VS="[\\s|\\(]+(".concat(ds,")[,|\\s]+(").concat(ds,")[,|\\s]+(").concat(ds,")[,|\\s]+(").concat(ds,")\\s*\\)?"),Zi={CSS_UNIT:new RegExp(ds),rgb:new RegExp("rgb"+WS),rgba:new RegExp("rgba"+VS),hsl:new RegExp("hsl"+WS),hsla:new RegExp("hsla"+VS),hsv:new RegExp("hsv"+WS),hsva:new RegExp("hsva"+VS),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 Ine(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ex[e])e=ex[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Zi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Zi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Zi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Zi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Zi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Zi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Zi.hex8.exec(e),n?{r:oi(n[1]),g:oi(n[2]),b:oi(n[3]),a:w3(n[4]),format:t?"name":"hex8"}:(n=Zi.hex6.exec(e),n?{r:oi(n[1]),g:oi(n[2]),b:oi(n[3]),format:t?"name":"hex"}:(n=Zi.hex4.exec(e),n?{r:oi(n[1]+n[1]),g:oi(n[2]+n[2]),b:oi(n[3]+n[3]),a:w3(n[4]+n[4]),format:t?"name":"hex8"}:(n=Zi.hex3.exec(e),n?{r:oi(n[1]+n[1]),g:oi(n[2]+n[2]),b:oi(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Qa(e){return!!Zi.CSS_UNIT.exec(String(e))}var Zt=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=wne(t)),this.originalInput=t;var o=Wu(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=y7(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=Q$(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=Q$(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=x3(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=x3(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),J$(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),$ne(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.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(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(Vr(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(Vr(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="#"+J$(this.r,this.g,this.b,!1),n=0,r=Object.entries(ex);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=gv(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=gv(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=gv(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=gv(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(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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)-mv*t:Math.round(e.h)+mv*t:r=n?Math.round(e.h)+mv*t:Math.round(e.h)-mv*t,r<0?r+=360:r>=360&&(r-=360),r}function P3(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-_3*t:t===C7?r=e.s+_3:r=e.s+Pne*t,r>1&&(r=1),n&&t===S7&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function T3(e,t,n){var r;return n?r=e.v+Tne*t:r=e.v-Ene*t,r>1&&(r=1),Number(r.toFixed(2))}function Ec(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Wu(e),o=S7;o>0;o-=1){var i=O3(r),a=bv(Wu({h:I3(i,o,!0),s:P3(i,o,!0),v:T3(i,o,!0)}));n.push(a)}n.push(bv(r));for(var l=1;l<=C7;l+=1){var s=O3(r),c=bv(Wu({h:I3(s,l),s:P3(s,l),v:T3(s,l)}));n.push(c)}return t.theme==="dark"?Ane.map(function(u){var d=u.index,f=u.opacity,h=bv(Mne(Wu(t.backgroundColor||"#141414"),Wu(n[d]),f*100));return h}):n}var ld={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"},bp={},KS={};Object.keys(ld).forEach(function(e){bp[e]=Ec(ld[e]),bp[e].primary=bp[e][5],KS[e]=Ec(ld[e],{theme:"dark",backgroundColor:"#141414"}),KS[e].primary=KS[e][5]});var Rne=bp.gold,Dne=bp.blue;const Lne=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Nne(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 $7={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"},kne=S(S({},$7),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),Vb=kne;function Bne(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),h=n(i),m=n(a),v=n(l),y=r(c,u);return S(S({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg: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:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new Zt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Fne=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}};function Hne(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return S({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Fne(r))}const Ja=(e,t)=>new Zt(e).setAlpha(t).toRgbString(),jf=(e,t)=>new Zt(e).darken(t).toHexString(),zne=e=>{const t=Ec(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]}},jne=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ja(r,.88),colorTextSecondary:Ja(r,.65),colorTextTertiary:Ja(r,.45),colorTextQuaternary:Ja(r,.25),colorFill:Ja(r,.15),colorFillSecondary:Ja(r,.06),colorFillTertiary:Ja(r,.04),colorFillQuaternary:Ja(r,.02),colorBgLayout:jf(n,4),colorBgContainer:jf(n,0),colorBgElevated:jf(n,0),colorBgSpotlight:Ja(r,.85),colorBorder:jf(n,15),colorBorderSecondary:jf(n,6)}};function Wne(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 Vne=e=>{const t=Wne(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]}};function Kne(e){const t=Object.keys($7).map(n=>{const r=Ec(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=S(S({},n),r),n),{});return S(S(S(S(S(S(S({},e),t),Bne(e,{generateColorPalettes:zne,generateNeutralColorPalettes:jne})),Vne(e.fontSize)),Nne(e)),Lne(e)),Hne(e))}function US(e){return e>=0&&e<=255}function yv(e,t){const{r:n,g:r,b:o,a:i}=new Zt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Zt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-l*(1-c))/c),f=Math.round((o-s*(1-c))/c);if(US(u)&&US(d)&&US(f))return new Zt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Zt({r:n,g:r,b:o,a:1}).toRgbString()}var Une=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[h]});const o=S(S({},n),r),i=480,a=576,l=768,s=992,c=1200,u=1600,d=2e3;return S(S(S({},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:yv(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:yv(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:yv(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:yv(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) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS: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:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` - 0 1px 2px -2px ${new Zt("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new Zt("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new Zt("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 Kb=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),N2=(e,t,n,r,o)=>{const i=e/2,a=0,l=i,s=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*i-u,h=d,m=2*i-s,v=c,y=2*i-a,b=l,$=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:$,height:$,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${x}px 100%, 50% ${x}px, ${2*i-x}px 100%, ${x}px 100%)`,`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${h} L ${m} ${v} A ${n} ${n} 0 0 0 ${y} ${b} Z')`]},content:'""'}}};function u0(e,t){return ih.reduce((n,r)=>{const o=e[`${r}-1`],i=e[`${r}-3`],a=e[`${r}-6`],l=e[`${r}-7`];return S(S({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const er={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Xc=()=>({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"}}),aa=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Yne=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Xne=(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"}}}}},yl=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Sl=e=>({"&:focus-visible":S({},yl(e))});function pt(e,t,n){return r=>{const o=M(()=>r==null?void 0:r.value),[i,a,l]=Ol(),{getPrefixCls:s,iconPrefixCls:c}=Fb(),u=M(()=>s()),d=M(()=>({theme:i.value,token:a.value,hashId:l.value,path:["Shared",u.value]}));c0(d,()=>[{"&":Yne(a.value)}]);const f=M(()=>({theme:i.value,token:a.value,hashId:l.value,path:[e,o.value,c.value]}));return[c0(f,()=>{const{token:h,flush:m}=Zne(a.value),v=typeof n=="function"?n(h):n,y=S(S({},v),a.value[e]),b=`.${o.value}`,$=nt(h,{componentCls:b,prefixCls:o.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},y),x=t($,{hashId:l.value,prefixCls:o.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:a.value[e]});return m(e,y),[Xne(a.value,o.value),x]}),l]}}const x7=typeof CSSINJS_STATISTIC<"u";let tx=!0;function nt(){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]})})}),tx=!0,r}function qne(){}function Zne(e){let t,n=e,r=qne;return x7&&(t=new Set,n=new Proxy(e,{get(o,i){return tx&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const Qne=R2(Kne),w7={token:Vb,hashed:!0},_7=Symbol("DesignTokenContext"),nx=ve(),Jne=e=>{ft(_7,e),Ie(e,()=>{nx.value=wt(e),KL(nx)},{immediate:!0,deep:!0})},ere=pe({props:{value:qe()},setup(e,t){let{slots:n}=t;return Jne(M(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Ol(){const e=it(_7,M(()=>nx.value||w7)),t=M(()=>`${b7}-${e.value.hashed||""}`),n=M(()=>e.value.theme||Qne),r=s7(n,M(()=>[Vb,e.value.token]),M(()=>({salt:t.value,override:S({override:e.value.token},e.value.components),formatToken:Gne})));return[n,M(()=>r.value[0]),M(()=>e.value.hashed?r.value[1]:"")]}const O7=pe({compatConfig:{MODE:3},setup(){const[,e]=Ol(),t=M(()=>new Zt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>g("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[g("g",{fill:"none","fill-rule":"evenodd"},[g("g",{transform:"translate(24 31.67)"},[g("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),g("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),g("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),g("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),g("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),g("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),g("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[g("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),g("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});O7.PRESENTED_IMAGE_DEFAULT=!0;const tre=O7,I7=pe({compatConfig:{MODE:3},setup(){const[,e]=Ol(),t=M(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e.value;return{borderColor:new Zt(n).onBackground(i).toHexString(),shadowColor:new Zt(r).onBackground(i).toHexString(),contentColor:new Zt(o).onBackground(i).toHexString()}});return()=>g("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[g("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[g("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),g("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[g("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),g("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});I7.PRESENTED_IMAGE_SIMPLE=!0;const nre=I7,rre=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ore=pt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=nt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[rre(r)]});var ire=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({prefixCls:String,imageStyle:qe(),image:cn(),description:cn()}),k2=pe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:are(),setup(e,t){let{slots:n={},attrs:r}=t;const{direction:o,prefixCls:i}=Ve("empty",e),[a,l]=ore(i);return()=>{var s,c;const u=i.value,d=S(S({},e),r),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||P7,description:h=((c=n.description)===null||c===void 0?void 0:c.call(n))||void 0,imageStyle:m,class:v=""}=d,y=ire(d,["image","description","imageStyle","class"]);return a(g(Yc,{componentName:"Empty",children:b=>{const $=typeof h<"u"?h:b.description,x=typeof $=="string"?$:"empty";let _=null;return typeof f=="string"?_=g("img",{alt:x,src:f},null):_=f,g("div",V({class:me(u,v,l.value,{[`${u}-normal`]:f===T7,[`${u}-rtl`]:o.value==="rtl"})},y),[g("div",{class:`${u}-image`,style:m},[_]),$&&g("p",{class:`${u}-description`},[$]),n.default&&g("div",{class:`${u}-footer`},[_n(n.default())])])}},null))}}});k2.PRESENTED_IMAGE_DEFAULT=P7;k2.PRESENTED_IMAGE_SIMPLE=T7;const cs=$n(k2),B2=e=>{const{prefixCls:t}=Ve("empty",e);return(r=>{switch(r){case"Table":case"List":return g(cs,{image:cs.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return g(cs,{image:cs.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return g(cs,null,null)}})(e.componentName)};function lre(e){return g(B2,{componentName:e},null)}const E7=Symbol("SizeContextKey"),A7=()=>it(E7,he(void 0)),M7=e=>{const t=A7();return ft(E7,M(()=>e.value||t.value)),e},Ve=(e,t)=>{const n=A7(),r=jo(),o=it(T2,S(S({},GN),{renderEmpty:O=>Ni(B2,{componentName:O})})),i=M(()=>o.getPrefixCls(e,t.prefixCls)),a=M(()=>{var O,P;return(O=t.direction)!==null&&O!==void 0?O:(P=o.direction)===null||P===void 0?void 0:P.value}),l=M(()=>{var O;return(O=t.iconPrefixCls)!==null&&O!==void 0?O:o.iconPrefixCls.value}),s=M(()=>o.getPrefixCls()),c=M(()=>{var O;return(O=o.autoInsertSpaceInButton)===null||O===void 0?void 0:O.value}),u=o.renderEmpty,d=o.space,f=o.pageHeader,h=o.form,m=M(()=>{var O,P;return(O=t.getTargetContainer)!==null&&O!==void 0?O:(P=o.getTargetContainer)===null||P===void 0?void 0:P.value}),v=M(()=>{var O,P,E;return(P=(O=t.getContainer)!==null&&O!==void 0?O:t.getPopupContainer)!==null&&P!==void 0?P:(E=o.getPopupContainer)===null||E===void 0?void 0:E.value}),y=M(()=>{var O,P;return(O=t.dropdownMatchSelectWidth)!==null&&O!==void 0?O:(P=o.dropdownMatchSelectWidth)===null||P===void 0?void 0:P.value}),b=M(()=>{var O;return(t.virtual===void 0?((O=o.virtual)===null||O===void 0?void 0:O.value)!==!1:t.virtual!==!1)&&y.value!==!1}),$=M(()=>t.size||n.value),x=M(()=>{var O,P,E;return(O=t.autocomplete)!==null&&O!==void 0?O:(E=(P=o.input)===null||P===void 0?void 0:P.value)===null||E===void 0?void 0:E.autocomplete}),_=M(()=>{var O;return(O=t.disabled)!==null&&O!==void 0?O:r.value}),w=M(()=>{var O;return(O=t.csp)!==null&&O!==void 0?O:o.csp}),I=M(()=>{var O,P;return(O=t.wave)!==null&&O!==void 0?O:(P=o.wave)===null||P===void 0?void 0:P.value});return{configProvider:o,prefixCls:i,direction:a,size:$,getTargetContainer:m,getPopupContainer:v,space:d,pageHeader:f,form:h,autoInsertSpaceInButton:c,renderEmpty:u,virtual:b,dropdownMatchSelectWidth:y,rootPrefixCls:s,getPrefixCls:o.getPrefixCls,autocomplete:x,csp:w,iconPrefixCls:l,disabled:_,select:o.select,wave:I}};function Ot(e,t){const n=S({},e);for(let r=0;r{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},cre=pt("Affix",e=>{const t=nt(e,{zIndexPopup:e.zIndexBase+10});return[sre(t)]});function ure(){return typeof window<"u"?window:null}var Qu;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(Qu||(Qu={}));const dre=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:ure},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),fre=pe({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:dre(),setup(e,t){let{slots:n,emit:r,expose:o,attrs:i}=t;const a=ve(),l=ve(),s=St({affixStyle:void 0,placeholderStyle:void 0,status:Qu.None,lastAffix:!1,prevTarget:null,timeout:null}),c=Nn(),u=M(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=M(()=>e.offsetBottom),f=()=>{const{status:x,lastAffix:_}=s,{target:w}=e;if(x!==Qu.Prepare||!l.value||!a.value||!w)return;const I=w();if(!I)return;const O={status:Qu.None},P=fv(a.value);if(P.top===0&&P.left===0&&P.width===0&&P.height===0)return;const E=fv(I),R=c3(P,E,u.value),A=u3(P,E,d.value);if(!(P.top===0&&P.left===0&&P.width===0&&P.height===0)){if(R!==void 0){const N=`${P.width}px`,F=`${P.height}px`;O.affixStyle={position:"fixed",top:R,width:N,height:F},O.placeholderStyle={width:N,height:F}}else if(A!==void 0){const N=`${P.width}px`,F=`${P.height}px`;O.affixStyle={position:"fixed",bottom:A,width:N,height:F},O.placeholderStyle={width:N,height:F}}O.lastAffix=!!O.affixStyle,_!==O.lastAffix&&r("change",O.lastAffix),S(s,O)}},h=()=>{S(s,{status:Qu.Prepare,affixStyle:void 0,placeholderStyle:void 0})},m=K$(()=>{h()}),v=K$(()=>{const{target:x}=e,{affixStyle:_}=s;if(x&&_){const w=x();if(w&&a.value){const I=fv(w),O=fv(a.value),P=c3(O,I,u.value),E=u3(O,I,d.value);if(P!==void 0&&_.top===P||E!==void 0&&_.bottom===E)return}}h()});o({updatePosition:m,lazyUpdatePosition:v}),Ie(()=>e.target,x=>{const _=(x==null?void 0:x())||null;s.prevTarget!==_&&(f3(c),_&&(d3(_,c),m()),s.prevTarget=_)}),Ie(()=>[e.offsetTop,e.offsetBottom],m),lt(()=>{const{target:x}=e;x&&(s.timeout=setTimeout(()=>{d3(x(),c),m()}))}),fo(()=>{f()}),Fr(()=>{clearTimeout(s.timeout),f3(c),m.cancel(),v.cancel()});const{prefixCls:y}=Ve("affix",e),[b,$]=cre(y);return()=>{var x;const{affixStyle:_,placeholderStyle:w,status:I}=s,O=me({[y.value]:_,[$.value]:!0}),P=Ot(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return b(g(ki,{onResize:m},{default:()=>[g("div",V(V(V({},P),i),{},{ref:a,"data-measure-status":I}),[_&&g("div",{style:w,"aria-hidden":"true"},null),g("div",{class:O,ref:l,style:_},[(x=n.default)===null||x===void 0?void 0:x.call(n)])])]}))}}}),R7=$n(fre);function E3(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function A3(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function GS(e,t){if(e.clientHeightt||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0}var M3=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(j){return j!==a};if(!E3(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],h=e;E3(h)&&s(h);){if((h=(u=(c=h).parentElement)==null?c.getRootNode().host||null:u)===d){f.push(h);break}h!=null&&h===document.body&&GS(h)&&!GS(document.documentElement)||h!=null&&GS(h,l)&&f.push(h)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,$=e.getBoundingClientRect(),x=$.height,_=$.width,w=$.top,I=$.right,O=$.bottom,P=$.left,E=o==="start"||o==="nearest"?w:o==="end"?O:w+x/2,R=i==="center"?P+_/2:i==="end"?I:P,A=[],N=0;N=0&&P>=0&&O<=v&&I<=m&&w>=k&&O<=z&&P>=K&&I<=L)return A;var G=getComputedStyle(F),Y=parseInt(G.borderLeftWidth,10),ne=parseInt(G.borderTopWidth,10),oe=parseInt(G.borderRightWidth,10),J=parseInt(G.borderBottomWidth,10),te=0,ee=0,fe="offsetWidth"in F?F.offsetWidth-F.clientWidth-Y-oe:0,ie="offsetHeight"in F?F.offsetHeight-F.clientHeight-ne-J:0,X="offsetWidth"in F?F.offsetWidth===0?0:B/F.offsetWidth:0,ue="offsetHeight"in F?F.offsetHeight===0?0:D/F.offsetHeight:0;if(d===F)te=o==="start"?E:o==="end"?E-v:o==="nearest"?Sv(b,b+v,v,ne,J,b+E,b+E+x,x):E-v/2,ee=i==="start"?R:i==="center"?R-m/2:i==="end"?R-m:Sv(y,y+m,m,Y,oe,y+R,y+R+_,_),te=Math.max(0,te+b),ee=Math.max(0,ee+y);else{te=o==="start"?E-k-ne:o==="end"?E-z+J+ie:o==="nearest"?Sv(k,z,D,ne,J+ie,E,E+x,x):E-(k+D/2)+ie/2,ee=i==="start"?R-K-Y:i==="center"?R-(K+B/2)+fe/2:i==="end"?R-L+oe+fe:Sv(K,L,B,Y,oe+fe,R,R+_,_);var ye=F.scrollLeft,H=F.scrollTop;E+=H-(te=Math.max(0,Math.min(H+te/ue,F.scrollHeight-D/ue+ie))),R+=ye-(ee=Math.max(0,Math.min(ye+ee/X,F.scrollWidth-B/X+fe)))}A.push({el:F,top:te,left:ee})}return A};function D7(e){return e===Object(e)&&Object.keys(e).length!==0}function pre(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,i=r.top,a=r.left;o.scroll&&n?o.scroll({top:i,left:a,behavior:t}):(o.scrollTop=i,o.scrollLeft=a)})}function hre(e){return e===!1?{block:"end",inline:"nearest"}:D7(e)?e:{block:"start",inline:"nearest"}}function L7(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(D7(t)&&typeof t.behavior=="function")return t.behavior(n?M3(e,t):[]);if(n){var r=hre(t);return pre(M3(e,r),r.behavior)}}function gre(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function rx(e){return e!=null&&e===e.window}function F2(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return rx(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!rx(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),i}function H2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=F2(i,!0),l=Date.now(),s=()=>{const u=Date.now()-l,d=gre(u>o?o:u,a,e,o);rx(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,u{ft(N7,e)},mre=()=>it(N7,{registerLink:Cv,unregisterLink:Cv,scrollTo:Cv,activeLink:M(()=>""),handleClick:Cv,direction:M(()=>"vertical")}),bre=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:i,lineType:a,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:S(S({},vt(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":S(S({},er),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${o}px ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},yre=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:o}}}}},Sre=pt("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:r,paddingXXS:o}=e,i=nt(e,{holderOffsetBlock:o,anchorPaddingBlock:o,anchorPaddingBlockSecondary:o/2,anchorPaddingInline:r,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[bre(i),yre(i)]}),Cre=()=>({prefixCls:String,href:String,title:cn(),target:String,customTitleProps:qe()}),z2=pe({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:bt(Cre(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,o=null;const{handleClick:i,scrollTo:a,unregisterLink:l,registerLink:s,activeLink:c}=mre(),{prefixCls:u}=Ve("anchor",e),d=f=>{const{href:h}=e;i(f,{title:o,href:h}),a(h)};return Ie(()=>e.href,(f,h)=>{_t(()=>{l(h),s(f)})}),lt(()=>{s(e.href)}),Ct(()=>{l(e.href)}),()=>{var f;const{href:h,target:m,title:v=n.title,customTitleProps:y={}}=e,b=u.value;o=typeof v=="function"?v(y):v;const $=c.value===h,x=me(`${b}-link`,{[`${b}-link-active`]:$},r.class),_=me(`${b}-link-title`,{[`${b}-link-title-active`]:$});return g("div",V(V({},r),{},{class:x}),[g("a",{class:_,href:h,title:typeof o=="string"?o:"",target:m,onClick:d},[n.customTitle?n.customTitle(y):o]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function R3(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function D3(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var H7=Object.prototype,z7=H7.toString,$re=H7.hasOwnProperty,j7=/^\s*function (\w+)/;function L3(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(j7);return r?r[1]:""}return""}var Ac=function(e){var t,n;return D3(e)!==!1&&typeof(t=e.constructor)=="function"&&D3(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},xre=function(e){return e},So=xre,ah=function(e,t){return $re.call(e,t)},wre=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Id=Array.isArray||function(e){return z7.call(e)==="[object Array]"},Pd=function(e){return z7.call(e)==="[object Function]"},d0=function(e){return Ac(e)&&ah(e,"_vueTypes_name")},W7=function(e){return Ac(e)&&(ah(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return ah(e,t)}))};function j2(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function qc(e,t,n){var r;n===void 0&&(n=!1);var o=!0,i="";r=Ac(e)?e:{type:e};var a=d0(r)?r._vueTypes_name+" - ":"";if(W7(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;Id(r.type)?(o=r.type.some(function(d){return qc(d,t,!0)===!0}),i=r.type.map(function(d){return L3(d)}).join(" or ")):o=(i=L3(r))==="Array"?Id(t):i==="Object"?Ac(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(j7);return f?f[1]:""}(t)===i:t instanceof r.type}if(!o){var l=a+'value "'+t+'" should be of type "'+i+'"';return n===!1?(So(l),!1):l}if(ah(r,"validator")&&Pd(r.validator)){var s=So,c=[];if(So=function(d){c.push(d)},o=r.validator(t),So=s,!o){var u=(c.length>1?"* ":"")+c.join(` -* `);return c.length=0,n===!1?(So(u),o):u}}return o}function ui(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?Pd(o)||qc(this,o,!0)===!0?(this.default=Id(o)?function(){return[].concat(o)}:Ac(o)?function(){return Object.assign({},o)}:o,this):(So(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),r=n.validator;return Pd(r)&&(n.validator=j2(r,n)),n}function La(e,t){var n=ui(e,t);return Object.defineProperty(n,"validate",{value:function(r){return Pd(this.validator)&&So(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: -`+JSON.stringify(this)),this.validator=j2(r,this),this}})}function N3(e,t,n){var r,o,i=(r=t,o={},Object.getOwnPropertyNames(r).forEach(function(d){o[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},o));if(i._vueTypes_name=e,!Ac(n))return i;var a,l,s=n.validator,c=F7(n,["validator"]);if(Pd(s)){var u=i.validator;u&&(u=(l=(a=u).__original)!==null&&l!==void 0?l:a),i.validator=j2(u?function(d){return u.call(this,d)&&s.call(this,d)}:s,i)}return Object.assign(i,c)}function Ub(e){return e.replace(/^(?!\s*$)/gm," ")}var _re=function(){return La("any",{})},Ore=function(){return La("function",{type:Function})},Ire=function(){return La("boolean",{type:Boolean})},Pre=function(){return La("string",{type:String})},Tre=function(){return La("number",{type:Number})},Ere=function(){return La("array",{type:Array})},Are=function(){return La("object",{type:Object})},Mre=function(){return ui("integer",{type:Number,validator:function(e){return wre(e)}})},Rre=function(){return ui("symbol",{validator:function(e){return typeof e=="symbol"}})};function Dre(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ui(e.name||"<>",{validator:function(n){var r=e(n);return r||So(this._vueTypes_name+" - "+t),r}})}function Lre(e){if(!Id(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,o){if(o!=null){var i=o.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return ui("oneOf",{type:n.length>0?n:void 0,validator:function(r){var o=e.indexOf(r)!==-1;return o||So(t),o}})}function Nre(e){if(!Id(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r0&&n.some(function(s){return a.indexOf(s)===-1})){var l=n.filter(function(s){return a.indexOf(s)===-1});return So(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return a.every(function(s){if(t.indexOf(s)===-1)return i._vueTypes_isLoose===!0||(So('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=qc(e[s],o[s],!0);return typeof c=="string"&&So('shape - "'+s+`" property validation error: - `+Ub(c)),c===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Ca=function(){function e(){}return e.extend=function(t){var n=this;if(Id(t))return t.forEach(function(d){return n.extend(d)}),this;var r=t.name,o=t.validate,i=o!==void 0&&o,a=t.getter,l=a!==void 0&&a,s=F7(t,["name","validate","getter"]);if(ah(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var c,u=s.type;return d0(u)?(delete s.type,Object.defineProperty(this,r,l?{get:function(){return N3(r,u,s)}}:{value:function(){var d,f=N3(r,u,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(c=l?{get:function(){var d=Object.assign({},s);return i?La(r,d):ui(r,d)},enumerable:!0}:{value:function(){var d,f,h=Object.assign({},s);return d=i?La(r,h):ui(r,h),h.validator&&(d.validator=(f=h.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,c))},k7(e,null,[{key:"any",get:function(){return _re()}},{key:"func",get:function(){return Ore().def(this.defaults.func)}},{key:"bool",get:function(){return Ire().def(this.defaults.bool)}},{key:"string",get:function(){return Pre().def(this.defaults.string)}},{key:"number",get:function(){return Tre().def(this.defaults.number)}},{key:"array",get:function(){return Ere().def(this.defaults.array)}},{key:"object",get:function(){return Are().def(this.defaults.object)}},{key:"integer",get:function(){return Mre().def(this.defaults.integer)}},{key:"symbol",get:function(){return Rre()}}]),e}();function V7(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return B7(r,n),k7(r,null,[{key:"sensibleDefaults",get:function(){return cm({},this.defaults)},set:function(o){this.defaults=o!==!1?cm({},o!==!0?o:e):{}}}]),r}(Ca)).defaults=cm({},e),t}Ca.defaults={},Ca.custom=Dre,Ca.oneOf=Lre,Ca.instanceOf=Bre,Ca.oneOfType=Nre,Ca.arrayOf=kre,Ca.objectOf=Fre,Ca.shape=Hre,Ca.utils={validate:function(e,t){return qc(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?La(e,t):ui(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return B7(t,e),t})(V7());const Z=V7({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Z.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function K7(e){return e.default=void 0,e}const pn=(e,t,n)=>{zb(e,`[ant-design-vue: ${t}] ${n}`)};function zre(){return window}function k3(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const B3=/#([\S ]+)$/,jre=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:kt(),direction:Z.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),uc=pe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:jre(),setup(e,t){let{emit:n,attrs:r,slots:o,expose:i}=t;const{prefixCls:a,getTargetContainer:l,direction:s}=Ve("anchor",e),c=M(()=>{var O;return(O=e.direction)!==null&&O!==void 0?O:"vertical"}),u=he(null),d=he(),f=St({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),h=he(null),m=M(()=>{const{getContainer:O}=e;return O||(l==null?void 0:l.value)||zre}),v=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const E=[],R=m.value();return f.links.forEach(A=>{const N=B3.exec(A.toString());if(!N)return;const F=document.getElementById(N[1]);if(F){const W=k3(F,R);WF.top>N.top?F:N).link:""},y=O=>{const{getCurrentAnchor:P}=e;h.value!==O&&(h.value=typeof P=="function"?P(O):O,n("change",O))},b=O=>{const{offsetTop:P,targetOffset:E}=e;y(O);const R=B3.exec(O);if(!R)return;const A=document.getElementById(R[1]);if(!A)return;const N=m.value(),F=F2(N,!0),W=k3(A,N);let D=F+W;D-=E!==void 0?E:P||0,f.animating=!0,H2(D,{callback:()=>{f.animating=!1},getContainer:m.value})};i({scrollTo:b});const $=()=>{if(f.animating)return;const{offsetTop:O,bounds:P,targetOffset:E}=e,R=v(E!==void 0?E:O||0,P);y(R)},x=()=>{const O=d.value.querySelector(`.${a.value}-link-title-active`);if(O&&u.value){const P=c.value==="horizontal";u.value.style.top=P?"":`${O.offsetTop+O.clientHeight/2}px`,u.value.style.height=P?"":`${O.clientHeight}px`,u.value.style.left=P?`${O.offsetLeft}px`:"",u.value.style.width=P?`${O.clientWidth}px`:"",P&&L7(O,{scrollMode:"if-needed",block:"nearest"})}};vre({registerLink:O=>{f.links.includes(O)||f.links.push(O)},unregisterLink:O=>{const P=f.links.indexOf(O);P!==-1&&f.links.splice(P,1)},activeLink:h,scrollTo:b,handleClick:(O,P)=>{n("click",O,P)},direction:c}),lt(()=>{_t(()=>{const O=m.value();f.scrollContainer=O,f.scrollEvent=wn(f.scrollContainer,"scroll",$),$()})}),Ct(()=>{f.scrollEvent&&f.scrollEvent.remove()}),fo(()=>{if(f.scrollEvent){const O=m.value();f.scrollContainer!==O&&(f.scrollContainer=O,f.scrollEvent.remove(),f.scrollEvent=wn(f.scrollContainer,"scroll",$),$())}x()});const _=O=>Array.isArray(O)?O.map(P=>{const{children:E,key:R,href:A,target:N,class:F,style:W,title:D}=P;return g(z2,{key:R,href:A,target:N,class:F,style:W,title:D,customTitleProps:P},{default:()=>[c.value==="vertical"?_(E):null],customTitle:o.customTitle})}):null,[w,I]=Sre(a);return()=>{var O;const{offsetTop:P,affix:E,showInkInFixed:R}=e,A=a.value,N=me(`${A}-ink`,{[`${A}-ink-visible`]:h.value}),F=me(I.value,e.wrapperClass,`${A}-wrapper`,{[`${A}-wrapper-horizontal`]:c.value==="horizontal",[`${A}-rtl`]:s.value==="rtl"}),W=me(A,{[`${A}-fixed`]:!E&&!R}),D=S({maxHeight:P?`calc(100vh - ${P}px)`:"100vh"},e.wrapperStyle),B=g("div",{class:F,style:D,ref:d},[g("div",{class:W},[g("span",{class:N,ref:u},null),Array.isArray(e.items)?_(e.items):(O=o.default)===null||O===void 0?void 0:O.call(o)])]);return w(E?g(R7,V(V({},r),{},{offsetTop:P,target:m.value}),{default:()=>[B]}):B)}}});uc.Link=z2;uc.install=function(e){return e.component(uc.name,uc),e.component(uc.Link.name,uc.Link),e};function F3(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function U7(e,t){const{label:n,value:r,options:o}=e||{};return{label:n||(t?"children":"label"),value:r||"value",options:o||"options"}}function Wre(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:o,value:i,options:a}=U7(t,!1);function l(s,c){s.forEach(u=>{const d=u[o];if(c||!(a in u)){const f=u[i];r.push({key:F3(u,r.length),groupOption:c,data:u,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=u.label),r.push({key:F3(u,r.length),group:!0,data:u,label:f}),l(u[a],!0)}})}return l(e,!1),r}function ox(e){const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Vre(e,t){if(!t||!t.length)return null;let n=!1;function r(i,a){let[l,...s]=a;if(!l)return[i];const c=i.split(l);return n=n||c.length>1,c.reduce((u,d)=>[...u,...r(d,s)],[]).filter(u=>u)}const o=r(e,t);return n?o:null}function Kre(){return""}function Ure(e){return e?e.ownerDocument:window.document}function G7(){}const Y7=()=>({action:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]).def([]),showAction:Z.any.def([]),hideAction:Z.any.def([]),getPopupClassNameFromAlign:Z.any.def(Kre),onPopupVisibleChange:Function,afterPopupVisibleChange:Z.func.def(G7),popup:Z.any,popupStyle:{type:Object,default:void 0},prefixCls:Z.string.def("rc-trigger-popup"),popupClassName:Z.string.def(""),popupPlacement:String,builtinPlacements:Z.object,popupTransitionName:String,popupAnimation:Z.any,mouseEnterDelay:Z.number.def(0),mouseLeaveDelay:Z.number.def(.1),zIndex:Number,focusDelay:Z.number.def(0),blurDelay:Z.number.def(.15),getPopupContainer:Function,getDocument:Z.func.def(Ure),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Z.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),W2={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Gre=S(S({},W2),{mobile:{type:Object}}),Yre=S(S({},W2),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function V2(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}function X7(e){const{prefixCls:t,visible:n,zIndex:r,mask:o,maskAnimation:i,maskTransitionName:a}=e;if(!o)return null;let l={};return(a||i)&&(l=V2({prefixCls:t,transitionName:a,animation:i})),g(sr,V({appear:!0},l),{default:()=>[Ln(g("div",{style:{zIndex:r},class:`${t}-mask`},null),[[RQ("if"),n]])]})}X7.displayName="Mask";const Xre=pe({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Gre,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:r}=t;const o=he();return n({forceAlign:()=>{},getElement:()=>o.value}),()=>{var i;const{zIndex:a,visible:l,prefixCls:s,mobile:{popupClassName:c,popupStyle:u,popupMotion:d={},popupRender:f}={}}=e,h=S({zIndex:a},u);let m=ln((i=r.default)===null||i===void 0?void 0:i.call(r));m.length>1&&(m=g("div",{class:`${s}-content`},[m])),f&&(m=f(m));const v=me(s,c);return g(sr,V({ref:o},d),{default:()=>[l?g("div",{class:v,style:h},[m]):null]})}}});var qre=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(d){a(d)}}function s(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const H3=["measure","align",null,"motion"],Zre=(e,t)=>{const n=ve(null),r=ve(),o=ve(!1);function i(s){o.value||(n.value=s)}function a(){mt.cancel(r.value)}function l(s){a(),r.value=mt(()=>{let c=n.value;switch(n.value){case"align":c="motion";break;case"motion":c="stable";break}i(c),s==null||s()})}return Ie(e,()=>{i("measure")},{immediate:!0,flush:"post"}),lt(()=>{Ie(n,()=>{switch(n.value){case"measure":t();break}n.value&&(r.value=mt(()=>qre(void 0,void 0,void 0,function*(){const s=H3.indexOf(n.value),c=H3[s+1];c&&s!==-1&&i(c)})))},{immediate:!0,flush:"post"})}),Ct(()=>{o.value=!0,a()}),[n,l]},Qre=e=>{const t=ve({width:0,height:0});function n(o){t.value={width:o.offsetWidth,height:o.offsetHeight}}return[M(()=>{const o={};if(e.value){const{width:i,height:a}=t.value;e.value.indexOf("height")!==-1&&a?o.height=`${a}px`:e.value.indexOf("minHeight")!==-1&&a&&(o.minHeight=`${a}px`),e.value.indexOf("width")!==-1&&i?o.width=`${i}px`:e.value.indexOf("minWidth")!==-1&&i&&(o.minWidth=`${i}px`)}return o}),n]};function z3(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 j3(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Coe(e,t,n,r){var o=Vt.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)),Vt.mix(o,i)}function Y2(e){var t,n,r;if(!Vt.isWindow(e)&&e.nodeType!==9)t=Vt.offset(e),n=Vt.outerWidth(e),r=Vt.outerHeight(e);else{var o=Vt.getWindow(e);t={left:Vt.getWindowScrollLeft(o),top:Vt.getWindowScrollTop(o)},n=Vt.viewportWidth(o),r=Vt.viewportHeight(o)}return t.width=n,t.height=r,t}function q3(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 xv(e,t,n,r,o){var i=q3(t,n[1]),a=q3(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 Z3(e,t,n){return e.leftn.right}function Q3(e,t,n){return e.topn.bottom}function $oe(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function X2(e,t,n){var r=n.target||t,o=Y2(r),i=!woe(r,n.overflow&&n.overflow.alwaysByViewport);return rk(e,o,n,i)}X2.__getOffsetParent=sx;X2.__getVisibleRectForElement=G2;function _oe(e,t,n){var r,o,i=Vt.getDocument(e),a=i.defaultView||i.parentWindow,l=Vt.getWindowScrollLeft(a),s=Vt.getWindowScrollTop(a),c=Vt.viewportWidth(a),u=Vt.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},f=r>=0&&r<=l+c&&o>=0&&o<=s+u,h=[n.points[0],"cc"];return rk(e,d,j3(j3({},n),{},{points:h}),f)}function Gt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e;if(Array.isArray(e)&&(o=_n(e)[0]),!o)return null;const i=kr(o,t,r);return i.props=n?S(S({},i.props),t):i.props,Sn(typeof i.props.class!="object"),i}function Ooe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(r=>Gt(r,t,n))}function yp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(o=>yp(o,t,n,r));{if(!vr(e))return e;const o=Gt(e,t,n,r);return Array.isArray(o.children)&&(o.children=yp(o.children)),o}}function Ioe(e,t,n){Pc(kr(e,S({},t)),n)}const ok=e=>(e||[]).some(t=>vr(t)?!(t.type===ko||t.type===Je&&!ok(t.children)):!0)?e:null;function Yb(e,t,n,r){var o;const i=(o=e[t])===null||o===void 0?void 0:o.call(e,n);return ok(i)?i:r==null?void 0:r()}const Xb=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Poe(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 Toe(e,t){e!==document.activeElement&&ss(t,e)&&typeof e.focus=="function"&&e.focus()}function tA(e,t){let n=null,r=null;function o(a){let[{target:l}]=a;if(!document.documentElement.contains(l))return;const{width:s,height:c}=l.getBoundingClientRect(),u=Math.floor(s),d=Math.floor(c);(n!==u||r!==d)&&Promise.resolve().then(()=>{t({width:u,height:d})}),n=u,r=d}const i=new _2(o);return e&&i.observe(e),()=>{i.disconnect()}}const Eoe=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r)}function i(a){if(!n||a===!0){if(e()===!1)return;n=!0,o(),r=setTimeout(()=>{n=!1},t.value)}else o(),r=setTimeout(()=>{n=!1,i()},t.value)}return[i,()=>{n=!1,o()}]};function Aoe(){this.__data__=[],this.size=0}function Fh(e,t){return e===t||e!==e&&t!==t}function qb(e,t){for(var n=e.length;n--;)if(Fh(e[n][0],t))return n;return-1}var Moe=Array.prototype,Roe=Moe.splice;function Doe(e){var t=this.__data__,n=qb(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Roe.call(t,n,1),--this.size,!0}function Loe(e){var t=this.__data__,n=qb(t,e);return n<0?void 0:t[n][1]}function Noe(e){return qb(this.__data__,e)>-1}function koe(e,t){var n=this.__data__,r=qb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Il(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&kie?new Td:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=fae}var pae="[object Arguments]",hae="[object Array]",gae="[object Boolean]",vae="[object Date]",mae="[object Error]",bae="[object Function]",yae="[object Map]",Sae="[object Number]",Cae="[object Object]",$ae="[object RegExp]",xae="[object Set]",wae="[object String]",_ae="[object WeakMap]",Oae="[object ArrayBuffer]",Iae="[object DataView]",Pae="[object Float32Array]",Tae="[object Float64Array]",Eae="[object Int8Array]",Aae="[object Int16Array]",Mae="[object Int32Array]",Rae="[object Uint8Array]",Dae="[object Uint8ClampedArray]",Lae="[object Uint16Array]",Nae="[object Uint32Array]",An={};An[Pae]=An[Tae]=An[Eae]=An[Aae]=An[Mae]=An[Rae]=An[Dae]=An[Lae]=An[Nae]=!0;An[pae]=An[hae]=An[Oae]=An[gae]=An[Iae]=An[vae]=An[mae]=An[bae]=An[yae]=An[Sae]=An[Cae]=An[$ae]=An[xae]=An[wae]=An[_ae]=!1;function kae(e){return la(e)&&e_(e.length)&&!!An[Ps(e)]}function Jb(e){return function(t){return e(t)}}var fk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sp=fk&&typeof module=="object"&&module&&!module.nodeType&&module,Bae=Sp&&Sp.exports===fk,eC=Bae&&ik.process,Md=function(){try{var e=Sp&&Sp.require&&Sp.require("util").types;return e||eC&&eC.binding&&eC.binding("util")}catch{}}(),cA=Md&&Md.isTypedArray,Fae=cA?Jb(cA):kae;const ey=Fae;var Hae=Object.prototype,zae=Hae.hasOwnProperty;function pk(e,t){var n=xo(e),r=!n&&Ed(e),o=!n&&!r&&Ad(e),i=!n&&!r&&!o&&ey(e),a=n||r||o||i,l=a?nae(e.length,String):[],s=l.length;for(var c in e)(t||zae.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Qb(c,s)))&&l.push(c);return l}var jae=Object.prototype;function ty(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jae;return e===n}function hk(e,t){return function(n){return e(t(n))}}var Wae=hk(Object.keys,Object),Vae=Object.prototype,Kae=Vae.hasOwnProperty;function gk(e){if(!ty(e))return Wae(e);var t=[];for(var n in Object(e))Kae.call(e,n)&&n!="constructor"&&t.push(n);return t}function Jc(e){return e!=null&&e_(e.length)&&!q2(e)}function tf(e){return Jc(e)?pk(e):gk(e)}function cx(e){return sk(e,tf,J2)}var Uae=1,Gae=Object.prototype,Yae=Gae.hasOwnProperty;function Xae(e,t,n,r,o,i){var a=n&Uae,l=cx(e),s=l.length,c=cx(t),u=c.length;if(s!=u&&!a)return!1;for(var d=s;d--;){var f=l[d];if(!(a?f in t:Yae.call(t,f)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);for(var y=a;++d{const{disabled:f,target:h,align:m,onAlign:v}=e;if(!f&&h&&i.value){const y=i.value;let b;const $=bA(h),x=yA(h);o.value.element=$,o.value.point=x,o.value.align=m;const{activeElement:_}=document;return $&&Xb($)?b=X2(y,$,m):x&&(b=_oe(y,x,m)),Toe(_,y),v&&b&&v(y,b),!0}return!1},M(()=>e.monitorBufferTime)),s=he({cancel:()=>{}}),c=he({cancel:()=>{}}),u=()=>{const f=e.target,h=bA(f),m=yA(f);i.value!==c.value.element&&(c.value.cancel(),c.value.element=i.value,c.value.cancel=tA(i.value,a)),(o.value.element!==h||!Poe(o.value.point,m)||!t_(o.value.align,e.align))&&(a(),s.value.element!==h&&(s.value.cancel(),s.value.element=h,s.value.cancel=tA(h,a)))};lt(()=>{_t(()=>{u()})}),fo(()=>{_t(()=>{u()})}),Ie(()=>e.disabled,f=>{f?l():a()},{immediate:!0,flush:"post"});const d=he(null);return Ie(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=wn(window,"resize",a)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),Fr(()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),l()}),n({forceAlign:()=>a(!0)}),()=>{const f=r==null?void 0:r.default();return f?Gt(f[0],{ref:i},!0,!0):null}}});Ur("bottomLeft","bottomRight","topLeft","topRight");const n_=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Hi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},ry=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},uo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,lle=pe({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:W2,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:r,slots:o}=t;const i=ve(),a=ve(),l=ve(),[s,c]=Qre(st(e,"stretch")),u=()=>{e.stretch&&c(e.getRootDomNode())},d=ve(!1);let f;Ie(()=>e.visible,I=>{clearTimeout(f),I?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[h,m]=Zre(d,u),v=ve(),y=()=>e.point?e.point:e.getRootDomNode,b=()=>{var I;(I=i.value)===null||I===void 0||I.forceAlign()},$=(I,O)=>{var P;const E=e.getClassNameFromAlign(O),R=l.value;l.value!==E&&(l.value=E),h.value==="align"&&(R!==E?Promise.resolve().then(()=>{b()}):m(()=>{var A;(A=v.value)===null||A===void 0||A.call(v)}),(P=e.onAlign)===null||P===void 0||P.call(e,I,O))},x=M(()=>{const I=typeof e.animation=="object"?e.animation:V2(e);return["onAfterEnter","onAfterLeave"].forEach(O=>{const P=I[O];I[O]=E=>{m(),h.value="stable",P==null||P(E)}}),I}),_=()=>new Promise(I=>{v.value=I});Ie([x,h],()=>{!x.value&&h.value==="motion"&&m()},{immediate:!0}),n({forceAlign:b,getElement:()=>a.value.$el||a.value});const w=M(()=>{var I;return!(!((I=e.align)===null||I===void 0)&&I.points&&(h.value==="align"||h.value==="stable"))});return()=>{var I;const{zIndex:O,align:P,prefixCls:E,destroyPopupOnHide:R,onMouseenter:A,onMouseleave:N,onTouchstart:F=()=>{},onMousedown:W}=e,D=h.value,B=[S(S({},s.value),{zIndex:O,opacity:D==="motion"||D==="stable"||!d.value?null:0,pointerEvents:!d.value&&D!=="stable"?"none":null}),r.style];let k=ln((I=o.default)===null||I===void 0?void 0:I.call(o,{visible:e.visible}));k.length>1&&(k=g("div",{class:`${E}-content`},[k]));const L=me(E,r.class,l.value),K=d.value||!e.visible?Hi(x.value.name,x.value):{};return g(sr,V(V({ref:a},K),{},{onBeforeEnter:_}),{default:()=>!R||e.visible?Ln(g(ale,{target:y(),key:"popup",ref:i,monitorWindowResize:!0,disabled:w.value,align:P,onAlign:$},{default:()=>g("div",{class:L,onMouseenter:A,onMouseleave:N,onMousedown:n3(W,["capture"]),[dr?"onTouchstartPassive":"onTouchstart"]:n3(F,["capture"]),style:B},[k])}),[[Br,d.value]]):null})}}}),sle=pe({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Yre,setup(e,t){let{attrs:n,slots:r,expose:o}=t;const i=ve(!1),a=ve(!1),l=ve(),s=ve();return Ie([()=>e.visible,()=>e.mobile],()=>{i.value=e.visible,e.visible&&e.mobile&&(a.value=!0)},{immediate:!0,flush:"post"}),o({forceAlign:()=>{var c;(c=l.value)===null||c===void 0||c.forceAlign()},getElement:()=>{var c;return(c=l.value)===null||c===void 0?void 0:c.getElement()}}),()=>{const c=S(S(S({},e),n),{visible:i.value}),u=a.value?g(Xre,V(V({},c),{},{mobile:e.mobile,ref:l}),{default:r.default}):g(lle,V(V({},c),{},{ref:l}),{default:r.default});return g("div",{ref:s},[g(X7,c,null),u])}}});function cle(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function SA(e,t,n){const r=e[t]||{};return S(S({},r),n)}function ule(e,t,n,r){const{points:o}=n,i=Object.keys(e);for(let a=0;a0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const r=this.getDerivedStateFromProps(BN(this),S(S({},this.$data),n));if(r===null)return;n=S(S({},n),r||{})}S(this.$data,n),this._.isMounted&&this.$forceUpdate(),_t(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let r=0,o=n.length;r1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};ft(vk,{inTriggerContext:t.inTriggerContext,shouldRender:M(()=>{const{sPopupVisible:n,popupRef:r,forceRender:o,autoDestroy:i}=e||{};let a=!1;return(n||r||o)&&(a=!0),!n&&i&&(a=!1),a})})},dle=()=>{r_({},{inTriggerContext:!1});const e=it(vk,{shouldRender:M(()=>!1),inTriggerContext:!1});return{shouldRender:M(()=>e.shouldRender.value||e.inTriggerContext===!1)}},mk=pe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Z.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,r=!0,o;const{shouldRender:i}=dle();function a(){i.value&&(o=e.getContainer())}Dh(()=>{r=!1,a()}),lt(()=>{o||a()});const l=Ie(i,()=>{i.value&&!o&&(o=e.getContainer()),o&&l()});return fo(()=>{_t(()=>{var s;i.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return i.value?r?(s=n.default)===null||s===void 0?void 0:s.call(n):o?g(Mb,{to:o},n):null:null}}});let tC;function g0(e){if(typeof document>"u")return 0;if(e||tC===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const o=t.offsetWidth;n.style.overflow="scroll";let i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),tC=o-i}return tC}function CA(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?g0():n}function fle(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:CA(t),height:CA(n)}}const ple=`vc-util-locker-${Date.now()}`;let $A=0;function hle(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function gle(e){const t=M(()=>!!e&&!!e.value);$A+=1;const n=`${ple}_${$A}`;ct(r=>{if(co()){if(t.value){const o=g0(),i=hle();nh(` -html body { - overflow-y: hidden; - ${i?`width: calc(100% - ${o}px);`:""} -}`,n)}else l0(n);r(()=>{l0(n)})}},{flush:"post"})}let Zs=0;const um=co(),xA=e=>{if(!um)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Hh=pe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Z.any,visible:{type:Boolean,default:void 0},autoLock:De(),didUpdate:Function},setup(e,t){let{slots:n}=t;const r=ve(),o=ve(),i=ve(),a=ve(1),l=co()&&document.createElement("div"),s=()=>{var h,m;r.value===l&&((m=(h=r.value)===null||h===void 0?void 0:h.parentNode)===null||m===void 0||m.removeChild(r.value)),r.value=null};let c=null;const u=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(c=xA(e.getContainer),c?(c.appendChild(r.value),!0):!1):!0},d=()=>um?(r.value||(r.value=l,u(!0)),f(),r.value):null,f=()=>{const{wrapperClassName:h}=e;r.value&&h&&h!==r.value.className&&(r.value.className=h)};return fo(()=>{f(),u()}),gle(M(()=>e.autoLock&&e.visible&&co()&&(r.value===document.body||r.value===l))),lt(()=>{let h=!1;Ie([()=>e.visible,()=>e.getContainer],(m,v)=>{let[y,b]=m,[$,x]=v;um&&(c=xA(e.getContainer),c===document.body&&(y&&!$?Zs+=1:h&&(Zs-=1))),h&&(typeof b=="function"&&typeof x=="function"?b.toString()!==x.toString():b!==x)&&s(),h=!0},{immediate:!0,flush:"post"}),_t(()=>{u()||(i.value=mt(()=>{a.value+=1}))})}),Ct(()=>{const{visible:h}=e;um&&c===document.body&&(Zs=h&&Zs?Zs-1:Zs),s(),mt.cancel(i.value)}),()=>{const{forceRender:h,visible:m}=e;let v=null;const y={getOpenCount:()=>Zs,getContainer:d};return a.value&&(h||m||o.value)&&(v=g(mk,{getContainer:d,ref:o,didUpdate:e.didUpdate},{default:()=>{var b;return(b=n.default)===null||b===void 0?void 0:b.call(n,y)}})),v}}}),vle=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],tu=pe({compatConfig:{MODE:3},name:"Trigger",mixins:[eu],inheritAttrs:!1,props:Y7(),setup(e){const t=M(()=>{const{popupPlacement:o,popupAlign:i,builtinPlacements:a}=e;return o&&a?SA(a,o,i):i}),n=ve(null),r=o=>{n.value=o};return{vcTriggerContext:it("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:ve(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,vle.forEach(n=>{this[`fire${n}`]=r=>{this.fireEvents(n,r)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){ft("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),r_(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),mt.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=wn(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=wn(n,"touchstart",this.onDocumentClick,dr?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=wn(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=wn(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&ss((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){ss(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(!ss(n,t)||this.isContextMenuOnly())&&!ss(r,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,r;const{getTriggerDOMNode:o}=this.$props;if(o){const i=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:No(this.triggerRef);return No(o(i))}try{const i=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:No(this.triggerRef);if(i)return i}catch{}return No(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:r,builtinPlacements:o,prefixCls:i,alignPoint:a,getPopupClassNameFromAlign:l}=n;return r&&o&&t.push(ule(o,i,e,a)),l&&t.push(l(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?SA(r,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[dr?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:r}=this,{prefixCls:o,destroyPopupOnHide:i,popupClassName:a,popupAnimation:l,popupTransitionName:s,popupStyle:c,mask:u,maskAnimation:d,maskTransitionName:f,zIndex:h,stretch:m,alignPoint:v,mobile:y,forceRender:b}=this.$props,{sPopupVisible:$,point:x}=this.$data,_=S(S({prefixCls:o,destroyPopupOnHide:i,visible:$,point:v?x:null,align:this.align,animation:l,getClassNameFromAlign:t,stretch:m,getRootDomNode:n,mask:u,zIndex:h,transitionName:s,maskAnimation:d,maskTransitionName:f,class:a,style:c,onAlign:r.onPopupAlign||G7},e),{ref:this.setPopupRef,mobile:y,forceRender:b});return g(sle,_,{default:this.$slots.popup||(()=>FN(this,"popup"))})},attachParent(e){mt.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,r=this.getRootDomNode();let o;t?(r||t.length===0)&&(o=t(r)):o=n(this.getRootDomNode()).body,o?o.appendChild(e):this.attachId=mt(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:o}=this;this.clearDelayTimer(),r!==e&&(ul(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r}),o&&o(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const r=t*1e3;if(this.clearDelayTimer(),r){const o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,o),this.clearDelayTimer()},r)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){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)},createTwoChains(e){let t=()=>{};const n=l3(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=_n(Bb(this)),{alignPoint:n,getPopupContainer:r}=this.$props,o=t[0];this.childOriginEvents=l3(o);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[dr?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[dr?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=c=>{c&&(!c.relatedTarget||!ss(c.target,c.relatedTarget))&&this.createTwoChains("onBlur")(c)});const a=me(o&&o.props&&o.props.class,e.class);a&&(i.class=a);const l=Gt(o,S(S({},i),{ref:"triggerRef"}),!0,!0),s=g(Hh,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return g(Je,null,[l,s])}});var mle=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 t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},yle=pe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Z.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Z.oneOfType([Number,Boolean]).def(!0),popupElement:Z.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=M(()=>{const{dropdownMatchSelectWidth:l}=e;return ble(l)}),a=he();return o({getPopupElement:()=>a.value}),()=>{const l=S(S({},e),r),{empty:s=!1}=l,c=mle(l,["empty"]),{visible:u,dropdownAlign:d,prefixCls:f,popupElement:h,dropdownClassName:m,dropdownStyle:v,direction:y="ltr",placement:b,dropdownMatchSelectWidth:$,containerWidth:x,dropdownRender:_,animation:w,transitionName:I,getPopupContainer:O,getTriggerDOMNode:P,onPopupVisibleChange:E,onPopupMouseEnter:R,onPopupFocusin:A,onPopupFocusout:N}=c,F=`${f}-dropdown`;let W=h;_&&(W=_({menuNode:h,props:e}));const D=w?`${F}-${w}`:I,B=S({minWidth:`${x}px`},v);return typeof $=="number"?B.width=`${$}px`:$&&(B.width=`${x}px`),g(tu,V(V({},e),{},{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:b||(y==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:F,popupTransitionName:D,popupAlign:d,popupVisible:u,getPopupContainer:O,popupClassName:me(m,{[`${F}-empty`]:s}),popupStyle:B,getTriggerDOMNode:P,onPopupVisibleChange:E}),{default:n.default,popup:()=>g("div",{ref:a,onMouseenter:R,onFocusin:A,onFocusout:N},[W])})}}}),Sle=yle,Rt={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){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Rt.F1&&n<=Rt.F12)return!1;switch(n){case Rt.ALT:case Rt.CAPS_LOCK:case Rt.CONTEXT_MENU:case Rt.CTRL:case Rt.DOWN:case Rt.END:case Rt.ESC:case Rt.HOME:case Rt.INSERT:case Rt.LEFT:case Rt.MAC_FF_META:case Rt.META:case Rt.NUMLOCK:case Rt.NUM_CENTER:case Rt.PAGE_DOWN:case Rt.PAGE_UP:case Rt.PAUSE:case Rt.PRINT_SCREEN:case Rt.RIGHT:case Rt.SHIFT:case Rt.UP:case Rt.WIN_KEY:case Rt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Rt.ZERO&&t<=Rt.NINE||t>=Rt.NUM_ZERO&&t<=Rt.NUM_MULTIPLY||t>=Rt.A&&t<=Rt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Rt.SPACE:case Rt.QUESTION_MARK:case Rt.NUM_PLUS:case Rt.NUM_MINUS:case Rt.NUM_PERIOD:case Rt.NUM_DIVISION:case Rt.SEMICOLON:case Rt.DASH:case Rt.EQUALS:case Rt.COMMA:case Rt.PERIOD:case Rt.SLASH:case Rt.APOSTROPHE:case Rt.SINGLE_QUOTE:case Rt.OPEN_SQUARE_BRACKET:case Rt.BACKSLASH:case Rt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Fe=Rt,oy=(e,t)=>{let{slots:n}=t;var r;const{class:o,customizeIcon:i,customizeIconProps:a,onMousedown:l,onClick:s}=e;let c;return typeof i=="function"?c=i(a):c=i,g("span",{class:o,onMousedown:u=>{u.preventDefault(),l&&l(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[c!==void 0?c:g("span",{class:o.split(/\s+/).map(u=>`${u}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};oy.inheritAttrs=!1;oy.displayName="TransBtn";oy.props={class:String,customizeIcon:Z.any,customizeIconProps:Z.any,onMousedown:Function,onClick:Function};const v0=oy;function Cle(e){e.target.composing=!0}function wA(e){e.target.composing&&(e.target.composing=!1,$le(e.target,"input"))}function $le(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function nC(e,t,n,r){e.addEventListener(t,n,r)}const xle={created(e,t){(!t.modifiers||!t.modifiers.lazy)&&(nC(e,"compositionstart",Cle),nC(e,"compositionend",wA),nC(e,"change",wA))}},nf=xle,wle={inputRef:Z.any,prefixCls:String,id:String,inputElement:Z.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),attrs:Z.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},_le=pe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:wle,setup(e){let t=null;const n=it("VCSelectContainerEvent");return()=>{var r;const{prefixCls:o,id:i,inputElement:a,disabled:l,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:f,value:h,onKeydown:m,onMousedown:v,onChange:y,onPaste:b,onCompositionstart:$,onCompositionend:x,onFocus:_,onBlur:w,open:I,inputRef:O,attrs:P}=e;let E=a||Ln(g("input",null,null),[[nf]]);const R=E.props||{},{onKeydown:A,onInput:N,onFocus:F,onBlur:W,onMousedown:D,onCompositionstart:B,onCompositionend:k,style:L}=R;return E=Gt(E,S(S(S(S(S({type:"search"},R),{id:i,ref:O,disabled:l,tabindex:s,autocomplete:u||"off",autofocus:c,class:me(`${o}-selection-search-input`,(r=E==null?void 0:E.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":I,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":f}),P),{value:d?h:"",readonly:!d,unselectable:d?null:"on",style:S(S({},L),{opacity:d?null:0}),onKeydown:z=>{m(z),A&&A(z)},onMousedown:z=>{v(z),D&&D(z)},onInput:z=>{y(z),N&&N(z)},onCompositionstart(z){$(z),B&&B(z)},onCompositionend(z){x(z),k&&k(z)},onPaste:b,onFocus:function(){clearTimeout(t),F&&F(arguments.length<=0?void 0:arguments[0]),_&&_(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var z=arguments.length,K=new Array(z),G=0;G{W&&W(K[0]),w&&w(K[0]),n==null||n.blur(K[0])},100)}}),E.type==="textarea"?{}:{type:"search"}),!0,!0),E}}}),bk=_le,Ole=`accept acceptcharset accesskey action allowfullscreen allowtransparency -alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge -charset checked classid classname colspan cols content contenteditable contextmenu -controls coords crossorigin data datetime default defer dir disabled download draggable -enctype form formaction formenctype formmethod formnovalidate formtarget frameborder -headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity -is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media -mediagroup method min minlength multiple muted name novalidate nonce open -optimum pattern placeholder poster preload radiogroup readonly rel required -reversed role rowspan rows sandbox scope scoped scrolling seamless selected -shape size sizes span spellcheck src srcdoc srclang srcset start step style -summary tabindex target title type usemap value width wmode wrap`,Ile=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown - onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick - onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown - onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel - onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough - onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata - onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,_A=`${Ole} ${Ile}`.split(/[\s\n]+/),Ple="aria-",Tle="data-";function OA(e,t){return e.indexOf(t)===0}function Ts(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=S({},t);const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||OA(o,Ple))||n.data&&OA(o,Tle)||n.attr&&(_A.includes(o)||_A.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}const yk=Symbol("OverflowContextProviderKey"),px=pe({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return ft(yk,M(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Ele=()=>it(yk,M(()=>null));var Ale=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);oe.responsive&&!e.display),i=he();r({itemNodeRef:i});function a(l){e.registerSize(e.itemKey,l)}return Fr(()=>{a(null)}),()=>{var l;const{prefixCls:s,invalidate:c,item:u,renderItem:d,responsive:f,registerSize:h,itemKey:m,display:v,order:y,component:b="div"}=e,$=Ale(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),x=(l=n.default)===null||l===void 0?void 0:l.call(n),_=d&&u!==Pu?d(u):x;let w;c||(w={opacity:o.value?0:1,height:o.value?0:Pu,overflowY:o.value?"hidden":Pu,order:f?y:Pu,pointerEvents:o.value?"none":Pu,position:o.value?"absolute":Pu});const I={};return o.value&&(I["aria-hidden"]=!0),g(ki,{disabled:!f,onResize:O=>{let{offsetWidth:P}=O;a(P)}},{default:()=>g(b,V(V(V({class:me(!c&&s),style:w},I),$),{},{ref:i}),{default:()=>[_]})})}}});var rC=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 i;if(!o.value){const{component:d="div"}=e,f=rC(e,["component"]);return g(d,V(V({},f),r),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}const a=o.value,{className:l}=a,s=rC(a,["className"]),{class:c}=r,u=rC(r,["class"]);return g(px,{value:null},{default:()=>[g(dm,V(V(V({class:me(l,c)},s),u),e),n)]})}}});var Rle=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({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:Z.any,component:String,itemComponent:Z.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),iy=pe({name:"Overflow",inheritAttrs:!1,props:Lle(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:r,slots:o}=t;const i=M(()=>e.ssr==="full"),a=ve(null),l=M(()=>a.value||0),s=ve(new Map),c=ve(0),u=ve(0),d=ve(0),f=ve(null),h=ve(null),m=M(()=>h.value===null&&i.value?Number.MAX_SAFE_INTEGER:h.value||0),v=ve(!1),y=M(()=>`${e.prefixCls}-item`),b=M(()=>Math.max(c.value,u.value)),$=M(()=>!!(e.data.length&&e.maxCount===Sk)),x=M(()=>e.maxCount===Ck),_=M(()=>$.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),w=M(()=>{let D=e.data;return $.value?a.value===null&&i.value?D=e.data:D=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(D=e.data.slice(0,e.maxCount)),D}),I=M(()=>$.value?e.data.slice(m.value+1):e.data.slice(w.value.length)),O=(D,B)=>{var k;return typeof e.itemKey=="function"?e.itemKey(D):(k=e.itemKey&&(D==null?void 0:D[e.itemKey]))!==null&&k!==void 0?k:B},P=M(()=>e.renderItem||(D=>D)),E=(D,B)=>{h.value=D,B||(v.value=D{a.value=B.clientWidth},A=(D,B)=>{const k=new Map(s.value);B===null?k.delete(D):k.set(D,B),s.value=k},N=(D,B)=>{c.value=u.value,u.value=B},F=(D,B)=>{d.value=B},W=D=>s.value.get(O(w.value[D],D));return Ie([l,s,u,d,()=>e.itemKey,w],()=>{if(l.value&&b.value&&w.value){let D=d.value;const B=w.value.length,k=B-1;if(!B){E(0),f.value=null;return}for(let L=0;Ll.value){E(L-1),f.value=D-z-d.value+u.value;break}}e.suffix&&W(0)+d.value>l.value&&(f.value=null)}}),()=>{const D=v.value&&!!I.value.length,{itemComponent:B,renderRawItem:k,renderRawRest:L,renderRest:z,prefixCls:K="rc-overflow",suffix:G,component:Y="div",id:ne,onMousedown:oe}=e,{class:J,style:te}=n,ee=Rle(n,["class","style"]);let fe={};f.value!==null&&$.value&&(fe={position:"absolute",left:`${f.value}px`,top:0});const ie={prefixCls:y.value,responsive:$.value,component:B,invalidate:x.value},X=k?(j,q)=>{const se=O(j,q);return g(px,{key:se,value:S(S({},ie),{order:q,item:j,itemKey:se,registerSize:A,display:q<=m.value})},{default:()=>[k(j,q)]})}:(j,q)=>{const se=O(j,q);return g(dm,V(V({},ie),{},{order:q,key:se,item:j,renderItem:P.value,itemKey:se,registerSize:A,display:q<=m.value}),null)};let ue=()=>null;const ye={order:D?m.value:Number.MAX_SAFE_INTEGER,className:`${y.value} ${y.value}-rest`,registerSize:N,display:D};if(L)L&&(ue=()=>g(px,{value:S(S({},ie),ye)},{default:()=>[L(I.value)]}));else{const j=z||Dle;ue=()=>g(dm,V(V({},ie),ye),{default:()=>typeof j=="function"?j(I.value):j})}const H=()=>{var j;return g(Y,V({id:ne,class:me(!x.value&&K,J),style:te,onMousedown:oe},ee),{default:()=>[w.value.map(X),_.value?ue():null,G&&g(dm,V(V({},ie),{},{order:m.value,class:`${y.value}-suffix`,registerSize:F,display:!0,style:fe}),{default:()=>G}),(j=o.default)===null||j===void 0?void 0:j.call(o)]})};return g(ki,{disabled:!$.value,onResize:R},{default:H})}}});iy.Item=Mle;iy.RESPONSIVE=Sk;iy.INVALIDATE=Ck;const ud=iy,$k=Symbol("TreeSelectLegacyContextPropsKey");function Nle(e){return ft($k,e)}function ay(){return it($k,{})}const kle={id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),removeIcon:Z.any,choiceTransitionName:String,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},IA=e=>{e.preventDefault(),e.stopPropagation()},Ble=pe({name:"MultipleSelectSelector",inheritAttrs:!1,props:kle,setup(e){const t=ve(),n=ve(0),r=ve(!1),o=ay(),i=M(()=>`${e.prefixCls}-selection`),a=M(()=>e.open||e.mode==="tags"?e.searchValue:""),l=M(()=>e.mode==="tags"||e.showSearch&&(e.open||r.value));lt(()=>{Ie(a,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(f,h,m,v,y){return g("span",{class:me(`${i.value}-item`,{[`${i.value}-item-disabled`]:m}),title:typeof f=="string"||typeof f=="number"?f.toString():void 0},[g("span",{class:`${i.value}-item-content`},[h]),v&&g(v0,{class:`${i.value}-item-remove`,onMousedown:IA,onClick:y,customizeIcon:e.removeIcon},{default:()=>[Dr("×")]})])}function c(f,h,m,v,y,b){var $;const x=w=>{IA(w),e.onToggleOpen(!open)};let _=b;return o.keyEntities&&(_=(($=o.keyEntities[f])===null||$===void 0?void 0:$.node)||{}),g("span",{key:f,onMousedown:x},[e.tagRender({label:h,value:f,disabled:m,closable:v,onClose:y,option:_})])}function u(f){const{disabled:h,label:m,value:v,option:y}=f,b=!e.disabled&&!h;let $=m;if(typeof e.maxTagTextLength=="number"&&(typeof m=="string"||typeof m=="number")){const _=String($);_.length>e.maxTagTextLength&&($=`${_.slice(0,e.maxTagTextLength)}...`)}const x=_=>{var w;_&&_.stopPropagation(),(w=e.onRemove)===null||w===void 0||w.call(e,f)};return typeof e.tagRender=="function"?c(v,$,h,b,x,y):s(m,$,h,b,x)}function d(f){const{maxTagPlaceholder:h=v=>`+ ${v.length} ...`}=e,m=typeof h=="function"?h(f):h;return s(m,m,!1)}return()=>{const{id:f,prefixCls:h,values:m,open:v,inputRef:y,placeholder:b,disabled:$,autofocus:x,autocomplete:_,activeDescendantId:w,tabindex:I,onInputChange:O,onInputPaste:P,onInputKeyDown:E,onInputMouseDown:R,onInputCompositionStart:A,onInputCompositionEnd:N}=e,F=g("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[g(bk,{inputRef:y,open:v,prefixCls:h,id:f,inputElement:null,disabled:$,autofocus:x,autocomplete:_,editable:l.value,activeDescendantId:w,value:a.value,onKeydown:E,onMousedown:R,onChange:O,onPaste:P,onCompositionstart:A,onCompositionend:N,tabindex:I,attrs:Ts(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),g("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[a.value,Dr(" ")])]),W=g(ud,{prefixCls:`${i.value}-overflow`,data:m,renderItem:u,renderRest:d,suffix:F,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return g(Je,null,[W,!m.length&&!a.value&&g("span",{class:`${i.value}-placeholder`},[b])])}}}),Fle=Ble,Hle={inputElement:Z.any,id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},o_=pe({name:"SingleSelector",setup(e){const t=ve(!1),n=M(()=>e.mode==="combobox"),r=M(()=>n.value||e.showSearch),o=M(()=>{let c=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(c=e.activeValue),c}),i=ay();Ie([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const a=M(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!o.value),l=M(()=>{const c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),s=()=>{if(e.values[0])return null;const c=a.value?{visibility:"hidden"}:void 0;return g("span",{class:`${e.prefixCls}-selection-placeholder`,style:c},[e.placeholder])};return()=>{var c,u,d,f;const{inputElement:h,prefixCls:m,id:v,values:y,inputRef:b,disabled:$,autofocus:x,autocomplete:_,activeDescendantId:w,open:I,tabindex:O,optionLabelRender:P,onInputKeyDown:E,onInputMouseDown:R,onInputChange:A,onInputPaste:N,onInputCompositionStart:F,onInputCompositionEnd:W}=e,D=y[0];let B=null;if(D&&i.customSlots){const k=(c=D.key)!==null&&c!==void 0?c:D.value,L=((u=i.keyEntities[k])===null||u===void 0?void 0:u.node)||{};B=i.customSlots[(d=L.slots)===null||d===void 0?void 0:d.title]||i.customSlots.title||D.label,typeof B=="function"&&(B=B(L))}else B=P&&D?P(D.option):D==null?void 0:D.label;return g(Je,null,[g("span",{class:`${m}-selection-search`},[g(bk,{inputRef:b,prefixCls:m,id:v,open:I,inputElement:h,disabled:$,autofocus:x,autocomplete:_,editable:r.value,activeDescendantId:w,value:o.value,onKeydown:E,onMousedown:R,onChange:k=>{t.value=!0,A(k)},onPaste:N,onCompositionstart:F,onCompositionend:W,tabindex:O,attrs:Ts(e,!0)},null)]),!n.value&&D&&!a.value&&g("span",{class:`${m}-selection-item`,title:l.value},[g(Je,{key:(f=D.key)!==null&&f!==void 0?f:D.value},[B])]),s()])}}});o_.props=Hle;o_.inheritAttrs=!1;const zle=o_;function jle(e){return![Fe.ESC,Fe.SHIFT,Fe.BACKSPACE,Fe.TAB,Fe.WIN_KEY,Fe.ALT,Fe.META,Fe.WIN_KEY_RIGHT,Fe.CTRL,Fe.SEMICOLON,Fe.EQUALS,Fe.CAPS_LOCK,Fe.CONTEXT_MENU,Fe.F1,Fe.F2,Fe.F3,Fe.F4,Fe.F5,Fe.F6,Fe.F7,Fe.F8,Fe.F9,Fe.F10,Fe.F11,Fe.F12].includes(e)}function xk(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Ct(()=>{clearTimeout(n)});function r(o){(o||t===null)&&(t=o),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,r]}function uh(){const e=t=>{e.current=t};return e}const Wle=pe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Z.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Z.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),disabled:{type:Boolean,default:void 0},placeholder:Z.any,removeIcon:Z.any,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const r=uh();let o=!1;const[i,a]=xk(0),l=b=>{const{which:$}=b;($===Fe.UP||$===Fe.DOWN)&&b.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(b),$===Fe.ENTER&&e.mode==="tags"&&!o&&!e.open&&e.onSearchSubmit(b.target.value),jle($)&&e.onToggleOpen(!0)},s=()=>{a(!0)};let c=null;const u=b=>{e.onSearch(b,!0,o)!==!1&&e.onToggleOpen(!0)},d=()=>{o=!0},f=b=>{o=!1,e.mode!=="combobox"&&u(b.target.value)},h=b=>{let{target:{value:$}}=b;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const x=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$=$.replace(x,c)}c=null,u($)},m=b=>{const{clipboardData:$}=b;c=$.getData("text")},v=b=>{let{target:$}=b;$!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},y=b=>{const $=i();b.target!==r.current&&!$&&b.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!$)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:b,domRef:$,mode:x}=e,_={inputRef:r,onInputKeyDown:l,onInputMouseDown:s,onInputChange:h,onInputPaste:m,onInputCompositionStart:d,onInputCompositionEnd:f},w=x==="multiple"||x==="tags"?g(Fle,V(V({},e),_),null):g(zle,V(V({},e),_),null);return g("div",{ref:$,class:`${b}-selector`,onClick:v,onMousedown:y},[w])}}}),Vle=Wle;function Kle(e,t,n){function r(o){var i,a,l;let s=o.target;s.shadowRoot&&o.composed&&(s=o.composedPath()[0]||s);const c=[(i=e[0])===null||i===void 0?void 0:i.value,(l=(a=e[1])===null||a===void 0?void 0:a.value)===null||l===void 0?void 0:l.getPopupElement()];t.value&&c.every(u=>u&&!u.contains(s)&&u!==s)&&n(!1)}lt(()=>{window.addEventListener("mousedown",r)}),Ct(()=>{window.removeEventListener("mousedown",r)})}function Ule(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=ve(!1);let n;const r=()=>{clearTimeout(n)};return lt(()=>{r()}),[t,(i,a)=>{r(),n=setTimeout(()=>{t.value=i,a&&a()},e)},r]}const wk=Symbol("BaseSelectContextKey");function Gle(e){return ft(wk,e)}function zh(){return it(wk,{})}const i_=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const 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))};function m0(e){if(!Wn(e))return St(e);const t=new Proxy({},{get(n,r,o){return Reflect.get(e.value,r,o)},set(n,r,o){return e.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return St(t)}var Yle=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({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:Z.any,emptyOptions:Boolean}),ly=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Z.any,placeholder:Z.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:Z.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Z.any,clearIcon:Z.any,removeIcon:Z.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Zle=()=>S(S({},qle()),ly());function _k(e){return e==="tags"||e==="multiple"}const a_=pe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:bt(Zle(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const i=M(()=>_k(e.mode)),a=M(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),l=ve(!1);lt(()=>{l.value=i_()});const s=ay(),c=ve(null),u=uh(),d=ve(null),f=ve(null),h=ve(null),m=he(!1),[v,y,b]=Ule();r({focus:()=>{var X;(X=f.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=f.value)===null||X===void 0||X.blur()},scrollTo:X=>{var ue;return(ue=h.value)===null||ue===void 0?void 0:ue.scrollTo(X)}});const _=M(()=>{var X;if(e.mode!=="combobox")return e.searchValue;const ue=(X=e.displayValues[0])===null||X===void 0?void 0:X.value;return typeof ue=="string"||typeof ue=="number"?String(ue):""}),w=e.open!==void 0?e.open:e.defaultOpen,I=ve(w),O=ve(w),P=X=>{I.value=e.open!==void 0?e.open:X,O.value=I.value};Ie(()=>e.open,()=>{P(e.open)});const E=M(()=>!e.notFoundContent&&e.emptyOptions);ct(()=>{O.value=I.value,(e.disabled||E.value&&O.value&&e.mode==="combobox")&&(O.value=!1)});const R=M(()=>E.value?!1:O.value),A=X=>{const ue=X!==void 0?X:!O.value;O.value!==ue&&!e.disabled&&(P(ue),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(ue))},N=M(()=>(e.tokenSeparators||[]).some(X=>[` -`,`\r -`].includes(X))),F=(X,ue,ye)=>{var H,j;let q=!0,se=X;(H=e.onActiveValueChange)===null||H===void 0||H.call(e,null);const ae=ye?null:Vre(X,e.tokenSeparators);return e.mode!=="combobox"&&ae&&(se="",(j=e.onSearchSplit)===null||j===void 0||j.call(e,ae),A(!1),q=!1),e.onSearch&&_.value!==se&&e.onSearch(se,{source:ue?"typing":"effect"}),q},W=X=>{var ue;!X||!X.trim()||(ue=e.onSearch)===null||ue===void 0||ue.call(e,X,{source:"submit"})};Ie(O,()=>{!O.value&&!i.value&&e.mode!=="combobox"&&F("",!1,!1)},{immediate:!0,flush:"post"}),Ie(()=>e.disabled,()=>{I.value&&e.disabled&&P(!1),e.disabled&&!m.value&&y(!1)},{immediate:!0});const[D,B]=xk(),k=function(X){var ue;const ye=D(),{which:H}=X;if(H===Fe.ENTER&&(e.mode!=="combobox"&&X.preventDefault(),O.value||A(!0)),B(!!_.value),H===Fe.BACKSPACE&&!ye&&i.value&&!_.value&&e.displayValues.length){const ae=[...e.displayValues];let ge=null;for(let Se=ae.length-1;Se>=0;Se-=1){const $e=ae[Se];if(!$e.disabled){ae.splice(Se,1),ge=$e;break}}ge&&e.onDisplayValuesChange(ae,{type:"remove",values:[ge]})}for(var j=arguments.length,q=new Array(j>1?j-1:0),se=1;se1?ue-1:0),H=1;H{const ue=e.displayValues.filter(ye=>ye!==X);e.onDisplayValuesChange(ue,{type:"remove",values:[X]})},K=ve(!1),G=function(){y(!0),e.disabled||(e.onFocus&&!K.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&A(!0)),K.value=!0},Y=he(!1),ne=function(){if(Y.value||(m.value=!0,y(!1,()=>{K.value=!1,m.value=!1,A(!1)}),e.disabled))return;const X=_.value;X&&(e.mode==="tags"?e.onSearch(X,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},oe=()=>{Y.value=!0},J=()=>{Y.value=!1};ft("VCSelectContainerEvent",{focus:G,blur:ne});const te=[];lt(()=>{te.forEach(X=>clearTimeout(X)),te.splice(0,te.length)}),Ct(()=>{te.forEach(X=>clearTimeout(X)),te.splice(0,te.length)});const ee=function(X){var ue,ye;const{target:H}=X,j=(ue=d.value)===null||ue===void 0?void 0:ue.getPopupElement();if(j&&j.contains(H)){const ge=setTimeout(()=>{var Se;const $e=te.indexOf(ge);$e!==-1&&te.splice($e,1),b(),!l.value&&!j.contains(document.activeElement)&&((Se=f.value)===null||Se===void 0||Se.focus())});te.push(ge)}for(var q=arguments.length,se=new Array(q>1?q-1:0),ae=1;ae{};return lt(()=>{Ie(R,()=>{var X;if(R.value){const ue=Math.ceil((X=c.value)===null||X===void 0?void 0:X.offsetWidth);fe.value!==ue&&!Number.isNaN(ue)&&(fe.value=ue)}},{immediate:!0,flush:"post"})}),Kle([c,d],R,A),Gle(m0(S(S({},ra(e)),{open:O,triggerOpen:R,showSearch:a,multiple:i,toggleOpen:A}))),()=>{const X=S(S({},e),n),{prefixCls:ue,id:ye,open:H,defaultOpen:j,mode:q,showSearch:se,searchValue:ae,onSearch:ge,allowClear:Se,clearIcon:$e,showArrow:_e,inputIcon:be,disabled:Te,loading:Pe,getInputElement:re,getPopupContainer:le,placement:xe,animation:Ae,transitionName:Be,dropdownStyle:Ye,dropdownClassName:Re,dropdownMatchSelectWidth:Le,dropdownRender:Ne,dropdownAlign:Ke,showAction:Ze,direction:Ue,tokenSeparators:Xe,tagRender:xt,optionLabelRender:Mt,onPopupScroll:Ft,onDropdownVisibleChange:jt,onFocus:Yt,onBlur:Vn,onKeyup:Gn,onKeydown:rr,onMousedown:kn,onClear:br,omitDomProps:Gr,getRawInputElement:wo,displayValues:Uo,onDisplayValuesChange:Ar,emptyOptions:za,activeDescendantId:We,activeValue:gt,OptionList:ut}=X,un=Yle(X,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),Yn=q==="combobox"&&re&&re()||null,Bn=typeof wo=="function"&&wo(),Yr=S({},un);let yr;Bn&&(yr=qr=>{A(qr)}),Xle.forEach(qr=>{delete Yr[qr]}),Gr==null||Gr.forEach(qr=>{delete Yr[qr]});const hi=_e!==void 0?_e:Pe||!i.value&&q!=="combobox";let Xr;hi&&(Xr=g(v0,{class:me(`${ue}-arrow`,{[`${ue}-arrow-loading`]:Pe}),customizeIcon:be,customizeIconProps:{loading:Pe,searchValue:_.value,open:O.value,focused:v.value,showSearch:a.value}},null));let _o;const Cn=()=>{br==null||br(),Ar([],{type:"clear",values:Uo}),F("",!1,!1)};!Te&&Se&&(Uo.length||_.value)&&(_o=g(v0,{class:`${ue}-clear`,onMousedown:Cn,customizeIcon:$e},{default:()=>[Dr("×")]}));const Go=g(ut,{ref:h},S(S({},s.customSlots),{option:o.option})),Oo=me(ue,n.class,{[`${ue}-focused`]:v.value,[`${ue}-multiple`]:i.value,[`${ue}-single`]:!i.value,[`${ue}-allow-clear`]:Se,[`${ue}-show-arrow`]:hi,[`${ue}-disabled`]:Te,[`${ue}-loading`]:Pe,[`${ue}-open`]:O.value,[`${ue}-customize-input`]:Yn,[`${ue}-show-search`]:a.value}),pa=g(Sle,{ref:d,disabled:Te,prefixCls:ue,visible:R.value,popupElement:Go,containerWidth:fe.value,animation:Ae,transitionName:Be,dropdownStyle:Ye,dropdownClassName:Re,direction:Ue,dropdownMatchSelectWidth:Le,dropdownRender:Ne,dropdownAlign:Ke,placement:xe,getPopupContainer:le,empty:za,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:yr,onPopupMouseEnter:ie,onPopupFocusin:oe,onPopupFocusout:J},{default:()=>Bn?Jn(Bn)&&Gt(Bn,{ref:u},!1,!0):g(Vle,V(V({},e),{},{domRef:u,prefixCls:ue,inputElement:Yn,ref:f,id:ye,showSearch:a.value,mode:q,activeDescendantId:We,tagRender:xt,optionLabelRender:Mt,values:Uo,open:O.value,onToggleOpen:A,activeValue:gt,searchValue:_.value,onSearch:F,onSearchSubmit:W,onRemove:z,tokenWithEnter:N.value}),null)});let ha;return Bn?ha=pa:ha=g("div",V(V({},Yr),{},{class:Oo,ref:c,onMousedown:ee,onKeydown:k,onKeyup:L}),[v.value&&!O.value&&g("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Uo.map(qr=>{let{label:Ll,value:Zr}=qr;return["number","string"].includes(typeof Ll)?Ll:Zr}).join(", ")}`]),pa,Xr,_o]),ha}}}),sy=(e,t)=>{let{height:n,offset:r,prefixCls:o,onInnerResize:i}=e,{slots:a}=t;var l;let s={},c={display:"flex",flexDirection:"column"};return r!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=S(S({},c),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),g("div",{style:s},[g(ki,{onResize:u=>{let{offsetHeight:d}=u;d&&i&&i()}},{default:()=>[g("div",{style:c,class:me({[`${o}-holder-inner`]:o})},[(l=a.default)===null||l===void 0?void 0:l.call(a)])]})])};sy.displayName="Filter";sy.inheritAttrs=!1;sy.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Qle=sy,Ok=(e,t)=>{let{setRef:n}=e,{slots:r}=t;var o;const i=ln((o=r.default)===null||o===void 0?void 0:o.call(r));return i&&i.length?kr(i[0],{ref:n}):i};Ok.props={setRef:{type:Function,default:()=>{}}};const Jle=Ok,ese=20;function PA(e){return"touches"in e?e.touches[0].pageY:e.pageY}const tse=pe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:uh(),thumbRef:uh(),visibleTimeout:null,state:St({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,dr?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,dr?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,dr?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,dr?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,dr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,dr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),mt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;S(this.state,{dragging:!0,pageY:PA(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:r}=this.state,{onScroll:o}=this.$props;if(mt.cancel(this.moveRaf),t){const i=PA(e)-n,a=r+i,l=this.getEnableScrollRange(),s=this.getEnableHeightRange(),c=s?a/s:0,u=Math.ceil(c*l);this.moveRaf=mt(()=>{o(u)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,ese),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",o=this.getTop()+"px",i=this.showScroll(),a=i&&t;return g("div",{ref:this.scrollbarRef,class:me(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:a?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[g("div",{ref:this.thumbRef,class:me(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:r,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function nse(e,t,n,r){const o=new Map,i=new Map,a=he(Symbol("update"));Ie(e,()=>{a.value=Symbol("update")});let l;function s(){mt.cancel(l)}function c(){s(),l=mt(()=>{o.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:h}=d;i.get(f)!==h&&(a.value=Symbol("update"),i.set(f,d.offsetHeight))}})})}function u(d,f){const h=t(d),m=o.get(h);f?(o.set(h,f.$el||f),c()):o.delete(h),!m!=!f&&(f?n==null||n(d):r==null||r(d))}return Fr(()=>{s()}),[u,c,i,a]}function rse(e,t,n,r,o,i,a,l){let s;return c=>{if(c==null){l();return}mt.cancel(s);const u=t.value,d=r.itemHeight;if(typeof c=="number")a(c);else if(c&&typeof c=="object"){let f;const{align:h}=c;"index"in c?{index:f}=c:f=u.findIndex(y=>o(y)===c.key);const{offset:m=0}=c,v=(y,b)=>{if(y<0||!e.value)return;const $=e.value.clientHeight;let x=!1,_=b;if($){const w=b||h;let I=0,O=0,P=0;const E=Math.min(u.length,f);for(let N=0;N<=E;N+=1){const F=o(u[N]);O=I;const W=n.get(F);P=O+(W===void 0?d:W),I=P,N===f&&W===void 0&&(x=!0)}const R=e.value.scrollTop;let A=null;switch(w){case"top":A=O-m;break;case"bottom":A=P-$+m;break;default:{const N=R+$;ON&&(_="bottom")}}A!==null&&A!==R&&a(A)}s=mt(()=>{x&&i(),v(y-1,_)},2)};v(5)}}}const ose=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Ik=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const l=i<0&&e.value||i>0&&t.value;return a&&l?(clearTimeout(r),n=!1):(!l||n)&&o(),!n&&l}};function ise(e,t,n,r){let o=0,i=null,a=null,l=!1;const s=Ik(t,n);function c(d){if(!e.value)return;mt.cancel(i);const{deltaY:f}=d;o+=f,a=f,!s(f)&&(ose||d.preventDefault(),i=mt(()=>{r(o*(l?10:1)),o=0}))}function u(d){e.value&&(l=d.detail===a)}return[c,u]}const ase=14/15;function lse(e,t,n){let r=!1,o=0,i=null,a=null;const l=()=>{i&&(i.removeEventListener("touchmove",s),i.removeEventListener("touchend",c))},s=f=>{if(r){const h=Math.ceil(f.touches[0].pageY);let m=o-h;o=h,n(m)&&f.preventDefault(),clearInterval(a),a=setInterval(()=>{m*=ase,(!n(m,!0)||Math.abs(m)<=.1)&&clearInterval(a)},16)}},c=()=>{r=!1,l()},u=f=>{l(),f.touches.length===1&&!r&&(r=!0,o=Math.ceil(f.touches[0].pageY),i=f.target,i.addEventListener("touchmove",s,{passive:!1}),i.addEventListener("touchend",c))},d=()=>{};lt(()=>{document.addEventListener("touchmove",d,{passive:!1}),Ie(e,f=>{t.value.removeEventListener("touchstart",u),l(),clearInterval(a),f&&t.value.addEventListener("touchstart",u,{passive:!1})},{immediate:!0})}),Ct(()=>{document.removeEventListener("touchmove",d)})}var sse=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 c=t+s,u=o(l,c,{}),d=a(l);return g(Jle,{key:d,setRef:f=>r(l,f)},{default:()=>[u]})})}const fse=pe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Z.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const r=M(()=>{const{height:z,itemHeight:K,virtual:G}=e;return!!(G!==!1&&z&&K)}),o=M(()=>{const{height:z,itemHeight:K,data:G}=e;return r.value&&G&&K*G.length>z}),i=St({scrollTop:0,scrollMoving:!1}),a=M(()=>e.data||cse),l=ve([]);Ie(a,()=>{l.value=$t(a.value).slice()},{immediate:!0});const s=ve(z=>{});Ie(()=>e.itemKey,z=>{typeof z=="function"?s.value=z:s.value=K=>K==null?void 0:K[z]},{immediate:!0});const c=ve(),u=ve(),d=ve(),f=z=>s.value(z),h={getKey:f};function m(z){let K;typeof z=="function"?K=z(i.scrollTop):K=z;const G=I(K);c.value&&(c.value.scrollTop=G),i.scrollTop=G}const[v,y,b,$]=nse(l,f,null,null),x=St({scrollHeight:void 0,start:0,end:0,offset:void 0}),_=ve(0);lt(()=>{_t(()=>{var z;_.value=((z=u.value)===null||z===void 0?void 0:z.offsetHeight)||0})}),fo(()=>{_t(()=>{var z;_.value=((z=u.value)===null||z===void 0?void 0:z.offsetHeight)||0})}),Ie([r,l],()=>{r.value||S(x,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),Ie([r,l,_,o],()=>{r.value&&!o.value&&S(x,{scrollHeight:_.value,start:0,end:l.value.length-1,offset:void 0}),c.value&&(i.scrollTop=c.value.scrollTop)},{immediate:!0}),Ie([o,r,()=>i.scrollTop,l,$,()=>e.height,_],()=>{if(!r.value||!o.value)return;let z=0,K,G,Y;const ne=l.value.length,oe=l.value,J=i.scrollTop,{itemHeight:te,height:ee}=e,fe=J+ee;for(let ie=0;ie=J&&(K=ie,G=z),Y===void 0&&H>fe&&(Y=ie),z=H}K===void 0&&(K=0,G=0,Y=Math.ceil(ee/te)),Y===void 0&&(Y=ne-1),Y=Math.min(Y+1,ne),S(x,{scrollHeight:z,start:K,end:Y,offset:G})},{immediate:!0});const w=M(()=>x.scrollHeight-e.height);function I(z){let K=z;return Number.isNaN(w.value)||(K=Math.min(K,w.value)),K=Math.max(K,0),K}const O=M(()=>i.scrollTop<=0),P=M(()=>i.scrollTop>=w.value),E=Ik(O,P);function R(z){m(z)}function A(z){var K;const{scrollTop:G}=z.currentTarget;G!==i.scrollTop&&m(G),(K=e.onScroll)===null||K===void 0||K.call(e,z)}const[N,F]=ise(r,O,P,z=>{m(K=>K+z)});lse(r,c,(z,K)=>E(z,K)?!1:(N({preventDefault(){},deltaY:z}),!0));function W(z){r.value&&z.preventDefault()}const D=()=>{c.value&&(c.value.removeEventListener("wheel",N,dr?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",F),c.value.removeEventListener("MozMousePixelScroll",W))};ct(()=>{_t(()=>{c.value&&(D(),c.value.addEventListener("wheel",N,dr?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",F),c.value.addEventListener("MozMousePixelScroll",W))})}),Ct(()=>{D()});const B=rse(c,l,b,e,f,y,m,()=>{var z;(z=d.value)===null||z===void 0||z.delayHidden()});n({scrollTo:B});const k=M(()=>{let z=null;return e.height&&(z=S({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},use),r.value&&(z.overflowY="hidden",i.scrollMoving&&(z.pointerEvents="none"))),z});return Ie([()=>x.start,()=>x.end,l],()=>{if(e.onVisibleChange){const z=l.value.slice(x.start,x.end+1);e.onVisibleChange(z,l.value)}},{flush:"post"}),{state:i,mergedData:l,componentStyle:k,onFallbackScroll:A,onScrollBar:R,componentRef:c,useVirtual:r,calRes:x,collectHeight:y,setInstance:v,sharedConfig:h,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var z;(z=d.value)===null||z===void 0||z.delayHidden()}}},render(){const e=S(S({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:r,fullHeight:o,data:i,itemKey:a,virtual:l,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:f}=e,h=sse(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),m=me(t,f),{scrollTop:v}=this.state,{scrollHeight:y,offset:b,start:$,end:x}=this.calRes,{componentStyle:_,onFallbackScroll:w,onScrollBar:I,useVirtual:O,collectHeight:P,sharedConfig:E,setInstance:R,mergedData:A,delayHideScrollBar:N}=this;return g("div",V({style:S(S({},d),{position:"relative"}),class:m},h),[g(s,{class:`${t}-holder`,style:_,ref:"componentRef",onScroll:w,onMouseenter:N},{default:()=>[g(Qle,{prefixCls:t,height:y,offset:b,onInnerResize:P,ref:"fillerInnerRef"},{default:()=>dse(A,$,x,R,u,E)})]}),O&&g(tse,{ref:"scrollBarRef",prefixCls:t,scrollTop:v,height:n,scrollHeight:y,count:A.length,onScroll:I,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),Pk=fse;function l_(e,t,n){const r=he(e());return Ie(t,(o,i)=>{n?n(o,i)&&(r.value=e()):r.value=e()}),r}function pse(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const Tk=Symbol("SelectContextKey");function hse(e){return ft(Tk,e)}function gse(){return it(Tk,{})}var vse=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`${o.prefixCls}-item`),l=l_(()=>i.flattenOptions,[()=>o.open,()=>i.flattenOptions],w=>w[0]),s=uh(),c=w=>{w.preventDefault()},u=w=>{s.current&&s.current.scrollTo(typeof w=="number"?{index:w}:w)},d=function(w){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const O=l.value.length;for(let P=0;P1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=w;const O={source:I?"keyboard":"mouse"},P=l.value[w];if(!P){i.onActiveValue(null,-1,O);return}i.onActiveValue(P.value,w,O)};Ie([()=>l.value.length,()=>o.searchValue],()=>{h(i.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const m=w=>i.rawValues.has(w)&&o.mode!=="combobox";Ie([()=>o.open,()=>o.searchValue],()=>{if(!o.multiple&&o.open&&i.rawValues.size===1){const w=Array.from(i.rawValues)[0],I=$t(l.value).findIndex(O=>{let{data:P}=O;return P[i.fieldNames.value]===w});I!==-1&&(h(I),_t(()=>{u(I)}))}o.open&&_t(()=>{var w;(w=s.current)===null||w===void 0||w.scrollTo(void 0)})},{immediate:!0,flush:"post"});const v=w=>{w!==void 0&&i.onSelect(w,{selected:!i.rawValues.has(w)}),o.multiple||o.toggleOpen(!1)},y=w=>typeof w.label=="function"?w.label():w.label;function b(w){const I=l.value[w];if(!I)return null;const O=I.data||{},{value:P}=O,{group:E}=I,R=Ts(O,!0),A=y(I);return I?g("div",V(V({"aria-label":typeof A=="string"&&!E?A:null},R),{},{key:w,role:E?"presentation":"option",id:`${o.id}_list_${w}`,"aria-selected":m(P)}),[P]):null}return n({onKeydown:w=>{const{which:I,ctrlKey:O}=w;switch(I){case Fe.N:case Fe.P:case Fe.UP:case Fe.DOWN:{let P=0;if(I===Fe.UP?P=-1:I===Fe.DOWN?P=1:pse()&&O&&(I===Fe.N?P=1:I===Fe.P&&(P=-1)),P!==0){const E=d(f.activeIndex+P,P);u(E),h(E,!0)}break}case Fe.ENTER:{const P=l.value[f.activeIndex];P&&!P.data.disabled?v(P.value):v(void 0),o.open&&w.preventDefault();break}case Fe.ESC:o.toggleOpen(!1),o.open&&w.stopPropagation()}},onKeyup:()=>{},scrollTo:w=>{u(w)}}),()=>{const{id:w,notFoundContent:I,onPopupScroll:O}=o,{menuItemSelectedIcon:P,fieldNames:E,virtual:R,listHeight:A,listItemHeight:N}=i,F=r.option,{activeIndex:W}=f,D=Object.keys(E).map(B=>E[B]);return l.value.length===0?g("div",{role:"listbox",id:`${w}_list`,class:`${a.value}-empty`,onMousedown:c},[I]):g(Je,null,[g("div",{role:"listbox",id:`${w}_list`,style:{height:0,width:0,overflow:"hidden"}},[b(W-1),b(W),b(W+1)]),g(Pk,{itemKey:"key",ref:s,data:l.value,height:A,itemHeight:N,fullHeight:!1,onMousedown:c,onScroll:O,virtual:R},{default:(B,k)=>{var L;const{group:z,groupOption:K,data:G,value:Y}=B,{key:ne}=G,oe=typeof B.label=="function"?B.label():B.label;if(z){const $e=(L=G.title)!==null&&L!==void 0?L:TA(oe)&&oe;return g("div",{class:me(a.value,`${a.value}-group`),title:$e},[F?F(G):oe!==void 0?oe:ne])}const{disabled:J,title:te,children:ee,style:fe,class:ie,className:X}=G,ue=vse(G,["disabled","title","children","style","class","className"]),ye=Ot(ue,D),H=m(Y),j=`${a.value}-option`,q=me(a.value,j,ie,X,{[`${j}-grouped`]:K,[`${j}-active`]:W===k&&!J,[`${j}-disabled`]:J,[`${j}-selected`]:H}),se=y(B),ae=!P||typeof P=="function"||H,ge=typeof se=="number"?se:se||Y;let Se=TA(ge)?ge.toString():void 0;return te!==void 0&&(Se=te),g("div",V(V({},ye),{},{"aria-selected":H,class:q,title:Se,onMousemove:$e=>{ue.onMousemove&&ue.onMousemove($e),!(W===k||J)&&h(k)},onClick:$e=>{J||v(Y),ue.onClick&&ue.onClick($e)},style:fe}),[g("div",{class:`${j}-content`},[F?F(G):ge]),Jn(P)||H,ae&&g(v0,{class:`${a.value}-option-state`,customizeIcon:P,customizeIconProps:{isSelected:H}},{default:()=>[H?"✓":null]})])}})])}}}),bse=mse;var yse=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);o1&&arguments[1]!==void 0?arguments[1]:!1;return ln(e).map((r,o)=>{var i;if(!Jn(r)||!r.type)return null;const{type:{isSelectOptGroup:a},key:l,children:s,props:c}=r;if(t||!a)return Sse(r);const u=s&&s.default?s.default():void 0,d=(c==null?void 0:c.label)||((i=s.label)===null||i===void 0?void 0:i.call(s))||l;return S(S({key:`__RC_SELECT_GRP__${l===null?o:String(l)}__`},c),{label:d,options:Ek(u||[])})}).filter(r=>r)}function Cse(e,t,n){const r=ve(),o=ve(),i=ve(),a=ve([]);return Ie([e,t],()=>{e.value?a.value=$t(e.value).slice():a.value=Ek(t.value)},{immediate:!0,deep:!0}),ct(()=>{const l=a.value,s=new Map,c=new Map,u=n.value;function d(f){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let m=0;m0&&arguments[0]!==void 0?arguments[0]:he("");const t=`rc_select_${xse()}`;return e.value||t}function Ak(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function oC(e,t){return Ak(e).join("").toUpperCase().includes(t)}const wse=(e,t,n,r,o)=>M(()=>{const i=n.value,a=o==null?void 0:o.value,l=r==null?void 0:r.value;if(!i||l===!1)return e.value;const{options:s,label:c,value:u}=t.value,d=[],f=typeof l=="function",h=i.toUpperCase(),m=f?l:(y,b)=>a?oC(b[a],h):b[s]?oC(b[c!=="children"?c:"label"],h):oC(b[u],h),v=f?y=>ox(y):y=>y;return e.value.forEach(y=>{if(y[s]){if(m(i,v(y)))d.push(y);else{const $=y[s].filter(x=>m(i,v(x)));$.length&&d.push(S(S({},y),{[s]:$}))}return}m(i,v(y))&&d.push(y)}),d}),_se=(e,t)=>{const n=ve({values:new Map,options:new Map});return[M(()=>{const{values:i,options:a}=n.value,l=e.value.map(u=>{var d;return u.label===void 0?S(S({},u),{label:(d=i.get(u.value))===null||d===void 0?void 0:d.label}):u}),s=new Map,c=new Map;return l.forEach(u=>{s.set(u.value,u),c.set(u.value,t.value.get(u.value)||a.get(u.value))}),n.value.values=s,n.value.options=c,l}),i=>t.value.get(i)||n.value.options.get(i)]};function yn(e,t){const{defaultValue:n,value:r=he()}=t||{};let o=typeof e=="function"?e():e;r.value!==void 0&&(o=wt(r)),n!==void 0&&(o=typeof n=="function"?n():n);const i=he(o),a=he(o);ct(()=>{let s=r.value!==void 0?r.value:i.value;t.postState&&(s=t.postState(s)),a.value=s});function l(s){const c=a.value;i.value=s,$t(a.value)!==s&&t.onChange&&t.onChange(s,c)}return Ie(r,()=>{i.value=r.value}),[a,l]}function nn(e){const t=typeof e=="function"?e():e,n=he(t);function r(o){n.value=o}return[n,r]}const Ose=["inputValue"];function Mk(){return S(S({},ly()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:Z.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Z.any,defaultValue:Z.any,onChange:Function,children:Array})}function Ise(e){return!e||typeof e!="object"}const Pse=pe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:bt(Mk(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:r,slots:o}=t;const i=s_(st(e,"id")),a=M(()=>_k(e.mode)),l=M(()=>!!(!e.options&&e.children)),s=M(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),c=M(()=>U7(e.fieldNames,l.value)),[u,d]=yn("",{value:M(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:ie=>ie||""}),f=Cse(st(e,"options"),st(e,"children"),c),{valueOptions:h,labelOptions:m,options:v}=f,y=ie=>Ak(ie).map(ue=>{var ye,H;let j,q,se,ae;Ise(ue)?j=ue:(se=ue.key,q=ue.label,j=(ye=ue.value)!==null&&ye!==void 0?ye:se);const ge=h.value.get(j);return ge&&(q===void 0&&(q=ge==null?void 0:ge[e.optionLabelProp||c.value.label]),se===void 0&&(se=(H=ge==null?void 0:ge.key)!==null&&H!==void 0?H:j),ae=ge==null?void 0:ge.disabled),{label:q,value:j,key:se,disabled:ae,option:ge}}),[b,$]=yn(e.defaultValue,{value:st(e,"value")}),x=M(()=>{var ie;const X=y(b.value);return e.mode==="combobox"&&!(!((ie=X[0])===null||ie===void 0)&&ie.value)?[]:X}),[_,w]=_se(x,h),I=M(()=>{if(!e.mode&&_.value.length===1){const ie=_.value[0];if(ie.value===null&&(ie.label===null||ie.label===void 0))return[]}return _.value.map(ie=>{var X;return S(S({},ie),{label:(X=typeof ie.label=="function"?ie.label():ie.label)!==null&&X!==void 0?X:ie.value})})}),O=M(()=>new Set(_.value.map(ie=>ie.value)));ct(()=>{var ie;if(e.mode==="combobox"){const X=(ie=_.value[0])===null||ie===void 0?void 0:ie.value;X!=null&&d(String(X))}},{flush:"post"});const P=(ie,X)=>{const ue=X??ie;return{[c.value.value]:ie,[c.value.label]:ue}},E=ve();ct(()=>{if(e.mode!=="tags"){E.value=v.value;return}const ie=v.value.slice(),X=ue=>h.value.has(ue);[..._.value].sort((ue,ye)=>ue.value{const ye=ue.value;X(ye)||ie.push(P(ye,ue.label))}),E.value=ie});const R=wse(E,c,u,s,st(e,"optionFilterProp")),A=M(()=>e.mode!=="tags"||!u.value||R.value.some(ie=>ie[e.optionFilterProp||"value"]===u.value)?R.value:[P(u.value),...R.value]),N=M(()=>e.filterSort?[...A.value].sort((ie,X)=>e.filterSort(ie,X)):A.value),F=M(()=>Wre(N.value,{fieldNames:c.value,childrenAsData:l.value})),W=ie=>{const X=y(ie);if($(X),e.onChange&&(X.length!==_.value.length||X.some((ue,ye)=>{var H;return((H=_.value[ye])===null||H===void 0?void 0:H.value)!==(ue==null?void 0:ue.value)}))){const ue=e.labelInValue?X.map(H=>S(S({},H),{originLabel:H.label,label:typeof H.label=="function"?H.label():H.label})):X.map(H=>H.value),ye=X.map(H=>ox(w(H.value)));e.onChange(a.value?ue:ue[0],a.value?ye:ye[0])}},[D,B]=nn(null),[k,L]=nn(0),z=M(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),K=function(ie,X){let{source:ue="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};L(X),e.backfill&&e.mode==="combobox"&&ie!==null&&ue==="keyboard"&&B(String(ie))},G=(ie,X)=>{const ue=()=>{var ye;const H=w(ie),j=H==null?void 0:H[c.value.label];return[e.labelInValue?{label:typeof j=="function"?j():j,originLabel:j,value:ie,key:(ye=H==null?void 0:H.key)!==null&&ye!==void 0?ye:ie}:ie,ox(H)]};if(X&&e.onSelect){const[ye,H]=ue();e.onSelect(ye,H)}else if(!X&&e.onDeselect){const[ye,H]=ue();e.onDeselect(ye,H)}},Y=(ie,X)=>{let ue;const ye=a.value?X.selected:!0;ye?ue=a.value?[..._.value,ie]:[ie]:ue=_.value.filter(H=>H.value!==ie),W(ue),G(ie,ye),e.mode==="combobox"?B(""):(!a.value||e.autoClearSearchValue)&&(d(""),B(""))},ne=(ie,X)=>{W(ie),(X.type==="remove"||X.type==="clear")&&X.values.forEach(ue=>{G(ue.value,!1)})},oe=(ie,X)=>{var ue;if(d(ie),B(null),X.source==="submit"){const ye=(ie||"").trim();if(ye){const H=Array.from(new Set([...O.value,ye]));W(H),G(ye,!0),d("")}return}X.source!=="blur"&&(e.mode==="combobox"&&W(ie),(ue=e.onSearch)===null||ue===void 0||ue.call(e,ie))},J=ie=>{let X=ie;e.mode!=="tags"&&(X=ie.map(ye=>{const H=m.value.get(ye);return H==null?void 0:H.value}).filter(ye=>ye!==void 0));const ue=Array.from(new Set([...O.value,...X]));W(ue),ue.forEach(ye=>{G(ye,!0)})},te=M(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);hse(m0(S(S({},f),{flattenOptions:F,onActiveValue:K,defaultActiveFirstOption:z,onSelect:Y,menuItemSelectedIcon:st(e,"menuItemSelectedIcon"),rawValues:O,fieldNames:c,virtual:te,listHeight:st(e,"listHeight"),listItemHeight:st(e,"listItemHeight"),childrenAsData:l})));const ee=he();n({focus(){var ie;(ie=ee.value)===null||ie===void 0||ie.focus()},blur(){var ie;(ie=ee.value)===null||ie===void 0||ie.blur()},scrollTo(ie){var X;(X=ee.value)===null||X===void 0||X.scrollTo(ie)}});const fe=M(()=>Ot(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>g(a_,V(V(V({},fe.value),r),{},{id:i,prefixCls:e.prefixCls,ref:ee,omitDomProps:Ose,mode:e.mode,displayValues:I.value,onDisplayValuesChange:ne,searchValue:u.value,onSearch:oe,onSearchSplit:J,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:bse,emptyOptions:!F.value.length,activeValue:D.value,activeDescendantId:`${i}_list_${k.value}`}),o)}}),c_=()=>null;c_.isSelectOption=!0;c_.displayName="ASelectOption";const Tse=c_,u_=()=>null;u_.isSelectOptGroup=!0;u_.displayName="ASelectOptGroup";const Ese=u_;var Ase={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Mse=Ase;var Rse=Symbol("iconContext"),Rk=function(){return it(Rse,{prefixCls:he("anticon"),rootClassName:he(""),csp:he()})};function d_(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Dse(e,t){return e&&e.contains?e.contains(t):!1}var AA="data-vc-order",Lse="vc-icon-key",hx=new Map;function Dk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Lse}function f_(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Nse(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lk(e){return Array.from((hx.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Nk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!d_())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(AA,Nse(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=f_(t),a=i.firstChild;if(r){if(r==="queue"){var l=Lk(i).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(AA))});if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function kse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=f_(t);return Lk(n).find(function(r){return r.getAttribute(Dk(t))===e})}function Bse(e,t){var n=hx.get(e);if(!n||!Dse(document,n)){var r=Nk("",t),o=r.parentNode;hx.set(e,o),e.removeChild(r)}}function Fse(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f_(n);Bse(r,n);var o=kse(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=Nk(e,n);return i.setAttribute(Dk(n),t),i}function MA(e){for(var t=1;t * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`;function Fk(e){return e&&e.getRootNode&&e.getRootNode()}function jse(e){return d_()?Fk(e)instanceof ShadowRoot:!1}function Wse(e){return jse(e)?Fk(e):null}var Vse=function(){var t=Rk(),n=t.prefixCls,r=t.csp,o=Nn(),i=zse;n&&(i=i.replace(/anticon/g,n.value)),_t(function(){if(d_()){var a=o.vnode.el,l=Wse(a);Fse(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:l})}})},Kse=["icon","primaryColor","secondaryColor"];function Use(e,t){if(e==null)return{};var n=Gse(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 Gse(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 fm(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dce(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}Hk(Dne.primary);var of=function(t,n){var r,o=NA({},t,n.attrs),i=o.class,a=o.icon,l=o.spin,s=o.rotate,c=o.tabindex,u=o.twoToneColor,d=o.onClick,f=uce(o,oce),h=Rk(),m=h.prefixCls,v=h.rootClassName,y=(r={},rp(r,v.value,!!v.value),rp(r,m.value,!0),rp(r,"".concat(m.value,"-").concat(a.name),!!a.name),rp(r,"".concat(m.value,"-spin"),!!l||a.name==="loading"),r),b=c;b===void 0&&d&&(b=-1);var $=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,x=Bk(u),_=ice(x,2),w=_[0],I=_[1];return g("span",NA({role:"img","aria-label":a.name},f,{onClick:d,class:[y,i],tabindex:b}),[g(p_,{icon:a,primaryColor:w,secondaryColor:I,style:$},null),g(rce,null,null)])};of.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};of.displayName="AntdIcon";of.inheritAttrs=!1;of.getTwoToneColor=nce;of.setTwoToneColor=Hk;const It=of;function kA(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:o,hasFeedback:i,feedbackIcon:a,showArrow:l}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=c??g(Ko,null,null),h=b=>g(Je,null,[l!==!1&&b,i&&a]);let m=null;if(s!==void 0)m=h(s);else if(n)m=h(g(di,{spin:!0},null));else{const b=`${o}-suffix`;m=$=>{let{open:x,showSearch:_}=$;return h(x&&_?g(uy,{class:b},null):g(jh,{class:b},null))}}let v=null;u!==void 0?v=u:r?v=g(cy,null,null):v=null;let y=null;return d!==void 0?y=d:y=g(Vo,null,null),{clearIcon:f,suffixIcon:m,itemIcon:v,removeIcon:y}}function C_(e){const t=Symbol("contextKey");return{useProvide:(o,i)=>{const a=St({});return ft(t,a),ct(()=>{S(a,o,i||{})}),a},useInject:()=>it(t,e)||{}}}const b0=Symbol("ContextProps"),y0=Symbol("InternalContextProps"),Pce=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M(()=>!0);const n=he(new Map),r=(i,a)=>{n.value.set(i,a),n.value=new Map(n.value)},o=i=>{n.value.delete(i),n.value=new Map(n.value)};Nn(),Ie([t,n],()=>{}),ft(b0,e),ft(y0,{addFormItemField:r,removeFormItemField:o})},vx={id:M(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},mx={addFormItemField:()=>{},removeFormItemField:()=>{}},cr=()=>{const e=it(y0,mx),t=Symbol("FormItemFieldKey"),n=Nn();return e.addFormItemField(t,n.type),Ct(()=>{e.removeFormItemField(t)}),ft(y0,mx),ft(b0,vx),it(b0,vx)},S0=pe({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return ft(y0,mx),ft(b0,vx),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Tr=C_({}),C0=pe({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Tr.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function lo(e,t,n){return me({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const da=(e,t)=>t||e,Tce=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ece=Tce,Ace=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"}}}}},zk=pt("Space",e=>[Ace(e),Ece(e)]);var Mce="[object Symbol]";function dy(e){return typeof e=="symbol"||la(e)&&Ps(e)==Mce}function fy(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=Yce)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Qce(e){return function(){return e}}var $0=function(){try{var e=Qc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Jce=$0?function(e,t){return $0(e,"toString",{configurable:!0,enumerable:!1,value:Qce(t),writable:!0})}:$_;const eue=Jce;var Vk=Zce(eue);function tue(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}function x_(e,t,n){t=="__proto__"&&$0?$0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var iue=Object.prototype,aue=iue.hasOwnProperty;function w_(e,t,n){var r=e[t];(!(aue.call(e,t)&&Fh(r,n))||n===void 0&&!(t in e))&&x_(e,t,n)}function af(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&lue(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r0&&n(l)?t>1?Xk(l,t-1,n,r,o):Q2(o,l):r||(o[o.length]=l)}return o}function _ue(e){var t=e==null?0:e.length;return t?Xk(e,1):[]}function qk(e){return Vk(Gk(e,void 0,_ue),e+"")}var I_=hk(Object.getPrototypeOf,Object),Oue="[object Object]",Iue=Function.prototype,Pue=Object.prototype,Zk=Iue.toString,Tue=Pue.hasOwnProperty,Eue=Zk.call(Object);function hy(e){if(!la(e)||Ps(e)!=Oue)return!1;var t=I_(e);if(t===null)return!0;var n=Tue.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Zk.call(n)==Eue}function Aue(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=t||O<0||d&&P>=i}function b(){var I=iC();if(y(I))return $(I);l=setTimeout(b,v(I))}function $(I){return l=void 0,f&&r?h(I):(r=o=void 0,a)}function x(){l!==void 0&&clearTimeout(l),c=0,r=s=o=l=void 0}function _(){return l===void 0?a:$(iC())}function w(){var I=iC(),O=y(I);if(r=arguments,o=this,s=I,O){if(l===void 0)return m(s);if(d)return clearTimeout(l),l=setTimeout(b,t),h(s)}return l===void 0&&(l=setTimeout(b,t)),a}return w.cancel=x,w.flush=_,w}function yx(e,t,n){(n!==void 0&&!Fh(e[t],n)||n===void 0&&!(t in e))&&x_(e,t,n)}function d9(e){return la(e)&&Jc(e)}function Sx(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function hfe(e){return af(e,Wh(e))}function gfe(e,t,n,r,o,i,a){var l=Sx(e,n),s=Sx(t,n),c=a.get(s);if(c){yx(e,n,c);return}var u=i?i(l,s,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=xo(s),h=!f&&Ad(s),m=!f&&!h&&ey(s);u=s,f||h||m?xo(l)?u=l:d9(l)?u=Wk(l):h?(d=!1,u=Jk(s,!0)):m?(d=!1,u=n9(s,!0)):u=[]:hy(s)||Ed(s)?(u=l,Ed(l)?u=hfe(l):(!Wo(l)||q2(l))&&(u=r9(s))):d=!1}d&&(a.set(s,u),o(u,s,r,i,a),a.delete(s)),yx(e,n,u)}function f9(e,t,n,r,o){e!==t&&u9(t,function(i,a){if(o||(o=new ia),Wo(i))gfe(e,t,a,n,f9,r,o);else{var l=r?r(Sx(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),yx(e,a,l)}},Wh)}function p9(e,t,n){for(var r=-1,o=e==null?0:e.length;++r-1?o[i?t[a]:a]:void 0}}var bfe=Math.max;function yfe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:Vce(n);return o<0&&(o=bfe(r+o,0)),Kk(e,T_(t),o)}var Sfe=mfe(yfe);function Cfe(e){for(var t=-1,n=e==null?0:e.length,r={};++t=120&&u.length>=120)?new Td(a&&u):void 0}u=e[0];var d=-1,f=l[0];e:for(;++d1),i}),af(e,t9(e),n),r&&(n=$p(n,Nfe|kfe|Bfe,Lfe));for(var o=t.length;o--;)Dfe(n,t[o]);return n});function Hfe(e,t,n,r){if(!Wo(e))return e;t=lf(t,e);for(var o=-1,i=t.length,a=i-1,l=e;l!=null&&++o=Gfe){var c=t?null:Ufe(e);if(c)return Z2(c);a=!1,o=p0,s=new Td}else s=t?[]:l;e:for(;++r({compactSize:String,compactDirection:Z.oneOf(Ur("horizontal","vertical")).def("horizontal"),isFirstItem:De(),isLastItem:De()}),vy=C_(null),Es=(e,t)=>{const n=vy.useInject(),r=M(()=>{if(!n||h9(n))return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return me({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:i,[`${e.value}-compact${l}last-item`]:a,[`${e.value}-compact${l}item-rtl`]:t.value==="rtl"})});return{compactSize:M(()=>n==null?void 0:n.compactSize),compactDirection:M(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},dh=pe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return vy.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),qfe=()=>({prefixCls:String,size:{type:String},direction:Z.oneOf(Ur("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Ur("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),Zfe=pe({name:"CompactItem",props:Xfe(),setup(e,t){let{slots:n}=t;return vy.useProvide(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Qfe=pe({name:"ASpaceCompact",inheritAttrs:!1,props:qfe(),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:i}=Ve("space-compact",e),a=vy.useInject(),[l,s]=zk(o),c=M(()=>me(o.value,s.value,{[`${o.value}-rtl`]:i.value==="rtl",[`${o.value}-block`]:e.block,[`${o.value}-vertical`]:e.direction==="vertical"}));return()=>{var u;const d=ln(((u=r.default)===null||u===void 0?void 0:u.call(r))||[]);return d.length===0?null:l(g("div",V(V({},n),{},{class:[c.value,n.class]}),[d.map((f,h)=>{var m;const v=f&&f.key||`${o.value}-item-${h}`,y=!a||h9(a);return g(Zfe,{key:v,compactSize:(m=e.size)!==null&&m!==void 0?m:"middle",compactDirection:e.direction,isFirstItem:h===0&&(y||(a==null?void 0:a.isFirstItem)),isLastItem:h===d.length-1&&(y||(a==null?void 0:a.isLastItem))},{default:()=>[f]})})]))}}}),x0=Qfe,Jfe=e=>({animationDuration:e,animationFillMode:"both"}),epe=e=>({animationDuration:e,animationFillMode:"both"}),Vh=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${i}${e}-enter, - ${i}${e}-appear - `]:S(S({},Jfe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:S(S({},epe(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"}}},tpe=new Pt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),npe=new Pt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),A_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Vh(r,tpe,npe,e.motionDurationMid,t),{[` - ${o}${r}-enter, - ${o}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},rpe=new Pt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ope=new Pt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ipe=new Pt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ape=new Pt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lpe=new Pt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),spe=new Pt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),cpe=new Pt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),upe=new Pt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),dpe={"move-up":{inKeyframes:cpe,outKeyframes:upe},"move-down":{inKeyframes:rpe,outKeyframes:ope},"move-left":{inKeyframes:ipe,outKeyframes:ape},"move-right":{inKeyframes:lpe,outKeyframes:spe}},Dd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=dpe[t];return[Vh(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},my=new Pt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),by=new Pt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),yy=new Pt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Sy=new Pt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fpe=new Pt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ppe=new Pt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),hpe=new Pt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),gpe=new Pt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),vpe={"slide-up":{inKeyframes:my,outKeyframes:by},"slide-down":{inKeyframes:yy,outKeyframes:Sy},"slide-left":{inKeyframes:fpe,outKeyframes:ppe},"slide-right":{inKeyframes:hpe,outKeyframes:gpe}},Na=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=vpe[t];return[Vh(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},M_=new Pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),mpe=new Pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),rM=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),oM=new Pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),bpe=new Pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ype=new Pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Spe=new Pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Cpe=new Pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),$pe=new Pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),xpe=new Pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),wpe=new Pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_pe=new Pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ope={zoom:{inKeyframes:M_,outKeyframes:mpe},"zoom-big":{inKeyframes:rM,outKeyframes:oM},"zoom-big-fast":{inKeyframes:rM,outKeyframes:oM},"zoom-left":{inKeyframes:Spe,outKeyframes:Cpe},"zoom-right":{inKeyframes:$pe,outKeyframes:xpe},"zoom-up":{inKeyframes:bpe,outKeyframes:ype},"zoom-down":{inKeyframes:wpe,outKeyframes:_pe}},cf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ope[t];return[Vh(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}}]},Ipe=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`}}}),Kh=Ipe,iM=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Ppe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:S(S({},vt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:my},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:yy},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:by},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Sy},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:S(S({},iM(e)),{color:e.colorTextDisabled}),[`${r}`]:S(S({},iM(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":S({flex:"auto"},er),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Na(e,"slide-up"),Na(e,"slide-down"),Dd(e,"move-up"),Dd(e,"move-down")]},Tpe=Ppe,Tu=2;function v9(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return[o,i]}function lC(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=v9(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-Tu}px ${Tu*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Tu}px 0`,lineHeight:`${i}px`,content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:Tu,marginBottom:Tu,lineHeight:`${i-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Tu*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":S(S({},Xc()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function Epe(e){const{componentCls:t}=e,n=nt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=v9(e);return[lC(e),lC(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:r}}},lC(nt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function sC(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-e.lineWidth*2,a=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:S(S({},vt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function Ape(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[sC(e),sC(nt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.fontSize*1.5}}}},sC(nt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function Mpe(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":S(S({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Rpe(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function uf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:S(S({},Mpe(e,r,t)),Rpe(n,r,t))}}const Dpe=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},cC=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:S(S({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},Lpe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Npe=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:S(S({},vt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:S(S({},Dpe(e)),Lpe(e)),[`${t}-selection-item`]:S({flex:1,fontWeight:"normal"},er),[`${t}-selection-placeholder`]:S(S({},er),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:S(S({},Xc()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},kpe=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},Npe(e),Ape(e),Epe(e),Tpe(e),{[`${t}-rtl`]:{direction:"rtl"}},cC(t,nt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),cC(`${t}-status-error`,nt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),cC(`${t}-status-warning`,nt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),uf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},R_=pt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=nt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[kpe(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Cy=()=>S(S({},Ot(Mk(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:ot([Array,Object,String,Number]),defaultValue:ot([Array,Object,String,Number]),notFoundContent:Z.any,suffixIcon:Z.any,itemIcon:Z.any,size:Qe(),mode:Qe(),bordered:De(!0),transitionName:String,choiceTransitionName:Qe(""),popupClassName:String,dropdownClassName:String,placement:Qe(),status:Qe(),"onUpdate:value":Oe()}),aM="SECRET_COMBOBOX_MODE_DO_NOT_USE",wa=pe({compatConfig:{MODE:3},name:"ASelect",Option:Tse,OptGroup:Ese,inheritAttrs:!1,props:bt(Cy(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:aM,slots:Object,setup(e,t){let{attrs:n,emit:r,slots:o,expose:i}=t;const a=he(),l=cr(),s=Tr.useInject(),c=M(()=>da(s.status,e.status)),u=()=>{var Y;(Y=a.value)===null||Y===void 0||Y.focus()},d=()=>{var Y;(Y=a.value)===null||Y===void 0||Y.blur()},f=Y=>{var ne;(ne=a.value)===null||ne===void 0||ne.scrollTo(Y)},h=M(()=>{const{mode:Y}=e;if(Y!=="combobox")return Y===aM?"combobox":Y}),{prefixCls:m,direction:v,configProvider:y,renderEmpty:b,size:$,getPrefixCls:x,getPopupContainer:_,disabled:w,select:I}=Ve("select",e),{compactSize:O,compactItemClassnames:P}=Es(m,v),E=M(()=>O.value||$.value),R=jo(),A=M(()=>{var Y;return(Y=w.value)!==null&&Y!==void 0?Y:R.value}),[N,F]=R_(m),W=M(()=>x()),D=M(()=>e.placement!==void 0?e.placement:v.value==="rtl"?"bottomRight":"bottomLeft"),B=M(()=>uo(W.value,n_(D.value),e.transitionName)),k=M(()=>me({[`${m.value}-lg`]:E.value==="large",[`${m.value}-sm`]:E.value==="small",[`${m.value}-rtl`]:v.value==="rtl",[`${m.value}-borderless`]:!e.bordered,[`${m.value}-in-form-item`]:s.isFormItemInput},lo(m.value,c.value,s.hasFeedback),P.value,F.value)),L=function(){for(var Y=arguments.length,ne=new Array(Y),oe=0;oe{r("blur",Y),l.onFieldBlur()};i({blur:d,focus:u,scrollTo:f});const K=M(()=>h.value==="multiple"||h.value==="tags"),G=M(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(K.value||h.value==="combobox"));return()=>{var Y,ne,oe,J;const{notFoundContent:te,listHeight:ee=256,listItemHeight:fe=24,popupClassName:ie,dropdownClassName:X,virtual:ue,dropdownMatchSelectWidth:ye,id:H=l.id.value,placeholder:j=(Y=o.placeholder)===null||Y===void 0?void 0:Y.call(o),showArrow:q}=e,{hasFeedback:se,feedbackIcon:ae}=s;let ge;te!==void 0?ge=te:o.notFoundContent?ge=o.notFoundContent():h.value==="combobox"?ge=null:ge=(b==null?void 0:b("Select"))||g(B2,{componentName:"Select"},null);const{suffixIcon:Se,itemIcon:$e,removeIcon:_e,clearIcon:be}=S_(S(S({},e),{multiple:K.value,prefixCls:m.value,hasFeedback:se,feedbackIcon:ae,showArrow:G.value}),o),Te=Ot(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Pe=me(ie||X,{[`${m.value}-dropdown-${v.value}`]:v.value==="rtl"},F.value);return N(g(Pse,V(V(V({ref:a,virtual:ue,dropdownMatchSelectWidth:ye},Te),n),{},{showSearch:(ne=e.showSearch)!==null&&ne!==void 0?ne:(oe=I==null?void 0:I.value)===null||oe===void 0?void 0:oe.showSearch,placeholder:j,listHeight:ee,listItemHeight:fe,mode:h.value,prefixCls:m.value,direction:v.value,inputIcon:Se,menuItemSelectedIcon:$e,removeIcon:_e,clearIcon:be,notFoundContent:ge,class:[k.value,n.class],getPopupContainer:_==null?void 0:_.value,dropdownClassName:Pe,onChange:L,onBlur:z,id:H,dropdownRender:Te.dropdownRender||o.dropdownRender,transitionName:B.value,children:(J=o.default)===null||J===void 0?void 0:J.call(o),tagRender:e.tagRender||o.tagRender,optionLabelRender:o.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,showArrow:se||q,disabled:A.value}),{option:o.option}))}}});wa.install=function(e){return e.component(wa.name,wa),e.component(wa.Option.displayName,wa.Option),e.component(wa.OptGroup.displayName,wa.OptGroup),e};const Bpe=wa.Option,Fpe=wa.OptGroup,Cl=wa,D_=()=>null;D_.isSelectOption=!0;D_.displayName="AAutoCompleteOption";const dd=D_,L_=()=>null;L_.isSelectOptGroup=!0;L_.displayName="AAutoCompleteOptGroup";const hm=L_;function Hpe(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const zpe=()=>S(S({},Ot(Cy(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),jpe=dd,Wpe=hm,uC=pe({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:zpe(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:o}=t;Sn(),Sn(),Sn(!e.dropdownClassName);const i=he(),a=()=>{var u;const d=ln((u=n.default)===null||u===void 0?void 0:u.call(n));return d.length?d[0]:void 0};o({focus:()=>{var u;(u=i.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=i.value)===null||u===void 0||u.blur()}});const{prefixCls:c}=Ve("select",e);return()=>{var u,d,f;const{size:h,dataSource:m,notFoundContent:v=(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)}=e;let y;const{class:b}=r,$={[b]:!!b,[`${c.value}-lg`]:h==="large",[`${c.value}-sm`]:h==="small",[`${c.value}-show-search`]:!0,[`${c.value}-auto-complete`]:!0};if(e.options===void 0){const _=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];_.length&&Hpe(_[0])?y=_:y=m?m.map(w=>{if(Jn(w))return w;switch(typeof w){case"string":return g(dd,{key:w,value:w},{default:()=>[w]});case"object":return g(dd,{key:w.value,value:w.value},{default:()=>[w.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const x=Ot(S(S(S({},e),r),{mode:Cl.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:a,notFoundContent:v,class:$,popupClassName:e.popupClassName||e.dropdownClassName,ref:i}),["dataSource","loading"]);return g(Cl,x,V({default:()=>[y]},Ot(n,["default","dataSource","options"])))}}}),Vpe=S(uC,{Option:dd,OptGroup:hm,install(e){return e.component(uC.name,uC),e.component(dd.displayName,dd),e.component(hm.displayName,hm),e}});var Kpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const Upe=Kpe;function lM(e){for(var t=1;t({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),fhe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:h,paddingMD:m,paddingContentHorizontalLG:v}=e;return{[t]:S(S({},vt(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${h}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, - padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:v,paddingBlock:m,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:d,fontSize:a},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},phe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:h}=e;return{[t]:{"&-success":Iv(o,r,n,e,t),"&-info":Iv(h,f,d,e,t),"&-warning":Iv(l,a,i,e,t),"&-error":S(S({},Iv(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},hhe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},ghe=e=>[fhe(e),phe(e),hhe(e)],vhe=pt("Alert",e=>{const{fontSizeHeading3:t}=e,n=nt(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[ghe(n)]}),mhe={success:Tl,info:df,error:Ko,warning:El},bhe={success:m9,info:y9,error:S9,warning:b9},yhe=Ur("success","info","warning","error"),She=()=>({type:Z.oneOf(yhe),closable:{type:Boolean,default:void 0},closeText:Z.any,message:Z.any,description:Z.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:Z.any,closeIcon:Z.any,onClose:Function}),Che=pe({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:She(),setup(e,t){let{slots:n,emit:r,attrs:o,expose:i}=t;const{prefixCls:a,direction:l}=Ve("alert",e),[s,c]=vhe(a),u=ve(!1),d=ve(!1),f=ve(),h=b=>{b.preventDefault();const $=f.value;$.style.height=`${$.offsetHeight}px`,$.style.height=`${$.offsetHeight}px`,u.value=!0,r("close",b)},m=()=>{var b;u.value=!1,d.value=!0,(b=e.afterClose)===null||b===void 0||b.call(e)},v=M(()=>{const{type:b}=e;return b!==void 0?b:e.banner?"warning":"info"});i({animationEnd:m});const y=ve({});return()=>{var b,$,x,_,w,I,O,P,E,R;const{banner:A,closeIcon:N=(b=n.closeIcon)===null||b===void 0?void 0:b.call(n)}=e;let{closable:F,showIcon:W}=e;const D=($=e.closeText)!==null&&$!==void 0?$:(x=n.closeText)===null||x===void 0?void 0:x.call(n),B=(_=e.description)!==null&&_!==void 0?_:(w=n.description)===null||w===void 0?void 0:w.call(n),k=(I=e.message)!==null&&I!==void 0?I:(O=n.message)===null||O===void 0?void 0:O.call(n),L=(P=e.icon)!==null&&P!==void 0?P:(E=n.icon)===null||E===void 0?void 0:E.call(n),z=(R=n.action)===null||R===void 0?void 0:R.call(n);W=A&&W===void 0?!0:W;const K=(B?bhe:mhe)[v.value]||null;D&&(F=!0);const G=a.value,Y=me(G,{[`${G}-${v.value}`]:!0,[`${G}-closing`]:u.value,[`${G}-with-description`]:!!B,[`${G}-no-icon`]:!W,[`${G}-banner`]:!!A,[`${G}-closable`]:F,[`${G}-rtl`]:l.value==="rtl",[c.value]:!0}),ne=F?g("button",{type:"button",onClick:h,class:`${G}-close-icon`,tabindex:0},[D?g("span",{class:`${G}-close-text`},[D]):N===void 0?g(Vo,null,null):N]):null,oe=L&&(Jn(L)?Gt(L,{class:`${G}-icon`}):g("span",{class:`${G}-icon`},[L]))||g(K,{class:`${G}-icon`},null),J=Hi(`${G}-motion`,{appear:!1,css:!0,onAfterLeave:m,onBeforeLeave:te=>{te.style.maxHeight=`${te.offsetHeight}px`},onLeave:te=>{te.style.maxHeight="0px"}});return s(d.value?null:g(sr,J,{default:()=>[Ln(g("div",V(V({role:"alert"},o),{},{style:[o.style,y.value],class:[o.class,Y],"data-show":!u.value,ref:f}),[W?oe:null,g("div",{class:`${G}-content`},[k?g("div",{class:`${G}-message`},[k]):null,B?g("div",{class:`${G}-description`},[B]):null]),z?g("div",{class:`${G}-action`},[z]):null,ne]),[[Br,!u.value]])]}))}}}),$he=$n(Che),pl=["xxxl","xxl","xl","lg","md","sm","xs"],xhe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function W_(){const[,e]=Ol();return M(()=>{const t=xhe(e.value),n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=c=>{let{matches:u}=c;this.dispatch(S(S({},o),{[i]:u}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}})}function ff(){const e=ve({});let t=null;const n=W_();return lt(()=>{t=n.value.subscribe(r=>{e.value=r})}),Fr(()=>{n.value.unsubscribe(t)}),e}function ai(e){const t=ve();return ct(()=>{t.value=e()},{flush:"sync"}),t}const whe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:h,borderRadiusSM:m,lineWidth:v,lineType:y}=e,b=($,x,_)=>({width:$,height:$,lineHeight:`${$-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:_},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:x,[`> ${r}`]:{margin:0}}});return{[n]:S(S(S(S({},vt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,f)),{"&-lg":S({},b(l,u,h)),"&-sm":S({},b(s,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},_he=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},C9=pt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=nt(e,{avatarBg:n,avatarColor:t});return[whe(r),_he(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}),$9=Symbol("AvatarContextKey"),Ohe=()=>it($9,{}),Ihe=e=>ft($9,e),Phe=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Z.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),The=pe({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:Phe(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const o=ve(!0),i=ve(!1),a=ve(1),l=ve(null),s=ve(null),{prefixCls:c}=Ve("avatar",e),[u,d]=C9(c),f=Ohe(),h=M(()=>e.size==="default"?f.size:e.size),m=ff(),v=ai(()=>{if(typeof e.size!="object")return;const x=pl.find(w=>m.value[w]);return e.size[x]}),y=x=>v.value?{width:`${v.value}px`,height:`${v.value}px`,lineHeight:`${v.value}px`,fontSize:`${x?v.value/2:18}px`}:{},b=()=>{if(!l.value||!s.value)return;const x=l.value.offsetWidth,_=s.value.offsetWidth;if(x!==0&&_!==0){const{gap:w=4}=e;w*2<_&&(a.value=_-w*2{const{loadError:x}=e;(x==null?void 0:x())!==!1&&(o.value=!1)};return Ie(()=>e.src,()=>{_t(()=>{o.value=!0,a.value=1})}),Ie(()=>e.gap,()=>{_t(()=>{b()})}),lt(()=>{_t(()=>{b(),i.value=!0})}),()=>{var x,_;const{shape:w,src:I,alt:O,srcset:P,draggable:E,crossOrigin:R}=e,A=(x=f.shape)!==null&&x!==void 0?x:w,N=lr(n,e,"icon"),F=c.value,W={[`${r.class}`]:!!r.class,[F]:!0,[`${F}-lg`]:h.value==="large",[`${F}-sm`]:h.value==="small",[`${F}-${A}`]:!0,[`${F}-image`]:I&&o.value,[`${F}-icon`]:N,[d.value]:!0},D=typeof h.value=="number"?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:N?`${h.value/2}px`:"18px"}:{},B=(_=n.default)===null||_===void 0?void 0:_.call(n);let k;if(I&&o.value)k=g("img",{draggable:E,src:I,srcset:P,onError:$,alt:O,crossorigin:R},null);else if(N)k=N;else if(i.value||a.value!==1){const L=`scale(${a.value}) translateX(-50%)`,z={msTransform:L,WebkitTransform:L,transform:L},K=typeof h.value=="number"?{lineHeight:`${h.value}px`}:{};k=g(ki,{onResize:b},{default:()=>[g("span",{class:`${F}-string`,ref:l,style:S(S({},K),z)},[B])]})}else k=g("span",{class:`${F}-string`,ref:l,style:{opacity:0}},[B]);return u(g("span",V(V({},r),{},{ref:s,class:W,style:[D,y(!!N),r.style]}),[k]))}}}),$c=The,wi={adjustX:1,adjustY:1},_i=[0,0],x9={left:{points:["cr","cl"],overflow:wi,offset:[-4,0],targetOffset:_i},right:{points:["cl","cr"],overflow:wi,offset:[4,0],targetOffset:_i},top:{points:["bc","tc"],overflow:wi,offset:[0,-4],targetOffset:_i},bottom:{points:["tc","bc"],overflow:wi,offset:[0,4],targetOffset:_i},topLeft:{points:["bl","tl"],overflow:wi,offset:[0,-4],targetOffset:_i},leftTop:{points:["tr","tl"],overflow:wi,offset:[-4,0],targetOffset:_i},topRight:{points:["br","tr"],overflow:wi,offset:[0,-4],targetOffset:_i},rightTop:{points:["tl","tr"],overflow:wi,offset:[4,0],targetOffset:_i},bottomRight:{points:["tr","br"],overflow:wi,offset:[0,4],targetOffset:_i},rightBottom:{points:["bl","br"],overflow:wi,offset:[4,0],targetOffset:_i},bottomLeft:{points:["tl","bl"],overflow:wi,offset:[0,4],targetOffset:_i},leftBottom:{points:["br","bl"],overflow:wi,offset:[-4,0],targetOffset:_i}},Ehe={prefixCls:String,id:String,overlayInnerStyle:Z.any},Ahe=pe({compatConfig:{MODE:3},name:"TooltipContent",props:Ehe,setup(e,t){let{slots:n}=t;return()=>{var r;return g("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(r=n.overlay)===null||r===void 0?void 0:r.call(n)])}}});var Mhe=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{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Z.string.def("rc-tooltip"),mouseEnterDelay:Z.number.def(.1),mouseLeaveDelay:Z.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Z.object.def(()=>({})),arrowContent:Z.any.def(null),tipId:String,builtinPlacements:Z.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=ve(),a=()=>{const{prefixCls:u,tipId:d,overlayInnerStyle:f}=e;return[g("div",{class:`${u}-arrow`,key:"arrow"},[lr(n,e,"arrowContent")]),g(Ahe,{key:"content",prefixCls:u,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};o({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var u;return(u=i.value)===null||u===void 0?void 0:u.forcePopupAlign()}});const s=ve(!1),c=ve(!1);return ct(()=>{const{destroyTooltipOnHide:u}=e;if(typeof u=="boolean")s.value=u;else if(u&&typeof u=="object"){const{keepParent:d}=u;s.value=d===!0,c.value=d===!1}}),()=>{const{overlayClassName:u,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:h,overlayStyle:m,prefixCls:v,afterVisibleChange:y,transitionName:b,animation:$,placement:x,align:_,destroyTooltipOnHide:w,defaultVisible:I}=e,O=Mhe(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),P=S({},O);e.visible!==void 0&&(P.popupVisible=e.visible);const E=S(S(S({popupClassName:u,prefixCls:v,action:d,builtinPlacements:x9,popupPlacement:x,popupAlign:_,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:$,defaultPopupVisible:I,destroyPopupOnHide:s.value,autoDestroy:c.value,mouseLeaveDelay:h,popupStyle:m,mouseEnterDelay:f},P),r),{onPopupVisibleChange:e.onVisibleChange||hM,onPopupAlign:e.onPopupAlign||hM,ref:i,popup:a()});return g(tu,E,{default:n.default})}}}),V_=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:qe(),overlayInnerStyle:qe(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:qe(),builtinPlacements:qe(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),Dhe={adjustX:1,adjustY:1},gM={adjustX:0,adjustY:0},Lhe=[0,0];function vM(e){return typeof e=="boolean"?e?Dhe:gM:S(S({},gM),e)}function K_(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?S(S({},a[l]),{overflow:vM(o),targetOffset:Lhe}):S(S({},x9[l]),{overflow:vM(o)}),a[l].ignoreShake=!0}),a}function w0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),khe=["success","processing","error","default","warning"];function $y(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...Nhe,...ih].includes(e):ih.includes(e)}function Bhe(e){return khe.includes(e)}function Fhe(e,t){const n=$y(t),r=me({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function Pv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const U_=8;function w9(e){const t=U_,{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 G_(e,t){const{componentCls:n,sizePopupArrow:r,marginXXS:o,borderRadiusXS:i,borderRadiusOuter:a,boxShadowPopoverArrow:l}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:h}=w9({sizePopupArrow:r,contentRadius:u,borderRadiusOuter:a,limitVerticalRadius:d}),m=r/2+o;return{[n]:{[`${n}-arrow`]:[S(S({position:"absolute",zIndex:1,display:"block"},N2(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: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:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[Pv(["&-placement-topLeft","&-placement-top","&-placement-topRight"],c)]:{paddingBottom:m},[Pv(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],c)]:{paddingTop:m},[Pv(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],c)]:{paddingRight:{_skip_check_:!0,value:m}},[Pv(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],c)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}const Hhe=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:S(S(S(S({},vt(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:`${c/2}px ${u}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:Math.min(i,U_)}},[`${t}-content`]:{position:"relative"}}),u0(e,(f,h)=>{let{darkColor:m}=h;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},G_(nt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},zhe=(e,t)=>pt("Tooltip",r=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,s=nt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[Hhe(s),cf(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}})(e),jhe=(e,t)=>{const n={},r=S({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o])}),{picked:n,omitted:r}},_9=()=>S(S({},V_()),{title:Z.any}),O9=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),Whe=pe({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:bt(_9(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o,expose:i}=t;const{prefixCls:a,getPopupContainer:l,direction:s,rootPrefixCls:c}=Ve("tooltip",e),u=M(()=>{var R;return(R=e.open)!==null&&R!==void 0?R:e.visible}),d=he(w0([e.open,e.visible])),f=he();let h;Ie(u,R=>{mt.cancel(h),h=mt(()=>{d.value=!!R})});const m=()=>{var R;const A=(R=e.title)!==null&&R!==void 0?R:n.title;return!A&&A!==0},v=R=>{const A=m();u.value===void 0&&(d.value=A?!1:R),A||(r("update:visible",R),r("visibleChange",R),r("update:open",R),r("openChange",R))};i({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var R;return(R=f.value)===null||R===void 0?void 0:R.forcePopupAlign()}});const b=M(()=>{const{builtinPlacements:R,arrowPointAtCenter:A,autoAdjustOverflow:N}=e;return R||K_({arrowPointAtCenter:A,autoAdjustOverflow:N})}),$=R=>R||R==="",x=R=>{const A=R.type;if(typeof A=="object"&&R.props&&((A.__ANT_BUTTON===!0||A==="button")&&$(R.props.disabled)||A.__ANT_SWITCH===!0&&($(R.props.disabled)||$(R.props.loading))||A.__ANT_RADIO===!0&&$(R.props.disabled))){const{picked:N,omitted:F}=jhe(HN(R),["position","left","right","top","bottom","float","display","zIndex"]),W=S(S({display:"inline-block"},N),{cursor:"not-allowed",lineHeight:1,width:R.props&&R.props.block?"100%":void 0}),D=S(S({},F),{pointerEvents:"none"}),B=Gt(R,{style:D},!0);return g("span",{style:W,class:`${a.value}-disabled-compatible-wrapper`},[B])}return R},_=()=>{var R,A;return(R=e.title)!==null&&R!==void 0?R:(A=n.title)===null||A===void 0?void 0:A.call(n)},w=(R,A)=>{const N=b.value,F=Object.keys(N).find(W=>{var D,B;return N[W].points[0]===((D=A.points)===null||D===void 0?void 0:D[0])&&N[W].points[1]===((B=A.points)===null||B===void 0?void 0:B[1])});if(F){const W=R.getBoundingClientRect(),D={top:"50%",left:"50%"};F.indexOf("top")>=0||F.indexOf("Bottom")>=0?D.top=`${W.height-A.offset[1]}px`:(F.indexOf("Top")>=0||F.indexOf("bottom")>=0)&&(D.top=`${-A.offset[1]}px`),F.indexOf("left")>=0||F.indexOf("Right")>=0?D.left=`${W.width-A.offset[0]}px`:(F.indexOf("right")>=0||F.indexOf("Left")>=0)&&(D.left=`${-A.offset[0]}px`),R.style.transformOrigin=`${D.left} ${D.top}`}},I=M(()=>Fhe(a.value,e.color)),O=M(()=>o["data-popover-inject"]),[P,E]=zhe(a,M(()=>!O.value));return()=>{var R,A;const{openClassName:N,overlayClassName:F,overlayStyle:W,overlayInnerStyle:D}=e;let B=(A=_n((R=n.default)===null||R===void 0?void 0:R.call(n)))!==null&&A!==void 0?A:null;B=B.length===1?B[0]:B;let k=d.value;if(u.value===void 0&&m()&&(k=!1),!B)return null;const L=x(Jn(B)&&!Vee(B)?B:g("span",null,[B])),z=me({[N||`${a.value}-open`]:!0,[L.props&&L.props.class]:L.props&&L.props.class}),K=me(F,{[`${a.value}-rtl`]:s.value==="rtl"},I.value.className,E.value),G=S(S({},I.value.overlayStyle),D),Y=I.value.arrowStyle,ne=S(S(S({},o),e),{prefixCls:a.value,getPopupContainer:l==null?void 0:l.value,builtinPlacements:b.value,visible:k,ref:f,overlayClassName:K,overlayStyle:S(S({},Y),W),overlayInnerStyle:G,onVisibleChange:v,onPopupAlign:w,transitionName:uo(c.value,"zoom-big-fast",e.transitionName)});return P(g(Rhe,ne,{default:()=>[d.value?Gt(L,{class:z}):L],arrowContent:()=>g("span",{class:`${a.value}-arrow-content`},null),overlay:_}))}}}),Bo=$n(Whe),Vhe=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:i,popoverPadding:a,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:f}=e;return[{[t]:S(S({},vt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:l,padding:a},[`${t}-title`]:{minWidth:o,marginBottom:d,color:s,fontWeight:i},[`${t}-inner-content`]:{color:r}})},G_(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},Khe=e=>{const{componentCls:t}=e;return{[t]:ih.map(n=>{const r=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Uhe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:c}=e,u=a-Math.round(l*s),d=u/2,f=u/2-n,h=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},Ghe=pt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=nt(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[Vhe(o),Khe(o),r&&Uhe(o),cf(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),Yhe=()=>S(S({},V_()),{content:cn(),title:cn()}),Xhe=pe({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:bt(Yhe(),S(S({},O9()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const i=he();Sn(e.visible===void 0),n({getPopupDomNode:()=>{var f,h;return(h=(f=i.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||h===void 0?void 0:h.call(f)}});const{prefixCls:a,configProvider:l}=Ve("popover",e),[s,c]=Ghe(a),u=M(()=>l.getPrefixCls()),d=()=>{var f,h;const{title:m=_n((f=r.title)===null||f===void 0?void 0:f.call(r)),content:v=_n((h=r.content)===null||h===void 0?void 0:h.call(r))}=e,y=!!(Array.isArray(m)?m.length:m),b=!!(Array.isArray(v)?v.length:m);return!y&&!b?null:g(Je,null,[y&&g("div",{class:`${a.value}-title`},[m]),g("div",{class:`${a.value}-inner-content`},[v])])};return()=>{const f=me(e.overlayClassName,c.value);return s(g(Bo,V(V(V({},Ot(e,["title","content"])),o),{},{prefixCls:a.value,ref:i,overlayClassName:f,transitionName:uo(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:r.default}))}}}),Y_=$n(Xhe),qhe=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),Zhe=pe({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:qhe(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("avatar",e),a=M(()=>`${o.value}-group`),[l,s]=C9(o);return ct(()=>{const c={size:e.size,shape:e.shape};Ihe(c)}),()=>{const{maxPopoverPlacement:c="top",maxCount:u,maxStyle:d,maxPopoverTrigger:f="hover",shape:h}=e,m={[a.value]:!0,[`${a.value}-rtl`]:i.value==="rtl",[`${r.class}`]:!!r.class,[s.value]:!0},v=lr(n,e),y=ln(v).map(($,x)=>Gt($,{key:`avatar-key-${x}`})),b=y.length;if(u&&u[g($c,{style:d,shape:h},{default:()=>[`+${b-u}`]})]})),l(g("div",V(V({},r),{},{class:m,style:r.style}),[$]))}return l(g("div",V(V({},r),{},{class:m,style:r.style}),[y]))}}}),_0=Zhe;$c.Group=_0;$c.install=function(e){return e.component($c.name,$c),e.component(_0.name,_0),e};function mM(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),g("p",{style:i,class:me(`${t}-only-unit`,{current:r})},[n])}function Qhe(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Jhe=pe({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=M(()=>Number(e.value)),n=M(()=>Math.abs(e.count)),r=St({prevValue:t.value,prevCount:n.value}),o=()=>{r.prevValue=t.value,r.prevCount=n.value},i=he();return Ie(t,()=>{clearTimeout(i.value),i.value=setTimeout(()=>{o()},1e3)},{flush:"post"}),Fr(()=>{clearTimeout(i.value)}),()=>{let a,l={};const s=t.value;if(r.prevValue===s||Number.isNaN(s)||Number.isNaN(r.prevValue))a=[mM(S(S({},e),{current:!0}))],l={transition:"none"};else{a=[];const c=s+10,u=[];for(let h=s;h<=c;h+=1)u.push(h);const d=u.findIndex(h=>h%10===r.prevValue);a=u.map((h,m)=>{const v=h%10;return mM(S(S({},e),{value:v,offset:m-d,current:m===d}))});const f=r.prevCounto()},[a])}}});var ege=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 i;const a=S(S({},e),n),{prefixCls:l,count:s,title:c,show:u,component:d="sup",class:f,style:h}=a,m=ege(a,["prefixCls","count","title","show","component","class","style"]),v=S(S({},m),{style:h,"data-show":e.show,class:me(o.value,f),title:c});let y=s;if(s&&Number(s)%1===0){const $=String(s).split("");y=$.map((x,_)=>g(Jhe,{prefixCls:o.value,count:Number(s),value:x,key:$.length-_},null))}h&&h.borderColor&&(v.style=S(S({},h),{boxShadow:`0 0 0 1px ${h.borderColor} inset`}));const b=_n((i=r.default)===null||i===void 0?void 0:i.call(r));return b&&b.length?Gt(b,{class:me(`${o.value}-custom-component`)},!1):g(d,v,{default:()=>[y]})}}}),rge=new Pt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),oge=new Pt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ige=new Pt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),age=new Pt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),lge=new Pt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),sge=new Pt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),cge=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:o,badgeShadowSize:i,badgeHeightSm:a,motionDurationSlow:l,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${r}-scroll-number`,f=`${r}-ribbon`,h=`${r}-ribbon-wrapper`,m=u0(e,(y,b)=>{let{darkColor:$}=b;return{[`&${t} ${t}-color-${y}`]:{background:$,[`&:not(${t}-count)`]:{color:$}}}}),v=u0(e,(y,b)=>{let{darkColor:$}=b;return{[`&${f}-color-${y}`]:{background:$,color:$}}});return{[t]:S(S(S(S({},vt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:a,height:a,fontSize:e.badgeFontSizeSm,lineHeight:`${a}px`,borderRadius:a/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:sge,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:rge,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:oge,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:ige,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:age,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:lge,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${h}`]:{position:"relative"},[`${f}`]:S(S(S(S({},vt(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${o}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),v),{[`&${f}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},I9=pt("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o,marginXS:i,colorBorderBg:a}=e,l=Math.round(t*n),s=o,c="auto",u=l-2*s,d=e.colorBgContainer,f="normal",h=r,m=e.colorError,v=e.colorErrorHover,y=t,b=r/2,$=r,x=r/2,_=nt(e,{badgeFontHeight:l,badgeShadowSize:s,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:h,badgeColor:m,badgeColorHover:v,badgeShadowColor:a,badgeHeightSm:y,badgeDotSize:b,badgeFontSizeSm:$,badgeStatusSize:x,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[cge(_)]});var uge=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({prefix:String,color:{type:String},text:Z.any,placement:{type:String,default:"end"}}),O0=pe({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:dge(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:i}=Ve("ribbon",e),[a,l]=I9(o),s=M(()=>$y(e.color,!1)),c=M(()=>[o.value,`${o.value}-placement-${e.placement}`,{[`${o.value}-rtl`]:i.value==="rtl",[`${o.value}-color-${e.color}`]:s.value}]);return()=>{var u,d;const{class:f,style:h}=n,m=uge(n,["class","style"]),v={},y={};return e.color&&!s.value&&(v.background=e.color,y.color=e.color),a(g("div",V({class:`${o.value}-wrapper ${l.value}`},m),[(u=r.default)===null||u===void 0?void 0:u.call(r),g("div",{class:[c.value,f,l.value],style:S(S({},v),h)},[g("span",{class:`${o.value}-text`},[e.text||((d=r.text)===null||d===void 0?void 0:d.call(r))]),g("div",{class:`${o.value}-corner`,style:y},null)])]))}}}),I0=e=>!isNaN(parseFloat(e))&&isFinite(e),fge=()=>({count:Z.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:Z.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),xp=pe({compatConfig:{MODE:3},name:"ABadge",Ribbon:O0,inheritAttrs:!1,props:fge(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("badge",e),[a,l]=I9(o),s=M(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),c=M(()=>s.value==="0"||s.value===0),u=M(()=>e.count===null||c.value&&!e.showZero),d=M(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&u.value),f=M(()=>e.dot&&!c.value),h=M(()=>f.value?"":s.value),m=M(()=>(h.value===null||h.value===void 0||h.value===""||c.value&&!e.showZero)&&!f.value),v=he(e.count),y=he(h.value),b=he(f.value);Ie([()=>e.count,h,f],()=>{m.value||(v.value=e.count,y.value=h.value,b.value=f.value)},{immediate:!0});const $=M(()=>$y(e.color,!1)),x=M(()=>({[`${o.value}-status-dot`]:d.value,[`${o.value}-status-${e.status}`]:!!e.status,[`${o.value}-color-${e.color}`]:$.value})),_=M(()=>e.color&&!$.value?{background:e.color,color:e.color}:{}),w=M(()=>({[`${o.value}-dot`]:b.value,[`${o.value}-count`]:!b.value,[`${o.value}-count-sm`]:e.size==="small",[`${o.value}-multiple-words`]:!b.value&&y.value&&y.value.toString().length>1,[`${o.value}-status-${e.status}`]:!!e.status,[`${o.value}-color-${e.color}`]:$.value}));return()=>{var I,O;const{offset:P,title:E,color:R}=e,A=r.style,N=lr(n,e,"text"),F=o.value,W=v.value;let D=ln((I=n.default)===null||I===void 0?void 0:I.call(n));D=D.length?D:null;const B=!!(!m.value||n.count),k=(()=>{if(!P)return S({},A);const oe={marginTop:I0(P[1])?`${P[1]}px`:P[1]};return i.value==="rtl"?oe.left=`${parseInt(P[0],10)}px`:oe.right=`${-parseInt(P[0],10)}px`,S(S({},oe),A)})(),L=E??(typeof W=="string"||typeof W=="number"?W:void 0),z=B||!N?null:g("span",{class:`${F}-status-text`},[N]),K=typeof W=="object"||W===void 0&&n.count?Gt(W??((O=n.count)===null||O===void 0?void 0:O.call(n)),{style:k},!1):null,G=me(F,{[`${F}-status`]:d.value,[`${F}-not-a-wrapper`]:!D,[`${F}-rtl`]:i.value==="rtl"},r.class,l.value);if(!D&&d.value){const oe=k.color;return a(g("span",V(V({},r),{},{class:G,style:k}),[g("span",{class:x.value,style:_.value},null),g("span",{style:{color:oe},class:`${F}-status-text`},[N])]))}const Y=Hi(D?`${F}-zoom`:"",{appear:!1});let ne=S(S({},k),e.numberStyle);return R&&!$.value&&(ne=ne||{},ne.background=R),a(g("span",V(V({},r),{},{class:G}),[D,g(sr,Y,{default:()=>[Ln(g(nge,{prefixCls:e.scrollNumberPrefixCls,show:B,class:w.value,count:y.value,title:L,style:ne,key:"scrollNumber"},{default:()=>[K]}),[[Br,B]])]}),z]))}}});xp.install=function(e){return e.component(xp.name,xp),e.component(O0.name,O0),e};const Eu={adjustX:1,adjustY:1},Au=[0,0],pge={topLeft:{points:["bl","tl"],overflow:Eu,offset:[0,-4],targetOffset:Au},topCenter:{points:["bc","tc"],overflow:Eu,offset:[0,-4],targetOffset:Au},topRight:{points:["br","tr"],overflow:Eu,offset:[0,-4],targetOffset:Au},bottomLeft:{points:["tl","bl"],overflow:Eu,offset:[0,4],targetOffset:Au},bottomCenter:{points:["tc","bc"],overflow:Eu,offset:[0,4],targetOffset:Au},bottomRight:{points:["tr","br"],overflow:Eu,offset:[0,4],targetOffset:Au}},hge=pge;var gge=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);oe.visible,h=>{h!==void 0&&(i.value=h)});const a=he();o({triggerRef:a});const l=h=>{e.visible===void 0&&(i.value=!1),r("overlayClick",h)},s=h=>{e.visible===void 0&&(i.value=h),r("visibleChange",h)},c=()=>{var h;const m=(h=n.overlay)===null||h===void 0?void 0:h.call(n),v={prefixCls:`${e.prefixCls}-menu`,onClick:l};return g(Je,{key:kN},[e.arrow&&g("div",{class:`${e.prefixCls}-arrow`},null),Gt(m,v,!1)])},u=M(()=>{const{minOverlayWidthMatchTrigger:h=!e.alignPoint}=e;return h}),d=()=>{var h;const m=(h=n.default)===null||h===void 0?void 0:h.call(n);return i.value&&m?Gt(m[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):m},f=M(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:h,arrow:m,showAction:v,overlayStyle:y,trigger:b,placement:$,align:x,getPopupContainer:_,transitionName:w,animation:I,overlayClassName:O}=e,P=gge(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return g(tu,V(V({},P),{},{prefixCls:h,ref:a,popupClassName:me(O,{[`${h}-show-arrow`]:m}),popupStyle:y,builtinPlacements:hge,action:b,showAction:v,hideAction:f.value||[],popupPlacement:$,popupAlign:x,popupTransitionName:w,popupAnimation:I,popupVisible:i.value,stretch:u.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:_}),{popup:c,default:d})}}}),vge=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},mge=pt("Wave",e=>[vge(e)]);function bge(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function dC(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&bge(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function yge(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return dC(t)?t:dC(n)?n:dC(r)?r:null}function fC(e){return Number.isNaN(e)?0:e}const Sge=pe({props:{target:qe(),className:String},setup(e){const t=ve(null),[n,r]=nn(null),[o,i]=nn([]),[a,l]=nn(0),[s,c]=nn(0),[u,d]=nn(0),[f,h]=nn(0),[m,v]=nn(!1);function y(){const{target:O}=e,P=getComputedStyle(O);r(yge(O));const E=P.position==="static",{borderLeftWidth:R,borderTopWidth:A}=P;l(E?O.offsetLeft:fC(-parseFloat(R))),c(E?O.offsetTop:fC(-parseFloat(A))),d(O.offsetWidth),h(O.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:F,borderBottomLeftRadius:W,borderBottomRightRadius:D}=P;i([N,F,D,W].map(B=>fC(parseFloat(B))))}let b,$,x;const _=()=>{clearTimeout(x),mt.cancel($),b==null||b.disconnect()},w=()=>{var O;const P=(O=t.value)===null||O===void 0?void 0:O.parentElement;P&&(Pc(null,P),P.parentElement&&P.parentElement.removeChild(P))};lt(()=>{_(),x=setTimeout(()=>{w()},5e3);const{target:O}=e;O&&($=mt(()=>{y(),v(!0)}),typeof ResizeObserver<"u"&&(b=new ResizeObserver(y),b.observe(O)))}),Ct(()=>{_()});const I=O=>{O.propertyName==="opacity"&&w()};return()=>{if(!m.value)return null;const O={left:`${a.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${f.value}px`,borderRadius:o.value.map(P=>`${P}px`).join(" ")};return n&&(O["--wave-color"]=n.value),g(sr,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[g("div",{ref:t,class:e.className,style:O,onTransitionend:I},null)]})}}});function Cge(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),Pc(g(Sge,{target:e,className:t},null),n)}function $ge(e,t,n){function r(){var o;const i=No(e);!((o=n==null?void 0:n.value)===null||o===void 0)&&o.disabled||!i||Cge(i,t.value)}return r}const X_=pe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const r=Nn(),{prefixCls:o,wave:i}=Ve("wave",e),[,a]=mge(o),l=$ge(r,M(()=>me(o.value,a.value)),i);let s;const c=()=>{No(r).removeEventListener("click",s,!0)};return lt(()=>{Ie(()=>e.disabled,()=>{c(),_t(()=>{const u=No(r);u==null||u.removeEventListener("click",s,!0),!(!u||u.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!Xb(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l()},u.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Ct(()=>{c()}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});function P0(e){return e==="danger"?{danger:!0}:{type:e}}const T9=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Z.any,href:String,target:String,title:String,onClick:Tc(),onMousedown:Tc()}),bM=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},yM=e=>{_t(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},SM=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},xge=pe({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:r}=e;if(t)return g("span",{class:`${n}-loading-icon`},[g(di,null,null)]);const o=!!r;return g(sr,{name:`${n}-loading-icon-motion`,onBeforeEnter:bM,onEnter:yM,onAfterEnter:SM,onBeforeLeave:yM,onLeave:i=>{setTimeout(()=>{bM(i)})},onAfterLeave:SM},{default:()=>[o?g("span",{class:`${n}-loading-icon`},[g(di,null,null)]):null]})}}}),CM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),wge=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},CM(`${t}-primary`,o),CM(`${t}-danger`,i)]}},_ge=wge;function Oge(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Ige(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Pge(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:S(S({},Oge(e,t)),Ige(e.componentCls,t))}}const Tge=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":S({},Sl(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},$l=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),Ege=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Age=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Cx=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),T0=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:S(S({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},$l(S({backgroundColor:"transparent"},i),S({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),q_=e=>({"&:disabled":S({},Cx(e))}),E9=e=>S({},q_(e)),E0=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),A9=e=>S(S(S(S(S({},E9(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),$l({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),T0(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:S(S(S({color:e.colorError,borderColor:e.colorError},$l({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),T0(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),q_(e))}),Mge=e=>S(S(S(S(S({},E9(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),$l({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),T0(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:S(S(S({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},$l({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),T0(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),q_(e))}),Rge=e=>S(S({},A9(e)),{borderStyle:"dashed"}),Dge=e=>S(S(S({color:e.colorLink},$l({color:e.colorLinkHover},{color:e.colorLinkActive})),E0(e)),{[`&${e.componentCls}-dangerous`]:S(S({color:e.colorError},$l({color:e.colorErrorHover},{color:e.colorErrorActive})),E0(e))}),Lge=e=>S(S(S({},$l({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),E0(e)),{[`&${e.componentCls}-dangerous`]:S(S({color:e.colorError},E0(e)),$l({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Nge=e=>S(S({},Cx(e)),{[`&${e.componentCls}:hover`]:S({},Cx(e))}),kge=e=>{const{componentCls:t}=e;return{[`${t}-default`]:A9(e),[`${t}-primary`]:Mge(e),[`${t}-dashed`]:Rge(e),[`${t}-link`]:Dge(e),[`${t}-text`]:Lge(e),[`${t}-disabled`]:Nge(e)}},Z_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:l,borderRadius:s,buttonPaddingHorizontal:c}=e,u=Math.max(0,(o-i*a)/2-l),d=c-l,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:o,padding:`${u}px ${d}px`,borderRadius:s,[`&${f}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:Ege(e)},{[`${n}${n}-round${t}`]:Age(e)}]},Bge=e=>Z_(e),Fge=e=>{const t=nt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Z_(t,`${e.componentCls}-sm`)},Hge=e=>{const t=nt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Z_(t,`${e.componentCls}-lg`)},zge=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},jge=pt("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=nt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[Tge(r),Fge(r),Bge(r),Hge(r),zge(r),kge(r),_ge(r),uf(e,{focus:!1}),Pge(e)]}),Wge=()=>({prefixCls:String,size:{type:String}}),M9=C_(),A0=pe({compatConfig:{MODE:3},name:"AButtonGroup",props:Wge(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=Ve("btn-group",e),[,,i]=Ol();M9.useProvide(St({size:M(()=>e.size)}));const a=M(()=>{const{size:l}=e;let s="";switch(l){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:pn(!l,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${s}`]:s,[`${r.value}-rtl`]:o.value==="rtl",[i.value]:!0}});return()=>{var l;return g("div",{class:a.value},[ln((l=n.default)===null||l===void 0?void 0:l.call(n))])}}}),$M=/^[\u4e00-\u9fa5]{2}$/,xM=$M.test.bind($M);function Tv(e){return e==="text"||e==="link"}const Un=pe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:bt(T9(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o,expose:i}=t;const{prefixCls:a,autoInsertSpaceInButton:l,direction:s,size:c}=Ve("btn",e),[u,d]=jge(a),f=M9.useInject(),h=jo(),m=M(()=>{var D;return(D=e.disabled)!==null&&D!==void 0?D:h.value}),v=ve(null),y=ve(void 0);let b=!1;const $=ve(!1),x=ve(!1),_=M(()=>l.value!==!1),{compactSize:w,compactItemClassnames:I}=Es(a,s),O=M(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Ie(O,D=>{clearTimeout(y.value),typeof O.value=="number"?y.value=setTimeout(()=>{$.value=D},O.value):$.value=D},{immediate:!0});const P=M(()=>{const{type:D,shape:B="default",ghost:k,block:L,danger:z}=e,K=a.value,G={large:"lg",small:"sm",middle:void 0},Y=w.value||(f==null?void 0:f.size)||c.value,ne=Y&&G[Y]||"";return[I.value,{[d.value]:!0,[`${K}`]:!0,[`${K}-${B}`]:B!=="default"&&B,[`${K}-${D}`]:D,[`${K}-${ne}`]:ne,[`${K}-loading`]:$.value,[`${K}-background-ghost`]:k&&!Tv(D),[`${K}-two-chinese-chars`]:x.value&&_.value,[`${K}-block`]:L,[`${K}-dangerous`]:!!z,[`${K}-rtl`]:s.value==="rtl"}]}),E=()=>{const D=v.value;if(!D||l.value===!1)return;const B=D.textContent;b&&xM(B)?x.value||(x.value=!0):x.value&&(x.value=!1)},R=D=>{if($.value||m.value){D.preventDefault();return}o("click",D)},A=D=>{o("mousedown",D)},N=(D,B)=>{const k=B?" ":"";if(D.type===_l){let L=D.children.trim();return xM(L)&&(L=L.split("").join(k)),g("span",null,[L])}return D};return ct(()=>{pn(!(e.ghost&&Tv(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),lt(E),fo(E),Ct(()=>{y.value&&clearTimeout(y.value)}),i({focus:()=>{var D;(D=v.value)===null||D===void 0||D.focus()},blur:()=>{var D;(D=v.value)===null||D===void 0||D.blur()}}),()=>{var D,B;const{icon:k=(D=n.icon)===null||D===void 0?void 0:D.call(n)}=e,L=ln((B=n.default)===null||B===void 0?void 0:B.call(n));b=L.length===1&&!k&&!Tv(e.type);const{type:z,htmlType:K,href:G,title:Y,target:ne}=e,oe=$.value?"loading":k,J=S(S({},r),{title:Y,disabled:m.value,class:[P.value,r.class,{[`${a.value}-icon-only`]:L.length===0&&!!oe}],onClick:R,onMousedown:A});m.value||delete J.disabled;const te=k&&!$.value?k:g(xge,{existIcon:!!k,prefixCls:a.value,loading:!!$.value},null),ee=L.map(ie=>N(ie,b&&_.value));if(G!==void 0)return u(g("a",V(V({},J),{},{href:G,target:ne,ref:v}),[te,ee]));let fe=g("button",V(V({},J),{},{ref:v,type:K}),[te,ee]);if(!Tv(z)){const ie=function(){return fe}();fe=g(X_,{ref:"wave",disabled:!!$.value},{default:()=>[ie]})}return u(fe)}}});Un.Group=A0;Un.install=function(e){return e.component(Un.name,Un),e.component(A0.name,A0),e};const R9=()=>({arrow:ot([Boolean,Object]),trigger:{type:[Array,String]},menu:qe(),overlay:Z.any,visible:De(),open:De(),disabled:De(),danger:De(),autofocus:De(),align:qe(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:qe(),forceRender:De(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:De(),destroyPopupOnHide:De(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),pC=T9(),Vge=()=>S(S({},R9()),{type:pC.type,size:String,htmlType:pC.htmlType,href:String,disabled:De(),prefixCls:String,icon:Z.any,title:String,loading:pC.loading,onClick:Tc()});var Kge={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 Uge=Kge;function wM(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:r,opacityLoading:o}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:o},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},Xge=Yge,qge=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Zge=qge,Qge=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,dropdownArrowOffset:i,sizePopupArrow:a,antCls:l,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:m,controlPaddingHorizontal:v,colorBgElevated:y,boxShadowPopoverArrow:b}=e;return[{[t]:S(S({},vt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` - &-show-arrow${t}-placement-topLeft, - &-show-arrow${t}-placement-top, - &-show-arrow${t}-placement-topRight - `]:{paddingBottom:o},[` - &-show-arrow${t}-placement-bottomLeft, - &-show-arrow${t}-placement-bottom, - &-show-arrow${t}-placement-bottomRight - `]:{paddingTop:o},[`${t}-arrow`]:S({position:"absolute",zIndex:1,display:"block"},N2(a,e.borderRadiusXS,e.borderRadiusOuter,y,b)),[` - &-placement-top > ${t}-arrow, - &-placement-topLeft > ${t}-arrow, - &-placement-topRight > ${t}-arrow - `]:{bottom:o,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[` - &-placement-bottom > ${t}-arrow, - &-placement-bottomLeft > ${t}-arrow, - &-placement-bottomRight > ${t}-arrow - `]:{top:o,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:i}},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft, - &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft, - &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom, - &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom, - &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight, - &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:my},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft, - &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft, - &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top, - &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top, - &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight, - &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:yy},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft, - &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom, - &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:by},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft, - &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top, - &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Sy}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:S(S({padding:f,listStyleType:"none",backgroundColor:y,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Sl(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${v}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:S(S({clear:"both",margin:0,padding:`${u}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Sl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:y,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:v+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:y,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Na(e,"slide-up"),Na(e,"slide-down"),Dd(e,"move-up"),Dd(e,"move-down"),cf(e,"zoom-big")]]},D9=pt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:l,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,f=(i-a*l)/2,{dropdownArrowOffset:h}=w9({sizePopupArrow:o,contentRadius:d,borderRadiusOuter:u}),m=nt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:h,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[Qge(m),Xge(m),Zge(m)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var Jge=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{o("update:visible",f),o("visibleChange",f),o("update:open",f),o("openChange",f)},{prefixCls:a,direction:l,getPopupContainer:s}=Ve("dropdown",e),c=M(()=>`${a.value}-button`),[u,d]=D9(a);return()=>{var f,h;const m=S(S({},e),r),{type:v="default",disabled:y,danger:b,loading:$,htmlType:x,class:_="",overlay:w=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:I,align:O,open:P,visible:E,onVisibleChange:R,placement:A=l.value==="rtl"?"bottomLeft":"bottomRight",href:N,title:F,icon:W=((h=n.icon)===null||h===void 0?void 0:h.call(n))||g(J_,null,null),mouseEnterDelay:D,mouseLeaveDelay:B,overlayClassName:k,overlayStyle:L,destroyPopupOnHide:z,onClick:K,"onUpdate:open":G}=m,Y=Jge(m,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),ne={align:O,disabled:y,trigger:y?[]:I,placement:A,getPopupContainer:s==null?void 0:s.value,onOpenChange:i,mouseEnterDelay:D,mouseLeaveDelay:B,open:P??E,overlayClassName:k,overlayStyle:L,destroyPopupOnHide:z},oe=g(Un,{danger:b,type:v,disabled:y,loading:$,onClick:K,htmlType:x,href:N,title:F},{default:n.default}),J=g(Un,{danger:b,type:v,icon:W},null);return u(g(eve,V(V({},Y),{},{class:me(c.value,_,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:oe}):oe,g(Ta,ne,{default:()=>[n.rightButton?n.rightButton({button:J}):J],overlay:()=>w})]}))}}});var tve={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 nve=tve;function _M(e){for(var t=1;tit(L9,void 0),tO=e=>{var t,n,r;const{prefixCls:o,mode:i,selectable:a,validator:l,onClick:s,expandIcon:c}=N9()||{};ft(L9,{prefixCls:M(()=>{var u,d;return(d=(u=e.prefixCls)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:o==null?void 0:o.value}),mode:M(()=>{var u,d;return(d=(u=e.mode)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:i==null?void 0:i.value}),selectable:M(()=>{var u,d;return(d=(u=e.selectable)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:a==null?void 0:a.value}),validator:(t=e.validator)!==null&&t!==void 0?t:l,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(r=e.expandIcon)!==null&&r!==void 0?r:c==null?void 0:c.value})},k9=pe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:bt(R9(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:i,rootPrefixCls:a,direction:l,getPopupContainer:s}=Ve("dropdown",e),[c,u]=D9(i),d=M(()=>{const{placement:y="",transitionName:b}=e;return b!==void 0?b:y.includes("top")?`${a.value}-slide-down`:`${a.value}-slide-up`});tO({prefixCls:M(()=>`${i.value}-menu`),expandIcon:M(()=>g("span",{class:`${i.value}-menu-submenu-arrow`},[g(sa,{class:`${i.value}-menu-submenu-arrow-icon`},null)])),mode:M(()=>"vertical"),selectable:M(()=>!1),onClick:()=>{},validator:y=>{Sn()}});const f=()=>{var y,b,$;const x=e.overlay||((y=n.overlay)===null||y===void 0?void 0:y.call(n)),_=Array.isArray(x)?x[0]:x;if(!_)return null;const w=_.props||{};pn(!w.mode||w.mode==="vertical","Dropdown",`mode="${w.mode}" is not supported for Dropdown's Menu.`);const{selectable:I=!1,expandIcon:O=($=(b=_.children)===null||b===void 0?void 0:b.expandIcon)===null||$===void 0?void 0:$.call(b)}=w,P=typeof O<"u"&&Jn(O)?O:g("span",{class:`${i.value}-menu-submenu-arrow`},[g(sa,{class:`${i.value}-menu-submenu-arrow-icon`},null)]);return Jn(_)?Gt(_,{mode:"vertical",selectable:I,expandIcon:()=>P}):_},h=M(()=>{const y=e.placement;if(!y)return l.value==="rtl"?"bottomRight":"bottomLeft";if(y.includes("Center")){const b=y.slice(0,y.indexOf("Center"));return pn(!y.includes("Center"),"Dropdown",`You are using '${y}' placement in Dropdown, which is deprecated. Try to use '${b}' instead.`),b}return y}),m=M(()=>typeof e.visible=="boolean"?e.visible:e.open),v=y=>{o("update:visible",y),o("visibleChange",y),o("update:open",y),o("openChange",y)};return()=>{var y,b;const{arrow:$,trigger:x,disabled:_,overlayClassName:w}=e,I=(y=n.default)===null||y===void 0?void 0:y.call(n)[0],O=Gt(I,S({class:me((b=I==null?void 0:I.props)===null||b===void 0?void 0:b.class,{[`${i.value}-rtl`]:l.value==="rtl"},`${i.value}-trigger`)},_?{disabled:_}:{})),P=me(w,u.value,{[`${i.value}-rtl`]:l.value==="rtl"}),E=_?[]:x;let R;E&&E.includes("contextmenu")&&(R=!0);const A=K_({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:!0}),N=Ot(S(S(S({},e),r),{visible:m.value,builtinPlacements:A,overlayClassName:P,arrow:!!$,alignPoint:R,prefixCls:i.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:E,onVisibleChange:v,placement:h.value}),["overlay","onUpdate:visible"]);return c(g(P9,N,{default:()=>[O],overlay:f}))}}});k9.Button=fh;const Ta=k9;var ove=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({prefixCls:String,href:String,separator:Z.any,dropdownProps:qe(),overlay:Z.any,onClick:Tc()}),ph=pe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:ive(),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:i}=Ve("breadcrumb",e),a=(s,c)=>{const u=lr(n,e,"overlay");return u?g(Ta,V(V({},e.dropdownProps),{},{overlay:u,placement:"bottom"}),{default:()=>[g("span",{class:`${c}-overlay-link`},[s,g(jh,null,null)])]}):s},l=s=>{o("click",s)};return()=>{var s;const c=(s=lr(n,e,"separator"))!==null&&s!==void 0?s:"/",u=lr(n,e),{class:d,style:f}=r,h=ove(r,["class","style"]);let m;return e.href!==void 0?m=g("a",V({class:`${i.value}-link`,onClick:l},h),[u]):m=g("span",V({class:`${i.value}-link`,onClick:l},h),[u]),m=a(m,i.value),u!=null?g("li",{class:d,style:f},[m,c&&g("span",{class:`${i.value}-separator`},[c])]):null}}});function ave(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{ft(B9,e)},Al=()=>it(B9),H9=Symbol("ForceRenderKey"),lve=e=>{ft(H9,e)},z9=()=>it(H9,!1),j9=Symbol("menuFirstLevelContextKey"),W9=e=>{ft(j9,e)},sve=()=>it(j9,!0),M0=pe({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const r=Al(),o=S({},r);return e.mode!==void 0&&(o.mode=st(e,"mode")),e.overflowDisabled!==void 0&&(o.overflowDisabled=st(e,"overflowDisabled")),F9(o),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),cve=F9,V9=Symbol("siderCollapsed"),K9=Symbol("siderHookProvider"),Ev="$$__vc-menu-more__key",U9=Symbol("KeyPathContext"),nO=()=>it(U9,{parentEventKeys:M(()=>[]),parentKeys:M(()=>[]),parentInfo:{}}),uve=(e,t,n)=>{const{parentEventKeys:r,parentKeys:o}=nO(),i=M(()=>[...r.value,e]),a=M(()=>[...o.value,t]);return ft(U9,{parentEventKeys:i,parentKeys:a,parentInfo:n}),a},G9=Symbol("measure"),OM=pe({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return ft(G9,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),rO=()=>it(G9,!1),dve=uve;function Y9(e){const{mode:t,rtl:n,inlineIndent:r}=Al();return M(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`})}let fve=0;const pve=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Z.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:qe()}),Ea=pe({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:pve(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const i=Nn(),a=rO(),l=typeof i.vnode.key=="symbol"?String(i.vnode.key):i.vnode.key;pn(typeof i.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(l)}"\` not support Symbol type`);const s=`menu_item_${++fve}_$$_${l}`,{parentEventKeys:c,parentKeys:u}=nO(),{prefixCls:d,activeKeys:f,disabled:h,changeActiveKeys:m,rtl:v,inlineCollapsed:y,siderCollapsed:b,onItemClick:$,selectedKeys:x,registerMenuInfo:_,unRegisterMenuInfo:w}=Al(),I=sve(),O=ve(!1),P=M(()=>[...u.value,l]);_(s,{eventKey:s,key:l,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Ct(()=>{w(s)}),Ie(f,()=>{O.value=!!f.value.find(G=>G===l)},{immediate:!0});const R=M(()=>h.value||e.disabled),A=M(()=>x.value.includes(l)),N=M(()=>{const G=`${d.value}-item`;return{[`${G}`]:!0,[`${G}-danger`]:e.danger,[`${G}-active`]:O.value,[`${G}-selected`]:A.value,[`${G}-disabled`]:R.value}}),F=G=>({key:l,eventKey:s,keyPath:P.value,eventKeyPath:[...c.value,s],domEvent:G,item:S(S({},e),o)}),W=G=>{if(R.value)return;const Y=F(G);r("click",G),$(Y)},D=G=>{R.value||(m(P.value),r("mouseenter",G))},B=G=>{R.value||(m([]),r("mouseleave",G))},k=G=>{if(r("keydown",G),G.which===Fe.ENTER){const Y=F(G);r("click",G),$(Y)}},L=G=>{m(P.value),r("focus",G)},z=(G,Y)=>{const ne=g("span",{class:`${d.value}-title-content`},[Y]);return(!G||Jn(Y)&&Y.type==="span")&&Y&&y.value&&I&&typeof Y=="string"?g("div",{class:`${d.value}-inline-collapsed-noicon`},[Y.charAt(0)]):ne},K=Y9(M(()=>P.value.length));return()=>{var G,Y,ne,oe,J;if(a)return null;const te=(G=e.title)!==null&&G!==void 0?G:(Y=n.title)===null||Y===void 0?void 0:Y.call(n),ee=ln((ne=n.default)===null||ne===void 0?void 0:ne.call(n)),fe=ee.length;let ie=te;typeof te>"u"?ie=I&&fe?ee:"":te===!1&&(ie="");const X={title:ie};!b.value&&!y.value&&(X.title=null,X.open=!1);const ue={};e.role==="option"&&(ue["aria-selected"]=A.value);const ye=(oe=e.icon)!==null&&oe!==void 0?oe:(J=n.icon)===null||J===void 0?void 0:J.call(n,e);return g(Bo,V(V({},X),{},{placement:v.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[g(ud.Item,V(V(V({component:"li"},o),{},{id:e.id,style:S(S({},o.style||{}),K.value),class:[N.value,{[`${o.class}`]:!!o.class,[`${d.value}-item-only-child`]:(ye?fe+1:fe)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},ue),{},{onMouseenter:D,onMouseleave:B,onClick:W,onKeydown:k,onFocus:L,title:typeof te=="string"?te:void 0}),{default:()=>[Gt(typeof ye=="function"?ye(e.originItemValue):ye,{class:`${d.value}-item-icon`},!1),z(ye,ee)]})]})}}}),fs={adjustX:1,adjustY:1},hve={topLeft:{points:["bl","tl"],overflow:fs,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fs,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fs,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fs,offset:[4,0]}},gve={topLeft:{points:["bl","tl"],overflow:fs,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fs,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fs,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fs,offset:[4,0]}},vve={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},IM=pe({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:r}=t;const o=ve(!1),{getPopupContainer:i,rtl:a,subMenuOpenDelay:l,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:f,defaultMotions:h,rootClassName:m}=Al(),v=z9(),y=M(()=>a.value?S(S({},gve),c.value):S(S({},hve),c.value)),b=M(()=>vve[e.mode]),$=ve();Ie(()=>e.visible,w=>{mt.cancel($.value),$.value=mt(()=>{o.value=w})},{immediate:!0}),Ct(()=>{mt.cancel($.value)});const x=w=>{r("visibleChange",w)},_=M(()=>{var w,I;const O=f.value||((w=h.value)===null||w===void 0?void 0:w[e.mode])||((I=h.value)===null||I===void 0?void 0:I.other),P=typeof O=="function"?O():O;return P?Hi(P.name,{css:!0}):void 0});return()=>{const{prefixCls:w,popupClassName:I,mode:O,popupOffset:P,disabled:E}=e;return g(tu,{prefixCls:w,popupClassName:me(`${w}-popup`,{[`${w}-rtl`]:a.value},I,m.value),stretch:O==="horizontal"?"minWidth":null,getPopupContainer:i.value,builtinPlacements:y.value,popupPlacement:b.value,popupVisible:o.value,popupAlign:P&&{offset:P},action:E?[]:[u.value],mouseEnterDelay:l.value,mouseLeaveDelay:s.value,onPopupVisibleChange:x,forceRender:v||d.value,popupAnimation:_.value},{popup:n.popup,default:n.default})}}}),X9=(e,t)=>{let{slots:n,attrs:r}=t;var o;const{prefixCls:i,mode:a}=Al();return g("ul",V(V({},r),{},{class:me(i.value,`${i.value}-sub`,`${i.value}-${a.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(o=n.default)===null||o===void 0?void 0:o.call(n)])};X9.displayName="SubMenuList";const q9=X9,mve=pe({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const r=M(()=>"inline"),{motion:o,mode:i,defaultMotions:a}=Al(),l=M(()=>i.value===r.value),s=he(!l.value),c=M(()=>l.value?e.open:!1);Ie(i,()=>{l.value&&(s.value=!1)},{flush:"post"});const u=M(()=>{var d,f;const h=o.value||((d=a.value)===null||d===void 0?void 0:d[r.value])||((f=a.value)===null||f===void 0?void 0:f.other),m=typeof h=="function"?h():h;return S(S({},m),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:g(M0,{mode:r.value},{default:()=>[g(sr,u.value,{default:()=>[Ln(g(q9,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[Br,c.value]])]})]})}}});let PM=0;const bve=()=>({icon:Z.any,title:Z.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:qe()}),Rc=pe({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:bve(),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;var i,a;W9(!1);const l=rO(),s=Nn(),c=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;pn(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=V$(c)?c:`sub_menu_${++PM}_$$_not_set_key`,d=(i=e.eventKey)!==null&&i!==void 0?i:V$(c)?`sub_menu_${++PM}_$$_${c}`:u,{parentEventKeys:f,parentInfo:h,parentKeys:m}=nO(),v=M(()=>[...m.value,u]),y=ve([]),b={eventKey:d,key:u,parentEventKeys:f,childrenEventKeys:y,parentKeys:m};(a=h.childrenEventKeys)===null||a===void 0||a.value.push(d),Ct(()=>{var Se;h.childrenEventKeys&&(h.childrenEventKeys.value=(Se=h.childrenEventKeys)===null||Se===void 0?void 0:Se.value.filter($e=>$e!=d))}),dve(d,u,b);const{prefixCls:$,activeKeys:x,disabled:_,changeActiveKeys:w,mode:I,inlineCollapsed:O,openKeys:P,overflowDisabled:E,onOpenChange:R,registerMenuInfo:A,unRegisterMenuInfo:N,selectedSubMenuKeys:F,expandIcon:W,theme:D}=Al(),B=c!=null,k=!l&&(z9()||!B);lve(k),(l&&B||!l&&!B||k)&&(A(d,b),Ct(()=>{N(d)}));const L=M(()=>`${$.value}-submenu`),z=M(()=>_.value||e.disabled),K=ve(),G=ve(),Y=M(()=>P.value.includes(u)),ne=M(()=>!E.value&&Y.value),oe=M(()=>F.value.includes(u)),J=ve(!1);Ie(x,()=>{J.value=!!x.value.find(Se=>Se===u)},{immediate:!0});const te=Se=>{z.value||(o("titleClick",Se,u),I.value==="inline"&&R(u,!Y.value))},ee=Se=>{z.value||(w(v.value),o("mouseenter",Se))},fe=Se=>{z.value||(w([]),o("mouseleave",Se))},ie=Y9(M(()=>v.value.length)),X=Se=>{I.value!=="inline"&&R(u,Se)},ue=()=>{w(v.value)},ye=d&&`${d}-popup`,H=M(()=>me($.value,`${$.value}-${e.theme||D.value}`,e.popupClassName)),j=(Se,$e)=>{if(!$e)return O.value&&!m.value.length&&Se&&typeof Se=="string"?g("div",{class:`${$.value}-inline-collapsed-noicon`},[Se.charAt(0)]):g("span",{class:`${$.value}-title-content`},[Se]);const _e=Jn(Se)&&Se.type==="span";return g(Je,null,[Gt(typeof $e=="function"?$e(e.originItemValue):$e,{class:`${$.value}-item-icon`},!1),_e?Se:g("span",{class:`${$.value}-title-content`},[Se])])},q=M(()=>I.value!=="inline"&&v.value.length>1?"vertical":I.value),se=M(()=>I.value==="horizontal"?"vertical":I.value),ae=M(()=>q.value==="horizontal"?"vertical":q.value),ge=()=>{var Se,$e;const _e=L.value,be=(Se=e.icon)!==null&&Se!==void 0?Se:($e=n.icon)===null||$e===void 0?void 0:$e.call(n,e),Te=e.expandIcon||n.expandIcon||W.value,Pe=j(lr(n,e,"title"),be);return g("div",{style:ie.value,class:`${_e}-title`,tabindex:z.value?null:-1,ref:K,title:typeof Pe=="string"?Pe:null,"data-menu-id":u,"aria-expanded":ne.value,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":z.value,onClick:te,onFocus:ue},[Pe,I.value!=="horizontal"&&Te?Te(S(S({},e),{isOpen:ne.value})):g("i",{class:`${_e}-arrow`},null)])};return()=>{var Se;if(l)return B?(Se=n.default)===null||Se===void 0?void 0:Se.call(n):null;const $e=L.value;let _e=()=>null;if(!E.value&&I.value!=="inline"){const be=I.value==="horizontal"?[0,8]:[10,0];_e=()=>g(IM,{mode:q.value,prefixCls:$e,visible:!e.internalPopupClose&&ne.value,popupClassName:H.value,popupOffset:e.popupOffset||be,disabled:z.value,onVisibleChange:X},{default:()=>[ge()],popup:()=>g(M0,{mode:ae.value},{default:()=>[g(q9,{id:ye,ref:G},{default:n.default})]})})}else _e=()=>g(IM,null,{default:ge});return g(M0,{mode:se.value},{default:()=>[g(ud.Item,V(V({component:"li"},r),{},{role:"none",class:me($e,`${$e}-${I.value}`,r.class,{[`${$e}-open`]:ne.value,[`${$e}-active`]:J.value,[`${$e}-selected`]:oe.value,[`${$e}-disabled`]:z.value}),onMouseenter:ee,onMouseleave:fe,"data-submenu-id":u}),{default:()=>g(Je,null,[_e(),!E.value&&g(mve,{id:ye,open:ne.value,keyPath:v.value},{default:n.default})])})]})}}});function Z9(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function $x(e,t){e.classList?e.classList.add(t):Z9(e,t)||(e.className=`${e.className} ${t}`)}function xx(e,t){if(e.classList)e.classList.remove(t);else if(Z9(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Uh=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",$x(n,e)},onEnter:n=>{_t(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(xx(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{$x(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(xx(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},yve=()=>({title:Z.any,originItemValue:qe()}),hh=pe({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:yve(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=Al(),i=M(()=>`${o.value}-item-group`),a=rO();return()=>{var l,s;return a?(l=n.default)===null||l===void 0?void 0:l.call(n):g("li",V(V({},r),{},{onClick:c=>c.stopPropagation(),class:i.value}),[g("div",{title:typeof e.title=="string"?e.title:void 0,class:`${i.value}-title`},[lr(n,e,"title")]),g("ul",{class:`${i.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),Sve=()=>({prefixCls:String,dashed:Boolean}),gh=pe({compatConfig:{MODE:3},name:"AMenuDivider",props:Sve(),setup(e){const{prefixCls:t}=Al(),n=M(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>g("li",{class:n.value},null)}});var Cve=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(r&&typeof r=="object"){const i=r,{label:a,children:l,key:s,type:c}=i,u=Cve(i,["label","children","key","type"]),d=s??`tmp-${o}`,f=n?n.parentKeys.slice():[],h=[],m={eventKey:d,key:d,parentEventKeys:he(f),parentKeys:he(f),childrenEventKeys:he(h),isLeaf:!1};if(l||c==="group"){if(c==="group"){const y=wx(l,t,n);return g(hh,V(V({key:d},u),{},{title:a,originItemValue:r}),{default:()=>[y]})}t.set(d,m),n&&n.childrenEventKeys.push(d);const v=wx(l,t,{childrenEventKeys:h,parentKeys:[].concat(f,d)});return g(Rc,V(V({key:d},u),{},{title:a,originItemValue:r}),{default:()=>[v]})}return c==="divider"?g(gh,V({key:d},u),null):(m.isLeaf=!0,t.set(d,m),g(Ea,V(V({key:d},u),{},{originItemValue:r}),{default:()=>[a]}))}return null}).filter(r=>r)}function $ve(e){const t=ve([]),n=ve(!1),r=ve(new Map);return Ie(()=>e.items,()=>{const o=new Map;n.value=!1,e.items?(n.value=!0,t.value=wx(e.items,o)):t.value=void 0,r.value=o},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}const xve=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"}}}},wve=xve,_ve=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})`}}}}},Ove=_ve,TM=e=>S({},yl(e)),Ive=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:i,colorItemBg:a,colorSubItemBg:l,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:m,menuItemPaddingInline:v,motionDurationMid:y,colorItemTextHover:b,lineType:$,colorSplit:x,colorItemTextDisabled:_,colorDangerItemText:w,colorDangerItemTextHover:I,colorDangerItemTextSelected:O,colorDangerItemBgActive:P,colorDangerItemBgSelected:E,colorItemBgHover:R,menuSubMenuBg:A,colorItemTextSelectedHorizontal:N,colorItemBgSelectedHorizontal:F}=e;return{[`${n}-${t}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:S({},TM(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:I}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:S({},TM(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:S(S({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:F,"&::after":{borderBottomWidth:c,borderBottomColor:N}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${$} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${m}`,`opacity ${y} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${h}`,`opacity ${y} ${h}`].join(",")}}}}}},EM=Ive,AM=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}}},Pve=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:m}=e,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":S({[`&${t}-root`]:{boxShadow:"none"}},AM(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:S(S({},AM(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 ${f}`,`background ${f}`,`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`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:S(S({},er),{paddingInline:h})}}]},Tve=Pve,MM=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`]:S({},Xc()),[`&${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"}}}},RM=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}, opacity ${n}`},"&-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})`}}}}},Eve=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:l,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:h,radiusSubMenuItem:m,menuArrowSize:v,menuArrowOffset:y,lineType:b,menuPanelMaskInset:$}=e;return[{"":{[`${n}`]:S(S({},aa()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:S(S(S(S(S(S(S({},vt(e)),aa()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}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:u,borderStyle:b,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),MM(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:h,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${$}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:$},[`> ${n}`]:S(S(S({borderRadius:h},MM(e)),RM(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),RM(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${y})`},"&::after":{transform:`rotate(45deg) translateX(-${y})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${y})`},"&::before":{transform:`rotate(45deg) translateX(${y})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Ave=(e,t)=>pt("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:a,colorPrimary:l,colorError:s,colorErrorHover:c,colorTextLightSolid:u}=r,{controlHeightLG:d,fontSize:f}=r,h=f/7*5,m=nt(r,{menuItemHeight:d,menuItemPaddingInline:r.margin,menuArrowSize:h,menuHorizontalHeight:d*1.15,menuArrowOffset:`${h*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),v=new Zt(u).setAlpha(.65).toRgbString(),y=nt(m,{colorItemText:v,colorItemTextHover:u,colorGroupTitle:v,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Zt(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:c,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:l},S({},i));return[Eve(m),wve(m),Tve(m),EM(m,"light"),EM(y,"dark"),Ove(m),Kh(m),Na(m,"slide-up"),Na(m,"slide-down"),cf(m,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:y}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:o,colorGroupTitle:c,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:u,colorItemBgHover:y,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:v,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:m,colorActiveBarBorderSize:h,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e),Mve=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),DM=[],qn=pe({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Mve(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{direction:i,getPrefixCls:a}=Ve("menu",e),l=N9(),s=M(()=>{var te;return a("menu",e.prefixCls||((te=l==null?void 0:l.prefixCls)===null||te===void 0?void 0:te.value))}),[c,u]=Ave(s,M(()=>!l)),d=ve(new Map),f=it(V9,he(void 0)),h=M(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:m}=$ve(e),v=ve(!1);lt(()=>{v.value=!0}),ct(()=>{pn(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),pn(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const y=he([]),b=he([]),$=he({});Ie(d,()=>{const te={};for(const ee of d.value.values())te[ee.key]=ee;$.value=te},{flush:"post"}),ct(()=>{if(e.activeKey!==void 0){let te=[];const ee=e.activeKey?$.value[e.activeKey]:void 0;ee&&e.activeKey!==void 0?te=aC([].concat(wt(ee.parentKeys),e.activeKey)):te=[],Vu(y.value,te)||(y.value=te)}}),Ie(()=>e.selectedKeys,te=>{te&&(b.value=te.slice())},{immediate:!0,deep:!0});const x=he([]);Ie([$,b],()=>{let te=[];b.value.forEach(ee=>{const fe=$.value[ee];fe&&(te=te.concat(wt(fe.parentKeys)))}),te=aC(te),Vu(x.value,te)||(x.value=te)},{immediate:!0});const _=te=>{if(e.selectable){const{key:ee}=te,fe=b.value.includes(ee);let ie;e.multiple?fe?ie=b.value.filter(ue=>ue!==ee):ie=[...b.value,ee]:ie=[ee];const X=S(S({},te),{selectedKeys:ie});Vu(ie,b.value)||(e.selectedKeys===void 0&&(b.value=ie),r("update:selectedKeys",ie),fe&&e.multiple?r("deselect",X):r("select",X))}R.value!=="inline"&&!e.multiple&&w.value.length&&F(DM)},w=he([]);Ie(()=>e.openKeys,function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w.value;Vu(w.value,te)||(w.value=te.slice())},{immediate:!0,deep:!0});let I;const O=te=>{clearTimeout(I),I=setTimeout(()=>{e.activeKey===void 0&&(y.value=te),r("update:activeKey",te[te.length-1])})},P=M(()=>!!e.disabled),E=M(()=>i.value==="rtl"),R=he("vertical"),A=ve(!1);ct(()=>{var te;(e.mode==="inline"||e.mode==="vertical")&&h.value?(R.value="vertical",A.value=h.value):(R.value=e.mode,A.value=!1),!((te=l==null?void 0:l.mode)===null||te===void 0)&&te.value&&(R.value=l.mode.value)});const N=M(()=>R.value==="inline"),F=te=>{w.value=te,r("update:openKeys",te),r("openChange",te)},W=he(w.value),D=ve(!1);Ie(w,()=>{N.value&&(W.value=w.value)},{immediate:!0}),Ie(N,()=>{if(!D.value){D.value=!0;return}N.value?w.value=W.value:F(DM)},{immediate:!0});const B=M(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${R.value}`]:!0,[`${s.value}-inline-collapsed`]:A.value,[`${s.value}-rtl`]:E.value,[`${s.value}-${e.theme}`]:!0})),k=M(()=>a()),L=M(()=>({horizontal:{name:`${k.value}-slide-up`},inline:Uh(`${k.value}-motion-collapse`),other:{name:`${k.value}-zoom-big`}}));W9(!0);const z=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const ee=[],fe=d.value;return te.forEach(ie=>{const{key:X,childrenEventKeys:ue}=fe.get(ie);ee.push(X,...z(wt(ue)))}),ee},K=te=>{var ee;r("click",te),_(te),(ee=l==null?void 0:l.onClick)===null||ee===void 0||ee.call(l)},G=(te,ee)=>{var fe;const ie=((fe=$.value[te])===null||fe===void 0?void 0:fe.childrenEventKeys)||[];let X=w.value.filter(ue=>ue!==te);if(ee)X.push(te);else if(R.value!=="inline"){const ue=z(wt(ie));X=aC(X.filter(ye=>!ue.includes(ye)))}Vu(w,X)||F(X)},Y=(te,ee)=>{d.value.set(te,ee),d.value=new Map(d.value)},ne=te=>{d.value.delete(te),d.value=new Map(d.value)},oe=he(0),J=M(()=>{var te;return e.expandIcon||n.expandIcon||!((te=l==null?void 0:l.expandIcon)===null||te===void 0)&&te.value?ee=>{let fe=e.expandIcon||n.expandIcon;return fe=typeof fe=="function"?fe(ee):fe,Gt(fe,{class:`${s.value}-submenu-expand-icon`},!1)}:null});return cve({prefixCls:s,activeKeys:y,openKeys:w,selectedKeys:b,changeActiveKeys:O,disabled:P,rtl:E,mode:R,inlineIndent:M(()=>e.inlineIndent),subMenuCloseDelay:M(()=>e.subMenuCloseDelay),subMenuOpenDelay:M(()=>e.subMenuOpenDelay),builtinPlacements:M(()=>e.builtinPlacements),triggerSubMenuAction:M(()=>e.triggerSubMenuAction),getPopupContainer:M(()=>e.getPopupContainer),inlineCollapsed:A,theme:M(()=>e.theme),siderCollapsed:f,defaultMotions:M(()=>v.value?L.value:null),motion:M(()=>v.value?e.motion:null),overflowDisabled:ve(void 0),onOpenChange:G,onItemClick:K,registerMenuInfo:Y,unRegisterMenuInfo:ne,selectedSubMenuKeys:x,expandIcon:J,forceSubMenuRender:M(()=>e.forceSubMenuRender),rootClassName:u}),()=>{var te,ee;const fe=m.value||ln((te=n.default)===null||te===void 0?void 0:te.call(n)),ie=oe.value>=fe.length-1||R.value!=="horizontal"||e.disabledOverflow,X=R.value!=="horizontal"||e.disabledOverflow?fe:fe.map((ye,H)=>g(M0,{key:ye.key,overflowDisabled:H>oe.value},{default:()=>ye})),ue=((ee=n.overflowedIndicator)===null||ee===void 0?void 0:ee.call(n))||g(J_,null,null);return c(g(ud,V(V({},o),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:Ea,class:[B.value,o.class,u.value],role:"menu",id:e.id,data:X,renderRawItem:ye=>ye,renderRawRest:ye=>{const H=ye.length,j=H?fe.slice(-H):null;return g(Je,null,[g(Rc,{eventKey:Ev,key:Ev,title:ue,disabled:ie,internalPopupClose:H===0},{default:()=>j}),g(OM,null,{default:()=>[g(Rc,{eventKey:Ev,key:Ev,title:ue,disabled:ie,internalPopupClose:H===0},{default:()=>j})]})])},maxCount:R.value!=="horizontal"||e.disabledOverflow?ud.INVALIDATE:ud.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ye=>{oe.value=ye}}),{default:()=>[g(Mb,{to:"body"},{default:()=>[g("div",{style:{display:"none"},"aria-hidden":!0},[g(OM,null,{default:()=>[X]})])]})]}))}}});qn.install=function(e){return e.component(qn.name,qn),e.component(Ea.name,Ea),e.component(Rc.name,Rc),e.component(gh.name,gh),e.component(hh.name,hh),e};qn.Item=Ea;qn.Divider=gh;qn.SubMenu=Rc;qn.ItemGroup=hh;const Rve=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:S(S({},vt(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:S({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Sl(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` - > ${n} + span, - > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Dve=pt("Breadcrumb",e=>{const t=nt(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[Rve(t)]}),Lve=()=>({prefixCls:String,routes:{type:Array},params:Z.any,separator:Z.any,itemRender:{type:Function}});function Nve(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(o,i)=>t[i]||o)}function LM(e){const{route:t,params:n,routes:r,paths:o}=e,i=r.indexOf(t)===r.length-1,a=Nve(t,n);return i?g("span",null,[a]):g("a",{href:`#/${o.join("/")}`},[a])}const xc=pe({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:Lve(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("breadcrumb",e),[a,l]=Dve(o),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(h=>{d=d.replace(`:${h}`,f[h])}),d),c=(d,f,h)=>{const m=[...d],v=s(f||"",h);return v&&m.push(v),m},u=d=>{let{routes:f=[],params:h={},separator:m,itemRender:v=LM}=d;const y=[];return f.map(b=>{const $=s(b.path,h);$&&y.push($);const x=[...y];let _=null;b.children&&b.children.length&&(_=g(qn,{items:b.children.map(I=>({key:I.path||I.breadcrumbName,label:v({route:I,params:h,routes:f,paths:c(x,I.path,h)})}))},null));const w={separator:m};return _&&(w.overlay=_),g(ph,V(V({},w),{},{key:$||b.breadcrumbName}),{default:()=>[v({route:b,params:h,routes:f,paths:x})]})})};return()=>{var d;let f;const{routes:h,params:m={}}=e,v=ln(lr(n,e)),y=(d=lr(n,e,"separator"))!==null&&d!==void 0?d:"/",b=e.itemRender||n.itemRender||LM;h&&h.length>0?f=u({routes:h,params:m,separator:y,itemRender:b}):v.length&&(f=v.map((x,_)=>(Sn(typeof x.type=="object"&&(x.type.__ANT_BREADCRUMB_ITEM||x.type.__ANT_BREADCRUMB_SEPARATOR)),kr(x,{separator:y,key:_}))));const $={[o.value]:!0,[`${o.value}-rtl`]:i.value==="rtl",[`${r.class}`]:!!r.class,[l.value]:!0};return a(g("nav",V(V({},r),{},{class:$}),[g("ol",null,[f])]))}}});var kve=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({prefixCls:String}),R0=pe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Bve(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=Ve("breadcrumb",e);return()=>{var i;const{separator:a,class:l}=r,s=kve(r,["separator","class"]),c=ln((i=n.default)===null||i===void 0?void 0:i.call(n));return g("span",V({class:[`${o.value}-separator`,l]},s),[c.length>0?c:"/"])}}});xc.Item=ph;xc.Separator=R0;xc.install=function(e){return e.component(xc.name,xc),e.component(ph.name,ph),e.component(R0.name,R0),e};var Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lo,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var D=["th","st","nd","rd"],B=W%100;return"["+W+(D[(B-20)%10]||D[B]||D[0])+"]"}},x=function(W,D,B){var k=String(W);return!k||k.length>=D?W:""+Array(D+1-k.length).join(B)+W},_={s:x,z:function(W){var D=-W.utcOffset(),B=Math.abs(D),k=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function W(D,B){if(D.date()1)return W(K[0])}else{var G=D.name;I[G]=D,L=G}return!k&&L&&(w=L),L||!k&&w},R=function(W,D){if(P(W))return W.clone();var B=typeof D=="object"?D:{};return B.date=W,B.args=arguments,new N(B)},A=_;A.l=E,A.i=P,A.w=function(W,D){return R(W,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=function(){function W(B){this.$L=E(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[O]=!0}var D=W.prototype;return D.parse=function(B){this.$d=function(k){var L=k.date,z=k.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(y);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return z?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==v},D.isSame=function(B,k){var L=R(B);return this.startOf(k)<=L&&L<=this.endOf(k)},D.isAfter=function(B,k){return R(B)25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var f=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),h=this.diff(f,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(tB);var Vve=tB.exports;const Kve=Ba(Vve);var nB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lo,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(nB);var Uve=nB.exports;const Gve=Ba(Uve);var rB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lo,function(){var n="month",r="quarter";return function(o,i){var a=i.prototype;a.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=a.add;a.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):l.bind(this)(c,u)};var s=a.startOf;a.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;if(d.p(c)===r){var h=this.quarter()-1;return f?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return s.bind(this)(c,u)}}})})(rB);var Yve=rB.exports;const Xve=Ba(Yve);var oB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lo,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var l=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),d==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return d}});return i.bind(this)(u)}}})})(oB);var qve=oB.exports;const Zve=Ba(qve);var iB={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},s=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(y){this[v]=+y}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),$=60*b[1]+(+b[2]||0);return $===0?0:b[0]==="+"?-$:$}(v)}],d=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},f=function(v,y){var b,$=l.meridiem;if($){for(var x=1;x<=24;x+=1)if(v.indexOf($(x,0,y))>-1){b=x>12;break}}else b=v===(y?"pm":"PM");return b},h={A:[a,function(v){this.afternoon=f(v,!1)}],a:[a,function(v){this.afternoon=f(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[o,c("day")],Do:[a,function(v){var y=l.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===v&&(this.day=$)}],M:[i,c("month")],MM:[o,c("month")],MMM:[a,function(v){var y=d("months"),b=(d("monthsShort")||y.map(function($){return $.slice(0,3)})).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[a,function(v){var y=d("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(v){this.year=s(v)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};function m(v){var y,b;y=v,b=l&&l.formats;for(var $=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,R,A){var N=A&&A.toUpperCase();return R||b[A]||n[A]||b[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,W,D){return W||D.slice(1)})})).match(r),x=$.length,_=0;_-1)return new Date((k==="X"?1e3:1)*B);var z=m(k)(B),K=z.year,G=z.month,Y=z.day,ne=z.hours,oe=z.minutes,J=z.seconds,te=z.milliseconds,ee=z.zone,fe=new Date,ie=Y||(K||G?1:fe.getDate()),X=K||fe.getFullYear(),ue=0;K&&!G||(ue=G>0?G-1:fe.getMonth());var ye=ne||0,H=oe||0,j=J||0,q=te||0;return ee?new Date(Date.UTC(X,ue,ie,ye,H,j,q+60*ee.offset*1e3)):L?new Date(Date.UTC(X,ue,ie,ye,H,j,q)):new Date(X,ue,ie,ye,H,j,q)}catch{return new Date("")}}(w,P,I),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),A&&w!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var F=P.length,W=1;W<=F;W+=1){O[1]=P[W-1];var D=b.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}W===F&&(this.$d=new Date(""))}else x.call(this,_)}}})})(iB);var Qve=iB.exports;const Jve=Ba(Qve);$r.extend(Jve);$r.extend(Zve);$r.extend(zve);$r.extend(Wve);$r.extend(Kve);$r.extend(Gve);$r.extend(Xve);$r.extend((e,t)=>{const n=t.prototype,r=n.format;n.format=function(i){const a=(i||"").replace("Wo","wo");return r.bind(this)(a)}});const eme={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Qs=e=>eme[e]||e.split("_")[0],NM=()=>{pte(!1,"Not match any format. Please help to fire a issue about this.")},tme=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function kM(e,t,n){const r=[...new Set(e.split(n))];let o=0;for(let i=0;it)return a;o+=n.length}}const BM=(e,t)=>{if(!e)return null;if($r.isDayjs(e))return e;const n=t.matchAll(tme);let r=$r(e,t);if(n===null)return r;for(const o of n){const i=o[0],a=o.index;if(i==="Q"){const l=e.slice(a-1,a),s=kM(e,a,l).match(/\d+/)[0];r=r.quarter(parseInt(s))}if(i.toLowerCase()==="wo"){const l=e.slice(a-1,a),s=kM(e,a,l).match(/\d+/)[0];r=r.week(parseInt(s))}i.toLowerCase()==="ww"&&(r=r.week(parseInt(e.slice(a,a+i.length)))),i.toLowerCase()==="w"&&(r=r.week(parseInt(e.slice(a,a+i.length+1))))}return r},nme={getNow:()=>$r(),getFixedDate:e=>$r(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>$r().locale(Qs(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Qs(e)).weekday(0),getWeek:(e,t)=>t.locale(Qs(e)).week(),getShortWeekDays:e=>$r().locale(Qs(e)).localeData().weekdaysMin(),getShortMonths:e=>$r().locale(Qs(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Qs(e)).format(n),parse:(e,t,n)=>{const r=Qs(e);for(let o=0;oArray.isArray(e)?e.map(n=>BM(n,t)):BM(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>$r.isDayjs(n)?n.format(t):n):$r.isDayjs(e)?e.format(t):e},oO=nme;function tr(e){const t=XQ();return S(S({},e),t)}const aB=Symbol("PanelContextProps"),iO=e=>{ft(aB,e)},Fa=()=>it(aB,{}),Av={visibility:"hidden"};function As(e,t){let{slots:n}=t;var r;const o=tr(e),{prefixCls:i,prevIcon:a="‹",nextIcon:l="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:f,onNext:h}=o,{hideNextBtn:m,hidePrevBtn:v}=Fa();return g("div",{class:i},[u&&g("button",{type:"button",onClick:u,tabindex:-1,class:`${i}-super-prev-btn`,style:v.value?Av:{}},[s]),f&&g("button",{type:"button",onClick:f,tabindex:-1,class:`${i}-prev-btn`,style:v.value?Av:{}},[a]),g("div",{class:`${i}-view`},[(r=n.default)===null||r===void 0?void 0:r.call(n)]),h&&g("button",{type:"button",onClick:h,tabindex:-1,class:`${i}-next-btn`,style:m.value?Av:{}},[l]),d&&g("button",{type:"button",onClick:d,tabindex:-1,class:`${i}-super-next-btn`,style:m.value?Av:{}},[c])])}As.displayName="Header";As.inheritAttrs=!1;function aO(e){const t=tr(e),{prefixCls:n,generateConfig:r,viewDate:o,onPrevDecades:i,onNextDecades:a}=t,{hideHeader:l}=Fa();if(l)return null;const s=`${n}-header`,c=r.getYear(o),u=Math.floor(c/hl)*hl,d=u+hl-1;return g(As,V(V({},t),{},{prefixCls:s,onSuperPrev:i,onSuperNext:a}),{default:()=>[u,Dr("-"),d]})}aO.displayName="DecadeHeader";aO.inheritAttrs=!1;function lB(e,t,n,r,o){let i=e.setHour(t,n);return i=e.setMinute(i,r),i=e.setSecond(i,o),i}function gm(e,t,n){if(!n)return t;let r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function rme(e,t,n,r,o,i){const a=Math.floor(e/r)*r;if(a{W.stopPropagation(),N||r(A)},onMouseenter:()=>{!N&&b&&b(A)},onMouseleave:()=>{!N&&$&&$(A)}},[f?f(A):g("div",{class:`${_}-inner`},[d(A)])]))}w.push(g("tr",{key:I,class:s&&s(P)},[O]))}return g("div",{class:`${t}-body`},[g("table",{class:`${t}-content`},[y&&g("thead",null,[g("tr",null,[y])]),g("tbody",null,[w])])])}nu.displayName="PanelBody";nu.inheritAttrs=!1;const _x=3,FM=4;function lO(e){const t=tr(e),n=Ji-1,{prefixCls:r,viewDate:o,generateConfig:i}=t,a=`${r}-cell`,l=i.getYear(o),s=Math.floor(l/Ji)*Ji,c=Math.floor(l/hl)*hl,u=c+hl-1,d=i.setYear(o,c-Math.ceil((_x*FM*Ji-hl)/2)),f=h=>{const m=i.getYear(h),v=m+n;return{[`${a}-in-view`]:c<=m&&v<=u,[`${a}-selected`]:m===s}};return g(nu,V(V({},t),{},{rowNum:FM,colNum:_x,baseDate:d,getCellText:h=>{const m=i.getYear(h);return`${m}-${m+n}`},getCellClassName:f,getCellDate:(h,m)=>i.addYear(h,m*Ji)}),null)}lO.displayName="DecadeBody";lO.inheritAttrs=!1;const Mv=new Map;function ime(e,t){let n;function r(){Xb(e)?t():n=mt(()=>{r()})}return r(),()=>{mt.cancel(n)}}function Ox(e,t,n){if(Mv.get(e)&&mt.cancel(Mv.get(e)),n<=0){Mv.set(e,mt(()=>{e.scrollTop=t}));return}const o=(t-e.scrollTop)/n*10;Mv.set(e,mt(()=>{e.scrollTop+=o,e.scrollTop!==t&&Ox(e,t,n-10)}))}function pf(e,t){let{onLeftRight:n,onCtrlLeftRight:r,onUpDown:o,onPageUpDown:i,onEnter:a}=t;const{which:l,ctrlKey:s,metaKey:c}=e;switch(l){case Fe.LEFT:if(s||c){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case Fe.RIGHT:if(s||c){if(r)return r(1),!0}else if(n)return n(1),!0;break;case Fe.UP:if(o)return o(-1),!0;break;case Fe.DOWN:if(o)return o(1),!0;break;case Fe.PAGE_UP:if(i)return i(-1),!0;break;case Fe.PAGE_DOWN:if(i)return i(1),!0;break;case Fe.ENTER:if(a)return a(),!0;break}return!1}function sB(e,t,n,r){let o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function cB(e,t,n){const r=e==="time"?8:10,o=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(r,o)+2}let Kf=null;const Rv=new Set;function ame(e){return!Kf&&typeof window<"u"&&window.addEventListener&&(Kf=t=>{[...Rv].forEach(n=>{n(t)})},window.addEventListener("mousedown",Kf)),Rv.add(e),()=>{Rv.delete(e),Rv.size===0&&(window.removeEventListener("mousedown",Kf),Kf=null)}}function lme(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const sme=e=>e==="month"||e==="date"?"year":e,cme=e=>e==="date"?"month":e,ume=e=>e==="month"||e==="date"?"quarter":e,dme=e=>e==="date"?"week":e,fme={year:sme,month:cme,quarter:ume,week:dme,time:null,date:null};function uB(e,t){return e.some(n=>n&&n.contains(t))}const Ji=10,hl=Ji*10;function sO(e){const t=tr(e),{prefixCls:n,onViewDateChange:r,generateConfig:o,viewDate:i,operationRef:a,onSelect:l,onPanelChange:s}=t,c=`${n}-decade-panel`;a.value={onKeydown:f=>pf(f,{onLeftRight:h=>{l(o.addYear(i,h*Ji),"key")},onCtrlLeftRight:h=>{l(o.addYear(i,h*hl),"key")},onUpDown:h=>{l(o.addYear(i,h*Ji*_x),"key")},onEnter:()=>{s("year",i)}})};const u=f=>{const h=o.addYear(i,f*hl);r(h),s(null,h)},d=f=>{l(f,"mouse"),s("year",f)};return g("div",{class:c},[g(aO,V(V({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),g(lO,V(V({},t),{},{prefixCls:n,onSelect:d}),null)])}sO.displayName="DecadePanel";sO.inheritAttrs=!1;const vm=7;function ru(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function pme(e,t,n){const r=ru(t,n);if(typeof r=="boolean")return r;const o=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return o===i}function xy(e,t,n){const r=ru(t,n);return typeof r=="boolean"?r:e.getYear(t)===e.getYear(n)}function Ix(e,t){return Math.floor(e.getMonth(t)/3)+1}function dB(e,t,n){const r=ru(t,n);return typeof r=="boolean"?r:xy(e,t,n)&&Ix(e,t)===Ix(e,n)}function cO(e,t,n){const r=ru(t,n);return typeof r=="boolean"?r:xy(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function gl(e,t,n){const r=ru(t,n);return typeof r=="boolean"?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function hme(e,t,n){const r=ru(t,n);return typeof r=="boolean"?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function fB(e,t,n,r){const o=ru(n,r);return typeof o=="boolean"?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function fd(e,t,n){return gl(e,t,n)&&hme(e,t,n)}function Dv(e,t,n,r){return!t||!n||!r?!1:!gl(e,t,r)&&!gl(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r)}function gme(e,t,n){const r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o);let a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function wp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function Wr(e,t){let{generateConfig:n,locale:r,format:o}=t;return typeof o=="function"?o(e):n.locale.format(r.locale,e,o)}function pB(e,t){let{generateConfig:n,locale:r,formatList:o}=t;return!e||typeof o[0]=="function"?null:n.locale.parse(r.locale,e,o)}function Px(e){let{cellDate:t,mode:n,disabledDate:r,generateConfig:o}=e;if(!r)return!1;const i=(a,l,s)=>{let c=l;for(;c<=s;){let u;switch(a){case"date":{if(u=o.setDate(t,c),!r(u))return!1;break}case"month":{if(u=o.setMonth(t,c),!Px({cellDate:u,mode:"month",generateConfig:o,disabledDate:r}))return!1;break}case"year":{if(u=o.setYear(t,c),!Px({cellDate:u,mode:"year",generateConfig:o,disabledDate:r}))return!1;break}}c+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{const l=o.getDate(o.getEndDate(t));return i("date",1,l)}case"quarter":{const a=Math.floor(o.getMonth(t)/3)*3,l=a+2;return i("month",a,l)}case"year":return i("month",0,11);case"decade":{const a=o.getYear(t),l=Math.floor(a/Ji)*Ji,s=l+Ji-1;return i("year",l,s)}}}function uO(e){const t=tr(e),{hideHeader:n}=Fa();if(n.value)return null;const{prefixCls:r,generateConfig:o,locale:i,value:a,format:l}=t,s=`${r}-header`;return g(As,{prefixCls:s},{default:()=>[a?Wr(a,{locale:i,format:l,generateConfig:o}):" "]})}uO.displayName="TimeHeader";uO.inheritAttrs=!1;const Lv=pe({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=Fa(),n=ve(null),r=he(new Map),o=he();return Ie(()=>e.value,()=>{const i=r.value.get(e.value);i&&t.value!==!1&&Ox(n.value,i.offsetTop,120)}),Ct(()=>{var i;(i=o.value)===null||i===void 0||i.call(o)}),Ie(t,()=>{var i;(i=o.value)===null||i===void 0||i.call(o),_t(()=>{if(t.value){const a=r.value.get(e.value);a&&(o.value=ime(a,()=>{Ox(n.value,a.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:i,units:a,onSelect:l,value:s,active:c,hideDisabledOptions:u}=e,d=`${i}-cell`;return g("ul",{class:me(`${i}-column`,{[`${i}-column-active`]:c}),ref:n,style:{position:"relative"}},[a.map(f=>u&&f.disabled?null:g("li",{key:f.value,ref:h=>{r.value.set(f.value,h)},class:me(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||l(f.value)}},[g("div",{class:`${d}-inner`},[f.label])]))])}}});function hB(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);for(;r.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function on(e,t){return e?e[t]:null}function Ii(e,t,n){const r=[on(e,0),on(e,1)];return r[n]=typeof t=="function"?t(r[n]):t,!r[0]&&!r[1]?null:r}function hC(e,t,n,r){const o=[];for(let i=e;i<=t;i+=n)o.push({label:hB(i,2),value:i,disabled:(r||[]).includes(i)});return o}const mme=pe({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=M(()=>e.value?e.generateConfig.getHour(e.value):-1),n=M(()=>e.use12Hours?t.value>=12:!1),r=M(()=>e.use12Hours?t.value%12:t.value),o=M(()=>e.value?e.generateConfig.getMinute(e.value):-1),i=M(()=>e.value?e.generateConfig.getSecond(e.value):-1),a=he(e.generateConfig.getNow()),l=he(),s=he(),c=he();Ab(()=>{a.value=e.generateConfig.getNow()}),ct(()=>{if(e.disabledTime){const y=e.disabledTime(a);[l.value,s.value,c.value]=[y.disabledHours,y.disabledMinutes,y.disabledSeconds]}else[l.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const u=(y,b,$,x)=>{let _=e.value||e.generateConfig.getNow();const w=Math.max(0,b),I=Math.max(0,$),O=Math.max(0,x);return _=lB(e.generateConfig,_,!e.use12Hours||!y?w:w+12,I,O),_},d=M(()=>{var y;return hC(0,23,(y=e.hourStep)!==null&&y!==void 0?y:1,l.value&&l.value())}),f=M(()=>{if(!e.use12Hours)return[!1,!1];const y=[!0,!0];return d.value.forEach(b=>{let{disabled:$,value:x}=b;$||(x>=12?y[1]=!1:y[0]=!1)}),y}),h=M(()=>e.use12Hours?d.value.filter(n.value?y=>y.value>=12:y=>y.value<12).map(y=>{const b=y.value%12,$=b===0?"12":hB(b,2);return S(S({},y),{label:$,value:b})}):d.value),m=M(()=>{var y;return hC(0,59,(y=e.minuteStep)!==null&&y!==void 0?y:1,s.value&&s.value(t.value))}),v=M(()=>{var y;return hC(0,59,(y=e.secondStep)!==null&&y!==void 0?y:1,c.value&&c.value(t.value,o.value))});return()=>{const{prefixCls:y,operationRef:b,activeColumnIndex:$,showHour:x,showMinute:_,showSecond:w,use12Hours:I,hideDisabledOptions:O,onSelect:P}=e,E=[],R=`${y}-content`,A=`${y}-time-panel`;b.value={onUpDown:W=>{const D=E[$];if(D){const B=D.units.findIndex(L=>L.value===D.value),k=D.units.length;for(let L=1;L{P(u(n.value,W,o.value,i.value),"mouse")}),N(_,g(Lv,{key:"minute"},null),o.value,m.value,W=>{P(u(n.value,r.value,W,i.value),"mouse")}),N(w,g(Lv,{key:"second"},null),i.value,v.value,W=>{P(u(n.value,r.value,o.value,W),"mouse")});let F=-1;return typeof n.value=="boolean"&&(F=n.value?1:0),N(I===!0,g(Lv,{key:"12hours"},null),F,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],W=>{P(u(!!W,r.value,o.value,i.value),"mouse")}),g("div",{class:R},[E.map(W=>{let{node:D}=W;return D})])}}}),bme=mme,yme=e=>e.filter(t=>t!==!1).length;function wy(e){const t=tr(e),{generateConfig:n,format:r="HH:mm:ss",prefixCls:o,active:i,operationRef:a,showHour:l,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:f}=t,h=`${o}-time-panel`,m=he(),v=he(-1),y=yme([l,s,c,u]);return a.value={onKeydown:b=>pf(b,{onLeftRight:$=>{v.value=(v.value+$+y)%y},onUpDown:$=>{v.value===-1?v.value=0:m.value&&m.value.onUpDown($)},onEnter:()=>{d(f||n.getNow(),"key"),v.value=-1}}),onBlur:()=>{v.value=-1}},g("div",{class:me(h,{[`${h}-active`]:i})},[g(uO,V(V({},t),{},{format:r,prefixCls:o}),null),g(bme,V(V({},t),{},{prefixCls:o,activeColumnIndex:v.value,operationRef:m}),null)])}wy.displayName="TimePanel";wy.inheritAttrs=!1;function _y(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:r,hoverRangedValue:o,isInView:i,isSameCell:a,offsetCell:l,today:s,value:c}=e;function u(d){const f=l(d,-1),h=l(d,1),m=on(r,0),v=on(r,1),y=on(o,0),b=on(o,1),$=Dv(n,y,b,d);function x(E){return a(m,E)}function _(E){return a(v,E)}const w=a(y,d),I=a(b,d),O=($||I)&&(!i(f)||_(f)),P=($||w)&&(!i(h)||x(h));return{[`${t}-in-view`]:i(d),[`${t}-in-range`]:Dv(n,m,v,d),[`${t}-range-start`]:x(d),[`${t}-range-end`]:_(d),[`${t}-range-start-single`]:x(d)&&!v,[`${t}-range-end-single`]:_(d)&&!m,[`${t}-range-start-near-hover`]:x(d)&&(a(f,y)||Dv(n,y,b,f)),[`${t}-range-end-near-hover`]:_(d)&&(a(h,b)||Dv(n,y,b,h)),[`${t}-range-hover`]:$,[`${t}-range-hover-start`]:w,[`${t}-range-hover-end`]:I,[`${t}-range-hover-edge-start`]:O,[`${t}-range-hover-edge-end`]:P,[`${t}-range-hover-edge-start-near-range`]:O&&a(f,v),[`${t}-range-hover-edge-end-near-range`]:P&&a(h,m),[`${t}-today`]:a(s,d),[`${t}-selected`]:a(c,d)}}return u}const mB=Symbol("RangeContextProps"),Sme=e=>{ft(mB,e)},Gh=()=>it(mB,{rangedValue:he(),hoverRangedValue:he(),inRange:he(),panelPosition:he()}),Cme=pe({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const r={rangedValue:he(e.value.rangedValue),hoverRangedValue:he(e.value.hoverRangedValue),inRange:he(e.value.inRange),panelPosition:he(e.value.panelPosition)};return Sme(r),Ie(()=>e.value,()=>{Object.keys(e.value).forEach(o=>{r[o]&&(r[o].value=e.value[o])})}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Oy(e){const t=tr(e),{prefixCls:n,generateConfig:r,prefixColumn:o,locale:i,rowCount:a,viewDate:l,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=Gh(),f=gme(i.locale,r,l),h=`${n}-cell`,m=r.locale.getWeekFirstDay(i.locale),v=r.getNow(),y=[],b=i.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(i.locale):[]);o&&y.push(g("th",{key:"empty","aria-label":"empty cell"},null));for(let _=0;_gl(r,_,w),isInView:_=>cO(r,_,l),offsetCell:(_,w)=>r.addDate(_,w)}),x=c?_=>c({current:_,today:v}):void 0;return g(nu,V(V({},t),{},{rowNum:a,colNum:vm,baseDate:f,getCellNode:x,getCellText:r.getDate,getCellClassName:$,getCellDate:r.addDate,titleCell:_=>Wr(_,{locale:i,format:"YYYY-MM-DD",generateConfig:r}),headerCells:y}),null)}Oy.displayName="DateBody";Oy.inheritAttrs=!1;Oy.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function dO(e){const t=tr(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:i,onNextMonth:a,onPrevMonth:l,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:f}=Fa();if(f.value)return null;const h=`${n}-header`,m=o.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(o.locale):[]),v=r.getMonth(i),y=g("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[Wr(i,{locale:o,format:o.yearFormat,generateConfig:r})]),b=g("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[o.monthFormat?Wr(i,{locale:o,format:o.monthFormat,generateConfig:r}):m[v]]),$=o.monthBeforeYear?[b,y]:[y,b];return g(As,V(V({},t),{},{prefixCls:h,onSuperPrev:c,onPrev:l,onNext:a,onSuperNext:s}),{default:()=>[$]})}dO.displayName="DateHeader";dO.inheritAttrs=!1;const $me=6;function Yh(e){const t=tr(e),{prefixCls:n,panelName:r="date",keyboardConfig:o,active:i,operationRef:a,generateConfig:l,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:f}=t,h=`${n}-${r}-panel`;a.value={onKeydown:y=>pf(y,S({onLeftRight:b=>{f(l.addDate(s||c,b),"key")},onCtrlLeftRight:b=>{f(l.addYear(s||c,b),"key")},onUpDown:b=>{f(l.addDate(s||c,b*vm),"key")},onPageUpDown:b=>{f(l.addMonth(s||c,b),"key")}},o))};const m=y=>{const b=l.addYear(c,y);u(b),d(null,b)},v=y=>{const b=l.addMonth(c,y);u(b),d(null,b)};return g("div",{class:me(h,{[`${h}-active`]:i})},[g(dO,V(V({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{m(-1)},onNextYear:()=>{m(1)},onPrevMonth:()=>{v(-1)},onNextMonth:()=>{v(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),g(Oy,V(V({},t),{},{onSelect:y=>f(y,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:$me}),null)])}Yh.displayName="DatePanel";Yh.inheritAttrs=!1;const HM=vme("date","time");function fO(e){const t=tr(e),{prefixCls:n,operationRef:r,generateConfig:o,value:i,defaultValue:a,disabledTime:l,showTime:s,onSelect:c}=t,u=`${n}-datetime-panel`,d=he(null),f=he({}),h=he({}),m=typeof s=="object"?S({},s):{};function v(x){const _=HM.indexOf(d.value)+x;return HM[_]||null}const y=x=>{h.value.onBlur&&h.value.onBlur(x),d.value=null};r.value={onKeydown:x=>{if(x.which===Fe.TAB){const _=v(x.shiftKey?-1:1);return d.value=_,_&&x.preventDefault(),!0}if(d.value){const _=d.value==="date"?f:h;return _.value&&_.value.onKeydown&&_.value.onKeydown(x),!0}return[Fe.LEFT,Fe.RIGHT,Fe.UP,Fe.DOWN].includes(x.which)?(d.value="date",!0):!1},onBlur:y,onClose:y};const b=(x,_)=>{let w=x;_==="date"&&!i&&m.defaultValue?(w=o.setHour(w,o.getHour(m.defaultValue)),w=o.setMinute(w,o.getMinute(m.defaultValue)),w=o.setSecond(w,o.getSecond(m.defaultValue))):_==="time"&&!i&&a&&(w=o.setYear(w,o.getYear(a)),w=o.setMonth(w,o.getMonth(a)),w=o.setDate(w,o.getDate(a))),c&&c(w,"mouse")},$=l?l(i||null):{};return g("div",{class:me(u,{[`${u}-active`]:d.value})},[g(Yh,V(V({},t),{},{operationRef:f,active:d.value==="date",onSelect:x=>{b(gm(o,x,!i&&typeof s=="object"?s.defaultValue:null),"date")}}),null),g(wy,V(V(V(V({},t),{},{format:void 0},m),$),{},{disabledTime:null,defaultValue:void 0,operationRef:h,active:d.value==="time",onSelect:x=>{b(x,"time")}}),null)])}fO.displayName="DatetimePanel";fO.inheritAttrs=!1;function pO(e){const t=tr(e),{prefixCls:n,generateConfig:r,locale:o,value:i}=t,a=`${n}-cell`,l=u=>g("td",{key:"week",class:me(a,`${a}-week`)},[r.locale.getWeek(o.locale,u)]),s=`${n}-week-panel-row`,c=u=>me(s,{[`${s}-selected`]:fB(r,o.locale,i,u)});return g(Yh,V(V({},t),{},{panelName:"week",prefixColumn:l,rowClassName:c,keyboardConfig:{onLeftRight:null}}),null)}pO.displayName="WeekPanel";pO.inheritAttrs=!1;function hO(e){const t=tr(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:i,onNextYear:a,onPrevYear:l,onYearClick:s}=t,{hideHeader:c}=Fa();if(c.value)return null;const u=`${n}-header`;return g(As,V(V({},t),{},{prefixCls:u,onSuperPrev:l,onSuperNext:a}),{default:()=>[g("button",{type:"button",onClick:s,class:`${n}-year-btn`},[Wr(i,{locale:o,format:o.yearFormat,generateConfig:r})])]})}hO.displayName="MonthHeader";hO.inheritAttrs=!1;const bB=3,xme=4;function gO(e){const t=tr(e),{prefixCls:n,locale:r,value:o,viewDate:i,generateConfig:a,monthCellRender:l}=t,{rangedValue:s,hoverRangedValue:c}=Gh(),u=`${n}-cell`,d=_y({cellPrefixCls:u,value:o,generateConfig:a,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(v,y)=>cO(a,v,y),isInView:()=>!0,offsetCell:(v,y)=>a.addMonth(v,y)}),f=r.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(r.locale):[]),h=a.setMonth(i,0),m=l?v=>l({current:v,locale:r}):void 0;return g(nu,V(V({},t),{},{rowNum:xme,colNum:bB,baseDate:h,getCellNode:m,getCellText:v=>r.monthFormat?Wr(v,{locale:r,format:r.monthFormat,generateConfig:a}):f[a.getMonth(v)],getCellClassName:d,getCellDate:a.addMonth,titleCell:v=>Wr(v,{locale:r,format:"YYYY-MM",generateConfig:a})}),null)}gO.displayName="MonthBody";gO.inheritAttrs=!1;function vO(e){const t=tr(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:i,value:a,viewDate:l,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;r.value={onKeydown:f=>pf(f,{onLeftRight:h=>{c(i.addMonth(a||l,h),"key")},onCtrlLeftRight:h=>{c(i.addYear(a||l,h),"key")},onUpDown:h=>{c(i.addMonth(a||l,h*bB),"key")},onEnter:()=>{s("date",a||l)}})};const d=f=>{const h=i.addYear(l,f);o(h),s(null,h)};return g("div",{class:u},[g(hO,V(V({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",l)}}),null),g(gO,V(V({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse"),s("date",f)}}),null)])}vO.displayName="MonthPanel";vO.inheritAttrs=!1;function mO(e){const t=tr(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:i,onNextYear:a,onPrevYear:l,onYearClick:s}=t,{hideHeader:c}=Fa();if(c.value)return null;const u=`${n}-header`;return g(As,V(V({},t),{},{prefixCls:u,onSuperPrev:l,onSuperNext:a}),{default:()=>[g("button",{type:"button",onClick:s,class:`${n}-year-btn`},[Wr(i,{locale:o,format:o.yearFormat,generateConfig:r})])]})}mO.displayName="QuarterHeader";mO.inheritAttrs=!1;const wme=4,_me=1;function bO(e){const t=tr(e),{prefixCls:n,locale:r,value:o,viewDate:i,generateConfig:a}=t,{rangedValue:l,hoverRangedValue:s}=Gh(),c=`${n}-cell`,u=_y({cellPrefixCls:c,value:o,generateConfig:a,rangedValue:l.value,hoverRangedValue:s.value,isSameCell:(f,h)=>dB(a,f,h),isInView:()=>!0,offsetCell:(f,h)=>a.addMonth(f,h*3)}),d=a.setDate(a.setMonth(i,0),1);return g(nu,V(V({},t),{},{rowNum:_me,colNum:wme,baseDate:d,getCellText:f=>Wr(f,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:a}),getCellClassName:u,getCellDate:(f,h)=>a.addMonth(f,h*3),titleCell:f=>Wr(f,{locale:r,format:"YYYY-[Q]Q",generateConfig:a})}),null)}bO.displayName="QuarterBody";bO.inheritAttrs=!1;function yO(e){const t=tr(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:i,value:a,viewDate:l,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;r.value={onKeydown:f=>pf(f,{onLeftRight:h=>{c(i.addMonth(a||l,h*3),"key")},onCtrlLeftRight:h=>{c(i.addYear(a||l,h),"key")},onUpDown:h=>{c(i.addYear(a||l,h),"key")}})};const d=f=>{const h=i.addYear(l,f);o(h),s(null,h)};return g("div",{class:u},[g(mO,V(V({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",l)}}),null),g(bO,V(V({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse")}}),null)])}yO.displayName="QuarterPanel";yO.inheritAttrs=!1;function SO(e){const t=tr(e),{prefixCls:n,generateConfig:r,viewDate:o,onPrevDecade:i,onNextDecade:a,onDecadeClick:l}=t,{hideHeader:s}=Fa();if(s.value)return null;const c=`${n}-header`,u=r.getYear(o),d=Math.floor(u/ps)*ps,f=d+ps-1;return g(As,V(V({},t),{},{prefixCls:c,onSuperPrev:i,onSuperNext:a}),{default:()=>[g("button",{type:"button",onClick:l,class:`${n}-decade-btn`},[d,Dr("-"),f])]})}SO.displayName="YearHeader";SO.inheritAttrs=!1;const Tx=3,zM=4;function CO(e){const t=tr(e),{prefixCls:n,value:r,viewDate:o,locale:i,generateConfig:a}=t,{rangedValue:l,hoverRangedValue:s}=Gh(),c=`${n}-cell`,u=a.getYear(o),d=Math.floor(u/ps)*ps,f=d+ps-1,h=a.setYear(o,d-Math.ceil((Tx*zM-ps)/2)),m=y=>{const b=a.getYear(y);return d<=b&&b<=f},v=_y({cellPrefixCls:c,value:r,generateConfig:a,rangedValue:l.value,hoverRangedValue:s.value,isSameCell:(y,b)=>xy(a,y,b),isInView:m,offsetCell:(y,b)=>a.addYear(y,b)});return g(nu,V(V({},t),{},{rowNum:zM,colNum:Tx,baseDate:h,getCellText:a.getYear,getCellClassName:v,getCellDate:a.addYear,titleCell:y=>Wr(y,{locale:i,format:"YYYY",generateConfig:a})}),null)}CO.displayName="YearBody";CO.inheritAttrs=!1;const ps=10;function $O(e){const t=tr(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:i,value:a,viewDate:l,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;r.value={onKeydown:h=>pf(h,{onLeftRight:m=>{c(i.addYear(a||l,m),"key")},onCtrlLeftRight:m=>{c(i.addYear(a||l,m*ps),"key")},onUpDown:m=>{c(i.addYear(a||l,m*Tx),"key")},onEnter:()=>{u(s==="date"?"date":"month",a||l)}})};const f=h=>{const m=i.addYear(l,h*10);o(m),u(null,m)};return g("div",{class:d},[g(SO,V(V({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{u("decade",l)}}),null),g(CO,V(V({},t),{},{prefixCls:n,onSelect:h=>{u(s==="date"?"date":"month",h),c(h,"mouse")}}),null)])}$O.displayName="YearPanel";$O.inheritAttrs=!1;function yB(e,t,n){return n?g("div",{class:`${e}-footer-extra`},[n(t)]):null}function SB(e){let{prefixCls:t,components:n={},needConfirmButton:r,onNow:o,onOk:i,okDisabled:a,showNow:l,locale:s}=e,c,u;if(r){const d=n.button||"button";o&&l!==!1&&(c=g("li",{class:`${t}-now`},[g("a",{class:`${t}-now-btn`,onClick:o},[s.now])])),u=r&&g("li",{class:`${t}-ok`},[g(d,{disabled:a,onClick:f=>{f.stopPropagation(),i&&i()}},{default:()=>[s.ok]})])}return!c&&!u?null:g("ul",{class:`${t}-ranges`},[c,u])}function Ome(){return pe({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const r=M(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),o=M(()=>24%e.hourStep===0),i=M(()=>60%e.minuteStep===0),a=M(()=>60%e.secondStep===0),l=Fa(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=l,{inRange:f,panelPosition:h,rangedValue:m,hoverRangedValue:v}=Gh(),y=he({}),[b,$]=yn(null,{value:st(e,"value"),defaultValue:e.defaultValue,postState:k=>!k&&(d!=null&&d.value)&&e.picker==="time"?d.value:k}),[x,_]=yn(null,{value:st(e,"pickerValue"),defaultValue:e.defaultPickerValue||b.value,postState:k=>{const{generateConfig:L,showTime:z,defaultValue:K}=e,G=L.getNow();return k?!b.value&&e.showTime?typeof z=="object"?gm(L,Array.isArray(k)?k[0]:k,z.defaultValue||G):K?gm(L,Array.isArray(k)?k[0]:k,K):gm(L,Array.isArray(k)?k[0]:k,G):k:G}}),w=k=>{_(k),e.onPickerValueChange&&e.onPickerValueChange(k)},I=k=>{const L=fme[e.picker];return L?L(k):k},[O,P]=yn(()=>e.picker==="time"?"time":I("date"),{value:st(e,"mode")});Ie(()=>e.picker,()=>{P(e.picker)});const E=he(O.value),R=k=>{E.value=k},A=(k,L)=>{const{onPanelChange:z,generateConfig:K}=e,G=I(k||O.value);R(O.value),P(G),z&&(O.value!==G||fd(K,x.value,x.value))&&z(L,G)},N=function(k,L){let z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:K,generateConfig:G,onSelect:Y,onChange:ne,disabledDate:oe}=e;(O.value===K||z)&&($(k),Y&&Y(k),c&&c(k,L),ne&&!fd(G,k,b.value)&&!(oe!=null&&oe(k))&&ne(k))},F=k=>y.value&&y.value.onKeydown?([Fe.LEFT,Fe.RIGHT,Fe.UP,Fe.DOWN,Fe.PAGE_UP,Fe.PAGE_DOWN,Fe.ENTER].includes(k.which)&&k.preventDefault(),y.value.onKeydown(k)):!1,W=k=>{y.value&&y.value.onBlur&&y.value.onBlur(k)},D=()=>{const{generateConfig:k,hourStep:L,minuteStep:z,secondStep:K}=e,G=k.getNow(),Y=rme(k.getHour(G),k.getMinute(G),k.getSecond(G),o.value?L:1,i.value?z:1,a.value?K:1),ne=lB(k,G,Y[0],Y[1],Y[2]);N(ne,"submit")},B=M(()=>{const{prefixCls:k,direction:L}=e;return me(`${k}-panel`,{[`${k}-panel-has-range`]:m&&m.value&&m.value[0]&&m.value[1],[`${k}-panel-has-range-hover`]:v&&v.value&&v.value[0]&&v.value[1],[`${k}-panel-rtl`]:L==="rtl"})});return iO(S(S({},l),{mode:O,hideHeader:M(()=>{var k;return e.hideHeader!==void 0?e.hideHeader:(k=l.hideHeader)===null||k===void 0?void 0:k.value}),hidePrevBtn:M(()=>f.value&&h.value==="right"),hideNextBtn:M(()=>f.value&&h.value==="left")})),Ie(()=>e.value,()=>{e.value&&_(e.value)}),()=>{const{prefixCls:k="ant-picker",locale:L,generateConfig:z,disabledDate:K,picker:G="date",tabindex:Y=0,showNow:ne,showTime:oe,showToday:J,renderExtraFooter:te,onMousedown:ee,onOk:fe,components:ie}=e;s&&h.value!=="right"&&(s.value={onKeydown:F,onClose:()=>{y.value&&y.value.onClose&&y.value.onClose()}});let X;const ue=S(S(S({},n),e),{operationRef:y,prefixCls:k,viewDate:x.value,value:b.value,onViewDateChange:w,sourceMode:E.value,onPanelChange:A,disabledDate:K});switch(delete ue.onChange,delete ue.onSelect,O.value){case"decade":X=g(sO,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null);break;case"year":X=g($O,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null);break;case"month":X=g(vO,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null);break;case"quarter":X=g(yO,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null);break;case"week":X=g(pO,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null);break;case"time":delete ue.showTime,X=g(wy,V(V(V({},ue),typeof oe=="object"?oe:null),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null);break;default:oe?X=g(fO,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null):X=g(Yh,V(V({},ue),{},{onSelect:(q,se)=>{w(q),N(q,se)}}),null)}let ye,H;u!=null&&u.value||(ye=yB(k,O.value,te),H=SB({prefixCls:k,components:ie,needConfirmButton:r.value,okDisabled:!b.value||K&&K(b.value),locale:L,showNow:ne,onNow:r.value&&D,onOk:()=>{b.value&&(N(b.value,"submit",!0),fe&&fe(b.value))}}));let j;if(J&&O.value==="date"&&G==="date"&&!oe){const q=z.getNow(),se=`${k}-today-btn`,ae=K&&K(q);j=g("a",{class:me(se,ae&&`${se}-disabled`),"aria-disabled":ae,onClick:()=>{ae||N(q,"mouse",!0)}},[L.today])}return g("div",{tabindex:Y,class:me(B.value,n.class),style:n.style,onKeydown:F,onBlur:W,onMousedown:ee},[X,ye||H||j?g("div",{class:`${k}-footer`},[ye,H,j]):null])}}})}const Ime=Ome(),xO=e=>g(Ime,e),Pme={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function CB(e,t){let{slots:n}=t;const{prefixCls:r,popupStyle:o,visible:i,dropdownClassName:a,dropdownAlign:l,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:f}=tr(e),h=`${r}-dropdown`;return g(tu,{showAction:[],hideAction:[],popupPlacement:d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Pme,prefixCls:h,popupTransitionName:s,popupAlign:l,popupVisible:i,popupClassName:me(a,{[`${h}-range`]:u,[`${h}-rtl`]:f==="rtl"}),popupStyle:o,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const $B=pe({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?g("div",{class:`${e.prefixCls}-presets`},[g("ul",null,[e.presets.map((t,n)=>{let{label:r,value:o}=t;return g("li",{key:n,onClick:()=>{e.onClick(o)},onMouseenter:()=>{var i;(i=e.onHover)===null||i===void 0||i.call(e,o)},onMouseleave:()=>{var i;(i=e.onHover)===null||i===void 0||i.call(e,null)}},[r])})])]):null}});function Ex(e){let{open:t,value:n,isClickOutside:r,triggerOpen:o,forwardKeydown:i,onKeydown:a,blurToCancel:l,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const f=ve(!1),h=ve(!1),m=ve(!1),v=ve(!1),y=ve(!1),b=M(()=>({onMousedown:()=>{f.value=!0,o(!0)},onKeydown:x=>{if(a(x,()=>{y.value=!0}),!y.value){switch(x.which){case Fe.ENTER:{t.value?s()!==!1&&(f.value=!0):o(!0),x.preventDefault();return}case Fe.TAB:{f.value&&t.value&&!x.shiftKey?(f.value=!1,x.preventDefault()):!f.value&&t.value&&!i(x)&&x.shiftKey&&(f.value=!0,x.preventDefault());return}case Fe.ESC:{f.value=!0,c();return}}!t.value&&![Fe.SHIFT].includes(x.which)?o(!0):f.value||i(x)}},onFocus:x=>{f.value=!0,h.value=!0,u&&u(x)},onBlur:x=>{if(m.value||!r(document.activeElement)){m.value=!1;return}l.value?setTimeout(()=>{let{activeElement:_}=document;for(;_&&_.shadowRoot;)_=_.shadowRoot.activeElement;r(_)&&c()},0):t.value&&(o(!1),v.value&&s()),h.value=!1,d&&d(x)}}));Ie(t,()=>{v.value=!1}),Ie(n,()=>{v.value=!0});const $=ve();return lt(()=>{$.value=ame(x=>{const _=lme(x);if(t.value){const w=r(_);w?(!h.value||w)&&o(!1):(m.value=!0,mt(()=>{m.value=!1}))}})}),Ct(()=>{$.value&&$.value()}),[b,{focused:h,typing:f}]}function Ax(e){let{valueTexts:t,onTextChange:n}=e;const r=he("");function o(a){r.value=a,n(a)}function i(){r.value=t.value[0]}return Ie(()=>[...t.value],function(a){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.join("||")!==l.join("||")&&t.value.every(s=>s!==r.value)&&i()},{immediate:!0}),[r,o,i]}function D0(e,t){let{formatList:n,generateConfig:r,locale:o}=t;const i=l_(()=>{if(!e.value)return[[""],""];let s="";const c=[];for(let u=0;uc[0]!==s[0]||!Vu(c[1],s[1])),a=M(()=>i.value[0]),l=M(()=>i.value[1]);return[a,l]}function Mx(e,t){let{formatList:n,generateConfig:r,locale:o}=t;const i=he(null);let a;function l(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(mt.cancel(a),f){i.value=d;return}a=mt(()=>{i.value=d})}const[,s]=D0(i,{formatList:n,generateConfig:r,locale:o});function c(d){l(d)}function u(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;l(null,d)}return Ie(e,()=>{u(!0)}),Ct(()=>{mt.cancel(a)}),[s,c,u]}function xB(e,t){return M(()=>e!=null&&e.value?e.value:t!=null&&t.value?(zb(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(r=>{const o=t.value[r],i=typeof o=="function"?o():o;return{label:r,value:i}})):[])}function Tme(){return pe({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:r}=t;const o=he(null),i=M(()=>e.presets),a=xB(i),l=M(()=>{var K;return(K=e.picker)!==null&&K!==void 0?K:"date"}),s=M(()=>l.value==="date"&&!!e.showTime||l.value==="time"),c=M(()=>gB(sB(e.format,l.value,e.showTime,e.use12Hours))),u=he(null),d=he(null),f=he(null),[h,m]=yn(null,{value:st(e,"value"),defaultValue:e.defaultValue}),v=he(h.value),y=K=>{v.value=K},b=he(null),[$,x]=yn(!1,{value:st(e,"open"),defaultValue:e.defaultOpen,postState:K=>e.disabled?!1:K,onChange:K=>{e.onOpenChange&&e.onOpenChange(K),!K&&b.value&&b.value.onClose&&b.value.onClose()}}),[_,w]=D0(v,{formatList:c,generateConfig:st(e,"generateConfig"),locale:st(e,"locale")}),[I,O,P]=Ax({valueTexts:_,onTextChange:K=>{const G=pB(K,{locale:e.locale,formatList:c.value,generateConfig:e.generateConfig});G&&(!e.disabledDate||!e.disabledDate(G))&&y(G)}}),E=K=>{const{onChange:G,generateConfig:Y,locale:ne}=e;y(K),m(K),G&&!fd(Y,h.value,K)&&G(K,K?Wr(K,{generateConfig:Y,locale:ne,format:c.value[0]}):"")},R=K=>{e.disabled&&K||x(K)},A=K=>$.value&&b.value&&b.value.onKeydown?b.value.onKeydown(K):!1,N=function(){e.onMouseup&&e.onMouseup(...arguments),o.value&&(o.value.focus(),R(!0))},[F,{focused:W,typing:D}]=Ex({blurToCancel:s,open:$,value:I,triggerOpen:R,forwardKeydown:A,isClickOutside:K=>!uB([u.value,d.value,f.value],K),onSubmit:()=>!v.value||e.disabledDate&&e.disabledDate(v.value)?!1:(E(v.value),R(!1),P(),!0),onCancel:()=>{R(!1),y(h.value),P()},onKeydown:(K,G)=>{var Y;(Y=e.onKeydown)===null||Y===void 0||Y.call(e,K,G)},onFocus:K=>{var G;(G=e.onFocus)===null||G===void 0||G.call(e,K)},onBlur:K=>{var G;(G=e.onBlur)===null||G===void 0||G.call(e,K)}});Ie([$,_],()=>{$.value||(y(h.value),!_.value.length||_.value[0]===""?O(""):w.value!==I.value&&P())}),Ie(l,()=>{$.value||P()}),Ie(h,()=>{y(h.value)});const[B,k,L]=Mx(I,{formatList:c,generateConfig:st(e,"generateConfig"),locale:st(e,"locale")}),z=(K,G)=>{(G==="submit"||G!=="key"&&!s.value)&&(E(K),R(!1))};return iO({operationRef:b,hideHeader:M(()=>l.value==="time"),onSelect:z,open:$,defaultOpenValue:st(e,"defaultOpenValue"),onDateMouseenter:k,onDateMouseleave:L}),r({focus:()=>{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()}}),()=>{const{prefixCls:K="rc-picker",id:G,tabindex:Y,dropdownClassName:ne,dropdownAlign:oe,popupStyle:J,transitionName:te,generateConfig:ee,locale:fe,inputReadOnly:ie,allowClear:X,autofocus:ue,picker:ye="date",defaultOpenValue:H,suffixIcon:j,clearIcon:q,disabled:se,placeholder:ae,getPopupContainer:ge,panelRender:Se,onMousedown:$e,onMouseenter:_e,onMouseleave:be,onContextmenu:Te,onClick:Pe,onSelect:re,direction:le,autocomplete:xe="off"}=e,Ae=S(S(S({},e),n),{class:me({[`${K}-panel-focused`]:!D.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Be=g("div",{class:`${K}-panel-layout`},[g($B,{prefixCls:K,presets:a.value,onClick:Ue=>{E(Ue),R(!1)}},null),g(xO,V(V({},Ae),{},{generateConfig:ee,value:v.value,locale:fe,tabindex:-1,onSelect:Ue=>{re==null||re(Ue),y(Ue)},direction:le,onPanelChange:(Ue,Xe)=>{const{onPanelChange:xt}=e;L(!0),xt==null||xt(Ue,Xe)}}),null)]);Se&&(Be=Se(Be));const Ye=g("div",{class:`${K}-panel-container`,ref:u,onMousedown:Ue=>{Ue.preventDefault()}},[Be]);let Re;j&&(Re=g("span",{class:`${K}-suffix`},[j]));let Le;X&&h.value&&!se&&(Le=g("span",{onMousedown:Ue=>{Ue.preventDefault(),Ue.stopPropagation()},onMouseup:Ue=>{Ue.preventDefault(),Ue.stopPropagation(),E(null),R(!1)},class:`${K}-clear`,role:"button"},[q||g("span",{class:`${K}-clear-btn`},null)]));const Ne=S(S(S(S({id:G,tabindex:Y,disabled:se,readonly:ie||typeof c.value[0]=="function"||!D.value,value:B.value||I.value,onInput:Ue=>{O(Ue.target.value)},autofocus:ue,placeholder:ae,ref:o,title:I.value},F.value),{size:cB(ye,c.value[0],ee)}),vB(e)),{autocomplete:xe}),Ke=e.inputRender?e.inputRender(Ne):g("input",Ne,null),Ze=le==="rtl"?"bottomRight":"bottomLeft";return g("div",{ref:f,class:me(K,n.class,{[`${K}-disabled`]:se,[`${K}-focused`]:W.value,[`${K}-rtl`]:le==="rtl"}),style:n.style,onMousedown:$e,onMouseup:N,onMouseenter:_e,onMouseleave:be,onContextmenu:Te,onClick:Pe},[g("div",{class:me(`${K}-input`,{[`${K}-input-placeholder`]:!!B.value}),ref:d},[Ke,Re,Le]),g(CB,{visible:$.value,popupStyle:J,prefixCls:K,dropdownClassName:ne,dropdownAlign:oe,getPopupContainer:ge,transitionName:te,popupPlacement:Ze,direction:le},{default:()=>[g("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ye})])}}})}const Eme=Tme();function Ame(e,t){let{picker:n,locale:r,selectedValue:o,disabledDate:i,disabled:a,generateConfig:l}=e;const s=M(()=>on(o.value,0)),c=M(()=>on(o.value,1));function u(v){return l.value.locale.getWeekFirstDate(r.value.locale,v)}function d(v){const y=l.value.getYear(v),b=l.value.getMonth(v);return y*100+b}function f(v){const y=l.value.getYear(v),b=Ix(l.value,v);return y*10+b}return[v=>{var y;if(i&&(!((y=i==null?void 0:i.value)===null||y===void 0)&&y.call(i,v)))return!0;if(a[1]&&c)return!gl(l.value,v,c.value)&&l.value.isAfter(v,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return f(v)>f(c.value);case"month":return d(v)>d(c.value);case"week":return u(v)>u(c.value);default:return!gl(l.value,v,c.value)&&l.value.isAfter(v,c.value)}return!1},v=>{var y;if(!((y=i.value)===null||y===void 0)&&y.call(i,v))return!0;if(a[0]&&s)return!gl(l.value,v,c.value)&&l.value.isAfter(s.value,v);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(v)pme(r,a,l));case"quarter":case"month":return i((a,l)=>xy(r,a,l));default:return i((a,l)=>cO(r,a,l))}}function Rme(e,t,n,r){const o=on(e,0),i=on(e,1);if(t===0)return o;if(o&&i)switch(Mme(o,i,n,r)){case"same":return o;case"closing":return o;default:return wp(i,n,r,-1)}return o}function Dme(e){let{values:t,picker:n,defaultDates:r,generateConfig:o}=e;const i=he([on(r,0),on(r,1)]),a=he(null),l=M(()=>on(t.value,0)),s=M(()=>on(t.value,1)),c=h=>i.value[h]?i.value[h]:on(a.value,h)||Rme(t.value,h,n.value,o.value)||l.value||s.value||o.value.getNow(),u=he(null),d=he(null);ct(()=>{u.value=c(0),d.value=c(1)});function f(h,m){if(h){let v=Ii(a.value,h,m);i.value=Ii(i.value,null,m)||[null,null];const y=(m+1)%2;on(t.value,y)||(v=Ii(v,h,y)),a.value=v}else(l.value||s.value)&&(a.value=null)}return[u,d,f]}function wB(e){return Cb()?(i2(e),!0):!1}function Lme(e){return typeof e=="function"?e():wt(e)}function wO(e){var t;const n=Lme(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Nme(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Nn()?lt(e):t?e():_t(e)}function _B(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=ve(),r=()=>n.value=!!e();return r(),Nme(r,t),n}var gC;const OB=typeof window<"u";OB&&(!((gC=window==null?void 0:window.navigator)===null||gC===void 0)&&gC.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const IB=OB?window:void 0;var kme=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);o2&&arguments[2]!==void 0?arguments[2]:{};const{window:r=IB}=n,o=kme(n,["window"]);let i;const a=_B(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},s=Ie(()=>wO(e),u=>{l(),a.value&&r&&u&&(i=new ResizeObserver(t),i.observe(u,o))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return wB(c),{isSupported:a,stop:c}}function Uf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:r="content-box"}=n,o=ve(t.width),i=ve(t.height);return Bme(e,a=>{let[l]=a;const s=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;s?(o.value=s.reduce((c,u)=>{let{inlineSize:d}=u;return c+d},0),i.value=s.reduce((c,u)=>{let{blockSize:d}=u;return c+d},0)):(o.value=l.contentRect.width,i.value=l.contentRect.height)},n),Ie(()=>wO(e),a=>{o.value=a?t.width:0,i.value=a?t.height:0}),{width:o,height:i}}function jM(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function WM(e,t,n,r){return!!(e||r&&r[t]||n[(t+1)%2])}function Fme(){return pe({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:r}=t;const o=M(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),i=M(()=>e.presets),a=M(()=>e.ranges),l=xB(i,a),s=he({}),c=he(null),u=he(null),d=he(null),f=he(null),h=he(null),m=he(null),v=he(null),y=he(null),b=M(()=>gB(sB(e.format,e.picker,e.showTime,e.use12Hours))),[$,x]=yn(0,{value:st(e,"activePickerIndex")}),_=he(null),w=M(()=>{const{disabled:We}=e;return Array.isArray(We)?We:[We||!1,We||!1]}),[I,O]=yn(null,{value:st(e,"value"),defaultValue:e.defaultValue,postState:We=>e.picker==="time"&&!e.order?We:jM(We,e.generateConfig)}),[P,E,R]=Dme({values:I,picker:st(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:st(e,"generateConfig")}),[A,N]=yn(I.value,{postState:We=>{let gt=We;if(w.value[0]&&w.value[1])return gt;for(let ut=0;ut<2;ut+=1)w.value[ut]&&!on(gt,ut)&&!on(e.allowEmpty,ut)&&(gt=Ii(gt,e.generateConfig.getNow(),ut));return gt}}),[F,W]=yn([e.picker,e.picker],{value:st(e,"mode")});Ie(()=>e.picker,()=>{W([e.picker,e.picker])});const D=(We,gt)=>{var ut;W(We),(ut=e.onPanelChange)===null||ut===void 0||ut.call(e,gt,We)},[B,k]=Ame({picker:st(e,"picker"),selectedValue:A,locale:st(e,"locale"),disabled:w,disabledDate:st(e,"disabledDate"),generateConfig:st(e,"generateConfig")},s),[L,z]=yn(!1,{value:st(e,"open"),defaultValue:e.defaultOpen,postState:We=>w.value[$.value]?!1:We,onChange:We=>{var gt;(gt=e.onOpenChange)===null||gt===void 0||gt.call(e,We),!We&&_.value&&_.value.onClose&&_.value.onClose()}}),K=M(()=>L.value&&$.value===0),G=M(()=>L.value&&$.value===1),Y=he(0),ne=he(0),oe=he(0),{width:J}=Uf(c);Ie([L,J],()=>{!L.value&&c.value&&(oe.value=J.value)});const{width:te}=Uf(u),{width:ee}=Uf(y),{width:fe}=Uf(d),{width:ie}=Uf(h);Ie([$,L,te,ee,fe,ie,()=>e.direction],()=>{ne.value=0,$.value?d.value&&h.value&&(ne.value=fe.value+ie.value,te.value&&ee.value&&ne.value>te.value-ee.value-(e.direction==="rtl"||y.value.offsetLeft>ne.value?0:y.value.offsetLeft)&&(Y.value=ne.value)):$.value===0&&(Y.value=0)},{immediate:!0});const X=he();function ue(We,gt){if(We)clearTimeout(X.value),s.value[gt]=!0,x(gt),z(We),L.value||R(null,gt);else if($.value===gt){z(We);const ut=s.value;X.value=setTimeout(()=>{ut===s.value&&(s.value={})})}}function ye(We){ue(!0,We),setTimeout(()=>{const gt=[m,v][We];gt.value&>.value.focus()},0)}function H(We,gt){let ut=We,un=on(ut,0),Yn=on(ut,1);const{generateConfig:Bn,locale:Yr,picker:yr,order:hi,onCalendarChange:Xr,allowEmpty:_o,onChange:Cn,showTime:Go}=e;un&&Yn&&Bn.isAfter(un,Yn)&&(yr==="week"&&!fB(Bn,Yr.locale,un,Yn)||yr==="quarter"&&!dB(Bn,un,Yn)||yr!=="week"&&yr!=="quarter"&&yr!=="time"&&!(Go?fd(Bn,un,Yn):gl(Bn,un,Yn))?(gt===0?(ut=[un,null],Yn=null):(un=null,ut=[null,Yn]),s.value={[gt]:!0}):(yr!=="time"||hi!==!1)&&(ut=jM(ut,Bn))),N(ut);const Oo=ut&&ut[0]?Wr(ut[0],{generateConfig:Bn,locale:Yr,format:b.value[0]}):"",pa=ut&&ut[1]?Wr(ut[1],{generateConfig:Bn,locale:Yr,format:b.value[0]}):"";Xr&&Xr(ut,[Oo,pa],{range:gt===0?"start":"end"});const ha=WM(un,0,w.value,_o),qr=WM(Yn,1,w.value,_o);(ut===null||ha&&qr)&&(O(ut),Cn&&(!fd(Bn,on(I.value,0),un)||!fd(Bn,on(I.value,1),Yn))&&Cn(ut,[Oo,pa]));let Zr=null;gt===0&&!w.value[1]?Zr=1:gt===1&&!w.value[0]&&(Zr=0),Zr!==null&&Zr!==$.value&&(!s.value[Zr]||!on(ut,Zr))&&on(ut,gt)?ye(Zr):ue(!1,gt)}const j=We=>L&&_.value&&_.value.onKeydown?_.value.onKeydown(We):!1,q={formatList:b,generateConfig:st(e,"generateConfig"),locale:st(e,"locale")},[se,ae]=D0(M(()=>on(A.value,0)),q),[ge,Se]=D0(M(()=>on(A.value,1)),q),$e=(We,gt)=>{const ut=pB(We,{locale:e.locale,formatList:b.value,generateConfig:e.generateConfig});ut&&!(gt===0?B:k)(ut)&&(N(Ii(A.value,ut,gt)),R(ut,gt))},[_e,be,Te]=Ax({valueTexts:se,onTextChange:We=>$e(We,0)}),[Pe,re,le]=Ax({valueTexts:ge,onTextChange:We=>$e(We,1)}),[xe,Ae]=nn(null),[Be,Ye]=nn(null),[Re,Le,Ne]=Mx(_e,q),[Ke,Ze,Ue]=Mx(Pe,q),Xe=We=>{Ye(Ii(A.value,We,$.value)),$.value===0?Le(We):Ze(We)},xt=()=>{Ye(Ii(A.value,null,$.value)),$.value===0?Ne():Ue()},Mt=(We,gt)=>({forwardKeydown:j,onBlur:ut=>{var un;(un=e.onBlur)===null||un===void 0||un.call(e,ut)},isClickOutside:ut=>!uB([u.value,d.value,f.value,c.value],ut),onFocus:ut=>{var un;x(We),(un=e.onFocus)===null||un===void 0||un.call(e,ut)},triggerOpen:ut=>{ue(ut,We)},onSubmit:()=>{if(!A.value||e.disabledDate&&e.disabledDate(A.value[We]))return!1;H(A.value,We),gt()},onCancel:()=>{ue(!1,We),N(I.value),gt()}}),[Ft,{focused:jt,typing:Yt}]=Ex(S(S({},Mt(0,Te)),{blurToCancel:o,open:K,value:_e,onKeydown:(We,gt)=>{var ut;(ut=e.onKeydown)===null||ut===void 0||ut.call(e,We,gt)}})),[Vn,{focused:Gn,typing:rr}]=Ex(S(S({},Mt(1,le)),{blurToCancel:o,open:G,value:Pe,onKeydown:(We,gt)=>{var ut;(ut=e.onKeydown)===null||ut===void 0||ut.call(e,We,gt)}})),kn=We=>{var gt;(gt=e.onClick)===null||gt===void 0||gt.call(e,We),!L.value&&!m.value.contains(We.target)&&!v.value.contains(We.target)&&(w.value[0]?w.value[1]||ye(1):ye(0))},br=We=>{var gt;(gt=e.onMousedown)===null||gt===void 0||gt.call(e,We),L.value&&(jt.value||Gn.value)&&!m.value.contains(We.target)&&!v.value.contains(We.target)&&We.preventDefault()},Gr=M(()=>{var We;return!((We=I.value)===null||We===void 0)&&We[0]?Wr(I.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),wo=M(()=>{var We;return!((We=I.value)===null||We===void 0)&&We[1]?Wr(I.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});Ie([L,se,ge],()=>{L.value||(N(I.value),!se.value.length||se.value[0]===""?be(""):ae.value!==_e.value&&Te(),!ge.value.length||ge.value[0]===""?re(""):Se.value!==Pe.value&&le())}),Ie([Gr,wo],()=>{N(I.value)}),r({focus:()=>{m.value&&m.value.focus()},blur:()=>{m.value&&m.value.blur(),v.value&&v.value.blur()}});const Uo=M(()=>L.value&&Be.value&&Be.value[0]&&Be.value[1]&&e.generateConfig.isAfter(Be.value[1],Be.value[0])?Be.value:null);function Ar(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:ut,showTime:un,dateRender:Yn,direction:Bn,disabledTime:Yr,prefixCls:yr,locale:hi}=e;let Xr=un;if(un&&typeof un=="object"&&un.defaultValue){const Cn=un.defaultValue;Xr=S(S({},un),{defaultValue:on(Cn,$.value)||void 0})}let _o=null;return Yn&&(_o=Cn=>{let{current:Go,today:Oo}=Cn;return Yn({current:Go,today:Oo,info:{range:$.value?"end":"start"}})}),g(Cme,{value:{inRange:!0,panelPosition:We,rangedValue:xe.value||A.value,hoverRangedValue:Uo.value}},{default:()=>[g(xO,V(V(V({},e),gt),{},{dateRender:_o,showTime:Xr,mode:F.value[$.value],generateConfig:ut,style:void 0,direction:Bn,disabledDate:$.value===0?B:k,disabledTime:Cn=>Yr?Yr(Cn,$.value===0?"start":"end"):!1,class:me({[`${yr}-panel-focused`]:$.value===0?!Yt.value:!rr.value}),value:on(A.value,$.value),locale:hi,tabIndex:-1,onPanelChange:(Cn,Go)=>{$.value===0&&Ne(!0),$.value===1&&Ue(!0),D(Ii(F.value,Go,$.value),Ii(A.value,Cn,$.value));let Oo=Cn;We==="right"&&F.value[$.value]===Go&&(Oo=wp(Oo,Go,ut,-1)),R(Oo,$.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:$.value===0?on(A.value,1):on(A.value,0)}),null)]})}const za=(We,gt)=>{const ut=Ii(A.value,We,$.value);gt==="submit"||gt!=="key"&&!o.value?(H(ut,$.value),$.value===0?Ne():Ue()):N(ut)};return iO({operationRef:_,hideHeader:M(()=>e.picker==="time"),onDateMouseenter:Xe,onDateMouseleave:xt,hideRanges:M(()=>!0),onSelect:za,open:L}),()=>{const{prefixCls:We="rc-picker",id:gt,popupStyle:ut,dropdownClassName:un,transitionName:Yn,dropdownAlign:Bn,getPopupContainer:Yr,generateConfig:yr,locale:hi,placeholder:Xr,autofocus:_o,picker:Cn="date",showTime:Go,separator:Oo="~",disabledDate:pa,panelRender:ha,allowClear:qr,suffixIcon:Ll,clearIcon:Zr,inputReadOnly:yf,renderExtraFooter:b1,onMouseenter:y1,onMouseleave:ug,onMouseup:dg,onOk:Sf,components:S1,direction:Ls,autocomplete:fg="off"}=e,C1=Ls==="rtl"?{right:`${ne.value}px`}:{left:`${ne.value}px`};function pg(){let Qr;const Ki=yB(We,F.value[$.value],b1),$f=SB({prefixCls:We,components:S1,needConfirmButton:o.value,okDisabled:!on(A.value,$.value)||pa&&pa(A.value[$.value]),locale:hi,onOk:()=>{on(A.value,$.value)&&(H(A.value,$.value),Sf&&Sf(A.value))}});if(Cn!=="time"&&!Go){const ga=$.value===0?P.value:E.value,mg=wp(ga,Cn,yr),ks=F.value[$.value]===Cn,ja=Ar(ks?"left":!1,{pickerValue:ga,onPickerValueChange:pu=>{R(pu,$.value)}}),xf=Ar("right",{pickerValue:mg,onPickerValueChange:pu=>{R(wp(pu,Cn,yr,-1),$.value)}});Ls==="rtl"?Qr=g(Je,null,[xf,ks&&ja]):Qr=g(Je,null,[ja,ks&&xf])}else Qr=Ar();let Ns=g("div",{class:`${We}-panel-layout`},[g($B,{prefixCls:We,presets:l.value,onClick:ga=>{H(ga,null),ue(!1,$.value)},onHover:ga=>{Ae(ga)}},null),g("div",null,[g("div",{class:`${We}-panels`},[Qr]),(Ki||$f)&&g("div",{class:`${We}-footer`},[Ki,$f])])]);return ha&&(Ns=ha(Ns)),g("div",{class:`${We}-panel-container`,style:{marginLeft:`${Y.value}px`},ref:u,onMousedown:ga=>{ga.preventDefault()}},[Ns])}const hg=g("div",{class:me(`${We}-range-wrapper`,`${We}-${Cn}-range-wrapper`),style:{minWidth:`${oe.value}px`}},[g("div",{ref:y,class:`${We}-range-arrow`,style:C1},null),pg()]);let Cf;Ll&&(Cf=g("span",{class:`${We}-suffix`},[Ll]));let du;qr&&(on(I.value,0)&&!w.value[0]||on(I.value,1)&&!w.value[1])&&(du=g("span",{onMousedown:Qr=>{Qr.preventDefault(),Qr.stopPropagation()},onMouseup:Qr=>{Qr.preventDefault(),Qr.stopPropagation();let Ki=I.value;w.value[0]||(Ki=Ii(Ki,null,0)),w.value[1]||(Ki=Ii(Ki,null,1)),H(Ki,null),ue(!1,$.value)},class:`${We}-clear`},[Zr||g("span",{class:`${We}-clear-btn`},null)]));const gg={size:cB(Cn,b.value[0],yr)};let fu=0,Nl=0;d.value&&f.value&&h.value&&($.value===0?Nl=d.value.offsetWidth:(fu=ne.value,Nl=f.value.offsetWidth));const vg=Ls==="rtl"?{right:`${fu}px`}:{left:`${fu}px`};return g("div",V({ref:c,class:me(We,`${We}-range`,n.class,{[`${We}-disabled`]:w.value[0]&&w.value[1],[`${We}-focused`]:$.value===0?jt.value:Gn.value,[`${We}-rtl`]:Ls==="rtl"}),style:n.style,onClick:kn,onMouseenter:y1,onMouseleave:ug,onMousedown:br,onMouseup:dg},vB(e)),[g("div",{class:me(`${We}-input`,{[`${We}-input-active`]:$.value===0,[`${We}-input-placeholder`]:!!Re.value}),ref:d},[g("input",V(V(V({id:gt,disabled:w.value[0],readonly:yf||typeof b.value[0]=="function"||!Yt.value,value:Re.value||_e.value,onInput:Qr=>{be(Qr.target.value)},autofocus:_o,placeholder:on(Xr,0)||"",ref:m},Ft.value),gg),{},{autocomplete:fg}),null)]),g("div",{class:`${We}-range-separator`,ref:h},[Oo]),g("div",{class:me(`${We}-input`,{[`${We}-input-active`]:$.value===1,[`${We}-input-placeholder`]:!!Ke.value}),ref:f},[g("input",V(V(V({disabled:w.value[1],readonly:yf||typeof b.value[0]=="function"||!rr.value,value:Ke.value||Pe.value,onInput:Qr=>{re(Qr.target.value)},placeholder:on(Xr,1)||"",ref:v},Vn.value),gg),{},{autocomplete:fg}),null)]),g("div",{class:`${We}-active-bar`,style:S(S({},vg),{width:`${Nl}px`,position:"absolute"})},null),Cf,du,g(CB,{visible:L.value,popupStyle:ut,prefixCls:We,dropdownClassName:un,dropdownAlign:Bn,getPopupContainer:Yr,transitionName:Yn,range:!0,direction:Ls},{default:()=>[g("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>hg})])}}})}const Hme=Fme(),zme=Hme;var jme=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);oe.checked,()=>{i.value=e.checked}),o({focus(){var u;(u=a.value)===null||u===void 0||u.focus()},blur(){var u;(u=a.value)===null||u===void 0||u.blur()}});const l=he(),s=u=>{if(e.disabled)return;e.checked===void 0&&(i.value=u.target.checked),u.shiftKey=l.value;const d={target:S(S({},e),{checked:u.target.checked}),stopPropagation(){u.stopPropagation()},preventDefault(){u.preventDefault()},nativeEvent:u};e.checked!==void 0&&(a.value.checked=!!e.checked),r("change",d),l.value=!1},c=u=>{r("click",u),l.value=u.shiftKey};return()=>{const{prefixCls:u,name:d,id:f,type:h,disabled:m,readonly:v,tabindex:y,autofocus:b,value:$,required:x}=e,_=jme(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:w,onFocus:I,onBlur:O,onKeydown:P,onKeypress:E,onKeyup:R}=n,A=S(S({},_),n),N=Object.keys(A).reduce((D,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(D[B]=A[B]),D),{}),F=me(u,w,{[`${u}-checked`]:i.value,[`${u}-disabled`]:m}),W=S(S({name:d,id:f,type:h,readonly:v,disabled:m,tabindex:y,class:`${u}-input`,checked:!!i.value,autofocus:b,value:$},N),{onChange:s,onClick:c,onFocus:I,onBlur:O,onKeydown:P,onKeypress:E,onKeyup:R,required:x});return g("span",{class:F},[g("input",V({ref:a},W),null),g("span",{class:`${u}-inner`},null)])}}}),TB=Symbol("radioGroupContextKey"),Vme=e=>{ft(TB,e)},Kme=()=>it(TB,void 0),EB=Symbol("radioOptionTypeContextKey"),Ume=e=>{ft(EB,e)},Gme=()=>it(EB,void 0),Yme=new Pt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Xme=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:S(S({},vt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},qme=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:l,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:h,colorTextDisabled:m,paddingXS:v,radioDotDisabledColor:y,lineType:b,radioDotDisabledSize:$,wireframe:x,colorWhite:_}=e,w=`${t}-inner`;return{[`${t}-wrapper`]:S(S({},vt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:Yme,animationDuration:i,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:S(S({},vt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, - &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:S({},yl(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:x?r:_,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:x?c:r,"&::after":{transform:`scale(${f/o})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:y}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${$/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},Zme=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:f,controlHeightLG:h,controlHeightSM:m,paddingXS:v,borderRadius:y,borderRadiusSM:b,borderRadiusLG:$,radioCheckedColor:x,radioButtonCheckedBg:_,radioButtonHoverColor:w,radioButtonActiveColor:I,radioSolidCheckedColor:O,colorTextDisabled:P,colorBgContainerDisabled:E,radioDisabledButtonCheckedColor:R,radioDisabledButtonCheckedBg:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${i} ${a}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${i} ${a}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:h,fontSize:f,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:m,paddingInline:v-o,paddingBlock:0,lineHeight:`${m-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:x},"&:has(:focus-visible)":S({},yl(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:x,background:_,borderColor:x,"&::before":{backgroundColor:x},"&:first-child":{borderColor:x},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:O,background:x,borderColor:x,"&:hover":{color:O,background:w,borderColor:w},"&:active":{color:O,background:I,borderColor:I}},"&-disabled":{color:P,backgroundColor:E,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:P,backgroundColor:E,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:A,borderColor:a,boxShadow:"none"}}}},AB=pt("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:i,fontSizeLG:a,controlOutline:l,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:f,controlOutlineWidth:h,colorTextLightSolid:m,wireframe:v}=e,y=`0 0 0 ${h}px ${l}`,b=y,$=a,x=4,_=$-x*2,w=v?_:$-(x+n)*2,I=d,O=u,P=s,E=c,R=t-n,F=nt(e,{radioFocusShadow:y,radioButtonFocusShadow:b,radioSize:$,radioDotSize:w,radioDotDisabledSize:_,radioCheckedColor:I,radioDotDisabledColor:o,radioSolidCheckedColor:m,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:O,radioButtonHoverColor:P,radioButtonActiveColor:E,radioButtonPaddingHorizontal:R,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:f});return[Xme(F),qme(F),Zme(F)]});var Qme=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({prefixCls:String,checked:De(),disabled:De(),isGroup:De(),value:Z.any,name:String,id:String,autofocus:De(),onChange:Oe(),onFocus:Oe(),onBlur:Oe(),onClick:Oe(),"onUpdate:checked":Oe(),"onUpdate:value":Oe()}),yo=pe({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:MB(),setup(e,t){let{emit:n,expose:r,slots:o,attrs:i}=t;const a=cr(),l=Tr.useInject(),s=Gme(),c=Kme(),u=jo(),d=M(()=>{var P;return(P=v.value)!==null&&P!==void 0?P:u.value}),f=he(),{prefixCls:h,direction:m,disabled:v}=Ve("radio",e),y=M(()=>(c==null?void 0:c.optionType.value)==="button"||s==="button"?`${h.value}-button`:h.value),b=jo(),[$,x]=AB(h);r({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const I=P=>{const E=P.target.checked;n("update:checked",E),n("update:value",E),n("change",P),a.onFieldChange()},O=P=>{n("change",P),c&&c.onChange&&c.onChange(P)};return()=>{var P;const E=c,{prefixCls:R,id:A=a.id.value}=e,N=Qme(e,["prefixCls","id"]),F=S(S({prefixCls:y.value,id:A},Ot(N,["onUpdate:checked","onUpdate:value"])),{disabled:(P=v.value)!==null&&P!==void 0?P:b.value});E?(F.name=E.name.value,F.onChange=O,F.checked=e.value===E.value.value,F.disabled=d.value||E.disabled.value):F.onChange=I;const W=me({[`${y.value}-wrapper`]:!0,[`${y.value}-wrapper-checked`]:F.checked,[`${y.value}-wrapper-disabled`]:F.disabled,[`${y.value}-wrapper-rtl`]:m.value==="rtl",[`${y.value}-wrapper-in-form-item`]:l.isFormItemInput},i.class,x.value);return $(g("label",V(V({},i),{},{class:W}),[g(PB,V(V({},F),{},{type:"radio",ref:f}),null),o.default&&g("span",null,[o.default()])]))}}}),Jme=()=>({prefixCls:String,value:Z.any,size:Qe(),options:kt(),disabled:De(),name:String,buttonStyle:Qe("outline"),id:String,optionType:Qe("default"),onChange:Oe(),"onUpdate:value":Oe()}),_O=pe({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:Jme(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const i=cr(),{prefixCls:a,direction:l,size:s}=Ve("radio",e),[c,u]=AB(a),d=he(e.value),f=he(!1);return Ie(()=>e.value,m=>{d.value=m,f.value=!1}),Vme({onChange:m=>{const v=d.value,{value:y}=m.target;"value"in e||(d.value=y),!f.value&&y!==v&&(f.value=!0,r("update:value",y),r("change",m),i.onFieldChange()),_t(()=>{f.value=!1})},value:d,disabled:M(()=>e.disabled),name:M(()=>e.name),optionType:M(()=>e.optionType)}),()=>{var m;const{options:v,buttonStyle:y,id:b=i.id.value}=e,$=`${a.value}-group`,x=me($,`${$}-${y}`,{[`${$}-${s.value}`]:s.value,[`${$}-rtl`]:l.value==="rtl"},o.class,u.value);let _=null;return v&&v.length>0?_=v.map(w=>{if(typeof w=="string"||typeof w=="number")return g(yo,{key:w,prefixCls:a.value,disabled:e.disabled,value:w,checked:d.value===w},{default:()=>[w]});const{value:I,disabled:O,label:P}=w;return g(yo,{key:`radio-group-value-options-${I}`,prefixCls:a.value,disabled:O||e.disabled,value:I,checked:d.value===I},{default:()=>[P]})}):_=(m=n.default)===null||m===void 0?void 0:m.call(n),c(g("div",V(V({},o),{},{class:x,id:b}),[_]))}}}),L0=pe({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:MB(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=Ve("radio",e);return Ume("button"),()=>{var i;return g(yo,V(V(V({},r),e),{},{prefixCls:o.value}),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}}});yo.Group=_O;yo.Button=L0;yo.install=function(e){return e.component(yo.name,yo),e.component(yo.Group.name,yo.Group),e.component(yo.Button.name,yo.Button),e};const e0e=10,t0e=20;function RB(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:o,prefixCls:i,value:a,onChange:l,divRef:s}=e,c=r.getYear(a||r.getNow());let u=c-e0e,d=u+t0e;n&&(u=r.getYear(n[0]),d=r.getYear(n[1])+1);const f=o&&o.year==="年"?"年":"",h=[];for(let m=u;m{let v=r.setYear(a,m);if(n){const[y,b]=n,$=r.getYear(v),x=r.getMonth(v);$===r.getYear(b)&&x>r.getMonth(b)&&(v=r.setMonth(v,r.getMonth(b))),$===r.getYear(y)&&xs.value},null)}RB.inheritAttrs=!1;function DB(e){const{prefixCls:t,fullscreen:n,validRange:r,value:o,generateConfig:i,locale:a,onChange:l,divRef:s}=e,c=i.getMonth(o||i.getNow());let u=0,d=11;if(r){const[m,v]=r,y=i.getYear(o);i.getYear(v)===y&&(d=i.getMonth(v)),i.getYear(m)===y&&(u=i.getMonth(m))}const f=a.shortMonths||i.locale.getShortMonths(a.locale),h=[];for(let m=u;m<=d;m+=1)h.push({label:f[m],value:m});return g(Cl,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:h,onChange:m=>{l(i.setMonth(o,m))},getPopupContainer:()=>s.value},null)}DB.inheritAttrs=!1;function LB(e){const{prefixCls:t,locale:n,mode:r,fullscreen:o,onModeChange:i}=e;return g(_O,{onChange:a=>{let{target:{value:l}}=a;i(l)},value:r,size:o?void 0:"small",class:`${t}-mode-switch`},{default:()=>[g(L0,{value:"month"},{default:()=>[n.month]}),g(L0,{value:"year"},{default:()=>[n.year]})]})}LB.inheritAttrs=!1;const n0e=pe({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const r=he(null),o=Tr.useInject();return Tr.useProvide(o,{isFormItemInput:!1}),()=>{const i=S(S({},e),n),{prefixCls:a,fullscreen:l,mode:s,onChange:c,onModeChange:u}=i,d=S(S({},i),{fullscreen:l,divRef:r});return g("div",{class:`${a}-header`,ref:r},[g(RB,V(V({},d),{},{onChange:f=>{c(f,"year")}}),null),s==="month"&&g(DB,V(V({},d),{},{onChange:f=>{c(f,"month")}}),null),g(LB,V(V({},d),{},{onModeChange:u}),null)])}}}),OO=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),hf=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),$s=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),IO=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":S({},hf(nt(e,{inputBorderHoverColor:e.colorBorder})))}),NB=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},PO=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Xh=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":S({},$s(nt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &-focused":S({},$s(nt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix`]:{color:o}}}},ou=e=>S(S({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},OO(e.colorTextPlaceholder)),{"&:hover":S({},hf(e)),"&:focus, &-focused":S({},$s(e)),"&-disabled, &[disabled]":S({},IO(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":S({},NB(e)),"&-sm":S({},PO(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),kB=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:S({},NB(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:S({},PO(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:S(S({display:"block"},aa()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},r0e=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,i=(n-r*2-16)/2;return{[t]:S(S(S(S({},vt(e)),ou(e)),Xh(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}}})}},o0e=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},i0e=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:S(S(S(S(S({},ou(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:S(S({},hf(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),o0e(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),Xh(e,`${t}-affix-wrapper`))}},a0e=e=>{const{componentCls:t,colorError:n,colorSuccess:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:S(S(S({},vt(e)),kB(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},l0e=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function iu(e){return nt(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const s0e=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,o=`${t}-textarea`;return{[o]:{position:"relative",[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},TO=pt("Input",e=>{const t=iu(e);return[r0e(t),s0e(t),i0e(t),a0e(t),l0e(t),uf(t)]}),vC=(e,t,n,r)=>{const{lineHeight:o}=e,i=Math.floor(n*o)+2,a=Math.max((t-i)/2,0),l=Math.max(t-i-a,0);return{padding:`${a}px ${r}px ${l}px`}},c0e=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:o,motionDurationSlow:i,borderRadiusSM:a,motionDurationMid:l,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:h,controlHeightSM:m,pickerDateHoverRangeBorderColor:v,pickerCellBorderGap:y,pickerBasicCellHoverWithRangeColor:b,pickerPanelCellWidth:$,colorTextDisabled:x,colorBgContainerDisabled:_}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:`${o}px`,borderRadius:a,transition:`background ${l}, border ${l}`},[`&:hover:not(${n}-in-view), - &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:s}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:a,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${n}-selected ${r}, - &-in-view${n}-range-start ${r}, - &-in-view${n}-range-end ${r}`]:{color:h,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), - &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-start${n}-range-start-single, - &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, - &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, - &-in-view${n}-range-hover-end${n}-range-end-single, - &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:m,borderTop:`${c}px dashed ${v}`,borderBottom:`${c}px dashed ${v}`,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:y},[`&-in-view${n}-in-range${n}-range-hover::before, - &-in-view${n}-range-start${n}-range-hover::before, - &-in-view${n}-range-end${n}-range-hover::before, - &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, - &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-start::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:b},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, - tr > &-in-view${n}-range-hover-end:first-child::after, - &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, - &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, - &-in-view${n}-range-hover-start::after`]:{insetInlineStart:($-o)/2,borderInlineStart:`${c}px dashed ${v}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after, - tr > &-in-view${n}-range-hover-start:last-child::after, - &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, - &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, - &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:($-o)/2,borderInlineEnd:`${c}px dashed ${v}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:x,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:_}},[`&-disabled${n}-today ${r}::before`]:{borderColor:x}}},BB=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:r,pickerControlIconSize:o,pickerPanelCellWidth:i,paddingSM:a,paddingXS:l,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:f,colorPrimary:h,colorTextHeading:m,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:b,pickerTextHeight:$,motionDurationMid:x,colorIconHover:_,fontWeightStrong:w,pickerPanelCellHeight:I,pickerCellPaddingVertical:O,colorTextDisabled:P,colorText:E,fontSize:R,pickerBasicCellHoverWithRangeColor:A,motionDurationSlow:N,pickerPanelWithoutTimeCellHeight:F,pickerQuarterPanelContentHeight:W,colorLink:D,colorLinkActive:B,colorLinkHover:k,pickerDateHoverRangeBorderColor:L,borderRadiusSM:z,colorTextLightSolid:K,borderRadius:G,controlItemBgHover:Y,pickerTimePanelColumnHeight:ne,pickerTimePanelColumnWidth:oe,pickerTimePanelCellHeight:J,controlItemBgActive:te,marginXXS:ee}=e,fe=i*7+a*2+4,ie=(fe-l*2)/3-r-a;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${v}`,borderRadius:f,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:fe},"&-header":{display:"flex",padding:`0 ${l}px`,color:m,borderBottom:`${u}px ${d} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:`${$}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`},"> button":{minWidth:"1.6em",fontSize:R,"&:hover":{color:_}},"&-view":{flex:"auto",fontWeight:w,lineHeight:`${$}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(o/2),insetInlineStart:Math.ceil(o/2),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:y,borderBlockEndWidth:0,borderInlineStartWidth:y,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:I+O*2,color:E,verticalAlign:"middle"}},"&-cell":S({padding:`${O}px 0`,color:P,cursor:"pointer","&-in-view":{color:E}},c0e(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, - &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:A,transition:`all ${N}`,content:'""'}},[`&-date-panel - ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start - ${n}::after`]:{insetInlineEnd:-(i-I)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(i-I)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:F*4},[n]:{padding:`0 ${l}px`}},"&-quarter-panel":{[`${t}-content`]:{height:W}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${v}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${$-2*u}px`,textAlign:"center","&-extra":{padding:`0 ${a}`,lineHeight:`${$-2*u}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${v}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:D,"&:hover":{color:k},"&:active":{color:B},[`&${t}-today-btn-disabled`]:{color:P,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${l/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${l}px`},[n]:{width:r},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:ie,borderInlineStart:`${u}px dashed ${L}`,borderStartStartRadius:z,borderBottomStartRadius:z,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:ie,borderInlineEnd:`${u}px dashed ${L}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:z,borderBottomEndRadius:z}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:ie,borderInlineEnd:`${u}px dashed ${L}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G,[`${t}-panel-rtl &`]:{insetInlineStart:ie,borderInlineStart:`${u}px dashed ${L}`,borderStartStartRadius:G,borderEndStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${l}px ${a}px`},[`${t}-cell`]:{[`&:hover ${n}, - &-selected ${n}, - ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${x}`,"&:first-child":{borderStartStartRadius:z,borderEndStartRadius:z},"&:last-child":{borderStartEndRadius:z,borderEndEndRadius:z}},"&:hover td":{background:Y},"&-selected td,\n &-selected:hover td":{background:h,[`&${t}-cell-week`]:{color:new Zt(K).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:K},[n]:{color:K}}}},"&-date-panel":{[`${t}-body`]:{padding:`${l}px ${a}px`},[`${t}-content`]:{width:i*7,th:{width:i}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${v}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:ne},"&-column":{flex:"1 0 auto",width:oe,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::after":{display:"block",height:ne-J,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${v}`},"&-active":{background:new Zt(te).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:ee,[`${t}-time-panel-cell-inner`]:{display:"block",width:oe-2*ee,height:J,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(oe-J)/2,color:E,lineHeight:`${J}px`,borderRadius:z,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:Y}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:te}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:ne-J+s*2}}}},u0e=e=>{const{componentCls:t,colorBgContainer:n,colorError:r,colorErrorOutline:o,colorWarning:i,colorWarningOutline:a}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:r},"&-focused, &:focus":S({},$s(nt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${t}-active-bar`]:{background:r}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":S({},$s(nt(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${t}-active-bar`]:{background:i}}}}},d0e=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:r,controlHeight:o,fontSize:i,inputPaddingHorizontal:a,colorBgContainer:l,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:h,colorTextDisabled:m,colorTextPlaceholder:v,controlHeightLG:y,fontSizeLG:b,controlHeightSM:$,inputPaddingHorizontalSM:x,paddingXS:_,marginXS:w,colorTextDescription:I,lineWidthBold:O,lineHeight:P,colorPrimary:E,motionDurationSlow:R,zIndexPopup:A,paddingXXS:N,paddingSM:F,pickerTextHeight:W,controlItemBgActive:D,colorPrimaryBorder:B,sizePopupArrow:k,borderRadiusXS:L,borderRadiusOuter:z,colorBgElevated:K,borderRadiusLG:G,boxShadowSecondary:Y,borderRadiusSM:ne,colorSplit:oe,controlItemBgHover:J,presetsWidth:te,presetsMaxWidth:ee}=e;return[{[t]:S(S(S({},vt(e)),vC(e,o,i,a)),{position:"relative",display:"inline-flex",alignItems:"center",background:l,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":S({},hf(e)),"&-focused":S({},$s(e)),[`&${t}-disabled`]:{background:h,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:m}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":S(S({},ou(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:v}}},"&-large":S(S({},vC(e,y,b,a)),{[`${t}-input > input`]:{fontSize:b}}),"&-small":S({},vC(e,$,i,x)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:_/2,color:m,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,background:l,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:I}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:b,color:m,fontSize:b,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:I},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:a},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:O,marginInlineStart:a,background:E,opacity:0,transition:`all ${R} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x},[`${t}-active-bar`]:{marginInlineStart:x}}},"&-dropdown":S(S(S({},vt(e)),BB(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:A,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:yy},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:my},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Sy},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:by},[`${t}-panel > ${t}-time-panel`]:{paddingTop:N},[`${t}-ranges`]:{marginBottom:0,padding:`${N}px ${F}px`,overflow:"hidden",lineHeight:`${W-2*s-_/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:E,background:D,borderColor:B,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:S({position:"absolute",zIndex:1,display:"none",marginInlineStart:a*1.5,transition:`left ${R} ease-out`},N2(k,L,z,K,r)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:K,borderRadius:G,boxShadow:Y,transition:`margin ${R}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:te,maxWidth:ee,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:_,borderInlineEnd:`${s}px ${c} ${oe}`,li:S(S({},er),{borderRadius:ne,paddingInline:_,paddingBlock:($-Math.round(i*P))/2,cursor:"pointer",transition:`all ${R}`,"+ li":{marginTop:w},"&:hover":{background:J}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${k*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Na(e,"slide-up"),Na(e,"slide-down"),Dd(e,"move-up"),Dd(e,"move-down")]},FB=e=>{const{componentCls:n,controlHeightLG:r,controlHeightSM:o,colorPrimary:i,paddingXXS:a}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:r,pickerPanelCellWidth:o*1.5,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new Zt(i).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new Zt(i).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:r*1.65,pickerYearMonthCellWidth:r*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:r*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:r*1.4,pickerCellPaddingVertical:a,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},HB=pt("DatePicker",e=>{const t=nt(iu(e),FB(e));return[d0e(t),u0e(t),uf(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),f0e=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:r,calendarFullPanelBg:o,calendarItemActiveBg:i}=e;return{[t]:S(S(S({},BB(e)),vt(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},p0e=pt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=nt(iu(e),FB(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[f0e(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function h0e(e){function t(i,a){return i&&a&&e.getYear(i)===e.getYear(a)}function n(i,a){return t(i,a)&&e.getMonth(i)===e.getMonth(a)}function r(i,a){return n(i,a)&&e.getDate(i)===e.getDate(a)}const o=pe({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(i,a){let{emit:l,slots:s,attrs:c}=a;const u=i,{prefixCls:d,direction:f}=Ve("picker",u),[h,m]=p0e(d),v=M(()=>`${d.value}-calendar`),y=D=>u.valueFormat?e.toString(D,u.valueFormat):D,b=M(()=>u.value?u.valueFormat?e.toDate(u.value,u.valueFormat):u.value:u.value===""?void 0:u.value),$=M(()=>u.defaultValue?u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue:u.defaultValue===""?void 0:u.defaultValue),[x,_]=yn(()=>b.value||e.getNow(),{defaultValue:$.value,value:b}),[w,I]=yn("month",{value:st(u,"mode")}),O=M(()=>w.value==="year"?"month":"date"),P=M(()=>D=>{var B;return(u.validRange?e.isAfter(u.validRange[0],D)||e.isAfter(D,u.validRange[1]):!1)||!!(!((B=u.disabledDate)===null||B===void 0)&&B.call(u,D))}),E=(D,B)=>{l("panelChange",y(D),B)},R=D=>{if(_(D),!r(D,x.value)){(O.value==="date"&&!n(D,x.value)||O.value==="month"&&!t(D,x.value))&&E(D,w.value);const B=y(D);l("update:value",B),l("change",B)}},A=D=>{I(D),E(x.value,D)},N=(D,B)=>{R(D),l("select",y(D),{source:B})},F=M(()=>{const{locale:D}=u,B=S(S({},th),D);return B.lang=S(S({},B.lang),(D||{}).lang),B}),[W]=Wi("Calendar",F);return()=>{const D=e.getNow(),{dateFullCellRender:B=s==null?void 0:s.dateFullCellRender,dateCellRender:k=s==null?void 0:s.dateCellRender,monthFullCellRender:L=s==null?void 0:s.monthFullCellRender,monthCellRender:z=s==null?void 0:s.monthCellRender,headerRender:K=s==null?void 0:s.headerRender,fullscreen:G=!0,validRange:Y}=u,ne=J=>{let{current:te}=J;return B?B({current:te}):g("div",{class:me(`${d.value}-cell-inner`,`${v.value}-date`,{[`${v.value}-date-today`]:r(D,te)})},[g("div",{class:`${v.value}-date-value`},[String(e.getDate(te)).padStart(2,"0")]),g("div",{class:`${v.value}-date-content`},[k&&k({current:te})])])},oe=(J,te)=>{let{current:ee}=J;if(L)return L({current:ee});const fe=te.shortMonths||e.locale.getShortMonths(te.locale);return g("div",{class:me(`${d.value}-cell-inner`,`${v.value}-date`,{[`${v.value}-date-today`]:n(D,ee)})},[g("div",{class:`${v.value}-date-value`},[fe[e.getMonth(ee)]]),g("div",{class:`${v.value}-date-content`},[z&&z({current:ee})])])};return h(g("div",V(V({},c),{},{class:me(v.value,{[`${v.value}-full`]:G,[`${v.value}-mini`]:!G,[`${v.value}-rtl`]:f.value==="rtl"},c.class,m.value)}),[K?K({value:x.value,type:w.value,onChange:J=>{N(J,"customize")},onTypeChange:A}):g(n0e,{prefixCls:v.value,value:x.value,generateConfig:e,mode:w.value,fullscreen:G,locale:W.value.lang,validRange:Y,onChange:N,onModeChange:A},null),g(xO,{value:x.value,prefixCls:d.value,locale:W.value.lang,generateConfig:e,dateRender:ne,monthCellRender:J=>oe(J,W.value.lang),onSelect:J=>{N(J,O.value)},mode:O.value,picker:O.value,disabledDate:P.value,hideHeader:!0},null)]))}}});return o.install=function(i){return i.component(o.name,o),i},o}const g0e=h0e(oO),v0e=$n(g0e);function m0e(e){const t=ve(),n=ve(!1);function r(){for(var o=arguments.length,i=new Array(o),a=0;a{e(...i)}))}return Ct(()=>{n.value=!0,mt.cancel(t.value)}),r}function b0e(e){const t=ve([]),n=ve(typeof e=="function"?e():e),r=m0e(()=>{let i=n.value;t.value.forEach(a=>{i=a(i)}),t.value=[],n.value=i});function o(i){t.value.push(i),r()}return[n,o]}const y0e=pe({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:r}=t;const o=he();function i(s){var c;!((c=e.tab)===null||c===void 0)&&c.disabled||e.onClick(s)}n({domRef:o});function a(s){var c;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(c=e.tab)===null||c===void 0?void 0:c.key,event:s})}const l=M(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:c,id:u,active:d,tab:{key:f,tab:h,disabled:m,closeIcon:v},renderWrapper:y,removeAriaLabel:b,editable:$,onFocus:x}=e,_=`${c}-tab`,w=g("div",{key:f,ref:o,class:me(_,{[`${_}-with-remove`]:l.value,[`${_}-active`]:d,[`${_}-disabled`]:m}),style:r.style,onClick:i},[g("div",{role:"tab","aria-selected":d,id:u&&`${u}-tab-${f}`,class:`${_}-btn`,"aria-controls":u&&`${u}-panel-${f}`,"aria-disabled":m,tabindex:m?null:0,onClick:I=>{I.stopPropagation(),i(I)},onKeydown:I=>{[Fe.SPACE,Fe.ENTER].includes(I.which)&&(I.preventDefault(),i(I))},onFocus:x},[typeof h=="function"?h():h]),l.value&&g("button",{type:"button","aria-label":b||"remove",tabindex:0,class:`${_}-remove`,onClick:I=>{I.stopPropagation(),a(I)}},[(v==null?void 0:v())||((s=$.removeIcon)===null||s===void 0?void 0:s.call($))||"×"])]);return y?y(w):w}}}),VM={width:0,height:0,left:0,top:0};function S0e(e,t){const n=he(new Map);return ct(()=>{var r,o;const i=new Map,a=e.value,l=t.value.get((r=a[0])===null||r===void 0?void 0:r.key)||VM,s=l.left+l.width;for(let c=0;c{const{prefixCls:i,editable:a,locale:l}=e;return!a||a.showAdd===!1?null:g("button",{ref:o,type:"button",class:`${i}-nav-add`,style:r.style,"aria-label":(l==null?void 0:l.addAriaLabel)||"Add tab",onClick:s=>{a.onEdit("add",{event:s})}},[a.addIcon?a.addIcon():"+"])}}}),C0e={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Z.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Oe()},$0e=pe({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:C0e,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const[o,i]=nn(!1),[a,l]=nn(null),s=h=>{const m=e.tabs.filter(b=>!b.disabled);let v=m.findIndex(b=>b.key===a.value)||0;const y=m.length;for(let b=0;b{const{which:m}=h;if(!o.value){[Fe.DOWN,Fe.SPACE,Fe.ENTER].includes(m)&&(i(!0),h.preventDefault());return}switch(m){case Fe.UP:s(-1),h.preventDefault();break;case Fe.DOWN:s(1),h.preventDefault();break;case Fe.ESC:i(!1);break;case Fe.SPACE:case Fe.ENTER:a.value!==null&&e.onTabClick(a.value,h);break}},u=M(()=>`${e.id}-more-popup`),d=M(()=>a.value!==null?`${u.value}-${a.value}`:null),f=(h,m)=>{h.preventDefault(),h.stopPropagation(),e.editable.onEdit("remove",{key:m,event:h})};return lt(()=>{Ie(a,()=>{const h=document.getElementById(d.value);h&&h.scrollIntoView&&h.scrollIntoView(!1)},{flush:"post",immediate:!0})}),Ie(o,()=>{o.value||l(null)}),tO({}),()=>{var h;const{prefixCls:m,id:v,tabs:y,locale:b,mobile:$,moreIcon:x=((h=r.moreIcon)===null||h===void 0?void 0:h.call(r))||g(J_,null,null),moreTransitionName:_,editable:w,tabBarGutter:I,rtl:O,onTabClick:P,popupClassName:E}=e;if(!y.length)return null;const R=`${m}-dropdown`,A=b==null?void 0:b.dropdownAriaLabel,N={[O?"marginRight":"marginLeft"]:I};y.length||(N.visibility="hidden",N.order=1);const F=me({[`${R}-rtl`]:O,[`${E}`]:!0}),W=$?null:g(P9,{prefixCls:R,trigger:["hover"],visible:o.value,transitionName:_,onVisibleChange:i,overlayClassName:F,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>g(qn,{onClick:D=>{let{key:B,domEvent:k}=D;P(B,k),i(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[a.value],"aria-label":A!==void 0?A:"expanded dropdown"},{default:()=>[y.map(D=>{var B,k;const L=w&&D.closable!==!1&&!D.disabled;return g(Ea,{key:D.key,id:`${u.value}-${D.key}`,role:"option","aria-controls":v&&`${v}-panel-${D.key}`,disabled:D.disabled},{default:()=>[g("span",null,[typeof D.tab=="function"?D.tab():D.tab]),L&&g("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${R}-menu-item-remove`,onClick:z=>{z.stopPropagation(),f(z,D.key)}},[((B=D.closeIcon)===null||B===void 0?void 0:B.call(D))||((k=w.removeIcon)===null||k===void 0?void 0:k.call(w))||"×"])]})})]}),default:()=>g("button",{type:"button",class:`${m}-nav-more`,style:N,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${v}-more`,"aria-expanded":o.value,onKeydown:c},[x])});return g("div",{class:me(`${m}-nav-operations`,n.class),style:n.style},[W,g(zB,{prefixCls:m,locale:b,editable:w},null)])}}}),jB=Symbol("tabsContextKey"),x0e=e=>{ft(jB,e)},WB=()=>it(jB,{tabs:he([]),prefixCls:he()}),w0e=.1,KM=.01,mm=20,UM=Math.pow(.995,mm);function _0e(e,t){const[n,r]=nn(),[o,i]=nn(0),[a,l]=nn(0),[s,c]=nn(),u=he();function d(w){const{screenX:I,screenY:O}=w.touches[0];r({x:I,y:O}),clearInterval(u.value)}function f(w){if(!n.value)return;w.preventDefault();const{screenX:I,screenY:O}=w.touches[0],P=I-n.value.x,E=O-n.value.y;t(P,E),r({x:I,y:O});const R=Date.now();l(R-o.value),i(R),c({x:P,y:E})}function h(){if(!n.value)return;const w=s.value;if(r(null),c(null),w){const I=w.x/a.value,O=w.y/a.value,P=Math.abs(I),E=Math.abs(O);if(Math.max(P,E){if(Math.abs(R)R?(P=I,m.value="x"):(P=O,m.value="y"),t(-P,-P)&&w.preventDefault()}const y=he({onTouchStart:d,onTouchMove:f,onTouchEnd:h,onWheel:v});function b(w){y.value.onTouchStart(w)}function $(w){y.value.onTouchMove(w)}function x(w){y.value.onTouchEnd(w)}function _(w){y.value.onWheel(w)}lt(()=>{var w,I;document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",x,{passive:!1}),(w=e.value)===null||w===void 0||w.addEventListener("touchstart",b,{passive:!1}),(I=e.value)===null||I===void 0||I.addEventListener("wheel",_,{passive:!1})}),Ct(()=>{document.removeEventListener("touchmove",$),document.removeEventListener("touchend",x)})}function GM(e,t){const n=he(e);function r(o){const i=typeof o=="function"?o(n.value):o;i!==n.value&&t(i,n.value),n.value=i}return[n,r]}const EO=()=>{const e=he(new Map),t=n=>r=>{e.value.set(n,r)};return Ab(()=>{e.value=new Map}),[t,e]},YM={width:0,height:0,left:0,top:0,right:0},O0e=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:qe(),editable:qe(),moreIcon:Z.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:qe(),popupClassName:String,getPopupContainer:Oe(),onTabClick:{type:Function},onTabScroll:{type:Function}}),XM=pe({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:O0e(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:r}=t;const{tabs:o,prefixCls:i}=WB(),a=ve(),l=ve(),s=ve(),c=ve(),[u,d]=EO(),f=M(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[h,m]=GM(0,(ae,ge)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:ae>ge?"left":"right"})}),[v,y]=GM(0,(ae,ge)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:ae>ge?"top":"bottom"})}),[b,$]=nn(0),[x,_]=nn(0),[w,I]=nn(null),[O,P]=nn(null),[E,R]=nn(0),[A,N]=nn(0),[F,W]=b0e(new Map),D=S0e(o,F),B=M(()=>`${i.value}-nav-operations-hidden`),k=ve(0),L=ve(0);ct(()=>{f.value?e.rtl?(k.value=0,L.value=Math.max(0,b.value-w.value)):(k.value=Math.min(0,w.value-b.value),L.value=0):(k.value=Math.min(0,O.value-x.value),L.value=0)});const z=ae=>aeL.value?L.value:ae,K=ve(),[G,Y]=nn(),ne=()=>{Y(Date.now())},oe=()=>{clearTimeout(K.value)},J=(ae,ge)=>{ae(Se=>z(Se+ge))};_0e(a,(ae,ge)=>{if(f.value){if(w.value>=b.value)return!1;J(m,ae)}else{if(O.value>=x.value)return!1;J(y,ge)}return oe(),ne(),!0}),Ie(G,()=>{oe(),G.value&&(K.value=setTimeout(()=>{Y(0)},100))});const te=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const ge=D.value.get(ae)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let Se=h.value;e.rtl?ge.righth.value+w.value&&(Se=ge.right+ge.width-w.value):ge.left<-h.value?Se=-ge.left:ge.left+ge.width>-h.value+w.value&&(Se=-(ge.left+ge.width-w.value)),y(0),m(z(Se))}else{let Se=v.value;ge.top<-v.value?Se=-ge.top:ge.top+ge.height>-v.value+O.value&&(Se=-(ge.top+ge.height-O.value)),m(0),y(z(Se))}},ee=ve(0),fe=ve(0);ct(()=>{let ae,ge,Se,$e,_e,be;const Te=D.value;["top","bottom"].includes(e.tabPosition)?(ae="width",$e=w.value,_e=b.value,be=E.value,ge=e.rtl?"right":"left",Se=Math.abs(h.value)):(ae="height",$e=O.value,_e=b.value,be=A.value,ge="top",Se=-v.value);let Pe=$e;_e+be>$e&&_e<$e&&(Pe=$e-be);const re=o.value;if(!re.length)return[ee.value,fe.value]=[0,0];const le=re.length;let xe=le;for(let Be=0;BeSe+Pe){xe=Be-1;break}}let Ae=0;for(let Be=le-1;Be>=0;Be-=1)if((Te.get(re[Be].key)||YM)[ge]{var ae,ge,Se,$e,_e;const be=((ae=a.value)===null||ae===void 0?void 0:ae.offsetWidth)||0,Te=((ge=a.value)===null||ge===void 0?void 0:ge.offsetHeight)||0,Pe=((Se=c.value)===null||Se===void 0?void 0:Se.$el)||{},re=Pe.offsetWidth||0,le=Pe.offsetHeight||0;I(be),P(Te),R(re),N(le);const xe=((($e=l.value)===null||$e===void 0?void 0:$e.offsetWidth)||0)-re,Ae=(((_e=l.value)===null||_e===void 0?void 0:_e.offsetHeight)||0)-le;$(xe),_(Ae),W(()=>{const Be=new Map;return o.value.forEach(Ye=>{let{key:Re}=Ye;const Le=d.value.get(Re),Ne=(Le==null?void 0:Le.$el)||Le;Ne&&Be.set(Re,{width:Ne.offsetWidth,height:Ne.offsetHeight,left:Ne.offsetLeft,top:Ne.offsetTop})}),Be})},X=M(()=>[...o.value.slice(0,ee.value),...o.value.slice(fe.value+1)]),[ue,ye]=nn(),H=M(()=>D.value.get(e.activeKey)),j=ve(),q=()=>{mt.cancel(j.value)};Ie([H,f,()=>e.rtl],()=>{const ae={};H.value&&(f.value?(e.rtl?ae.right=sc(H.value.right):ae.left=sc(H.value.left),ae.width=sc(H.value.width)):(ae.top=sc(H.value.top),ae.height=sc(H.value.height))),q(),j.value=mt(()=>{ye(ae)})}),Ie([()=>e.activeKey,H,D,f],()=>{te()},{flush:"post"}),Ie([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{ie()},{flush:"post"});const se=ae=>{let{position:ge,prefixCls:Se,extra:$e}=ae;if(!$e)return null;const _e=$e==null?void 0:$e({position:ge});return _e?g("div",{class:`${Se}-extra-content`},[_e]):null};return Ct(()=>{oe(),q()}),()=>{const{id:ae,animated:ge,activeKey:Se,rtl:$e,editable:_e,locale:be,tabPosition:Te,tabBarGutter:Pe,onTabClick:re}=e,{class:le,style:xe}=n,Ae=i.value,Be=!!X.value.length,Ye=`${Ae}-nav-wrap`;let Re,Le,Ne,Ke;f.value?$e?(Le=h.value>0,Re=h.value+w.value{const{key:Mt}=Xe;return g(y0e,{id:ae,prefixCls:Ae,key:Mt,tab:Xe,style:xt===0?void 0:Ze,closable:Xe.closable,editable:_e,active:Mt===Se,removeAriaLabel:be==null?void 0:be.removeAriaLabel,ref:u(Mt),onClick:Ft=>{re(Mt,Ft)},onFocus:()=>{te(Mt),ne(),a.value&&($e||(a.value.scrollLeft=0),a.value.scrollTop=0)}},r)});return g("div",{role:"tablist",class:me(`${Ae}-nav`,le),style:xe,onKeydown:()=>{ne()}},[g(se,{position:"left",prefixCls:Ae,extra:r.leftExtra},null),g(ki,{onResize:ie},{default:()=>[g("div",{class:me(Ye,{[`${Ye}-ping-left`]:Re,[`${Ye}-ping-right`]:Le,[`${Ye}-ping-top`]:Ne,[`${Ye}-ping-bottom`]:Ke}),ref:a},[g(ki,{onResize:ie},{default:()=>[g("div",{ref:l,class:`${Ae}-nav-list`,style:{transform:`translate(${h.value}px, ${v.value}px)`,transition:G.value?"none":void 0}},[Ue,g(zB,{ref:c,prefixCls:Ae,locale:be,editable:_e,style:S(S({},Ue.length===0?void 0:Ze),{visibility:Be?"hidden":null})},null),g("div",{class:me(`${Ae}-ink-bar`,{[`${Ae}-ink-bar-animated`]:ge.inkBar}),style:ue.value},null)])]})])]}),g($0e,V(V({},e),{},{removeAriaLabel:be==null?void 0:be.removeAriaLabel,ref:s,prefixCls:Ae,tabs:X.value,class:!Be&&B.value}),g9(r,["moreIcon"])),g(se,{position:"right",prefixCls:Ae,extra:r.rightExtra},null),g(se,{position:"right",prefixCls:Ae,extra:r.tabBarExtraContent},null)])}}}),I0e=pe({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=WB();return()=>{const{id:r,activeKey:o,animated:i,tabPosition:a,rtl:l,destroyInactiveTabPane:s}=e,c=i.tabPane,u=n.value,d=t.value.findIndex(f=>f.key===o);return g("div",{class:`${u}-content-holder`},[g("div",{class:[`${u}-content`,`${u}-content-${a}`,{[`${u}-content-animated`]:c}],style:d&&c?{[l?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>Gt(f.node,{key:f.key,prefixCls:u,tabKey:f.key,id:r,animated:c,active:f.key===o,destroyInactiveTabPane:s}))])])}}});var P0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const T0e=P0e;function qM(e){for(var t=1;t{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}`}}}}},[Na(e,"slide-up"),Na(e,"slide-down")]]},R0e=M0e,D0e=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,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:`${o}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:`${o}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}}}}}}},L0e=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:S(S({},vt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":S(S({},er),{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"}}})}})}},N0e=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}}}}}},k0e=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`}}}}}},B0e=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:i}=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":S({"&:focus:not(:focus-visible), &:active":{color:n}},Sl(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 ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},F0e=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=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:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},H0e=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:i,tabsActiveColor:a,colorSplit:l}=e;return{[t]:S(S(S(S({},vt(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`]:S({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}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:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Sl(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),B0e(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},z0e=pt("Tabs",e=>{const t=e.controlHeightLG,n=nt(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[k0e(n),F0e(n),N0e(n),L0e(n),D0e(n),H0e(n),R0e(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let ZM=0;const VB=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Oe(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Qe(),animated:ot([Boolean,Object]),renderTabBar:Oe(),tabBarGutter:{type:Number},tabBarStyle:qe(),tabPosition:Qe(),destroyInactiveTabPane:De(),hideAdd:Boolean,type:Qe(),size:Qe(),centered:Boolean,onEdit:Oe(),onChange:Oe(),onTabClick:Oe(),onTabScroll:Oe(),"onUpdate:activeKey":Oe(),locale:qe(),onPrevClick:Oe(),onNextClick:Oe(),tabBarExtraContent:Z.any});function j0e(e){return e.map(t=>{if(Jn(t)){const n=S({},t.props||{});for(const[f,h]of Object.entries(n))delete n[f],n[Gc(f)]=h;const r=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:i=r.tab,disabled:a,forceRender:l,closable:s,animated:c,active:u,destroyInactiveTabPane:d}=n;return S(S({key:o},n),{node:t,closeIcon:r.closeIcon,tab:i,disabled:a===""||a,forceRender:l===""||l,closable:s===""||s,animated:c===""||c,active:u===""||u,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const W0e=pe({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:S(S({},bt(VB(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:kt()}),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;pn(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),pn(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),pn(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:i,size:a,rootPrefixCls:l,getPopupContainer:s}=Ve("tabs",e),[c,u]=z0e(o),d=M(()=>i.value==="rtl"),f=M(()=>{const{animated:O,tabPosition:P}=e;return O===!1||["left","right"].includes(P)?{inkBar:!1,tabPane:!1}:O===!0?{inkBar:!0,tabPane:!0}:S({inkBar:!0,tabPane:!1},typeof O=="object"?O:{})}),[h,m]=nn(!1);lt(()=>{m(i_())});const[v,y]=yn(()=>{var O;return(O=e.tabs[0])===null||O===void 0?void 0:O.key},{value:M(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[b,$]=nn(()=>e.tabs.findIndex(O=>O.key===v.value));ct(()=>{var O;let P=e.tabs.findIndex(E=>E.key===v.value);P===-1&&(P=Math.max(0,Math.min(b.value,e.tabs.length-1)),y((O=e.tabs[P])===null||O===void 0?void 0:O.key)),$(P)});const[x,_]=yn(null,{value:M(()=>e.id)}),w=M(()=>h.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);lt(()=>{e.id||(_(`rc-tabs-${ZM}`),ZM+=1)});const I=(O,P)=>{var E,R;(E=e.onTabClick)===null||E===void 0||E.call(e,O,P);const A=O!==v.value;y(O),A&&((R=e.onChange)===null||R===void 0||R.call(e,O))};return x0e({tabs:M(()=>e.tabs),prefixCls:o}),()=>{const{id:O,type:P,tabBarGutter:E,tabBarStyle:R,locale:A,destroyInactiveTabPane:N,renderTabBar:F=r.renderTabBar,onTabScroll:W,hideAdd:D,centered:B}=e,k={id:x.value,activeKey:v.value,animated:f.value,tabPosition:w.value,rtl:d.value,mobile:h.value};let L;P==="editable-card"&&(L={onEdit:(Y,ne)=>{let{key:oe,event:J}=ne;var te;(te=e.onEdit)===null||te===void 0||te.call(e,Y==="add"?J:oe,Y)},removeIcon:()=>g(Vo,null,null),addIcon:r.addIcon?r.addIcon:()=>g(A0e,null,null),showAdd:D!==!0});let z;const K=S(S({},k),{moreTransitionName:`${l.value}-slide-up`,editable:L,locale:A,tabBarGutter:E,onTabClick:I,onTabScroll:W,style:R,getPopupContainer:s.value,popupClassName:me(e.popupClassName,u.value)});F?z=F(S(S({},K),{DefaultTabBar:XM})):z=g(XM,K,g9(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const G=o.value;return c(g("div",V(V({},n),{},{id:O,class:me(G,`${G}-${w.value}`,{[u.value]:!0,[`${G}-${a.value}`]:a.value,[`${G}-card`]:["card","editable-card"].includes(P),[`${G}-editable-card`]:P==="editable-card",[`${G}-centered`]:B,[`${G}-mobile`]:h.value,[`${G}-editable`]:P==="editable-card",[`${G}-rtl`]:d.value},n.class)}),[z,g(I0e,V(V({destroyInactiveTabPane:N},k),{},{animated:f.value}),null)]))}}}),wc=pe({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:bt(VB(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const i=a=>{o("update:activeKey",a),o("change",a)};return()=>{var a;const l=j0e(ln((a=r.default)===null||a===void 0?void 0:a.call(r)));return g(W0e,V(V(V({},Ot(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:l}),r)}}}),V0e=()=>({tab:Z.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),N0=pe({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:V0e(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const o=he(e.forceRender);Ie([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const i=M(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var a;const{prefixCls:l,forceRender:s,id:c,active:u,tabKey:d}=e;return g("div",{id:c&&`${c}-panel-${d}`,role:"tabpanel",tabindex:u?0:-1,"aria-labelledby":c&&`${c}-tab-${d}`,"aria-hidden":!u,style:[i.value,n.style],class:[`${l}-tabpane`,u&&`${l}-tabpane-active`,n.class]},[(u||o.value||s)&&((a=r.default)===null||a===void 0?void 0:a.call(r))])}}});wc.TabPane=N0;wc.install=function(e){return e.component(wc.name,wc),e.component(N0.name,N0),e};const K0e=e=>{const{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:o,cardHeadTabsMarginBottom:i}=e;return S(S({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${o}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`},aa()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":S(S({display:"inline-block",flex:1},er),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},U0e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${o}px 0 0 0 ${n}, - 0 ${o}px 0 0 ${n}, - ${o}px ${o}px 0 0 ${n}, - ${o}px 0 0 0 ${n} inset, - 0 ${o}px 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},G0e=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i}=e;return S(S({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},aa()),{"& > 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:o,lineHeight:`${o*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`}}})},Y0e=e=>S(S({margin:`-${e.marginXXS}px 0`,display:"flex"},aa()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":S({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},er),"&-description":{color:e.colorTextDescription}}),X0e=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`}}},q0e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Z0e=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadow:i,cardPaddingBase:a}=e;return{[t]:S(S({},vt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:K0e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:S({padding:a,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},aa()),[`${t}-grid`]:U0e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:G0e(e),[`${t}-meta`]:Y0e(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${o}`,[`${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`]:X0e(e),[`${t}-loading`]:q0e(e),[`${t}-rtl`]:{direction:"rtl"}}},Q0e=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"}}}}},J0e=pt("Card",e=>{const t=nt(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[Z0e(t),Q0e(t)]}),ebe=()=>({prefixCls:String,width:{type:[Number,String]}}),tbe=pe({compatConfig:{MODE:3},name:"SkeletonTitle",props:ebe(),setup(e){return()=>{const{prefixCls:t,width:n}=e,r=typeof n=="number"?`${n}px`:n;return g("h3",{class:t,style:{width:r}},null)}}}),Iy=tbe,nbe=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),rbe=pe({compatConfig:{MODE:3},name:"SkeletonParagraph",props:nbe(),setup(e){const t=n=>{const{width:r,rows:o=2}=e;if(Array.isArray(r))return r[n];if(o-1===n)return r};return()=>{const{prefixCls:n,rows:r}=e,o=[...Array(r)].map((i,a)=>{const l=t(a);return g("li",{key:a,style:{width:typeof l=="number"?`${l}px`:l}},null)});return g("ul",{class:n},[o])}}}),obe=rbe,Py=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),KB=e=>{const{prefixCls:t,size:n,shape:r}=e,o=me({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),i=me({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),a=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return g("span",{class:me(t,o,i),style:a},null)};KB.displayName="SkeletonElement";const Ty=KB,ibe=new Pt("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Ey=e=>({height:e,lineHeight:`${e}px`}),pd=e=>S({width:e},Ey(e)),abe=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:ibe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),mC=e=>S({width:e*5,minWidth:e*5},Ey(e)),lbe=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:S({display:"inline-block",verticalAlign:"top",background:n},pd(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:S({},pd(o)),[`${t}${t}-sm`]:S({},pd(i))}},sbe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,color:a}=e;return{[`${r}`]:S({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},mC(t)),[`${r}-lg`]:S({},mC(o)),[`${r}-sm`]:S({},mC(i))}},QM=e=>S({width:e},Ey(e)),cbe=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:o}=e;return{[`${t}`]:S(S({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},QM(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:S(S({},QM(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},bC=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},yC=e=>S({width:e*2,minWidth:e*2},Ey(e)),ube=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,color:a}=e;return S(S(S(S(S({[`${n}`]:S({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:r*2,minWidth:r*2},yC(r))},bC(e,r,n)),{[`${n}-lg`]:S({},yC(o))}),bC(e,o,`${n}-lg`)),{[`${n}-sm`]:S({},yC(i))}),bC(e,i,`${n}-sm`))},dbe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:f,marginSM:h,borderRadius:m,skeletonTitleHeight:v,skeletonBlockRadius:y,skeletonParagraphLineHeight:b,controlHeightXS:$,skeletonParagraphMarginTop:x}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:S({display:"inline-block",verticalAlign:"top",background:d},pd(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:S({},pd(c)),[`${n}-sm`]:S({},pd(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:v,background:d,borderRadius:y,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:y,"+ li":{marginBlockStart:$}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:S(S(S(S({display:"inline-block",width:"auto"},ube(e)),lbe(e)),sbe(e)),cbe(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${r}, - ${o} > li, - ${n}, - ${i}, - ${a}, - ${l} - `]:S({},abe(e))}}},qh=pt("Skeleton",e=>{const{componentCls:t}=e,n=nt(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[dbe(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),fbe=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function SC(e){return e&&typeof e=="object"?e:{}}function pbe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function hbe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function gbe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const vbe=pe({compatConfig:{MODE:3},name:"ASkeleton",props:bt(fbe(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=Ve("skeleton",e),[i,a]=qh(r);return()=>{var l;const{loading:s,avatar:c,title:u,paragraph:d,active:f,round:h}=e,m=r.value;if(s||e.loading===void 0){const v=!!c||c==="",y=!!u||u==="",b=!!d||d==="";let $;if(v){const w=S(S({prefixCls:`${m}-avatar`},pbe(y,b)),SC(c));$=g("div",{class:`${m}-header`},[g(Ty,w,null)])}let x;if(y||b){let w;if(y){const O=S(S({prefixCls:`${m}-title`},hbe(v,b)),SC(u));w=g(Iy,O,null)}let I;if(b){const O=S(S({prefixCls:`${m}-paragraph`},gbe(v,y)),SC(d));I=g(obe,O,null)}x=g("div",{class:`${m}-content`},[w,I])}const _=me(m,{[`${m}-with-avatar`]:v,[`${m}-active`]:f,[`${m}-rtl`]:o.value==="rtl",[`${m}-round`]:h,[a.value]:!0});return i(g("div",{class:_},[$,x]))}return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),no=vbe,mbe=()=>S(S({},Py()),{size:String,block:Boolean}),bbe=pe({compatConfig:{MODE:3},name:"ASkeletonButton",props:bt(mbe(),{size:"default"}),setup(e){const{prefixCls:t}=Ve("skeleton",e),[n,r]=qh(t),o=M(()=>me(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(g("div",{class:o.value},[g(Ty,V(V({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),MO=bbe,ybe=pe({compatConfig:{MODE:3},name:"ASkeletonInput",props:S(S({},Ot(Py(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Ve("skeleton",e),[n,r]=qh(t),o=M(()=>me(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(g("div",{class:o.value},[g(Ty,V(V({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),RO=ybe,Sbe="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",Cbe=pe({compatConfig:{MODE:3},name:"ASkeletonImage",props:Ot(Py(),["size","shape","active"]),setup(e){const{prefixCls:t}=Ve("skeleton",e),[n,r]=qh(t),o=M(()=>me(t.value,`${t.value}-element`,r.value));return()=>n(g("div",{class:o.value},[g("div",{class:`${t.value}-image`},[g("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[g("path",{d:Sbe,class:`${t.value}-image-path`},null)])])]))}}),DO=Cbe,$be=()=>S(S({},Py()),{shape:String}),xbe=pe({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:bt($be(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Ve("skeleton",e),[n,r]=qh(t),o=M(()=>me(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},r.value));return()=>n(g("div",{class:o.value},[g(Ty,V(V({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),LO=xbe;no.Button=MO;no.Avatar=LO;no.Input=RO;no.Image=DO;no.Title=Iy;no.install=function(e){return e.component(no.name,no),e.component(no.Button.name,MO),e.component(no.Avatar.name,LO),e.component(no.Input.name,RO),e.component(no.Image.name,DO),e.component(no.Title.name,Iy),e};const{TabPane:wbe}=wc,_be=()=>({prefixCls:String,title:Z.any,extra:Z.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:Z.any,tabList:{type:Array},tabBarExtraContent:Z.any,activeTabKey:String,defaultActiveTabKey:String,cover:Z.any,onTabChange:{type:Function}}),Obe=pe({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:_be(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i,size:a}=Ve("card",e),[l,s]=J0e(o),c=f=>f.map((m,v)=>vr(m)&&!Nh(m)||!vr(m)?g("li",{style:{width:`${100/f.length}%`},key:`action-${v}`},[g("span",null,[m])]):null),u=f=>{var h;(h=e.onTabChange)===null||h===void 0||h.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h;return f.forEach(m=>{m&&hy(m.type)&&m.type.__ANT_CARD_GRID&&(h=!0)}),h};return()=>{var f,h,m,v,y,b;const{headStyle:$={},bodyStyle:x={},loading:_,bordered:w=!0,type:I,tabList:O,hoverable:P,activeTabKey:E,defaultActiveTabKey:R,tabBarExtraContent:A=zf((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:N=zf((h=n.title)===null||h===void 0?void 0:h.call(n)),extra:F=zf((m=n.extra)===null||m===void 0?void 0:m.call(n)),actions:W=zf((v=n.actions)===null||v===void 0?void 0:v.call(n)),cover:D=zf((y=n.cover)===null||y===void 0?void 0:y.call(n))}=e,B=ln((b=n.default)===null||b===void 0?void 0:b.call(n)),k=o.value,L={[`${k}`]:!0,[s.value]:!0,[`${k}-loading`]:_,[`${k}-bordered`]:w,[`${k}-hoverable`]:!!P,[`${k}-contain-grid`]:d(B),[`${k}-contain-tabs`]:O&&O.length,[`${k}-${a.value}`]:a.value,[`${k}-type-${I}`]:!!I,[`${k}-rtl`]:i.value==="rtl"},z=g(no,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[B]}),K=E!==void 0,G={size:"large",[K?"activeKey":"defaultActiveKey"]:K?E:R,onChange:u,class:`${k}-head-tabs`};let Y;const ne=O&&O.length?g(wc,G,{default:()=>[O.map(ee=>{const{tab:fe,slots:ie}=ee,X=ie==null?void 0:ie.tab;pn(!ie,"Card","tabList slots is deprecated, Please use `customTab` instead.");let ue=fe!==void 0?fe:n[X]?n[X](ee):null;return ue=Yb(n,"customTab",ee,()=>[ue]),g(wbe,{tab:ue,key:ee.key,disabled:ee.disabled},null)})],rightExtra:A?()=>A:null}):null;(N||F||ne)&&(Y=g("div",{class:`${k}-head`,style:$},[g("div",{class:`${k}-head-wrapper`},[N&&g("div",{class:`${k}-head-title`},[N]),F&&g("div",{class:`${k}-extra`},[F])]),ne]));const oe=D?g("div",{class:`${k}-cover`},[D]):null,J=g("div",{class:`${k}-body`,style:x},[_?z:B]),te=W&&W.length?g("ul",{class:`${k}-actions`},[c(W)]):null;return l(g("div",V(V({ref:"cardContainerRef"},r),{},{class:[L,r.class]}),[Y,oe,B&&B.length?J:null,te]))}}}),hd=Obe,Ibe=()=>({prefixCls:String,title:ro(),description:ro(),avatar:ro()}),k0=pe({compatConfig:{MODE:3},name:"ACardMeta",props:Ibe(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=Ve("card",e);return()=>{const o={[`${r.value}-meta`]:!0},i=lr(n,e,"avatar"),a=lr(n,e,"title"),l=lr(n,e,"description"),s=i?g("div",{class:`${r.value}-meta-avatar`},[i]):null,c=a?g("div",{class:`${r.value}-meta-title`},[a]):null,u=l?g("div",{class:`${r.value}-meta-description`},[l]):null,d=c||u?g("div",{class:`${r.value}-meta-detail`},[c,u]):null;return g("div",{class:o},[s,d])}}}),Pbe=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),B0=pe({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:Pbe(),setup(e,t){let{slots:n}=t;const{prefixCls:r}=Ve("card",e),o=M(()=>({[`${r.value}-grid`]:!0,[`${r.value}-grid-hoverable`]:e.hoverable}));return()=>{var i;return g("div",{class:o.value},[(i=n.default)===null||i===void 0?void 0:i.call(n)])}}});hd.Meta=k0;hd.Grid=B0;hd.install=function(e){return e.component(hd.name,hd),e.component(k0.name,k0),e.component(B0.name,B0),e};const Tbe=()=>({prefixCls:String,activeKey:ot([Array,Number,String]),defaultActiveKey:ot([Array,Number,String]),accordion:De(),destroyInactivePanel:De(),bordered:De(),expandIcon:Oe(),openAnimation:Z.object,expandIconPosition:Qe(),collapsible:Qe(),ghost:De(),onChange:Oe(),"onUpdate:activeKey":Oe()}),UB=()=>({openAnimation:Z.object,prefixCls:String,header:Z.any,headerClass:String,showArrow:De(),isActive:De(),destroyInactivePanel:De(),disabled:De(),accordion:De(),forceRender:De(),expandIcon:Oe(),extra:Z.any,panelKey:ot(),collapsible:Qe(),role:String,onItemClick:Oe()}),Ebe=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapsePanelBorderRadius:l,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:f,colorTextDisabled:h,fontSize:m,lineHeight:v,marginSM:y,paddingSM:b,motionDurationSlow:$,fontSizeIcon:x}=e,_=`${s}px ${c} ${u}`;return{[t]:S(S({},vt(e)),{backgroundColor:i,border:_,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&: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:f,lineHeight:v,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:m*v,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:S(S({},Xc()),{fontSize:x,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:b}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:_,[`& > ${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`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},Abe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Mbe=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}}}},Rbe=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}}}}}},Dbe=pt("Collapse",e=>{const t=nt(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Ebe(t),Mbe(t),Rbe(t),Abe(t),Kh(t)]});function JM(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const _p=pe({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:bt(Tbe(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const i=he(JM(w0([e.activeKey,e.defaultActiveKey])));Ie(()=>e.activeKey,()=>{i.value=JM(e.activeKey)},{deep:!0});const{prefixCls:a,direction:l,rootPrefixCls:s}=Ve("collapse",e),[c,u]=Dbe(a),d=M(()=>{const{expandIconPosition:b}=e;return b!==void 0?b:l.value==="rtl"?"end":"start"}),f=b=>{const{expandIcon:$=r.expandIcon}=e,x=$?$(b):g(sa,{rotate:b.isActive?90:void 0},null);return g("div",{class:[`${a.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&m(b.panelKey)},[Jn(Array.isArray($)?x[0]:x)?Gt(x,{class:`${a.value}-arrow`},!1):x])},h=b=>{e.activeKey===void 0&&(i.value=b);const $=e.accordion?b[0]:b;o("update:activeKey",$),o("change",$)},m=b=>{let $=i.value;if(e.accordion)$=$[0]===b?[]:[b];else{$=[...$];const x=$.indexOf(b);x>-1?$.splice(x,1):$.push(b)}h($)},v=(b,$)=>{var x,_,w;if(Nh(b))return;const I=i.value,{accordion:O,destroyInactivePanel:P,collapsible:E,openAnimation:R}=e,A=R||Uh(`${s.value}-motion-collapse`),N=String((x=b.key)!==null&&x!==void 0?x:$),{header:F=(w=(_=b.children)===null||_===void 0?void 0:_.header)===null||w===void 0?void 0:w.call(_),headerClass:W,collapsible:D,disabled:B}=b.props||{};let k=!1;O?k=I[0]===N:k=I.indexOf(N)>-1;let L=D??E;(B||B==="")&&(L="disabled");const z={key:N,panelKey:N,header:F,headerClass:W,isActive:k,prefixCls:a.value,destroyInactivePanel:P,openAnimation:A,accordion:O,onItemClick:L==="disabled"?null:m,expandIcon:f,collapsible:L};return Gt(b,z)},y=()=>{var b;return ln((b=r.default)===null||b===void 0?void 0:b.call(r)).map(v)};return()=>{const{accordion:b,bordered:$,ghost:x}=e,_=me(a.value,{[`${a.value}-borderless`]:!$,[`${a.value}-icon-position-${d.value}`]:!0,[`${a.value}-rtl`]:l.value==="rtl",[`${a.value}-ghost`]:!!x,[n.class]:!!n.class},u.value);return c(g("div",V(V({class:_},$ee(n)),{},{style:n.style,role:b?"tablist":null}),[y()]))}}}),Lbe=pe({compatConfig:{MODE:3},name:"PanelContent",props:UB(),setup(e,t){let{slots:n}=t;const r=ve(!1);return ct(()=>{(e.isActive||e.forceRender)&&(r.value=!0)}),()=>{var o;if(!r.value)return null;const{prefixCls:i,isActive:a,role:l}=e;return g("div",{class:me(`${i}-content`,{[`${i}-content-active`]:a,[`${i}-content-inactive`]:!a}),role:l},[g("div",{class:`${i}-content-box`},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}}),F0=pe({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:bt(UB(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;pn(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=Ve("collapse",e),a=()=>{r("itemClick",e.panelKey)},l=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&a()};return()=>{var s,c;const{header:u=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:h,destroyInactivePanel:m,accordion:v,forceRender:y,openAnimation:b,expandIcon:$=n.expandIcon,extra:x=(c=n.extra)===null||c===void 0?void 0:c.call(n),collapsible:_}=e,w=_==="disabled",I=i.value,O=me(`${I}-header`,{[d]:d,[`${I}-header-collapsible-only`]:_==="header",[`${I}-icon-collapsible-only`]:_==="icon"}),P=me({[`${I}-item`]:!0,[`${I}-item-active`]:f,[`${I}-item-disabled`]:w,[`${I}-no-arrow`]:!h,[`${o.class}`]:!!o.class});let E=g("i",{class:"arrow"},null);h&&typeof $=="function"&&(E=$(e));const R=Ln(g(Lbe,{prefixCls:I,isActive:f,forceRender:y,role:v?"tabpanel":null},{default:n.default}),[[Br,f]]),A=S({appear:!1,css:!1},b);return g("div",V(V({},o),{},{class:P}),[g("div",{class:O,onClick:()=>!["header","icon"].includes(_)&&a(),role:v?"tab":"button",tabindex:w?-1:0,"aria-expanded":f,onKeypress:l},[h&&E,g("span",{onClick:()=>_==="header"&&a(),class:`${I}-header-text`},[u]),x&&g("div",{class:`${I}-extra`},[x])]),g(sr,A,{default:()=>[!m||f?R:null]})])}}});_p.Panel=F0;_p.install=function(e){return e.component(_p.name,_p),e.component(F0.name,F0),e};const Nbe=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},kbe=function(e){return/[height|width]$/.test(e)},e6=function(e){let t="";const n=Object.keys(e);return n.forEach(function(r,o){let i=e[r];r=Nbe(r),kbe(r)&&typeof i=="number"&&(i=i+"px"),i===!0?t+=r:i===!1?t+="not "+r:t+="("+r+": "+i+")",o{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},H0=e=>{const t=[],n=YB(e),r=XB(e);for(let o=n;oe.currentSlide-zbe(e),XB=e=>e.currentSlide+jbe(e),zbe=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,jbe=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Dx=e=>e&&e.offsetWidth||0,NO=e=>e&&e.offsetHeight||0,qB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const r=e.startX-e.curX,o=e.startY-e.curY,i=Math.atan2(o,r);return n=Math.round(i*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Ay=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},$C=(e,t)=>{const n={};return t.forEach(r=>n[r]=e[r]),n},Wbe=e=>{const t=e.children.length,n=e.listRef,r=Math.ceil(Dx(n)),o=e.trackRef,i=Math.ceil(Dx(o));let a;if(e.vertical)a=r;else{let h=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(h*=r/100),a=Math.ceil((r-h)/e.slidesToShow)}const l=n&&NO(n.querySelector('[data-index="0"]')),s=l*e.slidesToShow;let c=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=H0(S(S({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const f={slideCount:t,slideWidth:a,listWidth:r,trackWidth:i,currentSlide:c,slideHeight:l,listHeight:s,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},Vbe=e=>{const{waitForAnimate:t,animating:n,fade:r,infinite:o,index:i,slideCount:a,lazyLoad:l,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:h}=e;if(t&&n)return{};let m=i,v,y,b,$={},x={};const _=o?i:Rx(i,0,a-1);if(r){if(!o&&(i<0||i>=a))return{};i<0?m=i+a:i>=a&&(m=i-a),l&&h.indexOf(m)<0&&(h=h.concat(m)),$={animating:!0,currentSlide:m,lazyLoadedList:h,targetSlide:m},x={animating:!1,targetSlide:m}}else v=m,m<0?(v=m+a,o?a%u!==0&&(v=a-a%u):v=0):!Ay(e)&&m>s?m=v=s:c&&m>=a?(m=o?a:a-1,v=o?0:a-1):m>=a&&(v=m-a,o?a%u!==0&&(v=0):v=a-d),!o&&m+d>=a&&(v=a-d),y=mh(S(S({},e),{slideIndex:m})),b=mh(S(S({},e),{slideIndex:v})),o||(y===b&&(m=v),y=b),l&&(h=h.concat(H0(S(S({},e),{currentSlide:m})))),f?($={animating:!0,currentSlide:v,trackStyle:ZB(S(S({},e),{left:y})),lazyLoadedList:h,targetSlide:_},x={animating:!1,currentSlide:v,trackStyle:vh(S(S({},e),{left:b})),swipeLeft:null,targetSlide:_}):$={currentSlide:v,trackStyle:vh(S(S({},e),{left:b})),lazyLoadedList:h,targetSlide:_};return{state:$,nextState:x}},Kbe=(e,t)=>{let n,r,o;const{slidesToScroll:i,slidesToShow:a,slideCount:l,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,h=l%i!==0?0:(l-s)%i;if(t.message==="previous")r=h===0?i:a-h,o=s-r,u&&!d&&(n=s-r,o=n===-1?l-1:n),d||(o=c-i);else if(t.message==="next")r=h===0?i:h,o=s+r,u&&!d&&(o=(s+i)%l+h),d||(o=c+i);else if(t.message==="dots")o=t.index*t.slidesToScroll;else if(t.message==="children"){if(o=t.index,d){const m=Qbe(S(S({},e),{targetSlide:o}));o>t.currentSlide&&m==="left"?o=o-l:oe.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",Gbe=(e,t,n)=>(e.target.tagName==="IMG"&&gd(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),Ybe=(e,t)=>{const{scrolling:n,animating:r,vertical:o,swipeToSlide:i,verticalSwiping:a,rtl:l,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:f,swiping:h,slideCount:m,slidesToScroll:v,infinite:y,touchObject:b,swipeEvent:$,listHeight:x,listWidth:_}=t;if(n)return;if(r)return gd(e);o&&i&&a&&gd(e);let w,I={};const O=mh(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));const P=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!a&&!h&&P>10)return{scrolling:!0};a&&(b.swipeLength=P);let E=(l?-1:1)*(b.curX>b.startX?1:-1);a&&(E=b.curY>b.startY?1:-1);const R=Math.ceil(m/v),A=qB(t.touchObject,a);let N=b.swipeLength;return y||(s===0&&(A==="right"||A==="down")||s+1>=R&&(A==="left"||A==="up")||!Ay(t)&&(A==="left"||A==="up"))&&(N=b.swipeLength*c,u===!1&&d&&(d(A),I.edgeDragged=!0)),!f&&$&&($(A),I.swiped=!0),o?w=O+N*(x/_)*E:l?w=O-N*E:w=O+N*E,a&&(w=O+N*E),I=S(S({},I),{touchObject:b,swipeLeft:w,trackStyle:vh(S(S({},t),{left:w}))}),Math.abs(b.curX-b.startX)10&&(I.swiping=!0,gd(e)),I},Xbe=(e,t)=>{const{dragging:n,swipe:r,touchObject:o,listWidth:i,touchThreshold:a,verticalSwiping:l,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:f,currentSlide:h,infinite:m}=t;if(!n)return r&&gd(e),{};const v=l?s/a:i/a,y=qB(o,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!o.swipeLength)return b;if(o.swipeLength>v){gd(e),d&&d(y);let $,x;const _=m?h:f;switch(y){case"left":case"up":x=_+n6(t),$=c?t6(t,x):x,b.currentDirection=0;break;case"right":case"down":x=_-n6(t),$=c?t6(t,x):x,b.currentDirection=1;break;default:$=_}b.triggerSlideHandler=$}else{const $=mh(t);b.trackStyle=ZB(S(S({},t),{left:$}))}return b},qbe=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0;const o=[];for(;n{const n=qbe(e);let r=0;if(t>n[n.length-1])t=n[n.length-1];else for(const o in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(l=>{if(e.vertical){if(l.offsetTop+NO(l)/2>e.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-t+Dx(l)/2>e.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;const i=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}else return e.slidesToScroll},kO=(e,t)=>t.reduce((n,r)=>n&&e.hasOwnProperty(r),!0)?null:console.error("Keys Missing:",e),vh=e=>{kO(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=Zbe(e)*e.slideWidth;let o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=S(S({},o),{WebkitTransform:i,transform:a,msTransform:l})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t+"px"),n&&(o.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},ZB=e=>{kO(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=vh(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},mh=e=>{if(e.unslick)return 0;kO(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:r,centerMode:o,slideCount:i,slidesToShow:a,slidesToScroll:l,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:f,vertical:h}=e;let m=0,v,y,b=0;if(f||e.slideCount===1)return 0;let $=0;if(r?($=-vl(e),i%l!==0&&t+l>i&&($=-(t>i?a-(t-i):i%l)),o&&($+=parseInt(a/2))):(i%l!==0&&t+l>i&&($=a-i%l),o&&($=parseInt(a/2))),m=$*s,b=$*d,h?v=t*d*-1+b:v=t*s*-1+m,u===!0){let x;const _=n;if(x=t+vl(e),y=_&&_.childNodes[x],v=y?y.offsetLeft*-1:0,o===!0){x=r?t+vl(e):t,y=_&&_.children[x],v=0;for(let w=0;we.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),bm=e=>e.unslick||!e.infinite?0:e.slideCount,Zbe=e=>e.slideCount===1?1:vl(e)+e.slideCount+bm(e),Qbe=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+Jbe(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:o}=e;if(n){let i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2===0&&(i+=1),i}return r?0:t-1},eye=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:o}=e;if(n){let i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),!r&&t%2===0&&(i+=1),i}return r?t-1:0},r6=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),xC=e=>{let t,n,r,o;e.rtl?o=e.slideCount-1-e.index:o=e.index;const i=o<0||o>=e.slideCount;e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o=e.slideCount?a=e.targetSlide-e.slideCount:a=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":o===a}},tye=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},wC=(e,t)=>e.key+"-"+t,nye=function(e,t){let n;const r=[],o=[],i=[],a=t.length,l=YB(e),s=XB(e);return t.forEach((c,u)=>{let d;const f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?d=c:d=g("div");const h=tye(S(S({},e),{index:u})),m=d.props.class||"";let v=xC(S(S({},e),{index:u}));if(r.push(yp(d,{key:"original"+wC(d,u),tabindex:"-1","data-index":u,"aria-hidden":!v["slick-active"],class:me(v,m),style:S(S({outline:"none"},d.props.style||{}),h),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const y=a-u;y<=vl(e)&&a!==e.slidesToShow&&(n=-y,n>=l&&(d=c),v=xC(S(S({},e),{index:n})),o.push(yp(d,{key:"precloned"+wC(d,n),class:me(v,m),tabindex:"-1","data-index":n,"aria-hidden":!v["slick-active"],style:S(S({},d.props.style||{}),h),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),a!==e.slidesToShow&&(n=a+u,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?o.concat(r,i).reverse():o.concat(r,i)},QB=(e,t)=>{let{attrs:n,slots:r}=t;const o=nye(n,ln(r==null?void 0:r.default())),{onMouseenter:i,onMouseover:a,onMouseleave:l}=n,s={onMouseenter:i,onMouseover:a,onMouseleave:l},c=S({class:"slick-track",style:n.trackStyle},s);return g("div",c,[o])};QB.inheritAttrs=!1;const rye=QB,oye=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},JB=(e,t)=>{let{attrs:n}=t;const{slideCount:r,slidesToScroll:o,slidesToShow:i,infinite:a,currentSlide:l,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:f,onMouseover:h,onMouseleave:m}=n,v=oye({slideCount:r,slidesToScroll:o,slidesToShow:i,infinite:a}),y={onMouseenter:f,onMouseover:h,onMouseleave:m};let b=[];for(let $=0;$=I&&l<=_:l===I}),P={message:"dots",index:$,slidesToScroll:o,currentSlide:l};b=b.concat(g("li",{key:$,class:O},[Gt(c({i:$}),{onClick:E})]))}return Gt(s({dots:b}),S({class:d},y))};JB.inheritAttrs=!1;const iye=JB;function eF(){}function tF(e,t,n){n&&n.preventDefault(),t(e,n)}const nF=(e,t)=>{let{attrs:n}=t;const{clickHandler:r,infinite:o,currentSlide:i,slideCount:a,slidesToShow:l}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(h){tF({message:"previous"},r,h)};!o&&(i===0||a<=l)&&(s["slick-disabled"]=!0,c=eF);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:i,slideCount:a};let f;return n.prevArrow?f=Gt(n.prevArrow(S(S({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):f=g("button",V({key:"0",type:"button"},u),[" ",Dr("Previous")]),f};nF.inheritAttrs=!1;const rF=(e,t)=>{let{attrs:n}=t;const{clickHandler:r,currentSlide:o,slideCount:i}=n,a={"slick-arrow":!0,"slick-next":!0};let l=function(d){tF({message:"next"},r,d)};Ay(n)||(a["slick-disabled"]=!0,l=eF);const s={key:"1","data-role":"none",class:me(a),style:{display:"block"},onClick:l},c={currentSlide:o,slideCount:i};let u;return n.nextArrow?u=Gt(n.nextArrow(S(S({},s),c)),{key:"1",class:me(a),style:{display:"block"},onClick:l},!1):u=g("button",V({key:"1",type:"button"},s),[" ",Dr("Next")]),u};rF.inheritAttrs=!1;var aye=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{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=S({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=H0(S(S({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=S({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new _2(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=H0(S(S({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=NO(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=E_(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=S(S({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const r=Wbe(e);e=S(S(S({},e),r),{slideIndex:r.currentSlide});const o=mh(e);e=S(S({},e),{left:o});const i=vh(e);(t||this.children.length!==e.children.length)&&(r.trackStyle=i),this.setState(r,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,c=0;const u=[],d=vl(S(S(S({},this.$props),this.$data),{slideCount:e.length})),f=bm(S(S(S({},this.$props),this.$data),{slideCount:e.length}));e.forEach(m=>{var v,y;const b=((y=(v=m.props.style)===null||v===void 0?void 0:v.width)===null||y===void 0?void 0:y.split("px")[0])||0;u.push(b),s+=b});for(let m=0;m{const o=()=>++n&&n>=t&&this.onWindowResized();if(!r.onclick)r.onclick=()=>r.parentNode.focus();else{const i=r.onclick;r.onclick=()=>{i(),r.parentNode.focus()}}r.onload||(this.$props.lazyLoad?r.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(r.onload=o,r.onerror=()=>{o(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=S(S({},this.$props),this.$data);for(let n=this.currentSlide;n=-vl(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:r,beforeChange:o,speed:i,afterChange:a}=this.$props,{state:l,nextState:s}=Vbe(S(S(S({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;o&&o(r,l.currentSlide);const c=l.lazyLoadedList.filter(u=>this.lazyLoadedList.indexOf(u)<0);this.$attrs.onLazyLoad&&c.length>0&&this.__emit("lazyLoad",c),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),a&&a(r),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout(()=>{const{animating:u}=s,d=aye(s,["animating"]);this.setState(d,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:u}),10)),a&&a(l.currentSlide),delete this.animationEndCallback})},i))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=S(S({},this.$props),this.$data),r=Kbe(n,e);if(!(r!==0&&!r)&&(t===!0?this.slideHandler(r,t):this.slideHandler(r),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const o=this.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=Ube(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=Gbe(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=Ybe(e,S(S(S({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=Xbe(e,S(S(S({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Ay(S(S({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return g("button",null,[t+1])},appendDots(e){let{dots:t}=e;return g("ul",{style:{display:"block"}},[t])}},render(){const e=me("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=S(S({},this.$props),this.$data);let n=$C(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:r}=this.$props;n=S(S({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:r?this.onTrackLeave:ti,onMouseover:r?this.onTrackOver:ti});let o;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let y=$C(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);y.customPaging=this.customPaging,y.appendDots=this.appendDots;const{customPaging:b,appendDots:$}=this.$slots;b&&(y.customPaging=b),$&&(y.appendDots=$);const{pauseOnDotsHover:x}=this.$props;y=S(S({},y),{clickHandler:this.changeSlide,onMouseover:x?this.onDotsOver:ti,onMouseleave:x?this.onDotsLeave:ti}),o=g(iye,y,null)}let i,a;const l=$C(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);l.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(l.prevArrow=s),c&&(l.nextArrow=c),this.arrows&&(i=g(nF,l,null),a=g(rF,l,null));let u=null;this.vertical&&(u={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=S(S({},u),d),h=this.touchMove;let m={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:h?this.swipeStart:ti,onMousemove:this.dragging&&h?this.swipeMove:ti,onMouseup:h?this.swipeEnd:ti,onMouseleave:this.dragging&&h?this.swipeEnd:ti,[dr?"onTouchstartPassive":"onTouchstart"]:h?this.swipeStart:ti,[dr?"onTouchmovePassive":"onTouchmove"]:this.dragging&&h?this.swipeMove:ti,onTouchend:h?this.touchEnd:ti,onTouchcancel:this.dragging&&h?this.swipeEnd:ti,onKeydown:this.accessibility?this.keyHandler:ti},v={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(m={class:"slick-list",ref:this.listRefHandler},v={class:e}),g("div",v,[this.unslick?"":i,g("div",m,[g(rye,n,{default:()=>[this.children]})]),this.unslick?"":a,this.unslick?"":o])}},sye=pe({name:"Slider",mixins:[eu],inheritAttrs:!1,props:S({},GB),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,r)=>n-r),e.forEach((n,r)=>{let o;r===0?o=CC({minWidth:0,maxWidth:n}):o=CC({minWidth:e[r-1]+1,maxWidth:n}),r6()&&this.media(o,()=>{this.setState({breakpoint:n})})});const t=CC({minWidth:e.slice(-1)[0]});r6()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),r=o=>{let{matches:i}=o;i&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(l=>l.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":S(S({},this.$props),n[0].settings)):t=S({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let r=Bb(this)||[];r=r.filter(l=>typeof l=="string"?!!l.trim():!!l),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const o=[];let i=null;for(let l=0;l=r.length));d+=1)u.push(Gt(r[d],{key:100*l+10*c+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(g("div",{key:10*l+c},[u]))}t.variableWidth?o.push(g("div",{key:l,style:{width:i}},[s])):o.push(g("div",{key:l},[s]))}if(t==="unslick"){const l="regular slider "+(this.className||"");return g("div",{class:l},[r])}else o.length<=t.slidesToShow&&(t.unslick=!0);const a=S(S(S({},this.$attrs),t),{children:o,ref:this.innerSliderRefHandler});return g(lye,V(V({},a),{},{__propsSymbol__:[]}),this.$slots)}}),cye=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:o,marginXXS:i}=e,a=-r*1.25,l=i;return{[t]:S(S({},vt(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:-r/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:a,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:a,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-l,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},uye=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:S(S({},o),{margin:`${r}px 0`,verticalAlign:"baseline",button:o,"&.slick-active":S(S({},o),{button:o})})}}}},dye=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},fye=pt("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=nt(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[cye(r),uye(r),dye(r)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var pye=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({effect:Qe(),dots:De(!0),vertical:De(),autoplay:De(),easing:String,beforeChange:Oe(),afterChange:Oe(),prefixCls:String,accessibility:De(),nextArrow:Z.any,prevArrow:Z.any,pauseOnHover:De(),adaptiveHeight:De(),arrows:De(!1),autoplaySpeed:Number,centerMode:De(),centerPadding:String,cssEase:String,dotsClass:String,draggable:De(!1),fade:De(),focusOnSelect:De(),infinite:De(),initialSlide:Number,lazyLoad:Qe(),rtl:De(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:De(),swipeToSlide:De(),swipeEvent:Oe(),touchMove:De(),touchThreshold:Number,variableWidth:De(),useCSS:De(),slickGoTo:Number,responsive:Array,dotPosition:Qe(),verticalSwiping:De(!1)}),gye=pe({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:hye(),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=he();o({goTo:function(m){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var y;(y=i.value)===null||y===void 0||y.slickGoTo(m,v)},autoplay:m=>{var v,y;(y=(v=i.value)===null||v===void 0?void 0:v.innerSlider)===null||y===void 0||y.handleAutoPlay(m)},prev:()=>{var m;(m=i.value)===null||m===void 0||m.slickPrev()},next:()=>{var m;(m=i.value)===null||m===void 0||m.slickNext()},innerSlider:M(()=>{var m;return(m=i.value)===null||m===void 0?void 0:m.innerSlider})}),ct(()=>{Sn(e.vertical===void 0)});const{prefixCls:l,direction:s}=Ve("carousel",e),[c,u]=fye(l),d=M(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=M(()=>d.value==="left"||d.value==="right"),h=M(()=>{const m="slick-dots";return me({[m]:!0,[`${m}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:m,arrows:v,draggable:y,effect:b}=e,{class:$,style:x}=r,_=pye(r,["class","style"]),w=b==="fade"?!0:e.fade,I=me(l.value,{[`${l.value}-rtl`]:s.value==="rtl",[`${l.value}-vertical`]:f.value,[`${$}`]:!!$},u.value);return c(g("div",{class:I,style:x},[g(sye,V(V(V({ref:i},e),_),{},{dots:!!m,dotsClass:h.value,arrows:v,draggable:y,fade:w,vertical:f.value}),n)]))}}}),vye=$n(gye),BO="__RC_CASCADER_SPLIT__",oF="SHOW_PARENT",iF="SHOW_CHILD";function bs(e){return e.join(BO)}function Ju(e){return e.map(bs)}function mye(e){return e.split(BO)}function bye(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{label:t||"label",value:o,key:o,children:r||"children"}}function op(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((r=e[t.children])===null||r===void 0)&&r.length)}function yye(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const aF=Symbol("TreeContextKey"),Sye=pe({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return ft(aF,M(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),FO=()=>it(aF,M(()=>({}))),lF=Symbol("KeysStateKey"),Cye=e=>{ft(lF,e)},sF=()=>it(lF,{expandedKeys:ve([]),selectedKeys:ve([]),loadedKeys:ve([]),loadingKeys:ve([]),checkedKeys:ve([]),halfCheckedKeys:ve([]),expandedKeysSet:M(()=>new Set),selectedKeysSet:M(()=>new Set),loadedKeysSet:M(()=>new Set),loadingKeysSet:M(()=>new Set),checkedKeysSet:M(()=>new Set),halfCheckedKeysSet:M(()=>new Set),flattenNodes:ve([])}),$ye=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:o}=e;const i=`${t}-indent-unit`,a=[];for(let l=0;l({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Z.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Z.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Z.any,switcherIcon:Z.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var _ye=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"`v-slot:"+re+"` ")}`;const i=ve(!1),a=FO(),{expandedKeysSet:l,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:f}=sF(),{dragOverNodeKey:h,dropPosition:m,keyEntities:v}=a.value,y=M(()=>ym(e.eventKey,{expandedKeysSet:l.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:h,dropPosition:m,keyEntities:v})),b=ai(()=>y.value.expanded),$=ai(()=>y.value.selected),x=ai(()=>y.value.checked),_=ai(()=>y.value.loaded),w=ai(()=>y.value.loading),I=ai(()=>y.value.halfChecked),O=ai(()=>y.value.dragOver),P=ai(()=>y.value.dragOverGapTop),E=ai(()=>y.value.dragOverGapBottom),R=ai(()=>y.value.pos),A=ve(),N=M(()=>{const{eventKey:re}=e,{keyEntities:le}=a.value,{children:xe}=le[re]||{};return!!(xe||[]).length}),F=M(()=>{const{isLeaf:re}=e,{loadData:le}=a.value,xe=N.value;return re===!1?!1:re||!le&&!xe||le&&_.value&&!xe}),W=M(()=>F.value?null:b.value?o6:i6),D=M(()=>{const{disabled:re}=e,{disabled:le}=a.value;return!!(le||re)}),B=M(()=>{const{checkable:re}=e,{checkable:le}=a.value;return!le||re===!1?!1:le}),k=M(()=>{const{selectable:re}=e,{selectable:le}=a.value;return typeof re=="boolean"?re:le}),L=M(()=>{const{data:re,active:le,checkable:xe,disableCheckbox:Ae,disabled:Be,selectable:Ye}=e;return S(S({active:le,checkable:xe,disableCheckbox:Ae,disabled:Be,selectable:Ye},re),{dataRef:re,data:re,isLeaf:F.value,checked:x.value,expanded:b.value,loading:w.value,selected:$.value,halfChecked:I.value})}),z=Nn(),K=M(()=>{const{eventKey:re}=e,{keyEntities:le}=a.value,{parent:xe}=le[re]||{};return S(S({},Sm(S({},e,y.value))),{parent:xe})}),G=St({eventData:K,eventKey:M(()=>e.eventKey),selectHandle:A,pos:R,key:z.vnode.key});o(G);const Y=re=>{const{onNodeDoubleClick:le}=a.value;le(re,K.value)},ne=re=>{if(D.value)return;const{onNodeSelect:le}=a.value;re.preventDefault(),le(re,K.value)},oe=re=>{if(D.value)return;const{disableCheckbox:le}=e,{onNodeCheck:xe}=a.value;if(!B.value||le)return;re.preventDefault();const Ae=!x.value;xe(re,K.value,Ae)},J=re=>{const{onNodeClick:le}=a.value;le(re,K.value),k.value?ne(re):oe(re)},te=re=>{const{onNodeMouseEnter:le}=a.value;le(re,K.value)},ee=re=>{const{onNodeMouseLeave:le}=a.value;le(re,K.value)},fe=re=>{const{onNodeContextMenu:le}=a.value;le(re,K.value)},ie=re=>{const{onNodeDragStart:le}=a.value;re.stopPropagation(),i.value=!0,le(re,G);try{re.dataTransfer.setData("text/plain","")}catch{}},X=re=>{const{onNodeDragEnter:le}=a.value;re.preventDefault(),re.stopPropagation(),le(re,G)},ue=re=>{const{onNodeDragOver:le}=a.value;re.preventDefault(),re.stopPropagation(),le(re,G)},ye=re=>{const{onNodeDragLeave:le}=a.value;re.stopPropagation(),le(re,G)},H=re=>{const{onNodeDragEnd:le}=a.value;re.stopPropagation(),i.value=!1,le(re,G)},j=re=>{const{onNodeDrop:le}=a.value;re.preventDefault(),re.stopPropagation(),i.value=!1,le(re,G)},q=re=>{const{onNodeExpand:le}=a.value;w.value||le(re,K.value)},se=()=>{const{data:re}=e,{draggable:le}=a.value;return!!(le&&(!le.nodeDraggable||le.nodeDraggable(re)))},ae=()=>{const{draggable:re,prefixCls:le}=a.value;return re&&(re!=null&&re.icon)?g("span",{class:`${le}-draggable-icon`},[re.icon]):null},ge=()=>{var re,le,xe;const{switcherIcon:Ae=r.switcherIcon||((re=a.value.slots)===null||re===void 0?void 0:re[(xe=(le=e.data)===null||le===void 0?void 0:le.slots)===null||xe===void 0?void 0:xe.switcherIcon])}=e,{switcherIcon:Be}=a.value,Ye=Ae||Be;return typeof Ye=="function"?Ye(L.value):Ye},Se=()=>{const{loadData:re,onNodeLoad:le}=a.value;w.value||re&&b.value&&!F.value&&!N.value&&!_.value&&le(K.value)};lt(()=>{Se()}),fo(()=>{Se()});const $e=()=>{const{prefixCls:re}=a.value,le=ge();if(F.value)return le!==!1?g("span",{class:me(`${re}-switcher`,`${re}-switcher-noop`)},[le]):null;const xe=me(`${re}-switcher`,`${re}-switcher_${b.value?o6:i6}`);return le!==!1?g("span",{onClick:q,class:xe},[le]):null},_e=()=>{var re,le;const{disableCheckbox:xe}=e,{prefixCls:Ae}=a.value,Be=D.value;return B.value?g("span",{class:me(`${Ae}-checkbox`,x.value&&`${Ae}-checkbox-checked`,!x.value&&I.value&&`${Ae}-checkbox-indeterminate`,(Be||xe)&&`${Ae}-checkbox-disabled`),onClick:oe},[(le=(re=a.value).customCheckable)===null||le===void 0?void 0:le.call(re)]):null},be=()=>{const{prefixCls:re}=a.value;return g("span",{class:me(`${re}-iconEle`,`${re}-icon__${W.value||"docu"}`,w.value&&`${re}-icon_loading`)},null)},Te=()=>{const{disabled:re,eventKey:le}=e,{draggable:xe,dropLevelOffset:Ae,dropPosition:Be,prefixCls:Ye,indent:Re,dropIndicatorRender:Le,dragOverNodeKey:Ne,direction:Ke}=a.value;return!re&&xe!==!1&&Ne===le?Le({dropPosition:Be,dropLevelOffset:Ae,indent:Re,prefixCls:Ye,direction:Ke}):null},Pe=()=>{var re,le,xe,Ae,Be,Ye;const{icon:Re=r.icon,data:Le}=e,Ne=r.title||((re=a.value.slots)===null||re===void 0?void 0:re[(xe=(le=e.data)===null||le===void 0?void 0:le.slots)===null||xe===void 0?void 0:xe.title])||((Ae=a.value.slots)===null||Ae===void 0?void 0:Ae.title)||e.title,{prefixCls:Ke,showIcon:Ze,icon:Ue,loadData:Xe}=a.value,xt=D.value,Mt=`${Ke}-node-content-wrapper`;let Ft;if(Ze){const Vn=Re||((Be=a.value.slots)===null||Be===void 0?void 0:Be[(Ye=Le==null?void 0:Le.slots)===null||Ye===void 0?void 0:Ye.icon])||Ue;Ft=Vn?g("span",{class:me(`${Ke}-iconEle`,`${Ke}-icon__customize`)},[typeof Vn=="function"?Vn(L.value):Vn]):be()}else Xe&&w.value&&(Ft=be());let jt;typeof Ne=="function"?jt=Ne(L.value):jt=Ne,jt=jt===void 0?Oye:jt;const Yt=g("span",{class:`${Ke}-title`},[jt]);return g("span",{ref:A,title:typeof Ne=="string"?Ne:"",class:me(`${Mt}`,`${Mt}-${W.value||"normal"}`,!xt&&($.value||i.value)&&`${Ke}-node-selected`),onMouseenter:te,onMouseleave:ee,onContextmenu:fe,onClick:J,onDblclick:Y},[Ft,Yt,Te()])};return()=>{const re=S(S({},e),n),{eventKey:le,isLeaf:xe,isStart:Ae,isEnd:Be,domRef:Ye,active:Re,data:Le,onMousemove:Ne,selectable:Ke}=re,Ze=_ye(re,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:Ue,filterTreeNode:Xe,keyEntities:xt,dropContainerKey:Mt,dropTargetKey:Ft,draggingNodeKey:jt}=a.value,Yt=D.value,Vn=Ts(Ze,{aria:!0,data:!0}),{level:Gn}=xt[le]||{},rr=Be[Be.length-1],kn=se(),br=!Yt&&kn,Gr=jt===le,wo=Ke!==void 0?{"aria-selected":!!Ke}:void 0;return g("div",V(V({ref:Ye,class:me(n.class,`${Ue}-treenode`,{[`${Ue}-treenode-disabled`]:Yt,[`${Ue}-treenode-switcher-${b.value?"open":"close"}`]:!xe,[`${Ue}-treenode-checkbox-checked`]:x.value,[`${Ue}-treenode-checkbox-indeterminate`]:I.value,[`${Ue}-treenode-selected`]:$.value,[`${Ue}-treenode-loading`]:w.value,[`${Ue}-treenode-active`]:Re,[`${Ue}-treenode-leaf-last`]:rr,[`${Ue}-treenode-draggable`]:br,dragging:Gr,"drop-target":Ft===le,"drop-container":Mt===le,"drag-over":!Yt&&O.value,"drag-over-gap-top":!Yt&&P.value,"drag-over-gap-bottom":!Yt&&E.value,"filter-node":Xe&&Xe(K.value)}),style:n.style,draggable:br,"aria-grabbed":Gr,onDragstart:br?ie:void 0,onDragenter:kn?X:void 0,onDragover:kn?ue:void 0,onDragleave:kn?ye:void 0,onDrop:kn?j:void 0,onDragend:kn?H:void 0,onMousemove:Ne},wo),Vn),[g(xye,{prefixCls:Ue,level:Gn,isStart:Ae,isEnd:Be},null),ae(),$e(),_e(),Pe()])}}});function $a(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function al(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function HO(e){return e.split("-")}function dF(e,t){return`${e}-${t}`}function Iye(e){return e&&e.type&&e.type.isTreeNode}function Pye(e,t){const n=[],r=t[e];function o(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(a=>{let{key:l,children:s}=a;n.push(l),o(s)})}return o(r.children),n}function Tye(e){if(e.parent){const t=HO(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Eye(e){const t=HO(e.pos);return Number(t[t.length-1])===0}function a6(e,t,n,r,o,i,a,l,s,c){var u;const{clientX:d,clientY:f}=e,{top:h,height:m}=e.target.getBoundingClientRect(),y=((c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-d)-12)/r;let b=l[n.eventKey];if(fF.key===b.key),A=R<=0?0:R-1,N=a[A].key;b=l[N]}const $=b.key,x=b,_=b.key;let w=0,I=0;if(!s.has($))for(let R=0;R-1.5?i({dragNode:O,dropNode:P,dropPosition:1})?w=1:E=!1:i({dragNode:O,dropNode:P,dropPosition:0})?w=0:i({dragNode:O,dropNode:P,dropPosition:1})?w=1:E=!1:i({dragNode:O,dropNode:P,dropPosition:1})?w=1:E=!1,{dropPosition:w,dropLevelOffset:I,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:_,dropContainerKey:w===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:E}}function l6(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function _C(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Nx(e,t){const n=new Set;function r(o){if(n.has(o))return;const i=t[o];if(!i)return;n.add(o);const{parent:a,node:l}=i;l.disabled||a&&r(a.key)}return(e||[]).forEach(o=>{r(o)}),[...n]}var Aye=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);o0&&arguments[0]!==void 0?arguments[0]:[];return _n(n).map(o=>{var i,a,l,s;if(!Iye(o))return null;const c=o.children||{},u=o.key,d={};for(const[R,A]of Object.entries(o.props))d[Gc(R)]=A;const{isLeaf:f,checkable:h,selectable:m,disabled:v,disableCheckbox:y}=d,b={isLeaf:f||f===""||void 0,checkable:h||h===""||void 0,selectable:m||m===""||void 0,disabled:v||v===""||void 0,disableCheckbox:y||y===""||void 0},$=S(S({},d),b),{title:x=(i=c.title)===null||i===void 0?void 0:i.call(c,$),icon:_=(a=c.icon)===null||a===void 0?void 0:a.call(c,$),switcherIcon:w=(l=c.switcherIcon)===null||l===void 0?void 0:l.call(c,$)}=d,I=Aye(d,["title","icon","switcherIcon"]),O=(s=c.default)===null||s===void 0?void 0:s.call(c),P=S(S(S({},I),{title:x,icon:_,switcherIcon:w,key:u,isLeaf:f}),b),E=t(O);return E.length&&(P.children=E),P})}return t(e)}function Mye(e,t,n){const{_title:r,key:o,children:i}=My(n),a=new Set(t===!0?[]:t),l=[];function s(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map((d,f)=>{const h=dF(u?u.pos:"0",f),m=Zh(d[o],h);let v;for(let b=0;bf[i]:typeof i=="function"&&(u=f=>i(f)):u=(f,h)=>Zh(f[l],h);function d(f,h,m,v){const y=f?f[c]:e,b=f?dF(m.pos,h):"0",$=f?[...v,f]:[];if(f){const x=u(f,b),_={node:f,index:h,pos:b,key:x,parentPos:m.node?m.pos:null,level:m.level+1,nodes:$};t(_)}y&&y.forEach((x,_)=>{d(x,_,{node:f,pos:b,level:m?m.level+1:-1},$)})}d(null)}function Qh(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:i,fieldNames:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;const s=o||l,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),Rye(e,f=>{const{node:h,index:m,pos:v,key:y,parentPos:b,level:$,nodes:x}=f,_={node:h,nodes:x,index:m,key:y,pos:v,level:$},w=Zh(y,v);c[v]=_,u[w]=_,_.parent=c[b],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),n&&n(_,d)},{externalGetKey:s,childrenPropName:i,fieldNames:a}),r&&r(d),d}function ym(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:o,loadingKeysSet:i,checkedKeysSet:a,halfCheckedKeysSet:l,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:o.has(e),loading:i.has(e),checked:a.has(e),halfChecked:l.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function Sm(e){const{data:t,expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:h}=e,m=S(S({dataRef:t},t),{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:h,key:h});return"props"in m||Object.defineProperty(m,"props",{get(){return e}}),m}const Dye=(e,t)=>M(()=>Qh(e.value,{fieldNames:t.value,initWrapper:r=>S(S({},r),{pathKeyEntities:{}}),processEntity:(r,o)=>{const i=r.nodes.map(a=>a[t.value.value]).join(BO);o.pathKeyEntities[i]=r,r.key=i}}).pathKeyEntities);function Lye(e){const t=ve(!1),n=he({});return ct(()=>{if(!e.value){t.value=!1,n.value={};return}let r={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(r=S(S({},r),e.value)),r.limit<=0&&delete r.limit,t.value=!0,n.value=r}),{showSearch:t,searchConfig:n}}const Op="__rc_cascader_search_mark__",Nye=(e,t,n)=>{let{label:r}=n;return t.some(o=>String(o[r]).toLowerCase().includes(e.toLowerCase()))},kye=e=>{let{path:t,fieldNames:n}=e;return t.map(r=>r[n.label]).join(" / ")},Bye=(e,t,n,r,o,i)=>M(()=>{const{filter:a=Nye,render:l=kye,limit:s=50,sort:c}=o.value,u=[];if(!e.value)return[];function d(f,h){f.forEach(m=>{if(!c&&s>0&&u.length>=s)return;const v=[...h,m],y=m[n.value.children];(!y||y.length===0||i.value)&&a(e.value,v,{label:n.value.label})&&u.push(S(S({},m),{[n.value.label]:l({inputValue:e.value,path:v,prefixCls:r.value,fieldNames:n.value}),[Op]:v})),y&&d(m[n.value.children],v)})}return d(t.value,[]),c&&u.sort((f,h)=>c(f[Op],h[Op],e.value,n.value)),s>0?u.slice(0,s):u});function s6(e,t,n){const r=new Set(e);return e.filter(o=>{const i=t[o],a=i?i.parent:null,l=i?i.children:null;return n===iF?!(l&&l.some(s=>s.key&&r.has(s.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function bh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var o;let i=t;const a=[];for(let l=0;l{const f=d[n.value];return r?String(f)===String(s):f===s}),u=c!==-1?i==null?void 0:i[c]:null;a.push({value:(o=u==null?void 0:u[n.value])!==null&&o!==void 0?o:s,index:c,option:u}),i=u==null?void 0:u[n.children]}return a}const Fye=(e,t,n)=>M(()=>{const r=[],o=[];return n.value.forEach(i=>{bh(i,e.value,t.value).every(l=>l.option)?o.push(i):r.push(i)}),[o,r]});function fF(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function Hye(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function zye(e,t,n,r){const o=new Set(e),i=new Set;for(let l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(c=>{const{key:u,node:d,children:f=[]}=c;o.has(u)&&!r(d)&&f.filter(h=>!r(h.node)).forEach(h=>{o.add(h.key)})});const a=new Set;for(let l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(c=>{const{parent:u,node:d}=c;if(r(d)||!c.parent||a.has(c.parent.key))return;if(r(c.parent.node)){a.add(u.key);return}let f=!0,h=!1;(u.children||[]).filter(m=>!r(m.node)).forEach(m=>{let{key:v}=m;const y=o.has(v);f&&!y&&(f=!1),!h&&(y||i.has(v))&&(h=!0)}),f&&o.add(u.key),h&&i.add(u.key),a.add(u.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(fF(i,o))}}function jye(e,t,n,r,o){const i=new Set(e);let a=new Set(t);for(let s=0;s<=r;s+=1)(n.get(s)||new Set).forEach(u=>{const{key:d,node:f,children:h=[]}=u;!i.has(d)&&!a.has(d)&&!o(f)&&h.filter(m=>!o(m.node)).forEach(m=>{i.delete(m.key)})});a=new Set;const l=new Set;for(let s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(u=>{const{parent:d,node:f}=u;if(o(f)||!u.parent||l.has(u.parent.key))return;if(o(u.parent.node)){l.add(d.key);return}let h=!0,m=!1;(d.children||[]).filter(v=>!o(v.node)).forEach(v=>{let{key:y}=v;const b=i.has(y);h&&!b&&(h=!1),!m&&(b||a.has(y))&&(m=!0)}),h||i.delete(d.key),m&&a.add(d.key),l.add(d.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(fF(a,i))}}function Mi(e,t,n,r,o,i){let a;i?a=i:a=Hye;const l=new Set(e.filter(c=>!!n[c]));let s;return t===!0?s=zye(l,o,r,a):s=jye(l,t.halfCheckedKeys,o,r,a),s}const Wye=(e,t,n,r,o)=>M(()=>{const i=o.value||(a=>{let{labels:l}=a;const s=r.value?l.slice(-1):l,c=" / ";return s.every(u=>["string","number"].includes(typeof u))?s.join(c):s.reduce((u,d,f)=>{const h=Jn(d)?Gt(d,{key:f}):d;return f===0?[h]:[...u,c,h]},[])});return e.value.map(a=>{const l=bh(a,t.value,n.value),s=i({labels:l.map(u=>{let{option:d,value:f}=u;var h;return(h=d==null?void 0:d[n.value.label])!==null&&h!==void 0?h:f}),selectedOptions:l.map(u=>{let{option:d}=u;return d})}),c=bs(a);return{label:s,value:c,key:c,valueCells:a}})}),pF=Symbol("CascaderContextKey"),Vye=e=>{ft(pF,e)},Ry=()=>it(pF),Kye=()=>{const e=zh(),{values:t}=Ry(),[n,r]=nn([]);return Ie(()=>e.open,()=>{if(e.open&&!e.multiple){const o=t.value[0];r(o||[])}},{immediate:!0}),[n,r]},Uye=(e,t,n,r,o,i)=>{const a=zh(),l=M(()=>a.direction==="rtl"),[s,c,u]=[he([]),he(),he([])];ct(()=>{let v=-1,y=t.value;const b=[],$=[],x=r.value.length;for(let w=0;wO[n.value.value]===r.value[w]);if(I===-1)break;v=I,b.push(v),$.push(r.value[w]),y=y[v][n.value.children]}let _=t.value;for(let w=0;w{o(v)},f=v=>{const y=u.value.length;let b=c.value;b===-1&&v<0&&(b=y);for(let $=0;${if(s.value.length>1){const v=s.value.slice(0,-1);d(v)}else a.toggleOpen(!1)},m=()=>{var v;const b=(((v=u.value[c.value])===null||v===void 0?void 0:v[n.value.children])||[]).find($=>!$.disabled);if(b){const $=[...s.value,b[n.value.value]];d($)}};e.expose({onKeydown:v=>{const{which:y}=v;switch(y){case Fe.UP:case Fe.DOWN:{let b=0;y===Fe.UP?b=-1:y===Fe.DOWN&&(b=1),b!==0&&f(b);break}case Fe.LEFT:{l.value?m():h();break}case Fe.RIGHT:{l.value?h():m();break}case Fe.BACKSPACE:{a.searchValue||h();break}case Fe.ENTER:{if(s.value.length){const b=u.value[c.value],$=(b==null?void 0:b[Op])||[];$.length?i($.map(x=>x[n.value.value]),$[$.length-1]):i(s.value,b)}break}case Fe.ESC:a.toggleOpen(!1),open&&v.stopPropagation()}},onKeyup:()=>{}})};function Dy(e){let{prefixCls:t,checked:n,halfChecked:r,disabled:o,onClick:i}=e;const{customSlots:a,checkable:l}=Ry(),s=l.value!==!1?a.value.checkable:l.value,c=typeof s=="function"?s():typeof s=="boolean"?null:s;return g("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&r,[`${t}-disabled`]:o},onClick:i},[c])}Dy.props=["prefixCls","checked","halfChecked","disabled","onClick"];Dy.displayName="Checkbox";Dy.inheritAttrs=!1;const hF="__cascader_fix_label__";function Ly(e){let{prefixCls:t,multiple:n,options:r,activeValue:o,prevValuePath:i,onToggleOpen:a,onSelect:l,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:f}=e;var h,m,v,y,b,$;const x=`${t}-menu`,_=`${t}-menu-item`,{fieldNames:w,changeOnSelect:I,expandTrigger:O,expandIcon:P,loadingIcon:E,dropdownMenuColumnStyle:R,customSlots:A}=Ry(),N=(h=P.value)!==null&&h!==void 0?h:(v=(m=A.value).expandIcon)===null||v===void 0?void 0:v.call(m),F=(y=E.value)!==null&&y!==void 0?y:($=(b=A.value).loadingIcon)===null||$===void 0?void 0:$.call(b),W=O.value==="hover";return g("ul",{class:x,role:"menu"},[r.map(D=>{var B;const{disabled:k}=D,L=D[Op],z=(B=D[hF])!==null&&B!==void 0?B:D[w.value.label],K=D[w.value.value],G=op(D,w.value),Y=L?L.map(X=>X[w.value.value]):[...i,K],ne=bs(Y),oe=d.includes(ne),J=c.has(ne),te=u.has(ne),ee=()=>{!k&&(!W||!G)&&s(Y)},fe=()=>{f(D)&&l(Y,G)};let ie;return typeof D.title=="string"?ie=D.title:typeof z=="string"&&(ie=z),g("li",{key:ne,class:[_,{[`${_}-expand`]:!G,[`${_}-active`]:o===K,[`${_}-disabled`]:k,[`${_}-loading`]:oe}],style:R.value,role:"menuitemcheckbox",title:ie,"aria-checked":J,"data-path-key":ne,onClick:()=>{ee(),(!n||G)&&fe()},onDblclick:()=>{I.value&&a(!1)},onMouseenter:()=>{W&&ee()},onMousedown:X=>{X.preventDefault()}},[n&&g(Dy,{prefixCls:`${t}-checkbox`,checked:J,halfChecked:te,disabled:k,onClick:X=>{X.stopPropagation(),fe()}},null),g("div",{class:`${_}-content`},[z]),!oe&&N&&!G&&g("div",{class:`${_}-expand-icon`},[N]),oe&&F&&g("div",{class:`${_}-loading-icon`},[F])])})])}Ly.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];Ly.displayName="Column";Ly.inheritAttrs=!1;const Gye=pe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:r}=t,o=zh(),i=he(),a=M(()=>o.direction==="rtl"),{options:l,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:f,searchOptions:h,dropdownPrefixCls:m,loadData:v,expandTrigger:y,customSlots:b}=Ry(),$=M(()=>m.value||o.prefixCls),x=ve([]),_=B=>{if(!v.value||o.searchValue)return;const L=bh(B,l.value,u.value).map(K=>{let{option:G}=K;return G}),z=L[L.length-1];if(z&&!op(z,u.value)){const K=bs(B);x.value=[...x.value,K],v.value(L)}};ct(()=>{x.value.length&&x.value.forEach(B=>{const k=mye(B),L=bh(k,l.value,u.value,!0).map(K=>{let{option:G}=K;return G}),z=L[L.length-1];(!z||z[u.value.children]||op(z,u.value))&&(x.value=x.value.filter(K=>K!==B))})});const w=M(()=>new Set(Ju(s.value))),I=M(()=>new Set(Ju(c.value))),[O,P]=Kye(),E=B=>{P(B),_(B)},R=B=>{const{disabled:k}=B,L=op(B,u.value);return!k&&(L||d.value||o.multiple)},A=function(B,k){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(B),!o.multiple&&(k||d.value&&(y.value==="hover"||L))&&o.toggleOpen(!1)},N=M(()=>o.searchValue?h.value:l.value),F=M(()=>{const B=[{options:N.value}];let k=N.value;for(let L=0;LY[u.value.value]===z),G=K==null?void 0:K[u.value.children];if(!(G!=null&&G.length))break;k=G,B.push({options:G})}return B});Uye(t,N,u,O,E,(B,k)=>{R(k)&&A(B,op(k,u.value),!0)});const D=B=>{B.preventDefault()};return lt(()=>{Ie(O,B=>{var k;for(let L=0;L{var B,k,L,z,K;const{notFoundContent:G=((B=r.notFoundContent)===null||B===void 0?void 0:B.call(r))||((L=(k=b.value).notFoundContent)===null||L===void 0?void 0:L.call(k)),multiple:Y,toggleOpen:ne}=o,oe=!(!((K=(z=F.value[0])===null||z===void 0?void 0:z.options)===null||K===void 0)&&K.length),J=[{[u.value.value]:"__EMPTY__",[hF]:G,disabled:!0}],te=S(S({},n),{multiple:!oe&&Y,onSelect:A,onActive:E,onToggleOpen:ne,checkedSet:w.value,halfCheckedSet:I.value,loadingKeys:x.value,isSelectable:R}),fe=(oe?[{options:J}]:F.value).map((ie,X)=>{const ue=O.value.slice(0,X),ye=O.value[X];return g(Ly,V(V({key:X},te),{},{prefixCls:$.value,options:ie.options,prevValuePath:ue,activeValue:ye}),null)});return g("div",{class:[`${$.value}-menus`,{[`${$.value}-menu-empty`]:oe,[`${$.value}-rtl`]:a.value}],onMousedown:D,ref:i},[fe])}}});function Ny(e){const t=he(0),n=ve();return ct(()=>{const r=new Map;let o=0;const i=e.value||{};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=i[a],{level:s}=l;let c=r.get(s);c||(c=new Set,r.set(s,c)),c.add(l),o=Math.max(o,s)}t.value=o,n.value=r}),{maxLevel:t,levelEntities:n}}function Yye(){return S(S({},Ot(ly(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:qe(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:oF},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Z.any,loadingIcon:Z.any})}function gF(){return S(S({},Yye()),{onChange:Function,customSlots:Object})}function Xye(e){return Array.isArray(e)&&Array.isArray(e[0])}function c6(e){return e?Xye(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const qye=pe({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:bt(gF(),{}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const i=s_(st(e,"id")),a=M(()=>!!e.checkable),[l,s]=yn(e.defaultValue,{value:M(()=>e.value),postState:c6}),c=M(()=>bye(e.fieldNames)),u=M(()=>e.options||[]),d=Dye(u,c),f=X=>{const ue=d.value;return X.map(ye=>{const{nodes:H}=ue[ye];return H.map(j=>j[c.value.value])})},[h,m]=yn("",{value:M(()=>e.searchValue),postState:X=>X||""}),v=(X,ue)=>{m(X),ue.source!=="blur"&&e.onSearch&&e.onSearch(X)},{showSearch:y,searchConfig:b}=Lye(st(e,"showSearch")),$=Bye(h,u,c,M(()=>e.dropdownPrefixCls||e.prefixCls),b,st(e,"changeOnSelect")),x=Fye(u,c,l),[_,w,I]=[he([]),he([]),he([])],{maxLevel:O,levelEntities:P}=Ny(d);ct(()=>{const[X,ue]=x.value;if(!a.value||!l.value.length){[_.value,w.value,I.value]=[X,[],ue];return}const ye=Ju(X),H=d.value,{checkedKeys:j,halfCheckedKeys:q}=Mi(ye,!0,H,O.value,P.value);[_.value,w.value,I.value]=[f(j),f(q),ue]});const E=M(()=>{const X=Ju(_.value),ue=s6(X,d.value,e.showCheckedStrategy);return[...I.value,...f(ue)]}),R=Wye(E,u,c,a,st(e,"displayRender")),A=X=>{if(s(X),e.onChange){const ue=c6(X),ye=ue.map(q=>bh(q,u.value,c.value).map(se=>se.option)),H=a.value?ue:ue[0],j=a.value?ye:ye[0];e.onChange(H,j)}},N=X=>{if(m(""),!a.value)A(X);else{const ue=bs(X),ye=Ju(_.value),H=Ju(w.value),j=ye.includes(ue),q=I.value.some(ge=>bs(ge)===ue);let se=_.value,ae=I.value;if(q&&!j)ae=I.value.filter(ge=>bs(ge)!==ue);else{const ge=j?ye.filter(_e=>_e!==ue):[...ye,ue];let Se;j?{checkedKeys:Se}=Mi(ge,{checked:!1,halfCheckedKeys:H},d.value,O.value,P.value):{checkedKeys:Se}=Mi(ge,!0,d.value,O.value,P.value);const $e=s6(Se,d.value,e.showCheckedStrategy);se=f($e)}A([...ae,...se])}},F=(X,ue)=>{if(ue.type==="clear"){A([]);return}const{valueCells:ye}=ue.values[0];N(ye)},W=M(()=>e.open!==void 0?e.open:e.popupVisible),D=M(()=>e.dropdownClassName||e.popupClassName),B=M(()=>e.dropdownStyle||e.popupStyle||{}),k=M(()=>e.placement||e.popupPlacement),L=X=>{var ue,ye;(ue=e.onDropdownVisibleChange)===null||ue===void 0||ue.call(e,X),(ye=e.onPopupVisibleChange)===null||ye===void 0||ye.call(e,X)},{changeOnSelect:z,checkable:K,dropdownPrefixCls:G,loadData:Y,expandTrigger:ne,expandIcon:oe,loadingIcon:J,dropdownMenuColumnStyle:te,customSlots:ee}=ra(e);Vye({options:u,fieldNames:c,values:_,halfValues:w,changeOnSelect:z,onSelect:N,checkable:K,searchOptions:$,dropdownPrefixCls:G,loadData:Y,expandTrigger:ne,expandIcon:oe,loadingIcon:J,dropdownMenuColumnStyle:te,customSlots:ee});const fe=he();r({focus(){var X;(X=fe.value)===null||X===void 0||X.focus()},blur(){var X;(X=fe.value)===null||X===void 0||X.blur()},scrollTo(X){var ue;(ue=fe.value)===null||ue===void 0||ue.scrollTo(X)}});const ie=M(()=>Ot(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const X=!(h.value?$.value:u.value).length,{dropdownMatchSelectWidth:ue=!1}=e,ye=h.value&&b.value.matchInputWidth||X?{}:{minWidth:"auto"};return g(a_,V(V(V({},ie.value),n),{},{ref:fe,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:ue,dropdownStyle:S(S({},B.value),ye),displayValues:R.value,onDisplayValuesChange:F,mode:a.value?"multiple":void 0,searchValue:h.value,onSearch:v,showSearch:y.value,OptionList:Gye,emptyOptions:X,open:W.value,dropdownClassName:D.value,placement:k.value,onDropdownVisibleChange:L,getRawInputElement:()=>{var H;return(H=o.default)===null||H===void 0?void 0:H.call(o)}}),o)}}});var Zye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Qye=Zye;function u6(e){for(var t=1;tco()&&window.document.documentElement,mF=e=>{if(co()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},e1e=(e,t)=>{if(!mF(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function jO(e,t){return!Array.isArray(e)&&t!==void 0?e1e(e,t):mF(e)}let Nv;const t1e=()=>{if(!vF())return!1;if(Nv!==void 0)return Nv;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),Nv=e.scrollHeight===1,document.body.removeChild(e),Nv},bF=()=>{const e=ve(!1);return lt(()=>{e.value=t1e()}),e},yF=Symbol("rowContextKey"),n1e=e=>{ft(yF,e)},r1e=()=>it(yF,{gutter:M(()=>{}),wrap:M(()=>{}),supportFlexGap:M(()=>{})}),o1e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},i1e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},a1e=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineEnd:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/r*100}%`,maxWidth:`${i/r*100}%`},o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/r*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/r*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/r*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o},Bx=(e,t)=>a1e(e,t),l1e=(e,t,n)=>({[`@media (min-width: ${t}px)`]:S({},Bx(e,n))}),s1e=pt("Grid",e=>[o1e(e)]),c1e=pt("Grid",e=>{const t=nt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[i1e(t),Bx(t,""),Bx(t,"-xs"),Object.keys(n).map(r=>l1e(t,n[r],r)).reduce((r,o)=>S(S({},r),o),{})]}),u1e=()=>({align:ot([String,Object]),justify:ot([String,Object]),prefixCls:String,gutter:ot([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),d1e=pe({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:u1e(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("row",e),[a,l]=s1e(o);let s;const c=W_(),u=he({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=he({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=x=>M(()=>{if(typeof e[x]=="string")return e[x];if(typeof e[x]!="object")return"";for(let _=0;_{s=c.value.subscribe(x=>{d.value=x;const _=e.gutter||0;(!Array.isArray(_)&&typeof _=="object"||Array.isArray(_)&&(typeof _[0]=="object"||typeof _[1]=="object"))&&(u.value=x)})}),Ct(()=>{c.value.unsubscribe(s)});const y=M(()=>{const x=[void 0,void 0],{gutter:_=0}=e;return(Array.isArray(_)?_:[_,void 0]).forEach((I,O)=>{if(typeof I=="object")for(let P=0;Pe.wrap)});const b=M(()=>me(o.value,{[`${o.value}-no-wrap`]:e.wrap===!1,[`${o.value}-${m.value}`]:m.value,[`${o.value}-${h.value}`]:h.value,[`${o.value}-rtl`]:i.value==="rtl"},r.class,l.value)),$=M(()=>{const x=y.value,_={},w=x[0]!=null&&x[0]>0?`${x[0]/-2}px`:void 0,I=x[1]!=null&&x[1]>0?`${x[1]/-2}px`:void 0;return w&&(_.marginLeft=w,_.marginRight=w),v.value?_.rowGap=`${x[1]}px`:I&&(_.marginTop=I,_.marginBottom=I),_});return()=>{var x;return a(g("div",V(V({},r),{},{class:b.value,style:S(S({},$.value),r.style)}),[(x=n.default)===null||x===void 0?void 0:x.call(n)]))}}}),WO=d1e;function vc(){return vc=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 Cm(e,t,n){return p1e()?Cm=Reflect.construct.bind():Cm=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),c=new s;return a&&yh(c,a.prototype),c},Cm.apply(null,arguments)}function h1e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hx(e){var t=typeof Map=="function"?new Map:void 0;return Hx=function(r){if(r===null||!h1e(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 Cm(r,arguments,Fx(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),yh(o,r)},Hx(e)}var g1e=/%[sdj%]/g,v1e=function(){};function zx(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 si(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 m1e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Er(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||m1e(t)&&typeof e=="string"&&!e)}function b1e(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 d6(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},ip={integer:function(t){return ip.number(t)&&parseInt(t,10)===t},float:function(t){return ip.number(t)&&!ip.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"&&!ip.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(g6.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(w1e())},hex:function(t){return typeof t=="string"&&!!t.match(g6.hex)}},_1e=function(t,n,r,o,i){if(t.required&&n===void 0){SF(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?ip[l](n)||o.push(si(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(si(i.messages.types[l],t.fullField,t.type))},O1e=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(f?d="number":h?d="string":m&&(d="array"),!d)return!1;m&&(u=n.length),h&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(si(i.messages[d].len,t.fullField,t.len)):l&&!s&&ut.max?o.push(si(i.messages[d].max,t.fullField,t.max)):l&&s&&(ut.max)&&o.push(si(i.messages[d].range,t.fullField,t.min,t.max))},Mu="enum",I1e=function(t,n,r,o,i){t[Mu]=Array.isArray(t[Mu])?t[Mu]:[],t[Mu].indexOf(n)===-1&&o.push(si(i.messages[Mu],t.fullField,t[Mu].join(", ")))},P1e=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(si(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(si(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},an={required:SF,whitespace:x1e,type:_1e,range:O1e,enum:I1e,pattern:P1e},T1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n,"string")&&!t.required)return r();an.required(t,n,o,a,i,"string"),Er(n,"string")||(an.type(t,n,o,a,i),an.range(t,n,o,a,i),an.pattern(t,n,o,a,i),t.whitespace===!0&&an.whitespace(t,n,o,a,i))}r(a)},E1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an.type(t,n,o,a,i)}r(a)},A1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},M1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an.type(t,n,o,a,i)}r(a)},R1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),Er(n)||an.type(t,n,o,a,i)}r(a)},D1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},L1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},N1e=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();an.required(t,n,o,a,i,"array"),n!=null&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},k1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an.type(t,n,o,a,i)}r(a)},B1e="enum",F1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an[B1e](t,n,o,a,i)}r(a)},H1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n,"string")&&!t.required)return r();an.required(t,n,o,a,i),Er(n,"string")||an.pattern(t,n,o,a,i)}r(a)},z1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n,"date")&&!t.required)return r();if(an.required(t,n,o,a,i),!Er(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),an.type(t,s,o,a,i),s&&an.range(t,s.getTime(),o,a,i)}}r(a)},j1e=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;an.required(t,n,o,a,i,l),r(a)},OC=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Er(n,a)&&!t.required)return r();an.required(t,n,o,l,i,a),Er(n,a)||an.type(t,n,o,l,i)}r(l)},W1e=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Er(n)&&!t.required)return r();an.required(t,n,o,a,i)}r(a)},Ip={string:T1e,method:E1e,number:A1e,boolean:M1e,regexp:R1e,integer:D1e,float:L1e,array:N1e,object:k1e,enum:F1e,pattern:H1e,date:z1e,url:OC,hex:OC,email:OC,required:j1e,any:W1e};function jx(){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 Wx=jx(),Jh=function(){function e(n){this.rules=null,this._messages=Wx,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=h6(jx(),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,c=i;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(v){var y=[],b={};function $(_){if(Array.isArray(_)){var w;y=(w=y).concat.apply(w,_)}else y.push(_)}for(var x=0;x3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!CF(e,t.slice(0,-1))?e:$F(e,t,n,r)}function Vx(e){return ys(e)}function K1e(e,t){return CF(e,t)}function U1e(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return V1e(e,t,n,r)}function G1e(e,t){return e&&e.some(n=>X1e(n,t))}function v6(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function xF(e,t){const n=Array.isArray(e)?[...e]:S({},e);return t&&Object.keys(t).forEach(r=>{const o=n[r],i=t[r],a=v6(o)&&v6(i);n[r]=a?xF(o,i||{}):i}),n}function Y1e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rxF(o,i),e)}function m6(e,t){let n={};return t.forEach(r=>{const o=K1e(e,r);n=U1e(n,r,o)}),n}function X1e(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,r)=>t[r]===n)}const ni="'${name}' is not a valid ${type}",ky={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ni,method:ni,array:ni,object:ni,number:ni,date:ni,boolean:ni,integer:ni,float:ni,regexp:ni,email:ni,url:ni,hex:ni},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var By=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(d){a(d)}}function s(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(l,s)}c((r=r.apply(e,t||[])).next())})};const q1e=Jh;function Z1e(e,t){return e.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return t[r]})}function Kx(e,t,n,r,o){return By(this,void 0,void 0,function*(){const i=S({},n);delete i.ruleIndex,delete i.trigger;let a=null;i&&i.type==="array"&&i.defaultField&&(a=i.defaultField,delete i.defaultField);const l=new q1e({[e]:[i]}),s=Y1e({},ky,r.validateMessages);l.messages(s);let c=[];try{yield Promise.resolve(l.validate({[e]:t},S({},r)))}catch(f){f.errors?c=f.errors.map((h,m)=>{let{message:v}=h;return Jn(v)?kr(v,{key:`error_${m}`}):v}):(console.error(f),c=[s.default()])}if(!c.length&&a)return(yield Promise.all(t.map((h,m)=>Kx(`${e}.${m}`,h,a,r,o)))).reduce((h,m)=>[...h,...m],[]);const u=S(S(S({},n),{name:e,enum:(n.enum||[]).join(", ")}),o);return c.map(f=>typeof f=="string"?Z1e(f,u):f)})}function wF(e,t,n,r,o,i){const a=e.join("."),l=n.map((c,u)=>{const d=c.validator,f=S(S({},c),{ruleIndex:u});return d&&(f.validator=(h,m,v)=>{let y=!1;const $=d(h,m,function(){for(var x=arguments.length,_=new Array(x),w=0;w{y||v(..._)})});y=$&&typeof $.then=="function"&&typeof $.catch=="function",y&&$.then(()=>{v()}).catch(x=>{v(x||" ")})}),f}).sort((c,u)=>{let{warningOnly:d,ruleIndex:f}=c,{warningOnly:h,ruleIndex:m}=u;return!!d==!!h?f-m:d?1:-1});let s;if(o===!0)s=new Promise((c,u)=>By(this,void 0,void 0,function*(){for(let d=0;dKx(a,t,u,r,i).then(d=>({errors:d,rule:u})));s=(o?J1e(c):Q1e(c)).then(u=>Promise.reject(u))}return s.catch(c=>c),s}function Q1e(e){return By(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function J1e(e){return By(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})})}const _F=Symbol("formContextKey"),OF=e=>{ft(_F,e)},VO=()=>it(_F,{name:M(()=>{}),labelAlign:M(()=>"right"),vertical:M(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:M(()=>{}),rules:M(()=>{}),colon:M(()=>{}),labelWrap:M(()=>{}),labelCol:M(()=>{}),requiredMark:M(()=>!1),validateTrigger:M(()=>{}),onValidate:()=>{},validateMessages:M(()=>ky)}),IF=Symbol("formItemPrefixContextKey"),eSe=e=>{ft(IF,e)},tSe=()=>it(IF,{prefixCls:M(()=>"")});function nSe(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const rSe=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),oSe=["xs","sm","md","lg","xl","xxl"],Fy=pe({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:rSe(),setup(e,t){let{slots:n,attrs:r}=t;const{gutter:o,supportFlexGap:i,wrap:a}=r1e(),{prefixCls:l,direction:s}=Ve("col",e),[c,u]=c1e(l),d=M(()=>{const{span:h,order:m,offset:v,push:y,pull:b}=e,$=l.value;let x={};return oSe.forEach(_=>{let w={};const I=e[_];typeof I=="number"?w.span=I:typeof I=="object"&&(w=I||{}),x=S(S({},x),{[`${$}-${_}-${w.span}`]:w.span!==void 0,[`${$}-${_}-order-${w.order}`]:w.order||w.order===0,[`${$}-${_}-offset-${w.offset}`]:w.offset||w.offset===0,[`${$}-${_}-push-${w.push}`]:w.push||w.push===0,[`${$}-${_}-pull-${w.pull}`]:w.pull||w.pull===0,[`${$}-rtl`]:s.value==="rtl"})}),me($,{[`${$}-${h}`]:h!==void 0,[`${$}-order-${m}`]:m,[`${$}-offset-${v}`]:v,[`${$}-push-${y}`]:y,[`${$}-pull-${b}`]:b},x,r.class,u.value)}),f=M(()=>{const{flex:h}=e,m=o.value,v={};if(m&&m[0]>0){const y=`${m[0]/2}px`;v.paddingLeft=y,v.paddingRight=y}if(m&&m[1]>0&&!i.value){const y=`${m[1]/2}px`;v.paddingTop=y,v.paddingBottom=y}return h&&(v.flex=nSe(h),a.value===!1&&!v.minWidth&&(v.minWidth=0)),v});return()=>{var h;return c(g("div",V(V({},r),{},{class:d.value,style:[f.value,r.style]}),[(h=n.default)===null||h===void 0?void 0:h.call(n)]))}}});var iSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const aSe=iSe;function b6(e){for(var t=1;t{let{slots:n,emit:r,attrs:o}=t;var i,a,l,s,c;const{prefixCls:u,htmlFor:d,labelCol:f,labelAlign:h,colon:m,required:v,requiredMark:y}=S(S({},e),o),[b]=Wi("Form"),$=(i=e.label)!==null&&i!==void 0?i:(a=n.label)===null||a===void 0?void 0:a.call(n);if(!$)return null;const{vertical:x,labelAlign:_,labelCol:w,labelWrap:I,colon:O}=VO(),P=f||(w==null?void 0:w.value)||{},E=h||(_==null?void 0:_.value),R=`${u}-item-label`,A=me(R,E==="left"&&`${R}-left`,P.class,{[`${R}-wrap`]:!!I.value});let N=$;const F=m===!0||(O==null?void 0:O.value)!==!1&&m!==!1;if(F&&!x.value&&typeof $=="string"&&$.trim()!==""&&(N=$.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const B=g("span",{class:`${u}-item-tooltip`},[g(Bo,{title:e.tooltip},{default:()=>[g(PF,null,null)]})]);N=g(Je,null,[N,n.tooltip?(l=n.tooltip)===null||l===void 0?void 0:l.call(n,{class:`${u}-item-tooltip`}):B])}y==="optional"&&!v&&(N=g(Je,null,[N,g("span",{class:`${u}-item-optional`},[((s=b.value)===null||s===void 0?void 0:s.optional)||((c=so.Form)===null||c===void 0?void 0:c.optional)])]));const D=me({[`${u}-item-required`]:v,[`${u}-item-required-mark-optional`]:y==="optional",[`${u}-item-no-colon`]:!F});return g(Fy,V(V({},P),{},{class:A}),{default:()=>[g("label",{for:d,class:D,title:typeof $=="string"?$:"",onClick:B=>r("click",B)},[N])]})};UO.displayName="FormItemLabel";UO.inheritAttrs=!1;const sSe=UO,cSe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},uSe=cSe,dSe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),y6=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},fSe=e=>{const{componentCls:t}=e;return{[e.componentCls]:S(S(S({},vt(e)),dSe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":S({},y6(e,e.controlHeightSM)),"&-large":S({},y6(e,e.controlHeightLG))})}},pSe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:S(S({},vt(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:M_,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},hSe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},gSe=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ku=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),vSe=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Ku(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, - ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},mSe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, - .${r}-col-24${n}-label, - .${r}-col-xl-24${n}-label`]:Ku(e),[`@media (max-width: ${e.screenXSMax}px)`]:[vSe(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ku(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ku(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ku(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ku(e)}}}},GO=pt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=nt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[fSe(r),pSe(r),uSe(r),hSe(r),gSe(r),mSe(r),Kh(r),M_]}),bSe=pe({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:r,status:o}=tSe(),i=M(()=>`${r.value}-item-explain`),a=M(()=>!!(e.errors&&e.errors.length)),l=he(o.value),[,s]=GO(r);return Ie([a,o],()=>{a.value&&(l.value=o.value)}),()=>{var c,u;const d=Uh(`${r.value}-show-help-item`),f=ry(`${r.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,i.value,n.class,`${r.value}-show-help`],g(sr,V(V({},Hi(`${r.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[Ln(g(Nb,V(V({},f),{},{tag:"div"}),{default:()=>[(u=e.errors)===null||u===void 0?void 0:u.map((h,m)=>g("div",{key:m,class:l.value?`${i.value}-${l.value}`:""},[h]))]}),[[Br,!!(!((c=e.errors)===null||c===void 0)&&c.length)]])]})}}}),ySe=pe({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const r=VO(),{wrapperCol:o}=r,i=S({},r);return delete i.labelCol,delete i.wrapperCol,OF(i),eSe({prefixCls:M(()=>e.prefixCls),status:M(()=>e.status)}),()=>{var a,l,s;const{prefixCls:c,wrapperCol:u,marginBottom:d,onErrorVisibleChanged:f,help:h=(a=n.help)===null||a===void 0?void 0:a.call(n),errors:m=_n((l=n.errors)===null||l===void 0?void 0:l.call(n)),extra:v=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,y=`${c}-item`,b=u||(o==null?void 0:o.value)||{},$=me(`${y}-control`,b.class);return g(Fy,V(V({},b),{},{class:$}),{default:()=>{var x;return g(Je,null,[g("div",{class:`${y}-control-input`},[g("div",{class:`${y}-control-input-content`},[(x=n.default)===null||x===void 0?void 0:x.call(n)])]),d!==null||m.length?g("div",{style:{display:"flex",flexWrap:"nowrap"}},[g(bSe,{errors:m,help:h,class:`${y}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&g("div",{style:{width:0,height:`${d}px`}},null)]):null,v?g("div",{class:`${y}-extra`},[v]):null])}})}}}),SSe=ySe;function CSe(e){const t=ve(e.value.slice());let n=null;return ct(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Ur("success","warning","error","validating","");const $Se={success:Tl,warning:El,error:Ko,validating:di};function IC(e,t,n){let r=e;const o=t;let i=0;try{for(let a=o.length;i({htmlFor:String,prefixCls:String,label:Z.any,help:Z.any,extra:Z.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:Z.oneOf(Ur("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let wSe=0;const _Se="form_item",TF=pe({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:xSe(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:o}=t;e.prop;const i=`form-item-${++wSe}`,{prefixCls:a}=Ve("form",e),[l,s]=GO(a),c=ve(),u=VO(),d=M(()=>e.name||e.prop),f=ve([]),h=ve(!1),m=ve(),v=M(()=>{const J=d.value;return Vx(J)}),y=M(()=>{if(v.value.length){const J=u.name.value,te=v.value.join("_");return J?`${J}_${te}`:`${_Se}_${te}`}else return}),b=()=>{const J=u.model.value;if(!(!J||!d.value))return IC(J,v.value,!0).v},$=M(()=>b()),x=ve(pm($.value)),_=M(()=>{let J=e.validateTrigger!==void 0?e.validateTrigger:u.validateTrigger.value;return J=J===void 0?"change":J,ys(J)}),w=M(()=>{let J=u.rules.value;const te=e.rules,ee=e.required!==void 0?{required:!!e.required,trigger:_.value}:[],fe=IC(J,v.value);J=J?fe.o[fe.k]||fe.v:[];const ie=[].concat(te||J||[]);return Sfe(ie,X=>X.required)?ie:ie.concat(ee)}),I=M(()=>{const J=w.value;let te=!1;return J&&J.length&&J.every(ee=>ee.required?(te=!0,!1):!0),te||e.required}),O=ve();ct(()=>{O.value=e.validateStatus});const P=M(()=>{let J={};return typeof e.label=="string"?J.label=e.label:e.name&&(J.label=String(e.name)),e.messageVariables&&(J=S(S({},J),e.messageVariables)),J}),E=J=>{if(v.value.length===0)return;const{validateFirst:te=!1}=e,{triggerName:ee}=J||{};let fe=w.value;if(ee&&(fe=fe.filter(X=>{const{trigger:ue}=X;return!ue&&!_.value.length?!0:ys(ue||_.value).includes(ee)})),!fe.length)return Promise.resolve();const ie=wF(v.value,$.value,fe,S({validateMessages:u.validateMessages.value},J),te,P.value);return O.value="validating",f.value=[],ie.catch(X=>X).then(function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(O.value==="validating"){const ue=X.filter(ye=>ye&&ye.errors.length);O.value=ue.length?"error":"success",f.value=ue.map(ye=>ye.errors),u.onValidate(d.value,!f.value.length,f.value.length?$t(f.value[0]):null)}}),ie},R=()=>{E({triggerName:"blur"})},A=()=>{if(h.value){h.value=!1;return}E({triggerName:"change"})},N=()=>{O.value=e.validateStatus,h.value=!1,f.value=[]},F=()=>{var J;O.value=e.validateStatus,h.value=!0,f.value=[];const te=u.model.value||{},ee=$.value,fe=IC(te,v.value,!0);Array.isArray(ee)?fe.o[fe.k]=[].concat((J=x.value)!==null&&J!==void 0?J:[]):fe.o[fe.k]=x.value,_t(()=>{h.value=!1})},W=M(()=>e.htmlFor===void 0?y.value:e.htmlFor),D=()=>{const J=W.value;if(!J||!m.value)return;const te=m.value.$el.querySelector(`[id="${J}"]`);te&&te.focus&&te.focus()};o({onFieldBlur:R,onFieldChange:A,clearValidate:N,resetField:F}),Pce({id:y,onFieldBlur:()=>{e.autoLink&&R()},onFieldChange:()=>{e.autoLink&&A()},clearValidate:N},M(()=>!!(e.autoLink&&u.model.value&&d.value)));let B=!1;Ie(d,J=>{J?B||(B=!0,u.addField(i,{fieldValue:$,fieldId:y,fieldName:d,resetField:F,clearValidate:N,namePath:v,validateRules:E,rules:w})):(B=!1,u.removeField(i))},{immediate:!0}),Ct(()=>{u.removeField(i)});const k=CSe(f),L=M(()=>e.validateStatus!==void 0?e.validateStatus:k.value.length?"error":O.value),z=M(()=>({[`${a.value}-item`]:!0,[s.value]:!0,[`${a.value}-item-has-feedback`]:L.value&&e.hasFeedback,[`${a.value}-item-has-success`]:L.value==="success",[`${a.value}-item-has-warning`]:L.value==="warning",[`${a.value}-item-has-error`]:L.value==="error",[`${a.value}-item-is-validating`]:L.value==="validating",[`${a.value}-item-hidden`]:e.hidden})),K=St({});Tr.useProvide(K),ct(()=>{let J;if(e.hasFeedback){const te=L.value&&$Se[L.value];J=te?g("span",{class:me(`${a.value}-item-feedback-icon`,`${a.value}-item-feedback-icon-${L.value}`)},[g(te,null,null)]):null}S(K,{status:L.value,hasFeedback:e.hasFeedback,feedbackIcon:J,isFormItemInput:!0})});const G=ve(null),Y=ve(!1),ne=()=>{if(c.value){const J=getComputedStyle(c.value);G.value=parseInt(J.marginBottom,10)}};lt(()=>{Ie(Y,()=>{Y.value&&ne()},{flush:"post",immediate:!0})});const oe=J=>{J||(G.value=null)};return()=>{var J,te;if(e.noStyle)return(J=n.default)===null||J===void 0?void 0:J.call(n);const ee=(te=e.help)!==null&&te!==void 0?te:n.help?_n(n.help()):null,fe=!!(ee!=null&&Array.isArray(ee)&&ee.length||k.value.length);return Y.value=fe,l(g("div",{class:[z.value,fe?`${a.value}-item-with-help`:"",r.class],ref:c},[g(WO,V(V({},r),{},{class:`${a.value}-row`,key:"row"}),{default:()=>{var ie,X;return g(Je,null,[g(sSe,V(V({},e),{},{htmlFor:W.value,required:I.value,requiredMark:u.requiredMark.value,prefixCls:a.value,onClick:D,label:e.label}),{label:n.label,tooltip:n.tooltip}),g(SSe,V(V({},e),{},{errors:ee!=null?ys(ee):k.value,marginBottom:G.value,prefixCls:a.value,status:L.value,ref:m,help:ee,extra:(ie=e.extra)!==null&&ie!==void 0?ie:(X=n.extra)===null||X===void 0?void 0:X.call(n),onErrorVisibleChanged:oe}),{default:n.default})])}}),!!G.value&&g("div",{class:`${a.value}-margin-offset`,style:{marginBottom:`-${G.value}px`}},null)]))}}});function EF(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,i)=>{e.forEach((a,l)=>{a.catch(s=>(t=!0,s)).then(s=>{n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}function S6(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function C6(e){return e==null?[]:Array.isArray(e)?e:[e]}function PC(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const o=t.split(".");let i=0;for(let a=o.length;i1&&arguments[1]!==void 0?arguments[1]:he({}),n=arguments.length>2?arguments[2]:void 0;const r=pm(wt(e)),o=St({}),i=ve([]),a=x=>{S(wt(e),S(S({},pm(r)),x)),_t(()=>{Object.keys(o).forEach(_=>{o[_]={autoLink:!1,required:S6(wt(t)[_])}})})},l=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1?arguments[1]:void 0;return _.length?x.filter(w=>{const I=C6(w.trigger||"change");return _fe(I,_).length}):x};let s=null;const c=function(x){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=arguments.length>2?arguments[2]:void 0;const I=[],O={};for(let R=0;R({name:A,errors:[],warnings:[]})).catch(W=>{const D=[],B=[];return W.forEach(k=>{let{rule:{warningOnly:L},errors:z}=k;L?B.push(...z):D.push(...z)}),D.length?Promise.reject({name:A,errors:D,warnings:B}):{name:A,errors:D,warnings:B}}))}const P=EF(I);s=P;const E=P.then(()=>s===P?Promise.resolve(O):Promise.reject([])).catch(R=>{const A=R.filter(N=>N&&N.errors.length);return Promise.reject({values:O,errorFields:A,outOfDate:s!==P})});return E.catch(R=>R),E},u=function(x,_,w){let I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const O=wF([x],_,w,S({validateMessages:ky},I),!!I.validateFirst);return o[x]?(o[x].validateStatus="validating",O.catch(P=>P).then(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var E;if(o[x].validateStatus==="validating"){const R=P.filter(A=>A&&A.errors.length);o[x].validateStatus=R.length?"error":"success",o[x].help=R.length?R.map(A=>A.errors):null,(E=n==null?void 0:n.onValidate)===null||E===void 0||E.call(n,x,!R.length,R.length?$t(o[x].help[0]):null)}}),O):O.catch(P=>P)},d=(x,_)=>{let w=[],I=!0;x?Array.isArray(x)?w=x:w=[x]:(I=!1,w=i.value);const O=c(w,_||{},I);return O.catch(P=>P),O},f=x=>{let _=[];x?Array.isArray(x)?_=x:_=[x]:_=i.value,_.forEach(w=>{o[w]&&S(o[w],{validateStatus:"",help:null})})},h=x=>{const _={autoLink:!1},w=[],I=Array.isArray(x)?x:[x];for(let O=0;O{const _=[];i.value.forEach(w=>{const I=PC(x,w,!1),O=PC(m,w,!1);(v&&(n==null?void 0:n.immediate)&&I.isValid||!t_(I.v,O.v))&&_.push(w)}),d(_,{trigger:"change"}),v=!1,m=pm($t(x))},b=n==null?void 0:n.debounce;let $=!0;return Ie(t,()=>{i.value=t?Object.keys(wt(t)):[],!$&&n&&n.validateOnRuleChange&&d(),$=!1},{deep:!0,immediate:!0}),Ie(i,()=>{const x={};i.value.forEach(_=>{x[_]=S({},o[_],{autoLink:!1,required:S6(wt(t)[_])}),delete o[_]});for(const _ in o)Object.prototype.hasOwnProperty.call(o,_)&&delete o[_];S(o,x)},{immediate:!0}),Ie(e,b&&b.wait?E_(y,b.wait,Ffe(b,["wait"])):y,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:o,resetFields:a,validate:d,validateField:u,mergeValidateInfo:h,clearValidate:f}}const ISe=()=>({layout:Z.oneOf(Ur("horizontal","inline","vertical")),labelCol:qe(),wrapperCol:qe(),colon:De(),labelAlign:Qe(),labelWrap:De(),prefixCls:String,requiredMark:ot([String,Boolean]),hideRequiredMark:De(),model:Z.object,rules:qe(),validateMessages:qe(),validateOnRuleChange:De(),scrollToFirstError:cn(),onSubmit:Oe(),name:String,validateTrigger:ot([String,Array]),size:Qe(),disabled:De(),onValuesChange:Oe(),onFieldsChange:Oe(),onFinish:Oe(),onFinishFailed:Oe(),onValidate:Oe()});function PSe(e,t){return t_(ys(e),ys(t))}const TSe=pe({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:bt(ISe(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:TF,useForm:OSe,setup(e,t){let{emit:n,slots:r,expose:o,attrs:i}=t;const{prefixCls:a,direction:l,form:s,size:c,disabled:u}=Ve("form",e),d=M(()=>e.requiredMark===""||e.requiredMark),f=M(()=>{var k;return d.value!==void 0?d.value:s&&((k=s.value)===null||k===void 0?void 0:k.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});M7(c),XN(u);const h=M(()=>{var k,L;return(k=e.colon)!==null&&k!==void 0?k:(L=s.value)===null||L===void 0?void 0:L.colon}),{validateMessages:m}=Xee(),v=M(()=>S(S(S({},ky),m.value),e.validateMessages)),[y,b]=GO(a),$=M(()=>me(a.value,{[`${a.value}-${e.layout}`]:!0,[`${a.value}-hide-required-mark`]:f.value===!1,[`${a.value}-rtl`]:l.value==="rtl",[`${a.value}-${c.value}`]:c.value},b.value)),x=he(),_={},w=(k,L)=>{_[k]=L},I=k=>{delete _[k]},O=k=>{const L=!!k,z=L?ys(k).map(Vx):[];return L?Object.values(_).filter(K=>z.findIndex(G=>PSe(G,K.fieldName.value))>-1):Object.values(_)},P=k=>{if(!e.model){Sn();return}O(k).forEach(L=>{L.resetField()})},E=k=>{O(k).forEach(L=>{L.clearValidate()})},R=k=>{const{scrollToFirstError:L}=e;if(n("finishFailed",k),L&&k.errorFields.length){let z={};typeof L=="object"&&(z=L),N(k.errorFields[0].name,z)}},A=function(){return D(...arguments)},N=function(k){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const z=O(k?[k]:void 0);if(z.length){const K=z[0].fieldId.value,G=K?document.getElementById(K):null;G&&L7(G,S({scrollMode:"if-needed",block:"nearest"},L))}},F=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(k===!0){const L=[];return Object.values(_).forEach(z=>{let{namePath:K}=z;L.push(K.value)}),m6(e.model,L)}else return m6(e.model,k)},W=(k,L)=>{if(Sn(),!e.model)return Sn(),Promise.reject("Form `model` is required for validateFields to work.");const z=!!k,K=z?ys(k).map(Vx):[],G=[];Object.values(_).forEach(oe=>{var J;if(z||K.push(oe.namePath.value),!(!((J=oe.rules)===null||J===void 0)&&J.value.length))return;const te=oe.namePath.value;if(!z||G1e(K,te)){const ee=oe.validateRules(S({validateMessages:v.value},L));G.push(ee.then(()=>({name:te,errors:[],warnings:[]})).catch(fe=>{const ie=[],X=[];return fe.forEach(ue=>{let{rule:{warningOnly:ye},errors:H}=ue;ye?X.push(...H):ie.push(...H)}),ie.length?Promise.reject({name:te,errors:ie,warnings:X}):{name:te,errors:ie,warnings:X}}))}});const Y=EF(G);x.value=Y;const ne=Y.then(()=>x.value===Y?Promise.resolve(F(K)):Promise.reject([])).catch(oe=>{const J=oe.filter(te=>te&&te.errors.length);return Promise.reject({values:F(K),errorFields:J,outOfDate:x.value!==Y})});return ne.catch(oe=>oe),ne},D=function(){return W(...arguments)},B=k=>{k.preventDefault(),k.stopPropagation(),n("submit",k),e.model&&W().then(z=>{n("finish",z)}).catch(z=>{R(z)})};return o({resetFields:P,clearValidate:E,validateFields:W,getFieldsValue:F,validate:A,scrollToField:N}),OF({model:M(()=>e.model),name:M(()=>e.name),labelAlign:M(()=>e.labelAlign),labelCol:M(()=>e.labelCol),labelWrap:M(()=>e.labelWrap),wrapperCol:M(()=>e.wrapperCol),vertical:M(()=>e.layout==="vertical"),colon:h,requiredMark:f,validateTrigger:M(()=>e.validateTrigger),rules:M(()=>e.rules),addField:w,removeField:I,onValidate:(k,L,z)=>{n("validate",k,L,z)},validateMessages:v}),Ie(()=>e.rules,()=>{e.validateOnRuleChange&&W()}),()=>{var k;return y(g("form",V(V({},i),{},{onSubmit:B,class:[$.value,i.class]}),[(k=r.default)===null||k===void 0?void 0:k.call(r)]))}}}),us=TSe;us.useInjectFormItemContext=cr;us.ItemRest=S0;us.install=function(e){return e.component(us.name,us),e.component(us.Item.name,us.Item),e.component(S0.name,S0),e};const ESe=new Pt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ASe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:S(S({},vt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:S(S({},vt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:S(S({},vt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:S({},yl(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` - ${n}:not(${n}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:ESe,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Hy(e,t){const n=nt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[ASe(n)]}const AF=pt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Hy(n,e)]}),MSe=e=>{const{prefixCls:t,componentCls:n,antCls:r}=e,o=`${n}-menu-item`,i=` - &${o}-expand ${o}-expand-icon, - ${o}-loading-icon - `,a=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[Hy(`${t}-checkbox`,e),{[`&${r}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[o]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":S(S({},er),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${a}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${o}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},uf(e)]},RSe=pt("Cascader",e=>[MSe(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var DSe=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);os===0?[l]:[...a,t,l],[]),o=[];let i=0;return r.forEach((a,l)=>{const s=i+a.length;let c=e.slice(i,s);i=s,l%2===1&&(c=g("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[c])),o.push(c)}),o}const NSe=e=>{let{inputValue:t,path:n,prefixCls:r,fieldNames:o}=e;const i=[],a=t.toLowerCase();return n.forEach((l,s)=>{s!==0&&i.push(" / ");let c=l[o.label];const u=typeof c;(u==="string"||u==="number")&&(c=LSe(String(c),a,r)),i.push(c)}),i};function kSe(){return S(S({},Ot(gF(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Z.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const BSe=pe({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:bt(kSe(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:r,slots:o,emit:i}=t;const a=cr(),l=Tr.useInject(),s=M(()=>da(l.status,e.status)),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:f,getPopupContainer:h,renderEmpty:m,size:v,disabled:y}=Ve("cascader",e),b=M(()=>d("select",e.prefixCls)),{compactSize:$,compactItemClassnames:x}=Es(b,f),_=M(()=>$.value||v.value),w=jo(),I=M(()=>{var L;return(L=y.value)!==null&&L!==void 0?L:w.value}),[O,P]=R_(b),[E]=RSe(c),R=M(()=>f.value==="rtl"),A=M(()=>{if(!e.showSearch)return e.showSearch;let L={render:NSe};return typeof e.showSearch=="object"&&(L=S(S({},L),e.showSearch)),L}),N=M(()=>me(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:R.value},P.value)),F=he();r({focus(){var L;(L=F.value)===null||L===void 0||L.focus()},blur(){var L;(L=F.value)===null||L===void 0||L.blur()}});const W=function(){for(var L=arguments.length,z=new Array(L),K=0;Ke.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),k=M(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var L,z;const{notFoundContent:K=(L=o.notFoundContent)===null||L===void 0?void 0:L.call(o),expandIcon:G=(z=o.expandIcon)===null||z===void 0?void 0:z.call(o),multiple:Y,bordered:ne,allowClear:oe,choiceTransitionName:J,transitionName:te,id:ee=a.id.value}=e,fe=DSe(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),ie=K||m("Cascader");let X=G;G||(X=R.value?g(xs,null,null):g(sa,null,null));const ue=g("span",{class:`${b.value}-menu-item-loading-icon`},[g(di,{spin:!0},null)]),{suffixIcon:ye,removeIcon:H,clearIcon:j}=S_(S(S({},e),{hasFeedback:l.hasFeedback,feedbackIcon:l.feedbackIcon,multiple:Y,prefixCls:b.value,showArrow:B.value}),o);return E(O(g(qye,V(V(V({},fe),n),{},{id:ee,prefixCls:b.value,class:[c.value,{[`${b.value}-lg`]:_.value==="large",[`${b.value}-sm`]:_.value==="small",[`${b.value}-rtl`]:R.value,[`${b.value}-borderless`]:!ne,[`${b.value}-in-form-item`]:l.isFormItemInput},lo(b.value,s.value,l.hasFeedback),x.value,n.class,P.value],disabled:I.value,direction:f.value,placement:k.value,notFoundContent:ie,allowClear:oe,showSearch:A.value,expandIcon:X,inputIcon:ye,removeIcon:H,clearIcon:j,loadingIcon:ue,checkable:!!Y,dropdownClassName:N.value,dropdownPrefixCls:c.value,choiceTransitionName:uo(u.value,"",J),transitionName:uo(u.value,n_(k.value),te),getPopupContainer:h==null?void 0:h.value,customSlots:S(S({},o),{checkable:()=>g("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||o.tagRender,displayRender:e.displayRender||o.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,showArrow:l.hasFeedback||e.showArrow,onChange:W,onBlur:D,ref:F}),o)))}}}),FSe=$n(S(BSe,{SHOW_CHILD:iF,SHOW_PARENT:oF})),HSe=()=>({name:String,prefixCls:String,options:kt([]),disabled:Boolean,id:String}),zSe=()=>S(S({},HSe()),{defaultValue:kt(),value:kt(),onChange:Oe(),"onUpdate:value":Oe()}),jSe=()=>({prefixCls:String,defaultChecked:De(),checked:De(),disabled:De(),isGroup:De(),value:Z.any,name:String,id:String,indeterminate:De(),type:Qe("checkbox"),autofocus:De(),onChange:Oe(),"onUpdate:checked":Oe(),onClick:Oe(),skipGroup:De(!1)}),WSe=()=>S(S({},jSe()),{indeterminate:De(!1)}),MF=Symbol("CheckboxGroupContext");var $6=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(m==null?void 0:m.disabled.value)||u.value);ct(()=>{!e.skipGroup&&m&&m.registerValue(v,e.value)}),Ct(()=>{m&&m.cancelValue(v)}),lt(()=>{Sn(!!(e.checked!==void 0||m||e.value===void 0))});const b=w=>{const I=w.target.checked;n("update:checked",I),n("change",w),a.onFieldChange()},$=he();return i({focus:()=>{var w;(w=$.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=$.value)===null||w===void 0||w.blur()}}),()=>{var w;const I=ln((w=o.default)===null||w===void 0?void 0:w.call(o)),{indeterminate:O,skipGroup:P,id:E=a.id.value}=e,R=$6(e,["indeterminate","skipGroup","id"]),{onMouseenter:A,onMouseleave:N,onInput:F,class:W,style:D}=r,B=$6(r,["onMouseenter","onMouseleave","onInput","class","style"]),k=S(S(S(S({},R),{id:E,prefixCls:s.value}),B),{disabled:y.value});m&&!P?(k.onChange=function(){for(var G=arguments.length,Y=new Array(G),ne=0;ne`${l.value}-group`),[u,d]=AF(c),f=he((e.value===void 0?e.defaultValue:e.value)||[]);Ie(()=>e.value,()=>{f.value=e.value||[]});const h=M(()=>e.options.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_)),m=he(Symbol()),v=he(new Map),y=_=>{v.value.delete(_),m.value=Symbol()},b=(_,w)=>{v.value.set(_,w),m.value=Symbol()},$=he(new Map);return Ie(m,()=>{const _=new Map;for(const w of v.value.values())_.set(w,!0);$.value=_}),ft(MF,{cancelValue:y,registerValue:b,toggleOption:_=>{const w=f.value.indexOf(_.value),I=[...f.value];w===-1?I.push(_.value):I.splice(w,1),e.value===void 0&&(f.value=I);const O=I.filter(P=>$.value.has(P)).sort((P,E)=>{const R=h.value.findIndex(N=>N.value===P),A=h.value.findIndex(N=>N.value===E);return R-A});o("update:value",O),o("change",O),a.onFieldChange()},mergedValue:f,name:M(()=>e.name),disabled:M(()=>e.disabled)}),i({mergedValue:f}),()=>{var _;const{id:w=a.id.value}=e;let I=null;return h.value&&h.value.length>0&&(I=h.value.map(O=>{var P;return g(Ri,{prefixCls:l.value,key:O.value.toString(),disabled:"disabled"in O?O.disabled:e.disabled,indeterminate:O.indeterminate,value:O.value,checked:f.value.indexOf(O.value)!==-1,onChange:O.onChange,class:`${c.value}-item`},{default:()=>[n.label!==void 0?(P=n.label)===null||P===void 0?void 0:P.call(n,O):O.label]})})),u(g("div",V(V({},r),{},{class:[c.value,{[`${c.value}-rtl`]:s.value==="rtl"},r.class,d.value],id:w}),[I||((_=n.default)===null||_===void 0?void 0:_.call(n))]))}}});Ri.Group=z0;Ri.install=function(e){return e.component(Ri.name,Ri),e.component(z0.name,z0),e};const VSe={useBreakpoint:ff},KSe=$n(Fy),USe=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:r,commentNestIndent:o,commentFontSizeBase:i,commentFontSizeSm:a,commentAuthorNameColor:l,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:h}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:r},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:i,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:i,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:a,lineHeight:"18px"},"&-name":{color:l,fontSize:i,transition:`color ${e.motionDurationSlow}`,"> *":{color:l,"&:hover":{color:l}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:h,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:a,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:o},"&-rtl":{direction:"rtl"}}}},GSe=pt("Comment",e=>{const t=nt(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[USe(t)]}),YSe=()=>({actions:Array,author:Z.any,avatar:Z.any,content:Z.any,prefixCls:String,datetime:Z.any}),XSe=pe({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:YSe(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("comment",e),[a,l]=GSe(o),s=(u,d)=>g("div",{class:`${u}-nested`},[d]),c=u=>!u||!u.length?null:u.map((f,h)=>g("li",{key:`action-${h}`},[f]));return()=>{var u,d,f,h,m,v,y,b,$,x,_;const w=o.value,I=(u=e.actions)!==null&&u!==void 0?u:(d=n.actions)===null||d===void 0?void 0:d.call(n),O=(f=e.author)!==null&&f!==void 0?f:(h=n.author)===null||h===void 0?void 0:h.call(n),P=(m=e.avatar)!==null&&m!==void 0?m:(v=n.avatar)===null||v===void 0?void 0:v.call(n),E=(y=e.content)!==null&&y!==void 0?y:(b=n.content)===null||b===void 0?void 0:b.call(n),R=($=e.datetime)!==null&&$!==void 0?$:(x=n.datetime)===null||x===void 0?void 0:x.call(n),A=g("div",{class:`${w}-avatar`},[typeof P=="string"?g("img",{src:P,alt:"comment-avatar"},null):P]),N=I?g("ul",{class:`${w}-actions`},[c(Array.isArray(I)?I:[I])]):null,F=g("div",{class:`${w}-content-author`},[O&&g("span",{class:`${w}-content-author-name`},[O]),R&&g("span",{class:`${w}-content-author-time`},[R])]),W=g("div",{class:`${w}-content`},[F,g("div",{class:`${w}-content-detail`},[E]),N]),D=g("div",{class:`${w}-inner`},[A,W]),B=ln((_=n.default)===null||_===void 0?void 0:_.call(n));return a(g("div",V(V({},r),{},{class:[w,{[`${w}-rtl`]:i.value==="rtl"},r.class,l.value]}),[D,B&&B.length?s(w,B):null]))}}}),qSe=$n(XSe);let $m=S({},so.Modal);function ZSe(e){e?$m=S(S({},$m),e):$m=S({},so.Modal)}function QSe(){return $m}const Ux="internalMark",xm=pe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Sn(e.ANT_MARK__===Ux);const r=St({antLocale:S(S({},e.locale),{exist:!0}),ANT_MARK__:Ux});return ft("localeData",r),Ie(()=>e.locale,o=>{ZSe(o&&o.Modal),r.antLocale=S(S({},o),{exist:!0})},{immediate:!0}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});xm.install=function(e){return e.component(xm.name,xm),e};const RF=$n(xm),DF=pe({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:r}=t,o,i=!1;const a=M(()=>e.duration===void 0?4.5:e.duration),l=()=>{a.value&&!i&&(o=setTimeout(()=>{c()},a.value*1e3))},s=()=>{o&&(clearTimeout(o),o=null)},c=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:h}=e;f&&f(h)},u=()=>{s(),l()};return lt(()=>{l()}),Fr(()=>{i=!0,s()}),Ie([a,()=>e.updateMark,()=>e.visible],(d,f)=>{let[h,m,v]=d,[y,b,$]=f;(h!==y||m!==b||v!==$&&$)&&u()},{flush:"post"}),()=>{var d,f;const{prefixCls:h,closable:m,closeIcon:v=(d=r.closeIcon)===null||d===void 0?void 0:d.call(r),onClick:y,holder:b}=e,{class:$,style:x}=n,_=`${h}-notice`,w=Object.keys(n).reduce((O,P)=>((P.startsWith("data-")||P.startsWith("aria-")||P==="role")&&(O[P]=n[P]),O),{}),I=g("div",V({class:me(_,$,{[`${_}-closable`]:m}),style:x,onMouseenter:s,onMouseleave:l,onClick:y},w),[g("div",{class:`${_}-content`},[(f=r.default)===null||f===void 0?void 0:f.call(r)]),m?g("a",{tabindex:0,onClick:c,class:`${_}-close`},[v||g("span",{class:`${_}-close-x`},null)]):null]);return b?g(Mb,{to:b},{default:()=>I}):I}}});var JSe=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:u,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${u}-${d}`),ry(f)}),s=(u,d)=>{const f=u.key||w6(),h=S(S({},u),{key:f}),{maxCount:m}=e,v=a.value.map(b=>b.notice.key).indexOf(f),y=a.value.concat();v!==-1?y.splice(v,1,{notice:h,holderCallback:d}):(m&&a.value.length>=m&&(h.key=y[0].notice.key,h.updateMark=w6(),h.userPassKey=f,y.shift()),y.push({notice:h,holderCallback:d})),a.value=y},c=u=>{a.value=a.value.filter(d=>{let{notice:{key:f,userPassKey:h}}=d;return(h||f)!==u})};return r({add:s,remove:c,notices:a}),()=>{var u;const{prefixCls:d,closeIcon:f=(u=o.closeIcon)===null||u===void 0?void 0:u.call(o,{prefixCls:d})}=e,h=a.value.map((v,y)=>{let{notice:b,holderCallback:$}=v;const x=y===a.value.length-1?b.updateMark:void 0,{key:_,userPassKey:w}=b,{content:I}=b,O=S(S(S({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},b),b.props),{key:_,noticeKey:w||_,updateMark:x,onClose:P=>{var E;c(P),(E=b.onClose)===null||E===void 0||E.call(b)},onClick:b.onClick});return $?g("div",{key:_,class:`${d}-hook-holder`,ref:P=>{typeof _>"u"||(P?(i.set(_,P),$(P,O)):i.delete(_))}},null):g(DF,V(V({},O),{},{class:me(O.class,e.hashId)}),{default:()=>[typeof I=="function"?I({prefixCls:d}):I]})}),m={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return g("div",{class:m,style:n.style||{top:"65px",left:"50%"}},[g(Nb,V({tag:"div"},l.value),{default:()=>[h]})])}}});Gx.newInstance=function(t,n){const r=t||{},{name:o="notification",getContainer:i,appContext:a,prefixCls:l,rootPrefixCls:s,transitionName:c,hasTransitionName:u,useStyle:d}=r,f=JSe(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),h=document.createElement("div");i?i().appendChild(h):document.body.appendChild(h);const v=g(pe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(y,b){let{attrs:$}=b;const x=ve(),_=M(()=>jr.getPrefixCls(o,l)),[,w]=d(_);return lt(()=>{n({notice(I){var O;(O=x.value)===null||O===void 0||O.add(I)},removeNotice(I){var O;(O=x.value)===null||O===void 0||O.remove(I)},destroy(){Pc(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:x})}),()=>{const I=jr,O=I.getRootPrefixCls(s,_.value),P=u?c:`${_.value}-${c}`;return g(ZO,V(V({},I),{},{prefixCls:O}),{default:()=>[g(Gx,V(V({ref:x},$),{},{prefixCls:_.value,transitionName:P,hashId:w.value}),null)]})}}}),f);v.appContext=a||v.appContext,Pc(v,h)};const LF=Gx;let _6=0;const tCe=Date.now();function O6(){const e=_6;return _6+=1,`rcNotification_${tCe}_${e}`}const nCe=pe({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:r}=t;const o=new Map,i=M(()=>e.notices),a=M(()=>{let u=e.transitionName;if(!u&&e.animation)switch(typeof e.animation){case"string":u=e.animation;break;case"function":u=e.animation().name;break;case"object":u=e.animation.name;break;default:u=`${e.prefixCls}-fade`;break}return ry(u)}),l=u=>e.remove(u),s=he({});Ie(i,()=>{const u={};Object.keys(s.value).forEach(d=>{u[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(u[f]=u[f]||[],u[f].push(d))}),s.value=u});const c=M(()=>Object.keys(s.value));return()=>{var u;const{prefixCls:d,closeIcon:f=(u=r.closeIcon)===null||u===void 0?void 0:u.call(r,{prefixCls:d})}=e,h=c.value.map(m=>{var v,y;const b=s.value[m],$=(v=e.getClassName)===null||v===void 0?void 0:v.call(e,m),x=(y=e.getStyles)===null||y===void 0?void 0:y.call(e,m),_=b.map((O,P)=>{let{notice:E,holderCallback:R}=O;const A=P===i.value.length-1?E.updateMark:void 0,{key:N,userPassKey:F}=E,{content:W}=E,D=S(S(S({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},E),E.props),{key:N,noticeKey:F||N,updateMark:A,onClose:B=>{var k;l(B),(k=E.onClose)===null||k===void 0||k.call(E)},onClick:E.onClick});return R?g("div",{key:N,class:`${d}-hook-holder`,ref:B=>{typeof N>"u"||(B?(o.set(N,B),R(B,D)):o.delete(N))}},null):g(DF,V(V({},D),{},{class:me(D.class,e.hashId)}),{default:()=>[typeof W=="function"?W({prefixCls:d}):W]})}),w={[d]:1,[`${d}-${m}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[$]:!!$};function I(){var O;b.length>0||(Reflect.deleteProperty(s.value,m),(O=e.onAllRemoved)===null||O===void 0||O.call(e))}return g("div",{key:m,class:w,style:n.style||x||{top:"65px",left:"50%"}},[g(Nb,V(V({tag:"div"},a.value),{},{onAfterLeave:I}),{default:()=>[_]})])});return g(mk,{getContainer:e.getContainer},{default:()=>[h]})}}}),rCe=nCe;var oCe=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);odocument.body;let I6=0;function aCe(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(i=>{const a=o[i];a!==void 0&&(e[i]=a)})}),e}function NF(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=iCe,motion:n,prefixCls:r,maxCount:o,getClassName:i,getStyles:a,onAllRemoved:l}=e,s=oCe(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=ve([]),u=ve(),d=(b,$)=>{const x=b.key||O6(),_=S(S({},b),{key:x}),w=c.value.map(O=>O.notice.key).indexOf(x),I=c.value.concat();w!==-1?I.splice(w,1,{notice:_,holderCallback:$}):(o&&c.value.length>=o&&(_.key=I[0].notice.key,_.updateMark=O6(),_.userPassKey=x,I.shift()),I.push({notice:_,holderCallback:$})),c.value=I},f=b=>{c.value=c.value.filter($=>{let{notice:{key:x,userPassKey:_}}=$;return(_||x)!==b})},h=()=>{c.value=[]},m=()=>g(rCe,{ref:u,prefixCls:r,maxCount:o,notices:c.value,remove:f,getClassName:i,getStyles:a,animation:n,hashId:e.hashId,onAllRemoved:l,getContainer:t},null),v=ve([]),y={open:b=>{const $=aCe(s,b);($.key===null||$.key===void 0)&&($.key=`vc-notification-${I6}`,I6+=1),v.value=[...v.value,{type:"open",config:$}]},close:b=>{v.value=[...v.value,{type:"close",key:b}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return Ie(v,()=>{v.value.length&&(v.value.forEach(b=>{switch(b.type){case"open":d(b.config);break;case"close":f(b.key);break;case"destroy":h();break}}),v.value=[])}),[y,m]}const lCe=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:h,borderRadiusLG:m,zIndexPopup:v,messageNoticeContentPadding:y}=e,b=new Pt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),$=new Pt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:S(S({},vt(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:$,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:h,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:y,background:o,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success ${n}`]:{color:i},[`${t}-error ${n}`]:{color:a},[`${t}-warning ${n}`]:{color:l},[` - ${t}-info ${n}, - ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},kF=pt("Message",e=>{const t=nt(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[lCe(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),sCe={info:g(df,null,null),success:g(Tl,null,null),error:g(Ko,null,null),warning:g(El,null,null),loading:g(di,null,null)},cCe=pe({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var r;return g("div",{class:me(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||sCe[e.type],g("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});var uCe=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);oi("message",e.prefixCls)),[,s]=kF(l),c=()=>{var v;const y=(v=e.top)!==null&&v!==void 0?v:dCe;return{left:"50%",transform:"translateX(-50%)",top:typeof y=="number"?`${y}px`:y}},u=()=>me(s.value,e.rtl?`${l.value}-rtl`:""),d=()=>{var v;return V2({prefixCls:l.value,animation:(v=e.animation)!==null&&v!==void 0?v:"move-up",transitionName:e.transitionName})},f=g("span",{class:`${l.value}-close-x`},[g(Vo,{class:`${l.value}-close-icon`},null)]),[h,m]=NF({getStyles:c,prefixCls:l.value,getClassName:u,motion:d,closable:!1,closeIcon:f,duration:(r=e.duration)!==null&&r!==void 0?r:fCe,getContainer:(o=e.staticGetContainer)!==null&&o!==void 0?o:a.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(S(S({},h),{prefixCls:l,hashId:s})),m}});let P6=0;function hCe(e){const t=ve(null),n=Symbol("messageHolderKey"),r=s=>{var c;(c=t.value)===null||c===void 0||c.close(s)},o=s=>{if(!t.value){const w=()=>{};return w.then=()=>{},w}const{open:c,prefixCls:u,hashId:d}=t.value,f=`${u}-notice`,{content:h,icon:m,type:v,key:y,class:b,onClose:$}=s,x=uCe(s,["content","icon","type","key","class","onClose"]);let _=y;return _==null&&(P6+=1,_=`antd-message-${P6}`),xee(w=>(c(S(S({},x),{key:_,content:()=>g(cCe,{prefixCls:u,type:v,icon:typeof m=="function"?m():m},{default:()=>[typeof h=="function"?h():h]}),placement:"top",class:me(v&&`${f}-${v}`,d,b),onClose:()=>{$==null||$(),w()}})),()=>{r(_)}))},a={open:o,destroy:s=>{var c;s!==void 0?r(s):(c=t.value)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const c=(u,d,f)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let m,v;typeof d=="function"?v=d:(m=d,v=f);const y=S(S({onClose:v,duration:m},h),{type:s});return o(y)};a[s]=c}),[a,()=>g(pCe,V(V({key:n},e),{},{ref:t}),null)]}function BF(e){return hCe(e)}let FF=3,HF,Co,gCe=1,zF="",jF="move-up",WF=!1,VF=()=>document.body,KF,UF=!1;function vCe(){return gCe++}function mCe(e){e.top!==void 0&&(HF=e.top,Co=null),e.duration!==void 0&&(FF=e.duration),e.prefixCls!==void 0&&(zF=e.prefixCls),e.getContainer!==void 0&&(VF=e.getContainer,Co=null),e.transitionName!==void 0&&(jF=e.transitionName,Co=null,WF=!0),e.maxCount!==void 0&&(KF=e.maxCount,Co=null),e.rtl!==void 0&&(UF=e.rtl)}function bCe(e,t){if(Co){t(Co);return}LF.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||zF,rootPrefixCls:e.rootPrefixCls,transitionName:jF,hasTransitionName:WF,style:{top:HF},getContainer:VF||e.getPopupContainer,maxCount:KF,name:"message",useStyle:kF},n=>{if(Co){t(Co);return}Co=n,t(n)})}const GF={info:df,success:Tl,error:Ko,warning:El,loading:di},yCe=Object.keys(GF);function SCe(e){const t=e.duration!==void 0?e.duration:FF,n=e.key||vCe(),r=new Promise(i=>{const a=()=>(typeof e.onClose=="function"&&e.onClose(),i(!0));bCe(e,l=>{l.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:c}=s;const u=GF[e.type],d=u?g(u,null,null):"",f=me(`${c}-custom-content`,{[`${c}-${e.type}`]:e.type,[`${c}-rtl`]:UF===!0});return g("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||d,g("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:a,onClick:e.onClick})})}),o=()=>{Co&&Co.removeNotice(n)};return o.then=(i,a)=>r.then(i,a),o.promise=r,o}function CCe(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const Sh={open:SCe,config:mCe,destroy(e){if(Co)if(e){const{removeNotice:t}=Co;t(e)}else{const{destroy:t}=Co;t(),Co=null}}};function $Ce(e,t){e[t]=(n,r,o)=>CCe(n)?e.open(S(S({},n),{type:t})):(typeof r=="function"&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}yCe.forEach(e=>$Ce(Sh,e));Sh.warn=Sh.warning;Sh.useMessage=BF;const YO=Sh,xCe=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new Pt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new Pt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new Pt("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}},wCe=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:h,notificationMarginEdge:m,motionDurationMid:v,motionEaseInOut:y,fontSize:b,lineHeight:$,width:x,notificationIconSize:_}=e,w=`${n}-notice`,I=new Pt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:x},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),O=new Pt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:S(S(S(S({},vt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:y,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:y,animationFillMode:"both",animationDuration:v,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:I,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:O,animationPlayState:"running"}}),xCe(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[w]:{position:"relative",width:x,maxWidth:`calc(100vw - ${m*2}px)`,marginBottom:i,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:$,wordWrap:"break-word",background:f,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:b},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+_,fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+_,fontSize:b},[`${w}-icon`]:{position:"absolute",fontSize:_,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${w}-pure-panel`]:{margin:0}}]},YF=pt("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=nt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[wCe(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function _Ce(e,t){return t||g("span",{class:`${e}-close-x`},[g(Vo,{class:`${e}-close-icon`},null)])}g(df,null,null),g(Tl,null,null),g(Ko,null,null),g(El,null,null),g(di,null,null);const OCe={success:Tl,info:df,error:Ko,warning:El};function ICe(e){let{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a}=e,l=null;if(n)l=g("span",{class:`${t}-icon`},[Xu(n)]);else if(r){const s=OCe[r];l=g(s,{class:`${t}-icon ${t}-icon-${r}`},null)}return g("div",{class:me({[`${t}-with-icon`]:l}),role:"alert"},[l,g("div",{class:`${t}-message`},[o]),g("div",{class:`${t}-description`},[i]),a&&g("div",{class:`${t}-btn`},[a])])}function XF(e,t,n){let r;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function PCe(e){return{name:`${e}-fade`}}var TCe=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);oe.prefixCls||r("notification")),a=f=>{var h,m;return XF(f,(h=e.top)!==null&&h!==void 0?h:T6,(m=e.bottom)!==null&&m!==void 0?m:T6)},[,l]=YF(i),s=()=>me(l.value,{[`${i.value}-rtl`]:e.rtl}),c=()=>PCe(i.value),[u,d]=NF({prefixCls:i.value,getStyles:a,getClassName:s,motion:c,closable:!0,closeIcon:_Ce(i.value),duration:ECe,getContainer:()=>{var f,h;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((h=o.value)===null||h===void 0?void 0:h.call(o))||document.body},maxCount:e.maxCount,hashId:l.value,onAllRemoved:e.onAllRemoved});return n(S(S({},u),{prefixCls:i.value,hashId:l})),d}});function MCe(e){const t=ve(null),n=Symbol("notificationHolderKey"),r=l=>{if(!t.value)return;const{open:s,prefixCls:c,hashId:u}=t.value,d=`${c}-notice`,{message:f,description:h,icon:m,type:v,btn:y,class:b}=l,$=TCe(l,["message","description","icon","type","btn","class"]);return s(S(S({placement:"topRight"},$),{content:()=>g(ICe,{prefixCls:d,icon:typeof m=="function"?m():m,type:v,message:typeof f=="function"?f():f,description:typeof h=="function"?h():h,btn:typeof y=="function"?y():y},null),class:me(v&&`${d}-${v}`,u,b)}))},i={open:r,destroy:l=>{var s,c;l!==void 0?(s=t.value)===null||s===void 0||s.close(l):(c=t.value)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(l=>{i[l]=s=>r(S(S({},s),{type:l}))}),[i,()=>g(ACe,V(V({key:n},e),{},{ref:t}),null)]}function qF(e){return MCe(e)}const dc={};let ZF=4.5,QF="24px",JF="24px",Yx="",eH="topRight",tH=()=>document.body,nH=null,Xx=!1,rH;function RCe(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:i,closeIcon:a,prefixCls:l}=e;l!==void 0&&(Yx=l),t!==void 0&&(ZF=t),n!==void 0&&(eH=n),r!==void 0&&(JF=typeof r=="number"?`${r}px`:r),o!==void 0&&(QF=typeof o=="number"?`${o}px`:o),i!==void 0&&(tH=i),a!==void 0&&(nH=a),e.rtl!==void 0&&(Xx=e.rtl),e.maxCount!==void 0&&(rH=e.maxCount)}function DCe(e,t){let{prefixCls:n,placement:r=eH,getContainer:o=tH,top:i,bottom:a,closeIcon:l=nH,appContext:s}=e;const{getPrefixCls:c}=UCe(),u=c("notification",n||Yx),d=`${u}-${r}-${Xx}`,f=dc[d];if(f){Promise.resolve(f).then(m=>{t(m)});return}const h=me(`${u}-${r}`,{[`${u}-rtl`]:Xx===!0});LF.newInstance({name:"notification",prefixCls:n||Yx,useStyle:YF,class:h,style:XF(r,i??QF,a??JF),appContext:s,getContainer:o,closeIcon:m=>{let{prefixCls:v}=m;return g("span",{class:`${v}-close-x`},[Xu(l,{},g(Vo,{class:`${v}-close-icon`},null))])},maxCount:rH,hasTransitionName:!0},m=>{dc[d]=m,t(m)})}const LCe={success:m9,info:y9,error:S9,warning:b9};function NCe(e){const{icon:t,type:n,description:r,message:o,btn:i}=e,a=e.duration===void 0?ZF:e.duration;DCe(e,l=>{l.notice({content:s=>{let{prefixCls:c}=s;const u=`${c}-notice`;let d=null;if(t)d=()=>g("span",{class:`${u}-icon`},[Xu(t)]);else if(n){const f=LCe[n];d=()=>g(f,{class:`${u}-icon ${u}-icon-${n}`},null)}return g("div",{class:d?`${u}-with-icon`:""},[d&&d(),g("div",{class:`${u}-message`},[!r&&d?g("span",{class:`${u}-message-single-line-auto-margin`},null):null,Xu(o)]),g("div",{class:`${u}-description`},[Xu(r)]),i?g("span",{class:`${u}-btn`},[Xu(i)]):null])},duration:a,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const Ld={open:NCe,close(e){Object.keys(dc).forEach(t=>Promise.resolve(dc[t]).then(n=>{n.removeNotice(e)}))},config:RCe,destroy(){Object.keys(dc).forEach(e=>{Promise.resolve(dc[e]).then(t=>{t.destroy()}),delete dc[e]})}},kCe=["success","info","warning","error"];kCe.forEach(e=>{Ld[e]=t=>Ld.open(S(S({},t),{type:e}))});Ld.warn=Ld.warning;Ld.useNotification=qF;const XO=Ld,BCe=`-ant-${Date.now()}-${Math.random()}`;function FCe(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new Zt(a),c=Ec(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Zt(t.primaryColor),l=Ec(a.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new Zt(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` -`)} - } - `.trim()}function HCe(e,t){const n=FCe(e,t);co()?nh(n,`${BCe}-dynamic-theme`):Sn()}const zCe=e=>{const[t,n]=Ol();return c0(M(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:S(S({},Xc()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function jCe(e,t){const n=M(()=>(e==null?void 0:e.value)||{}),r=M(()=>n.value.inherit===!1||!(t!=null&&t.value)?w7:t.value);return M(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const i=S({},r.value.components);return Object.keys(e.value.components||{}).forEach(a=>{i[a]=S(S({},i[a]),e.value.components[a])}),S(S(S({},r.value),n.value),{token:S(S({},r.value.token),n.value.token),components:i})})}var WCe=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{S(jr,qO),jr.prefixCls=vd(),jr.iconPrefixCls=oH(),jr.getPrefixCls=(e,t)=>t||(e?`${jr.prefixCls}-${e}`:jr.prefixCls),jr.getRootPrefixCls=()=>jr.prefixCls?jr.prefixCls:vd()});let TC;const KCe=e=>{TC&&TC(),TC=ct(()=>{S(qO,St(e)),S(jr,St(e))}),e.theme&&HCe(vd(),e.theme)},UCe=()=>({getPrefixCls:(e,t)=>t||(e?`${vd()}-${e}`:vd()),getIconPrefixCls:oH,getRootPrefixCls:()=>jr.prefixCls?jr.prefixCls:vd()}),Pp=pe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:qee(),setup(e,t){let{slots:n}=t;const r=Fb(),o=(D,B)=>{const{prefixCls:k="ant"}=e;if(B)return B;const L=k||r.getPrefixCls("");return D?`${L}-${D}`:L},i=M(()=>e.iconPrefixCls||r.iconPrefixCls.value||P2),a=M(()=>i.value!==r.iconPrefixCls.value),l=M(()=>{var D;return e.csp||((D=r.csp)===null||D===void 0?void 0:D.value)}),s=zCe(i),c=jCe(M(()=>e.theme),M(()=>{var D;return(D=r.theme)===null||D===void 0?void 0:D.value})),u=D=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||lre)(D),d=M(()=>{var D,B;return(D=e.autoInsertSpaceInButton)!==null&&D!==void 0?D:(B=r.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),f=M(()=>{var D;return e.locale||((D=r.locale)===null||D===void 0?void 0:D.value)});Ie(f,()=>{qO.locale=f.value},{immediate:!0});const h=M(()=>{var D;return e.direction||((D=r.direction)===null||D===void 0?void 0:D.value)}),m=M(()=>{var D,B;return(D=e.space)!==null&&D!==void 0?D:(B=r.space)===null||B===void 0?void 0:B.value}),v=M(()=>{var D,B;return(D=e.virtual)!==null&&D!==void 0?D:(B=r.virtual)===null||B===void 0?void 0:B.value}),y=M(()=>{var D,B;return(D=e.dropdownMatchSelectWidth)!==null&&D!==void 0?D:(B=r.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),b=M(()=>{var D;return e.getTargetContainer!==void 0?e.getTargetContainer:(D=r.getTargetContainer)===null||D===void 0?void 0:D.value}),$=M(()=>{var D;return e.getPopupContainer!==void 0?e.getPopupContainer:(D=r.getPopupContainer)===null||D===void 0?void 0:D.value}),x=M(()=>{var D;return e.pageHeader!==void 0?e.pageHeader:(D=r.pageHeader)===null||D===void 0?void 0:D.value}),_=M(()=>{var D;return e.input!==void 0?e.input:(D=r.input)===null||D===void 0?void 0:D.value}),w=M(()=>{var D;return e.pagination!==void 0?e.pagination:(D=r.pagination)===null||D===void 0?void 0:D.value}),I=M(()=>{var D;return e.form!==void 0?e.form:(D=r.form)===null||D===void 0?void 0:D.value}),O=M(()=>{var D;return e.select!==void 0?e.select:(D=r.select)===null||D===void 0?void 0:D.value}),P=M(()=>e.componentSize),E=M(()=>e.componentDisabled),R=M(()=>{var D,B;return(D=e.wave)!==null&&D!==void 0?D:(B=r.wave)===null||B===void 0?void 0:B.value}),A={csp:l,autoInsertSpaceInButton:d,locale:f,direction:h,space:m,virtual:v,dropdownMatchSelectWidth:y,getPrefixCls:o,iconPrefixCls:i,theme:M(()=>{var D,B;return(D=c.value)!==null&&D!==void 0?D:(B=r.theme)===null||B===void 0?void 0:B.value}),renderEmpty:u,getTargetContainer:b,getPopupContainer:$,pageHeader:x,input:_,pagination:w,form:I,select:O,componentSize:P,componentDisabled:E,transformCellText:M(()=>e.transformCellText),wave:R},N=M(()=>{const D=c.value||{},{algorithm:B,token:k}=D,L=WCe(D,["algorithm","token"]),z=B&&(!Array.isArray(B)||B.length>0)?R2(B):void 0;return S(S({},L),{theme:z,token:S(S({},Vb),k)})}),F=M(()=>{var D,B;let k={};return f.value&&(k=((D=f.value.Form)===null||D===void 0?void 0:D.defaultValidateMessages)||((B=so.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(k=S(S({},k),e.form.validateMessages)),k});Zee(A),Yee({validateMessages:F}),M7(P),XN(E);const W=D=>{var B,k;let L=a.value?s((B=n.default)===null||B===void 0?void 0:B.call(n)):(k=n.default)===null||k===void 0?void 0:k.call(n);if(e.theme){const z=function(){return L}();L=g(ere,{value:N.value},{default:()=>[z]})}return g(RF,{locale:f.value||D,ANT_MARK__:Ux},{default:()=>[L]})};return ct(()=>{h.value&&(YO.config({rtl:h.value==="rtl"}),XO.config({rtl:h.value==="rtl"}))}),()=>g(Yc,{children:(D,B,k)=>W(k)},null)}});Pp.config=KCe;Pp.install=function(e){e.component(Pp.name,Pp)};const ZO=Pp,GCe=(e,t)=>{let{attrs:n,slots:r}=t;return g(Un,V(V({size:"small",type:"primary"},e),n),r)},YCe=GCe,Bv=(e,t,n)=>{const r=yee(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},XCe=e=>u0(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),qCe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:S(S({},vt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},iH=pt("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,i=Math.round(t*n),a=e.fontSizeSM,l=i-r*2,s=e.colorFillAlter,c=e.colorText,u=nt(e,{tagFontSize:a,tagLineHeight:l,tagDefaultBg:s,tagDefaultColor:c,tagIconSize:o-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[qCe(u),XCe(u),Bv(u,"success","Success"),Bv(u,"processing","Info"),Bv(u,"error","Error"),Bv(u,"warning","Warning")]}),ZCe=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),QCe=pe({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:ZCe(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{prefixCls:i}=Ve("tag",e),[a,l]=iH(i),s=u=>{const{checked:d}=e;r("update:checked",!d),r("change",!d),r("click",u)},c=M(()=>me(i.value,l.value,{[`${i.value}-checkable`]:!0,[`${i.value}-checkable-checked`]:e.checked}));return()=>{var u;return a(g("span",V(V({},o),{},{class:[c.value,o.class],onClick:s}),[(u=n.default)===null||u===void 0?void 0:u.call(n)]))}}}),j0=QCe,JCe=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:Z.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Tc(),"onUpdate:visible":Function,icon:Z.any,bordered:{type:Boolean,default:!0}}),Tp=pe({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:JCe(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{prefixCls:i,direction:a}=Ve("tag",e),[l,s]=iH(i),c=ve(!0);ct(()=>{e.visible!==void 0&&(c.value=e.visible)});const u=m=>{m.stopPropagation(),r("update:visible",!1),r("close",m),!m.defaultPrevented&&e.visible===void 0&&(c.value=!1)},d=M(()=>$y(e.color)||Bhe(e.color)),f=M(()=>me(i.value,s.value,{[`${i.value}-${e.color}`]:d.value,[`${i.value}-has-color`]:e.color&&!d.value,[`${i.value}-hidden`]:!c.value,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-borderless`]:!e.bordered})),h=m=>{r("click",m)};return()=>{var m,v,y;const{icon:b=(m=n.icon)===null||m===void 0?void 0:m.call(n),color:$,closeIcon:x=(v=n.closeIcon)===null||v===void 0?void 0:v.call(n),closable:_=!1}=e,w=()=>_?x?g("span",{class:`${i.value}-close-icon`,onClick:u},[x]):g(Vo,{class:`${i.value}-close-icon`,onClick:u},null):null,I={backgroundColor:$&&!d.value?$:void 0},O=b||null,P=(y=n.default)===null||y===void 0?void 0:y.call(n),E=O?g(Je,null,[O,g("span",null,[P])]):P,R=e.onClick!==void 0,A=g("span",V(V({},o),{},{onClick:h,class:[f.value,o.class],style:[I,o.style]}),[E,w()]);return l(R?g(X_,null,{default:()=>[A]}):A)}}});Tp.CheckableTag=j0;Tp.install=function(e){return e.component(Tp.name,Tp),e.component(j0.name,j0),e};const aH=Tp;function e$e(e,t){let{slots:n,attrs:r}=t;return g(aH,V(V({color:"blue"},e),r),n)}var t$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const n$e=t$e;function E6(e){for(var t=1;tA.value||P.value),[W,D]=HB(w),B=he();v({focus:()=>{var fe;(fe=B.value)===null||fe===void 0||fe.focus()},blur:()=>{var fe;(fe=B.value)===null||fe===void 0||fe.blur()}});const k=fe=>$.valueFormat?e.toString(fe,$.valueFormat):fe,L=(fe,ie)=>{const X=k(fe);b("update:value",X),b("change",X,ie),x.onFieldChange()},z=fe=>{b("update:open",fe),b("openChange",fe)},K=fe=>{b("focus",fe)},G=fe=>{b("blur",fe),x.onFieldBlur()},Y=(fe,ie)=>{const X=k(fe);b("panelChange",X,ie)},ne=fe=>{const ie=k(fe);b("ok",ie)},[oe]=Wi("DatePicker",th),J=M(()=>$.value?$.valueFormat?e.toDate($.value,$.valueFormat):$.value:$.value===""?void 0:$.value),te=M(()=>$.defaultValue?$.valueFormat?e.toDate($.defaultValue,$.valueFormat):$.defaultValue:$.defaultValue===""?void 0:$.defaultValue),ee=M(()=>$.defaultPickerValue?$.valueFormat?e.toDate($.defaultPickerValue,$.valueFormat):$.defaultPickerValue:$.defaultPickerValue===""?void 0:$.defaultPickerValue);return()=>{var fe,ie,X,ue,ye,H;const j=S(S({},oe.value),$.locale),q=S(S({},$),y),{bordered:se=!0,placeholder:ae,suffixIcon:ge=(fe=m.suffixIcon)===null||fe===void 0?void 0:fe.call(m),showToday:Se=!0,transitionName:$e,allowClear:_e=!0,dateRender:be=m.dateRender,renderExtraFooter:Te=m.renderExtraFooter,monthCellRender:Pe=m.monthCellRender||$.monthCellContentRender||m.monthCellContentRender,clearIcon:re=(ie=m.clearIcon)===null||ie===void 0?void 0:ie.call(m),id:le=x.id.value}=q,xe=c$e(q,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),Ae=q.showTime===""?!0:q.showTime,{format:Be}=q;let Ye={};c&&(Ye.picker=c);const Re=c||q.picker||"date";Ye=S(S(S({},Ye),Ae?V0(S({format:Be,picker:Re},typeof Ae=="object"?Ae:{})):{}),Re==="time"?V0(S(S({format:Be},xe),{picker:Re})):{});const Le=w.value,Ne=g(Je,null,[ge||g(c==="time"?sH:lH,null,null),_.hasFeedback&&_.feedbackIcon]);return W(g(Eme,V(V(V({monthCellRender:Pe,dateRender:be,renderExtraFooter:Te,ref:B,placeholder:l$e(j,Re,ae),suffixIcon:Ne,dropdownAlign:cH(I.value,$.placement),clearIcon:re||g(Ko,null,null),allowClear:_e,transitionName:$e||`${E.value}-slide-up`},xe),Ye),{},{id:le,picker:Re,value:J.value,defaultValue:te.value,defaultPickerValue:ee.value,showToday:Se,locale:j.lang,class:me({[`${Le}-${F.value}`]:F.value,[`${Le}-borderless`]:!se},lo(Le,da(_.status,$.status),_.hasFeedback),y.class,D.value,N.value),disabled:R.value,prefixCls:Le,getPopupContainer:y.getCalendarContainer||O.value,generateConfig:e,prevIcon:((X=m.prevIcon)===null||X===void 0?void 0:X.call(m))||g("span",{class:`${Le}-prev-icon`},null),nextIcon:((ue=m.nextIcon)===null||ue===void 0?void 0:ue.call(m))||g("span",{class:`${Le}-next-icon`},null),superPrevIcon:((ye=m.superPrevIcon)===null||ye===void 0?void 0:ye.call(m))||g("span",{class:`${Le}-super-prev-icon`},null),superNextIcon:((H=m.superNextIcon)===null||H===void 0?void 0:H.call(m))||g("span",{class:`${Le}-super-next-icon`},null),components:fH,direction:I.value,dropdownClassName:me(D.value,$.popupClassName,$.dropdownClassName),onChange:L,onOpenChange:z,onFocus:K,onBlur:G,onPanelChange:Y,onOk:ne}),null))}}})}const r=n(void 0,"ADatePicker"),o=n("week","AWeekPicker"),i=n("month","AMonthPicker"),a=n("year","AYearPicker"),l=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:l,QuarterPicker:s}}var d$e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const f$e=d$e;function M6(e){for(var t=1;t$.value||v.value),[w,I]=HB(f),O=he();i({focus:()=>{var K;(K=O.value)===null||K===void 0||K.focus()},blur:()=>{var K;(K=O.value)===null||K===void 0||K.blur()}});const P=K=>c.valueFormat?e.toString(K,c.valueFormat):K,E=(K,G)=>{const Y=P(K);s("update:value",Y),s("change",Y,G),u.onFieldChange()},R=K=>{s("update:open",K),s("openChange",K)},A=K=>{s("focus",K)},N=K=>{s("blur",K),u.onFieldBlur()},F=(K,G)=>{const Y=P(K);s("panelChange",Y,G)},W=K=>{const G=P(K);s("ok",G)},D=(K,G,Y)=>{const ne=P(K);s("calendarChange",ne,G,Y)},[B]=Wi("DatePicker",th),k=M(()=>c.value&&c.valueFormat?e.toDate(c.value,c.valueFormat):c.value),L=M(()=>c.defaultValue&&c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue),z=M(()=>c.defaultPickerValue&&c.valueFormat?e.toDate(c.defaultPickerValue,c.valueFormat):c.defaultPickerValue);return()=>{var K,G,Y,ne,oe,J,te;const ee=S(S({},B.value),c.locale),fe=S(S({},c),l),{prefixCls:ie,bordered:X=!0,placeholder:ue,suffixIcon:ye=(K=a.suffixIcon)===null||K===void 0?void 0:K.call(a),picker:H="date",transitionName:j,allowClear:q=!0,dateRender:se=a.dateRender,renderExtraFooter:ae=a.renderExtraFooter,separator:ge=(G=a.separator)===null||G===void 0?void 0:G.call(a),clearIcon:Se=(Y=a.clearIcon)===null||Y===void 0?void 0:Y.call(a),id:$e=u.id.value}=fe,_e=g$e(fe,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete _e["onUpdate:value"],delete _e["onUpdate:open"];const{format:be,showTime:Te}=fe;let Pe={};Pe=S(S(S({},Pe),Te?V0(S({format:be,picker:H},Te)):{}),H==="time"?V0(S(S({format:be},Ot(_e,["disabledTime"])),{picker:H})):{});const re=f.value,le=g(Je,null,[ye||g(H==="time"?sH:lH,null,null),d.hasFeedback&&d.feedbackIcon]);return w(g(zme,V(V(V({dateRender:se,renderExtraFooter:ae,separator:ge||g("span",{"aria-label":"to",class:`${re}-separator`},[g(h$e,null,null)]),ref:O,dropdownAlign:cH(h.value,c.placement),placeholder:s$e(ee,H,ue),suffixIcon:le,clearIcon:Se||g(Ko,null,null),allowClear:q,transitionName:j||`${y.value}-slide-up`},_e),Pe),{},{disabled:b.value,id:$e,value:k.value,defaultValue:L.value,defaultPickerValue:z.value,picker:H,class:me({[`${re}-${_.value}`]:_.value,[`${re}-borderless`]:!X},lo(re,da(d.status,c.status),d.hasFeedback),l.class,I.value,x.value),locale:ee.lang,prefixCls:re,getPopupContainer:l.getCalendarContainer||m.value,generateConfig:e,prevIcon:((ne=a.prevIcon)===null||ne===void 0?void 0:ne.call(a))||g("span",{class:`${re}-prev-icon`},null),nextIcon:((oe=a.nextIcon)===null||oe===void 0?void 0:oe.call(a))||g("span",{class:`${re}-next-icon`},null),superPrevIcon:((J=a.superPrevIcon)===null||J===void 0?void 0:J.call(a))||g("span",{class:`${re}-super-prev-icon`},null),superNextIcon:((te=a.superNextIcon)===null||te===void 0?void 0:te.call(a))||g("span",{class:`${re}-super-next-icon`},null),components:fH,direction:h.value,dropdownClassName:me(I.value,c.popupClassName,c.dropdownClassName),onChange:E,onOpenChange:R,onFocus:A,onBlur:N,onPanelChange:F,onOk:W,onCalendarChange:D}),null))}}})}const fH={button:YCe,rangeItem:e$e};function m$e(e){return e?Array.isArray(e)?e:[e]:[]}function V0(e){const{format:t,picker:n,showHour:r,showMinute:o,showSecond:i,use12Hours:a}=e,l=m$e(t)[0],s=S({},e);return l&&typeof l=="string"&&(!l.includes("s")&&i===void 0&&(s.showSecond=!1),!l.includes("m")&&o===void 0&&(s.showMinute=!1),!l.includes("H")&&!l.includes("h")&&r===void 0&&(s.showHour=!1),(l.includes("a")||l.includes("A"))&&a===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof l=="function"&&delete s.format,{showTime:s})}function pH(e,t){const{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:a,QuarterPicker:l}=u$e(e,t),s=v$e(e,t);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:a,QuarterPicker:l,RangePicker:s}}const{DatePicker:EC,WeekPicker:wm,MonthPicker:_m,YearPicker:b$e,TimePicker:y$e,QuarterPicker:Om,RangePicker:Im}=pH(oO),S$e=S(EC,{WeekPicker:wm,MonthPicker:_m,YearPicker:b$e,RangePicker:Im,TimePicker:y$e,QuarterPicker:Om,install:e=>(e.component(EC.name,EC),e.component(Im.name,Im),e.component(_m.name,_m),e.component(wm.name,wm),e.component(Om.name,Om),e)});function Fv(e){return e!=null}const C$e=e=>{const{itemPrefixCls:t,component:n,span:r,labelStyle:o,contentStyle:i,bordered:a,label:l,content:s,colon:c}=e,u=n;return a?g(u,{class:[{[`${t}-item-label`]:Fv(l),[`${t}-item-content`]:Fv(s)}],colSpan:r},{default:()=>[Fv(l)&&g("span",{style:o},[l]),Fv(s)&&g("span",{style:i},[s])]}):g(u,{class:[`${t}-item`],colSpan:r},{default:()=>[g("div",{class:`${t}-item-container`},[(l||l===0)&&g("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:o},[l]),(s||s===0)&&g("span",{class:`${t}-item-content`,style:i},[s])])]})},AC=C$e,$$e=e=>{const t=(c,u,d)=>{let{colon:f,prefixCls:h,bordered:m}=u,{component:v,type:y,showLabel:b,showContent:$,labelStyle:x,contentStyle:_}=d;return c.map((w,I)=>{var O,P;const E=w.props||{},{prefixCls:R=h,span:A=1,labelStyle:N=E["label-style"],contentStyle:F=E["content-style"],label:W=(P=(O=w.children)===null||O===void 0?void 0:O.label)===null||P===void 0?void 0:P.call(O)}=E,D=Bb(w),B=Wee(w),k=HN(w),{key:L}=w;return typeof v=="string"?g(AC,{key:`${y}-${String(L)||I}`,class:B,style:k,labelStyle:S(S({},x),N),contentStyle:S(S({},_),F),span:A,colon:f,component:v,itemPrefixCls:R,bordered:m,label:b?W:null,content:$?D:null},null):[g(AC,{key:`label-${String(L)||I}`,class:B,style:S(S(S({},x),k),N),span:1,colon:f,component:v[0],itemPrefixCls:R,bordered:m,label:W},null),g(AC,{key:`content-${String(L)||I}`,class:B,style:S(S(S({},_),k),F),span:A*2-1,component:v[1],itemPrefixCls:R,bordered:m,content:D},null)]})},{prefixCls:n,vertical:r,row:o,index:i,bordered:a}=e,{labelStyle:l,contentStyle:s}=it(vH,{labelStyle:he({}),contentStyle:he({})});return r?g(Je,null,[g("tr",{key:`label-${i}`,class:`${n}-row`},[t(o,e,{component:"th",type:"label",showLabel:!0,labelStyle:l.value,contentStyle:s.value})]),g("tr",{key:`content-${i}`,class:`${n}-row`},[t(o,e,{component:"td",type:"content",showContent:!0,labelStyle:l.value,contentStyle:s.value})])]):g("tr",{key:i,class:`${n}-row`},[t(o,e,{component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:l.value,contentStyle:s.value})])},x$e=$$e,w$e=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:o,descriptionsBg:i}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:r,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:i,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:o}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},_$e=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:r,descriptionsItemLabelColonMarginRight:o,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:a}=e;return{[t]:S(S(S({},vt(e)),w$e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:a},[`${t}-title`]:S(S({},er),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${i}px ${o}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},O$e=pt("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,r=e.colorText,o=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,a=`${e.paddingSM}px ${e.paddingLG}px`,l=e.padding,s=e.marginXS,c=e.marginXXS/2,u=nt(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:r,descriptionItemPaddingBottom:l,descriptionsSmallPadding:o,descriptionsDefaultPadding:i,descriptionsMiddlePadding:a,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:c});return[_$e(u)]});Z.any;const I$e=()=>({prefixCls:String,label:Z.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),hH=pe({compatConfig:{MODE:3},name:"ADescriptionsItem",props:I$e(),setup(e,t){let{slots:n}=t;return()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),gH={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function P$e(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(r=Gt(e,{span:t}),Sn()),r}function T$e(e,t){const n=ln(e),r=[];let o=[],i=t;return n.forEach((a,l)=>{var s;const c=(s=a.props)===null||s===void 0?void 0:s.span,u=c||1;if(l===n.length-1){o.push(R6(a,i,c)),r.push(o);return}u({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:Z.any,extra:Z.any,column:{type:[Number,Object],default:()=>gH},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),vH=Symbol("descriptionsContext"),Uu=pe({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:E$e(),slots:Object,Item:hH,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("descriptions",e);let a;const l=he({}),[s,c]=O$e(o),u=W_();Dh(()=>{a=u.value.subscribe(f=>{typeof e.column=="object"&&(l.value=f)})}),Ct(()=>{u.value.unsubscribe(a)}),ft(vH,{labelStyle:st(e,"labelStyle"),contentStyle:st(e,"contentStyle")});const d=M(()=>P$e(e.column,l.value));return()=>{var f,h,m;const{size:v,bordered:y=!1,layout:b="horizontal",colon:$=!0,title:x=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:_=(h=n.extra)===null||h===void 0?void 0:h.call(n)}=e,w=(m=n.default)===null||m===void 0?void 0:m.call(n),I=T$e(w,d.value);return s(g("div",V(V({},r),{},{class:[o.value,{[`${o.value}-${v}`]:v!=="default",[`${o.value}-bordered`]:!!y,[`${o.value}-rtl`]:i.value==="rtl"},r.class,c.value]}),[(x||_)&&g("div",{class:`${o.value}-header`},[x&&g("div",{class:`${o.value}-title`},[x]),_&&g("div",{class:`${o.value}-extra`},[_])]),g("div",{class:`${o.value}-view`},[g("table",null,[g("tbody",null,[I.map((O,P)=>g(x$e,{key:P,index:P,colon:$,prefixCls:o.value,vertical:b==="vertical",bordered:y,row:O},null))])])])]))}}});Uu.install=function(e){return e.component(Uu.name,Uu),e.component(Uu.Item.name,Uu.Item),e};const A$e=Uu,M$e=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:S(S({},vt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},R$e=pt("Divider",e=>{const t=nt(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[M$e(t)]},{sizePaddingEdgeHorizontal:0}),D$e=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),L$e=pe({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:D$e(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("divider",e),[a,l]=R$e(o),s=M(()=>e.orientation==="left"&&e.orientationMargin!=null),c=M(()=>e.orientation==="right"&&e.orientationMargin!=null),u=M(()=>{const{type:h,dashed:m,plain:v}=e,y=o.value;return{[y]:!0,[l.value]:!!l.value,[`${y}-${h}`]:!0,[`${y}-dashed`]:!!m,[`${y}-plain`]:!!v,[`${y}-rtl`]:i.value==="rtl",[`${y}-no-default-orientation-margin-left`]:s.value,[`${y}-no-default-orientation-margin-right`]:c.value}}),d=M(()=>{const h=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return S(S({},s.value&&{marginLeft:h}),c.value&&{marginRight:h})}),f=M(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var h;const m=ln((h=n.default)===null||h===void 0?void 0:h.call(n));return a(g("div",V(V({},r),{},{class:[u.value,m.length?`${o.value}-with-text ${o.value}-with-text${f.value}`:"",r.class],role:"separator"}),[m.length?g("span",{class:`${o.value}-inner-text`,style:d.value},[m]):null]))}}}),N$e=$n(L$e);Ta.Button=fh;Ta.install=function(e){return e.component(Ta.name,Ta),e.component(fh.name,fh),e};const mH=()=>({prefixCls:String,width:Z.oneOfType([Z.string,Z.number]),height:Z.oneOfType([Z.string,Z.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:qe(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:kt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:Oe(),maskMotion:qe()}),k$e=()=>S(S({},mH()),{forceRender:{type:Boolean,default:void 0},getContainer:Z.oneOfType([Z.string,Z.func,Z.object,Z.looseBool])}),B$e=()=>S(S({},mH()),{getContainer:Function,getOpenCount:Function,scrollLocker:Z.any,inline:Boolean});function F$e(e){return Array.isArray(e)?e:[e]}const H$e={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(H$e).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const z$e=!(typeof window<"u"&&window.document&&window.document.createElement);var j$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{_t(()=>{var b;const{open:$,getContainer:x,showMask:_,autofocus:w}=e,I=x==null?void 0:x();m(e),$&&(I&&(I.parentNode,document.body),_t(()=>{w&&u()}),_&&((b=e.scrollLocker)===null||b===void 0||b.lock()))})}),Ie(()=>e.level,()=>{m(e)},{flush:"post"}),Ie(()=>e.open,()=>{const{open:b,getContainer:$,scrollLocker:x,showMask:_,autofocus:w}=e,I=$==null?void 0:$();I&&(I.parentNode,document.body),b?(w&&u(),_&&(x==null||x.lock())):x==null||x.unLock()},{flush:"post"}),Fr(()=>{var b;const{open:$}=e;$&&(document.body.style.touchAction=""),(b=e.scrollLocker)===null||b===void 0||b.unLock()}),Ie(()=>e.placement,b=>{b&&(s.value=null)});const u=()=>{var b,$;($=(b=i.value)===null||b===void 0?void 0:b.focus)===null||$===void 0||$.call(b)},d=b=>{n("close",b)},f=b=>{b.keyCode===Fe.ESC&&(b.stopPropagation(),d(b))},h=()=>{const{open:b,afterVisibleChange:$}=e;$&&$(!!b)},m=b=>{let{level:$,getContainer:x}=b;if(z$e)return;const _=x==null?void 0:x(),w=_?_.parentNode:null;c=[],$==="all"?(w?Array.prototype.slice.call(w.children):[]).forEach(O=>{O.nodeName!=="SCRIPT"&&O.nodeName!=="STYLE"&&O.nodeName!=="LINK"&&O!==_&&c.push(O)}):$&&F$e($).forEach(I=>{document.querySelectorAll(I).forEach(O=>{c.push(O)})})},v=b=>{n("handleClick",b)},y=ve(!1);return Ie(i,()=>{_t(()=>{y.value=!0})}),()=>{var b,$;const{width:x,height:_,open:w,prefixCls:I,placement:O,level:P,levelMove:E,ease:R,duration:A,getContainer:N,onChange:F,afterVisibleChange:W,showMask:D,maskClosable:B,maskStyle:k,keyboard:L,getOpenCount:z,scrollLocker:K,contentWrapperStyle:G,style:Y,class:ne,rootClassName:oe,rootStyle:J,maskMotion:te,motion:ee,inline:fe}=e,ie=j$e(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),X=w&&y.value,ue=me(I,{[`${I}-${O}`]:!0,[`${I}-open`]:X,[`${I}-inline`]:fe,"no-mask":!D,[oe]:!0}),ye=typeof ee=="function"?ee(O):ee;return g("div",V(V({},Ot(ie,["autofocus"])),{},{tabindex:-1,class:ue,style:J,ref:i,onKeydown:X&&L?f:void 0}),[g(sr,te,{default:()=>[D&&Ln(g("div",{class:`${I}-mask`,onClick:B?d:void 0,style:k,ref:a},null),[[Br,X]])]}),g(sr,V(V({},ye),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[Ln(g("div",{class:`${I}-content-wrapper`,style:[G],ref:o},[g("div",{class:[`${I}-content`,ne],style:Y,ref:s},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),r.handler?g("div",{onClick:v,ref:l},[($=r.handler)===null||$===void 0?void 0:$.call(r)]):null]),[[Br,X]])]})])}}}),D6=W$e;var L6=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{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:r}=t;const o=he(null),i=l=>{n("handleClick",l)},a=l=>{n("close",l)};return()=>{const{getContainer:l,wrapperClassName:s,rootClassName:c,rootStyle:u,forceRender:d}=e,f=L6(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let h=null;if(!l)return g(D6,V(V({},f),{},{rootClassName:c,rootStyle:u,open:e.open,onClose:a,onHandleClick:i,inline:!0}),r);const m=!!r.handler||d;return(m||e.open||o.value)&&(h=g(Hh,{autoLock:!0,visible:e.open,forceRender:m,getContainer:l,wrapperClassName:s},{default:v=>{var{visible:y,afterClose:b}=v,$=L6(v,["visible","afterClose"]);return g(D6,V(V(V({ref:o},f),$),{},{rootClassName:c,rootStyle:u,open:y!==void 0?y:e.open,afterVisibleChange:b!==void 0?b:e.afterVisibleChange,onClose:a,onHandleClick:i}),r)}})),h}}}),K$e=V$e,U$e=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},G$e=U$e,Y$e=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:l,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:h,marginSM:m,colorIcon:v,colorIconHover:y,colorText:b,fontWeightStrong:$,drawerFooterPaddingVertical:x,drawerFooterPaddingHorizontal:_}=e,w=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[w]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${w}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${w}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${w}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${w}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:m,color:v,fontWeight:$,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:y,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${x}px ${_}px`,borderTop:`${d}px ${f} ${h}`},"&-rtl":{direction:"rtl"}}}},X$e=pt("Drawer",e=>{const t=nt(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Y$e(t),G$e(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var q$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:Z.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:qe(),rootClassName:String,rootStyle:qe(),size:{type:String},drawerStyle:qe(),headerStyle:qe(),bodyStyle:qe(),contentWrapperStyle:{type:Object,default:void 0},title:Z.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:Z.oneOfType([Z.string,Z.number]),height:Z.oneOfType([Z.string,Z.number]),zIndex:Number,prefixCls:String,push:Z.oneOfType([Z.looseBool,{type:Object}]),placement:Z.oneOf(Z$e),keyboard:{type:Boolean,default:void 0},extra:Z.any,footer:Z.any,footerStyle:qe(),level:Z.any,levelMove:{type:[Number,Array,Function]},handle:Z.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),J$e=pe({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:bt(Q$e(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:N6}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const i=ve(!1),a=ve(!1),l=ve(null),s=ve(!1),c=ve(!1),u=M(()=>{var z;return(z=e.open)!==null&&z!==void 0?z:e.visible});Ie(u,()=>{u.value?s.value=!0:c.value=!1},{immediate:!0}),Ie([u,s],()=>{u.value&&s.value&&(c.value=!0)},{immediate:!0});const d=it("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:h,direction:m}=Ve("drawer",e),[v,y]=X$e(f),b=M(()=>e.getContainer===void 0&&(h!=null&&h.value)?()=>h.value(document.body):e.getContainer);pn(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),ft("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,_t(()=>{_()})}}),lt(()=>{u.value&&d&&d.setPush()}),Fr(()=>{d&&d.setPull()}),Ie(c,()=>{d&&(c.value?d.setPush():d.setPull())},{flush:"post"});const _=()=>{var z,K;(K=(z=l.value)===null||z===void 0?void 0:z.domFocus)===null||K===void 0||K.call(z)},w=z=>{n("update:visible",!1),n("update:open",!1),n("close",z)},I=z=>{var K;z||(a.value===!1&&(a.value=!0),e.destroyOnClose&&(s.value=!1)),(K=e.afterVisibleChange)===null||K===void 0||K.call(e,z),n("afterVisibleChange",z),n("afterOpenChange",z)},O=M(()=>{const{push:z,placement:K}=e;let G;return typeof z=="boolean"?G=z?N6.distance:0:G=z.distance,G=parseFloat(String(G||0)),K==="left"||K==="right"?`translateX(${K==="left"?G:-G}px)`:K==="top"||K==="bottom"?`translateY(${K==="top"?G:-G}px)`:null}),P=M(()=>{var z;return(z=e.width)!==null&&z!==void 0?z:e.size==="large"?736:378}),E=M(()=>{var z;return(z=e.height)!==null&&z!==void 0?z:e.size==="large"?736:378}),R=M(()=>{const{mask:z,placement:K}=e;if(!c.value&&!z)return{};const G={};return K==="left"||K==="right"?G.width=I0(P.value)?`${P.value}px`:P.value:G.height=I0(E.value)?`${E.value}px`:E.value,G}),A=M(()=>{const{zIndex:z,contentWrapperStyle:K}=e,G=R.value;return[{zIndex:z,transform:i.value?O.value:void 0},S({},K),G]}),N=z=>{const{closable:K,headerStyle:G}=e,Y=lr(r,e,"extra"),ne=lr(r,e,"title");return!ne&&!K?null:g("div",{class:me(`${z}-header`,{[`${z}-header-close-only`]:K&&!ne&&!Y}),style:G},[g("div",{class:`${z}-header-title`},[F(z),ne&&g("div",{class:`${z}-title`},[ne])]),Y&&g("div",{class:`${z}-extra`},[Y])])},F=z=>{var K;const{closable:G}=e,Y=r.closeIcon?(K=r.closeIcon)===null||K===void 0?void 0:K.call(r):e.closeIcon;return G&&g("button",{key:"closer",onClick:w,"aria-label":"Close",class:`${z}-close`},[Y===void 0?g(Vo,null,null):Y])},W=z=>{var K;if(a.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:G,drawerStyle:Y}=e;return g("div",{class:`${z}-wrapper-body`,style:Y},[N(z),g("div",{key:"body",class:`${z}-body`,style:G},[(K=r.default)===null||K===void 0?void 0:K.call(r)]),D(z)])},D=z=>{const K=lr(r,e,"footer");if(!K)return null;const G=`${z}-footer`;return g("div",{class:G,style:e.footerStyle},[K])},B=M(()=>me({"no-mask":!e.mask,[`${f.value}-rtl`]:m.value==="rtl"},e.rootClassName,y.value)),k=M(()=>Hi(uo(f.value,"mask-motion"))),L=z=>Hi(uo(f.value,`panel-motion-${z}`));return()=>{const{width:z,height:K,placement:G,mask:Y,forceRender:ne}=e,oe=q$e(e,["width","height","placement","mask","forceRender"]),J=S(S(S({},o),Ot(oe,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:ne,onClose:w,afterVisibleChange:I,handler:!1,prefixCls:f.value,open:c.value,showMask:Y,placement:G,ref:l});return v(g(dh,null,{default:()=>[g(K$e,V(V({},J),{},{maskMotion:k.value,motion:L,width:P.value,height:E.value,getContainer:b.value,rootClassName:B.value,rootStyle:e.rootStyle,contentWrapperStyle:A.value}),{handler:e.handle?()=>e.handle:r.handle,default:()=>W(f.value)})]}))}}}),exe=$n(J$e);var txe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const nxe=txe;function k6(e){for(var t=1;t({prefixCls:String,description:Z.any,type:Qe("default"),shape:Qe("circle"),tooltip:Z.any,href:String,target:Oe(),badge:qe(),onClick:Oe()}),oxe=()=>({prefixCls:Qe()}),ixe=()=>S(S({},nI()),{trigger:Qe(),open:De(),onOpenChange:Oe(),"onUpdate:open":Oe()}),axe=()=>S(S({},nI()),{prefixCls:String,duration:Number,target:Oe(),visibilityHeight:Number,onClick:Oe()}),lxe=pe({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:oxe(),setup(e,t){let{attrs:n,slots:r}=t;return()=>{var o;const{prefixCls:i}=e,a=_n((o=r.description)===null||o===void 0?void 0:o.call(r));return g("div",V(V({},n),{},{class:[n.class,`${i}-content`]}),[r.icon||a.length?g(Je,null,[r.icon&&g("div",{class:`${i}-icon`},[r.icon()]),a.length?g("div",{class:`${i}-description`},[a]):null]):g("div",{class:`${i}-icon`},[g(bH,null,null)])])}}}),sxe=lxe,yH=Symbol("floatButtonGroupContext"),cxe=e=>(ft(yH,e),e),SH=()=>it(yH,{shape:he()}),B6=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),uxe=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,i=`${t}-group`,a=new Pt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new Pt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:S({},Vh(`${i}-wrap`,a,l,r,!0))},{[`${i}-wrap`]:{[` - &${i}-wrap-enter, - &${i}-wrap-appear - `]:{opacity:0,animationTimingFunction:o},[`&${i}-wrap-leave`]:{animationTimingFunction:o}}}]},dxe=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:l,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:S(S({},vt(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+l),insetInlineEnd:-(s+l)}}},[`${c}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},fxe=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:i,borderRadiusLG:a,badgeOffset:l,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:S(S({},vt(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-l,insetInlineEnd:-l}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${r/2}px ${r}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},rI=pt("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:i,fontSize:a,fontSizeIcon:l,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=nt(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:a,floatButtonIconSize:l*1.5,floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:i,floatButtonBodySize:r-c*2,floatButtonBodyPadding:c,badgeOffset:c*1.5,dotOffsetInCircle:B6(r/2),dotOffsetInSquare:B6(u)});return[dxe(d),fxe(d),A_(e),uxe(d)]});var pxe=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(s==null?void 0:s.value)||e.shape);return()=>{var d;const{prefixCls:f,type:h="default",shape:m="circle",description:v=(d=r.description)===null||d===void 0?void 0:d.call(r),tooltip:y,badge:b={}}=e,$=pxe(e,["prefixCls","type","shape","description","tooltip","badge"]),x=me(o.value,`${o.value}-${h}`,`${o.value}-${u.value}`,{[`${o.value}-rtl`]:i.value==="rtl"},n.class,l.value),_=g(Bo,{placement:"left"},{title:r.tooltip||y?()=>r.tooltip&&r.tooltip()||y:void 0,default:()=>g(xp,b,{default:()=>[g("div",{class:`${o.value}-body`},[g(sxe,{prefixCls:o.value},{icon:r.icon,description:()=>v})])]})});return a(e.href?g("a",V(V(V({ref:c},n),$),{},{class:x}),[_]):g("button",V(V(V({ref:c},n),$),{},{class:x,type:"button"}),[_]))}}}),Ss=hxe,gxe=pe({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:bt(ixe(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:r,emit:o}=t;const{prefixCls:i,direction:a}=Ve(oI,e),[l,s]=rI(i),[c,u]=yn(!1,{value:M(()=>e.open)}),d=he(null),f=he(null);cxe({shape:M(()=>e.shape)});const h={onMouseenter(){var b;u(!0),o("update:open",!0),(b=e.onOpenChange)===null||b===void 0||b.call(e,!0)},onMouseleave(){var b;u(!1),o("update:open",!1),(b=e.onOpenChange)===null||b===void 0||b.call(e,!1)}},m=M(()=>e.trigger==="hover"?h:{}),v=()=>{var b;const $=!c.value;o("update:open",$),(b=e.onOpenChange)===null||b===void 0||b.call(e,$),u($)},y=b=>{var $,x,_;if(!(($=d.value)===null||$===void 0)&&$.contains(b.target)){!((x=No(f.value))===null||x===void 0)&&x.contains(b.target)&&v();return}u(!1),o("update:open",!1),(_=e.onOpenChange)===null||_===void 0||_.call(e,!1)};return Ie(M(()=>e.trigger),b=>{co()&&(document.removeEventListener("click",y),b==="click"&&document.addEventListener("click",y))},{immediate:!0}),Ct(()=>{document.removeEventListener("click",y)}),()=>{var b;const{shape:$="circle",type:x="default",tooltip:_,description:w,trigger:I}=e,O=`${i.value}-group`,P=me(O,s.value,n.class,{[`${O}-rtl`]:a.value==="rtl",[`${O}-${$}`]:$,[`${O}-${$}-shadow`]:!I}),E=me(s.value,`${O}-wrap`),R=Hi(`${O}-wrap`);return l(g("div",V(V({ref:d},n),{},{class:P},m.value),[I&&["click","hover"].includes(I)?g(Je,null,[g(sr,R,{default:()=>[Ln(g("div",{class:E},[r.default&&r.default()]),[[Br,c.value]])]}),g(Ss,{ref:f,type:x,shape:$,tooltip:_,description:w},{icon:()=>{var A,N;return c.value?((A=r.closeIcon)===null||A===void 0?void 0:A.call(r))||g(Vo,null,null):((N=r.icon)===null||N===void 0?void 0:N.call(r))||g(bH,null,null)},tooltip:r.tooltip,description:r.description})]):(b=r.default)===null||b===void 0?void 0:b.call(r)]))}}}),K0=gxe;var vxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const mxe=vxe;function F6(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:i,direction:a}=Ve(oI,e),[l]=rI(i),s=he(),c=St({visible:e.visibilityHeight===0,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=y=>{const{target:b=u,duration:$}=e;H2(0,{getContainer:b,duration:$}),o("click",y)},f=K$(y=>{const{visibilityHeight:b}=e,$=F2(y.target,!0);c.visible=$>=b}),h=()=>{const{target:y}=e,$=(y||u)();f({target:$}),$==null||$.addEventListener("scroll",f)},m=()=>{const{target:y}=e,$=(y||u)();f.cancel(),$==null||$.removeEventListener("scroll",f)};Ie(()=>e.target,()=>{m(),_t(()=>{h()})}),lt(()=>{_t(()=>{h()})}),Tb(()=>{_t(()=>{h()})}),oN(()=>{m()}),Ct(()=>{m()});const v=SH();return()=>{const{description:y,type:b,shape:$,tooltip:x,badge:_}=e,w=S(S({},r),{shape:(v==null?void 0:v.shape.value)||$,onClick:d,class:{[`${i.value}`]:!0,[`${r.class}`]:r.class,[`${i.value}-rtl`]:a.value==="rtl"},description:y,type:b,tooltip:x,badge:_}),I=Hi("fade");return l(g(sr,I,{default:()=>[Ln(g(Ss,V(V({},w),{},{ref:s}),{icon:()=>{var O;return((O=n.icon)===null||O===void 0?void 0:O.call(n))||g(yxe,null,null)}}),[[Br,c.visible]])]}))}}}),U0=Sxe;Ss.Group=K0;Ss.BackTop=U0;Ss.install=function(e){return e.component(Ss.name,Ss),e.component(K0.name,K0),e.component(U0.name,U0),e};const Ep=e=>e!=null&&(Array.isArray(e)?_n(e).length:!0);function aI(e){return Ep(e.prefix)||Ep(e.suffix)||Ep(e.allowClear)}function Pm(e){return Ep(e.addonBefore)||Ep(e.addonAfter)}function qx(e){return typeof e>"u"||e===null?"":String(e)}function Ap(e,t,n,r){if(!n)return;const o=t;if(t.type==="click"){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});const i=e.cloneNode(!0);o.target=i,o.currentTarget=i,i.value="",n(o);return}if(r!==void 0){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,n(o);return}n(o)}function CH(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Cxe=()=>({addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,suffix:Z.any,clearIcon:Z.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),$H=()=>S(S({},Cxe()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Z.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),xH=()=>S(S({},$H()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Qe("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),$xe=pe({name:"BaseInput",inheritAttrs:!1,props:$H(),setup(e,t){let{slots:n,attrs:r}=t;const o=he(),i=l=>{var s;if(!((s=o.value)===null||s===void 0)&&s.contains(l.target)){const{triggerFocus:c}=e;c==null||c()}},a=()=>{var l;const{allowClear:s,value:c,disabled:u,readonly:d,handleReset:f,suffix:h=n.suffix,prefixCls:m}=e;if(!s)return null;const v=!u&&!d&&c,y=`${m}-clear-icon`,b=((l=n.clearIcon)===null||l===void 0?void 0:l.call(n))||"*";return g("span",{onClick:f,onMousedown:$=>$.preventDefault(),class:me({[`${y}-hidden`]:!v,[`${y}-has-suffix`]:!!h},y),role:"button",tabindex:-1},[b])};return()=>{var l,s;const{focused:c,value:u,disabled:d,allowClear:f,readonly:h,hidden:m,prefixCls:v,prefix:y=(l=n.prefix)===null||l===void 0?void 0:l.call(n),suffix:b=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:$=n.addonAfter,addonBefore:x=n.addonBefore,inputElement:_,affixWrapperClassName:w,wrapperClassName:I,groupClassName:O}=e;let P=Gt(_,{value:u,hidden:m});if(aI({prefix:y,suffix:b,allowClear:f})){const E=`${v}-affix-wrapper`,R=me(E,{[`${E}-disabled`]:d,[`${E}-focused`]:c,[`${E}-readonly`]:h,[`${E}-input-with-clear-btn`]:b&&f&&u},!Pm({addonAfter:$,addonBefore:x})&&r.class,w),A=(b||f)&&g("span",{class:`${v}-suffix`},[a(),b]);P=g("span",{class:R,style:r.style,hidden:!Pm({addonAfter:$,addonBefore:x})&&m,onMousedown:i,ref:o},[y&&g("span",{class:`${v}-prefix`},[y]),Gt(_,{style:null,value:u,hidden:null}),A])}if(Pm({addonAfter:$,addonBefore:x})){const E=`${v}-group`,R=`${E}-addon`,A=me(`${v}-wrapper`,E,I),N=me(`${v}-group-wrapper`,r.class,O);return g("span",{class:N,style:r.style,hidden:m},[g("span",{class:A},[x&&g("span",{class:R},[x]),Gt(P,{style:null,hidden:null}),$&&g("span",{class:R},[$])])])}return P}}});var xxe=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);oe.value,()=>{a.value=e.value}),Ie(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});const u=O=>{s.value&&CH(s.value,O)};o({focus:u,blur:()=>{var O;(O=s.value)===null||O===void 0||O.blur()},input:s,stateValue:a,setSelectionRange:(O,P,E)=>{var R;(R=s.value)===null||R===void 0||R.setSelectionRange(O,P,E)},select:()=>{var O;(O=s.value)===null||O===void 0||O.select()}});const m=O=>{i("change",O)},v=(O,P)=>{a.value!==O&&(e.value===void 0?a.value=O:_t(()=>{var E;s.value.value!==a.value&&((E=c.value)===null||E===void 0||E.$forceUpdate())}),_t(()=>{P&&P()}))},y=O=>{const{value:P,composing:E}=O.target;if((O.isComposing||E)&&e.lazy||a.value===P)return;const R=O.target.value;Ap(s.value,O,m),v(R)},b=O=>{O.keyCode===13&&i("pressEnter",O),i("keydown",O)},$=O=>{l.value=!0,i("focus",O)},x=O=>{l.value=!1,i("blur",O)},_=O=>{Ap(s.value,O,m),v("",()=>{u()})},w=()=>{var O,P;const{addonBefore:E=n.addonBefore,addonAfter:R=n.addonAfter,disabled:A,valueModifiers:N={},htmlSize:F,autocomplete:W,prefixCls:D,inputClassName:B,prefix:k=(O=n.prefix)===null||O===void 0?void 0:O.call(n),suffix:L=(P=n.suffix)===null||P===void 0?void 0:P.call(n),allowClear:z,type:K="text"}=e,G=Ot(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),Y=S(S(S({},G),r),{autocomplete:W,onChange:y,onInput:y,onFocus:$,onBlur:x,onKeydown:b,class:me(D,{[`${D}-disabled`]:A},B,!Pm({addonAfter:R,addonBefore:E})&&!aI({prefix:k,suffix:L,allowClear:z})&&r.class),ref:s,key:"ant-input",size:F,type:K});N.lazy&&delete Y.onInput,Y.autofocus||delete Y.autofocus;const ne=g("input",Ot(Y,["size"]),null);return Ln(ne,[[nf]])},I=()=>{var O;const{maxlength:P,suffix:E=(O=n.suffix)===null||O===void 0?void 0:O.call(n),showCount:R,prefixCls:A}=e,N=Number(P)>0;if(E||R){const F=[...qx(a.value)].length,W=typeof R=="object"?R.formatter({count:F,maxlength:P}):`${F}${N?` / ${P}`:""}`;return g(Je,null,[!!R&&g("span",{class:me(`${A}-show-count-suffix`,{[`${A}-show-count-has-suffix`]:!!E})},[W]),E])}return null};return lt(()=>{}),()=>{const{prefixCls:O,disabled:P}=e,E=xxe(e,["prefixCls","disabled"]);return g($xe,V(V(V({},E),r),{},{ref:c,prefixCls:O,inputElement:w(),handleReset:_,value:qx(a.value),focused:l.value,triggerFocus:u,suffix:I(),disabled:P}),n)}}}),zy=()=>Ot(xH(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),wH=()=>S(S({},Ot(zy(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Tc(),onCompositionend:Tc(),valueModifiers:Object});var _xe=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);oda(s.status,e.status)),{direction:u,prefixCls:d,size:f,autocomplete:h}=Ve("input",e),{compactSize:m,compactItemClassnames:v}=Es(d,u),y=M(()=>m.value||f.value),[b,$]=TO(d),x=jo();o({focus:F=>{var W;(W=a.value)===null||W===void 0||W.focus(F)},blur:()=>{var F;(F=a.value)===null||F===void 0||F.blur()},input:a,setSelectionRange:(F,W,D)=>{var B;(B=a.value)===null||B===void 0||B.setSelectionRange(F,W,D)},select:()=>{var F;(F=a.value)===null||F===void 0||F.select()}});const P=he([]),E=()=>{P.value.push(setTimeout(()=>{var F,W,D,B;!((F=a.value)===null||F===void 0)&&F.input&&((W=a.value)===null||W===void 0?void 0:W.input.getAttribute("type"))==="password"&&(!((D=a.value)===null||D===void 0)&&D.input.hasAttribute("value"))&&((B=a.value)===null||B===void 0||B.input.removeAttribute("value"))}))};lt(()=>{E()}),Ab(()=>{P.value.forEach(F=>clearTimeout(F))}),Ct(()=>{P.value.forEach(F=>clearTimeout(F))});const R=F=>{E(),i("blur",F),l.onFieldBlur()},A=F=>{E(),i("focus",F)},N=F=>{i("update:value",F.target.value),i("change",F),i("input",F),l.onFieldChange()};return()=>{var F,W,D,B,k,L;const{hasFeedback:z,feedbackIcon:K}=s,{allowClear:G,bordered:Y=!0,prefix:ne=(F=n.prefix)===null||F===void 0?void 0:F.call(n),suffix:oe=(W=n.suffix)===null||W===void 0?void 0:W.call(n),addonAfter:J=(D=n.addonAfter)===null||D===void 0?void 0:D.call(n),addonBefore:te=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:ee=(k=l.id)===null||k===void 0?void 0:k.value}=e,fe=_xe(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),ie=(z||oe)&&g(Je,null,[oe,z&&K]),X=d.value,ue=aI({prefix:ne,suffix:oe})||!!z,ye=n.clearIcon||(()=>g(Ko,null,null));return b(g(wxe,V(V(V({},r),Ot(fe,["onUpdate:value","onChange","onInput"])),{},{onChange:N,id:ee,disabled:(L=e.disabled)!==null&&L!==void 0?L:x.value,ref:a,prefixCls:X,autocomplete:h.value,onBlur:R,onFocus:A,prefix:ne,suffix:ie,allowClear:G,addonAfter:J&&g(dh,null,{default:()=>[g(C0,null,{default:()=>[J]})]}),addonBefore:te&&g(dh,null,{default:()=>[g(C0,null,{default:()=>[te]})]}),class:[r.class,v.value],inputClassName:me({[`${X}-sm`]:y.value==="small",[`${X}-lg`]:y.value==="large",[`${X}-rtl`]:u.value==="rtl",[`${X}-borderless`]:!Y},!ue&&lo(X,c.value),$.value),affixWrapperClassName:me({[`${X}-affix-wrapper-sm`]:y.value==="small",[`${X}-affix-wrapper-lg`]:y.value==="large",[`${X}-affix-wrapper-rtl`]:u.value==="rtl",[`${X}-affix-wrapper-borderless`]:!Y},lo(`${X}-affix-wrapper`,c.value,z),$.value),wrapperClassName:me({[`${X}-group-rtl`]:u.value==="rtl"},$.value),groupClassName:me({[`${X}-group-wrapper-sm`]:y.value==="small",[`${X}-group-wrapper-lg`]:y.value==="large",[`${X}-group-wrapper-rtl`]:u.value==="rtl"},lo(`${X}-group-wrapper`,c.value,z),$.value)}),S(S({},n),{clearIcon:ye})))}}}),_H=pe({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i,getPrefixCls:a}=Ve("input-group",e),l=Tr.useInject();Tr.useProvide(l,{isFormItemInput:!1});const s=M(()=>a("input")),[c,u]=TO(s),d=M(()=>{const f=o.value;return{[`${f}`]:!0,[u.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:i.value==="rtl"}});return()=>{var f;return c(g("span",V(V({},r),{},{class:me(d.value,r.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var Oxe=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 w;(w=a.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=a.value)===null||w===void 0||w.blur()}});const u=w=>{i("update:value",w.target.value),w&&w.target&&w.type==="click"&&i("search",w.target.value,w),i("change",w)},d=w=>{var I;document.activeElement===((I=a.value)===null||I===void 0?void 0:I.input)&&w.preventDefault()},f=w=>{var I,O;i("search",(O=(I=a.value)===null||I===void 0?void 0:I.input)===null||O===void 0?void 0:O.stateValue,w)},h=w=>{l.value||e.loading||f(w)},m=w=>{l.value=!0,i("compositionstart",w)},v=w=>{l.value=!1,i("compositionend",w)},{prefixCls:y,getPrefixCls:b,direction:$,size:x}=Ve("input-search",e),_=M(()=>b("input",e.inputPrefixCls));return()=>{var w,I,O,P;const{disabled:E,loading:R,addonAfter:A=(w=n.addonAfter)===null||w===void 0?void 0:w.call(n),suffix:N=(I=n.suffix)===null||I===void 0?void 0:I.call(n)}=e,F=Oxe(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:W=(P=(O=n.enterButton)===null||O===void 0?void 0:O.call(n))!==null&&P!==void 0?P:!1}=e;W=W||W==="";const D=typeof W=="boolean"?g(uy,null,null):null,B=`${y.value}-button`,k=Array.isArray(W)?W[0]:W;let L;const z=k.type&&hy(k.type)&&k.type.__ANT_BUTTON;if(z||k.tagName==="button")L=Gt(k,S({onMousedown:d,onClick:f,key:"enterButton"},z?{class:B,size:x.value}:{}),!1);else{const G=D&&!W;L=g(Un,{class:B,type:W?"primary":void 0,size:x.value,disabled:E,key:"enterButton",onMousedown:d,onClick:f,loading:R,icon:G?D:null},{default:()=>[G?null:D||W]})}A&&(L=[L,A]);const K=me(y.value,{[`${y.value}-rtl`]:$.value==="rtl",[`${y.value}-${x.value}`]:!!x.value,[`${y.value}-with-button`]:!!W},r.class);return g(ur,V(V(V({ref:a},Ot(F,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:h,onCompositionstart:m,onCompositionend:v,size:x.value,prefixCls:_.value,addonAfter:L,suffix:N,onChange:u,class:K,disabled:E}),n)}}}),H6=e=>e!=null&&(Array.isArray(e)?_n(e).length:!0);function Ixe(e){return H6(e.addonBefore)||H6(e.addonAfter)}const Pxe=["text","input"],Txe=pe({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Z.oneOf(Ur("text","input")),value:cn(),defaultValue:cn(),allowClear:{type:Boolean,default:void 0},element:cn(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:cn(),prefix:cn(),addonBefore:cn(),addonAfter:cn(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t;const o=Tr.useInject(),i=l=>{const{value:s,disabled:c,readonly:u,handleReset:d,suffix:f=n.suffix}=e,h=!c&&!u&&s,m=`${l}-clear-icon`;return g(Ko,{onClick:d,onMousedown:v=>v.preventDefault(),class:me({[`${m}-hidden`]:!h,[`${m}-has-suffix`]:!!f},m),role:"button"},null)},a=(l,s)=>{const{value:c,allowClear:u,direction:d,bordered:f,hidden:h,status:m,addonAfter:v=n.addonAfter,addonBefore:y=n.addonBefore,hashId:b}=e,{status:$,hasFeedback:x}=o;if(!u)return Gt(s,{value:c,disabled:e.disabled});const _=me(`${l}-affix-wrapper`,`${l}-affix-wrapper-textarea-with-clear-btn`,lo(`${l}-affix-wrapper`,da($,m),x),{[`${l}-affix-wrapper-rtl`]:d==="rtl",[`${l}-affix-wrapper-borderless`]:!f,[`${r.class}`]:!Ixe({addonAfter:v,addonBefore:y})&&r.class},b);return g("span",{class:_,style:r.style,hidden:h},[Gt(s,{style:null,value:c,disabled:e.disabled}),i(l)])};return()=>{var l;const{prefixCls:s,inputType:c,element:u=(l=n.element)===null||l===void 0?void 0:l.call(n)}=e;return c===Pxe[0]?a(s,u):null}}}),Exe=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,Axe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],MC={};let Oi;function Mxe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&MC[n])return MC[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:Axe.map(c=>`${c}:${r.getPropertyValue(c)}`).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(MC[n]=s),s}function Rxe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Oi||(Oi=document.createElement("textarea"),Oi.setAttribute("tab-index","-1"),Oi.setAttribute("aria-hidden","true"),document.body.appendChild(Oi)),e.getAttribute("wrap")?Oi.setAttribute("wrap",e.getAttribute("wrap")):Oi.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:a,sizingStyle:l}=Mxe(e,t);Oi.setAttribute("style",`${l};${Exe}`),Oi.value=e.value||e.placeholder||"";let s,c,u,d=Oi.scrollHeight;if(a==="border-box"?d+=i:a==="content-box"&&(d-=o),n!==null||r!==null){Oi.value=" ";const h=Oi.scrollHeight-o;n!==null&&(s=h*n,a==="border-box"&&(s=s+o+i),d=Math.max(s,d)),r!==null&&(c=h*r,a==="border-box"&&(c=c+o+i),u=d>c?"":"hidden",d=Math.min(c,d))}const f={height:`${d}px`,overflowY:u,resize:"none"};return s&&(f.minHeight=`${s}px`),c&&(f.maxHeight=`${c}px`),f}const RC=0,DC=1,LC=2,Dxe=pe({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:wH(),setup(e,t){let{attrs:n,emit:r,expose:o}=t,i,a;const l=he(),s=he({}),c=he(LC);Ct(()=>{mt.cancel(i),mt.cancel(a)});const u=()=>{try{if(document.activeElement===l.value){const I=l.value.selectionStart,O=l.value.selectionEnd,P=l.value.scrollTop;l.value.setSelectionRange(I,O),l.value.scrollTop=P}}catch{}},d=he(),f=he();ct(()=>{const I=e.autoSize||e.autosize;I?(d.value=I.minRows,f.value=I.maxRows):(d.value=void 0,f.value=void 0)});const h=M(()=>!!(e.autoSize||e.autosize)),m=()=>{c.value=RC};Ie([()=>e.value,d,f,h],()=>{h.value&&m()},{immediate:!0,flush:"post"});const v=he();Ie([c,l],()=>{if(l.value)if(c.value===RC)c.value=DC;else if(c.value===DC){const I=Rxe(l.value,!1,d.value,f.value);c.value=LC,v.value=I}else u()},{immediate:!0,flush:"post"});const y=Nn(),b=he(),$=()=>{mt.cancel(b.value)},x=I=>{c.value===LC&&(r("resize",I),h.value&&($(),b.value=mt(()=>{m()})))};Ct(()=>{$()}),o({resizeTextarea:()=>{m()},textArea:l,instance:y}),Sn(e.autosize===void 0);const w=()=>{const{prefixCls:I,disabled:O}=e,P=Ot(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),E=me(I,n.class,{[`${I}-disabled`]:O}),R=h.value?v.value:null,A=[n.style,s.value,R],N=S(S(S({},P),n),{style:A,class:E});return(c.value===RC||c.value===DC)&&A.push({overflowX:"hidden",overflowY:"hidden"}),N.autofocus||delete N.autofocus,N.rows===0&&delete N.rows,g(ki,{onResize:x,disabled:!h.value},{default:()=>[Ln(g("textarea",V(V({},N),{},{ref:l}),null),[[nf]])]})};return()=>w()}}),Lxe=Dxe;function IH(e,t){return[...e||""].slice(0,t).join("")}function z6(e,t,n,r){let o=n;return e?o=IH(n,r):[...t||""].lengthr&&(o=t),o}const lI=pe({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:wH(),setup(e,t){let{attrs:n,expose:r,emit:o}=t;const i=cr(),a=Tr.useInject(),l=M(()=>da(a.status,e.status)),s=ve(e.value===void 0?e.defaultValue:e.value),c=ve(),u=ve(""),{prefixCls:d,size:f,direction:h}=Ve("input",e),[m,v]=TO(d),y=jo(),b=M(()=>e.showCount===""||e.showCount||!1),$=M(()=>Number(e.maxlength)>0),x=ve(!1),_=ve(),w=ve(0),I=L=>{x.value=!0,_.value=u.value,w.value=L.currentTarget.selectionStart,o("compositionstart",L)},O=L=>{var z;x.value=!1;let K=L.currentTarget.value;if($.value){const G=w.value>=e.maxlength+1||w.value===((z=_.value)===null||z===void 0?void 0:z.length);K=z6(G,_.value,K,e.maxlength)}K!==u.value&&(A(K),Ap(L.currentTarget,L,W,K)),o("compositionend",L)},P=Nn();Ie(()=>e.value,()=>{var L;"value"in P.vnode.props,s.value=(L=e.value)!==null&&L!==void 0?L:""});const E=L=>{var z;CH((z=c.value)===null||z===void 0?void 0:z.textArea,L)},R=()=>{var L,z;(z=(L=c.value)===null||L===void 0?void 0:L.textArea)===null||z===void 0||z.blur()},A=(L,z)=>{s.value!==L&&(e.value===void 0?s.value=L:_t(()=>{var K,G,Y;c.value.textArea.value!==u.value&&((Y=(K=c.value)===null||K===void 0?void 0:(G=K.instance).update)===null||Y===void 0||Y.call(G))}),_t(()=>{z&&z()}))},N=L=>{L.keyCode===13&&o("pressEnter",L),o("keydown",L)},F=L=>{const{onBlur:z}=e;z==null||z(L),i.onFieldBlur()},W=L=>{o("update:value",L.target.value),o("change",L),o("input",L),i.onFieldChange()},D=L=>{Ap(c.value.textArea,L,W),A("",()=>{E()})},B=L=>{const{composing:z}=L.target;let K=L.target.value;if(x.value=!!(L.isComposing||z),!(x.value&&e.lazy||s.value===K)){if($.value){const G=L.target,Y=G.selectionStart>=e.maxlength+1||G.selectionStart===K.length||!G.selectionStart;K=z6(Y,u.value,K,e.maxlength)}Ap(L.currentTarget,L,W,K),A(K)}},k=()=>{var L,z;const{class:K}=n,{bordered:G=!0}=e,Y=S(S(S({},Ot(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!G,[`${K}`]:K&&!b.value,[`${d.value}-sm`]:f.value==="small",[`${d.value}-lg`]:f.value==="large"},lo(d.value,l.value),v.value],disabled:y.value,showCount:null,prefixCls:d.value,onInput:B,onChange:B,onBlur:F,onKeydown:N,onCompositionstart:I,onCompositionend:O});return!((L=e.valueModifiers)===null||L===void 0)&&L.lazy&&delete Y.onInput,g(Lxe,V(V({},Y),{},{id:(z=Y==null?void 0:Y.id)!==null&&z!==void 0?z:i.id.value,ref:c,maxlength:e.maxlength}),null)};return r({focus:E,blur:R,resizableTextArea:c}),ct(()=>{let L=qx(s.value);!x.value&&$.value&&(e.value===null||e.value===void 0)&&(L=IH(L,e.maxlength)),u.value=L}),()=>{var L;const{maxlength:z,bordered:K=!0,hidden:G}=e,{style:Y,class:ne}=n,oe=S(S(S({},e),n),{prefixCls:d.value,inputType:"text",handleReset:D,direction:h.value,bordered:K,style:b.value?void 0:Y,hashId:v.value,disabled:(L=e.disabled)!==null&&L!==void 0?L:y.value});let J=g(Txe,V(V({},oe),{},{value:u.value,status:e.status}),{element:k});if(b.value||a.hasFeedback){const te=[...u.value].length;let ee="";typeof b.value=="object"?ee=b.value.formatter({value:u.value,count:te,maxlength:z}):ee=`${te}${$.value?` / ${z}`:""}`,J=g("div",{hidden:G,class:me(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:h.value==="rtl",[`${d.value}-textarea-show-count`]:b.value,[`${d.value}-textarea-in-form-item`]:a.isFormItemInput},`${d.value}-textarea-show-count`,ne,v.value),style:Y,"data-count":typeof ee!="object"?ee:void 0},[J,a.hasFeedback&&g("span",{class:`${d.value}-textarea-suffix`},[a.feedbackIcon])])}return m(J)}}});var Nxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const kxe=Nxe;function j6(e){for(var t=1;tg(e?cI:jxe,null,null),PH=pe({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:S(S({},zy()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:r,expose:o,emit:i}=t;const a=ve(!1),l=()=>{const{disabled:y}=e;y||(a.value=!a.value,i("update:visible",a.value))};ct(()=>{e.visible!==void 0&&(a.value=!!e.visible)});const s=ve();o({focus:()=>{var y;(y=s.value)===null||y===void 0||y.focus()},blur:()=>{var y;(y=s.value)===null||y===void 0||y.blur()}});const d=y=>{const{action:b,iconRender:$=n.iconRender||Kxe}=e,x=Vxe[b]||"",_=$(a.value),w={[x]:l,class:`${y}-icon`,key:"passwordIcon",onMousedown:I=>{I.preventDefault()},onMouseup:I=>{I.preventDefault()}};return Gt(Jn(_)?_:g("span",null,[_]),w)},{prefixCls:f,getPrefixCls:h}=Ve("input-password",e),m=M(()=>h("input",e.inputPrefixCls)),v=()=>{const{size:y,visibilityToggle:b}=e,$=Wxe(e,["size","visibilityToggle"]),x=b&&d(f.value),_=me(f.value,r.class,{[`${f.value}-${y}`]:!!y}),w=S(S(S({},Ot($,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:_,prefixCls:m.value,suffix:x});return y&&(w.size=y),g(ur,V({ref:s},w),n)};return()=>v()}});ur.Group=_H;ur.Search=OH;ur.TextArea=lI;ur.Password=PH;ur.install=function(e){return e.component(ur.name,ur),e.component(ur.Group.name,ur.Group),e.component(ur.Search.name,ur.Search),e.component(ur.TextArea.name,ur.TextArea),e.component(ur.Password.name,ur.Password),e};function Uxe(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function G0(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function jy(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Z.shape({x:Number,y:Number}).loose,title:Z.any,footer:Z.any,transitionName:String,maskTransitionName:String,animation:Z.any,maskAnimation:Z.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Z.any,maskProps:Z.any,wrapProps:Z.any,getContainer:Z.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Z.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function V6(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let K6=-1;function Gxe(){return K6+=1,K6}function U6(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function Yxe(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=U6(o),n.top+=U6(o,!0),n}const G6={width:0,height:0,overflow:"hidden",outline:"none"},Xxe=pe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:S(S({},jy()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const i=he(),a=he(),l=he();n({focus:()=>{var f;(f=i.value)===null||f===void 0||f.focus()},changeActive:f=>{const{activeElement:h}=document;f&&h===a.value?i.value.focus():!f&&h===i.value&&a.value.focus()}});const s=he(),c=M(()=>{const{width:f,height:h}=e,m={};return f!==void 0&&(m.width=typeof f=="number"?`${f}px`:f),h!==void 0&&(m.height=typeof h=="number"?`${h}px`:h),s.value&&(m.transformOrigin=s.value),m}),u=()=>{_t(()=>{if(l.value){const f=Yxe(l.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,h,m,v;const{prefixCls:y,footer:b=(f=r.footer)===null||f===void 0?void 0:f.call(r),title:$=(h=r.title)===null||h===void 0?void 0:h.call(r),ariaId:x,closable:_,closeIcon:w=(m=r.closeIcon)===null||m===void 0?void 0:m.call(r),onClose:I,bodyStyle:O,bodyProps:P,onMousedown:E,onMouseup:R,visible:A,modalRender:N=r.modalRender,destroyOnClose:F,motionName:W}=e;let D;b&&(D=g("div",{class:`${y}-footer`},[b]));let B;$&&(B=g("div",{class:`${y}-header`},[g("div",{class:`${y}-title`,id:x},[$])]));let k;_&&(k=g("button",{type:"button",onClick:I,"aria-label":"Close",class:`${y}-close`},[w||g("span",{class:`${y}-close-x`},null)]));const L=g("div",{class:`${y}-content`},[k,B,g("div",V({class:`${y}-body`,style:O},P),[(v=r.default)===null||v===void 0?void 0:v.call(r)]),D]),z=Hi(W);return g(sr,V(V({},z),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[A||!F?Ln(g("div",V(V({},o),{},{ref:l,key:"dialog-element",role:"document",style:[c.value,o.style],class:[y,o.class],onMousedown:E,onMouseup:R}),[g("div",{tabindex:0,ref:i,style:G6,"aria-hidden":"true"},null),N?N({originVNode:L}):L,g("div",{tabindex:0,ref:a,style:G6,"aria-hidden":"true"},null)]),[[Br,A]]):null]})}}}),qxe=pe({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:r,maskProps:o,motionName:i}=e,a=Hi(i);return g(sr,a,{default:()=>[Ln(g("div",V({class:`${n}-mask`},o),null),[[Br,r]])]})}}}),Y6=pe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:bt(S(S({},jy()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:r}=t;const o=ve(),i=ve(),a=ve(),l=ve(e.visible),s=ve(`vcDialogTitle${Gxe()}`),c=b=>{var $,x;if(b)ss(i.value,document.activeElement)||(o.value=document.activeElement,($=a.value)===null||$===void 0||$.focus());else{const _=l.value;if(l.value=!1,e.mask&&o.value&&e.focusTriggerAfterClose){try{o.value.focus({preventScroll:!0})}catch{}o.value=null}_&&((x=e.afterClose)===null||x===void 0||x.call(e))}},u=b=>{var $;($=e.onClose)===null||$===void 0||$.call(e,b)},d=ve(!1),f=ve(),h=()=>{clearTimeout(f.value),d.value=!0},m=()=>{f.value=setTimeout(()=>{d.value=!1})},v=b=>{if(!e.maskClosable)return null;d.value?d.value=!1:i.value===b.target&&u(b)},y=b=>{if(e.keyboard&&b.keyCode===Fe.ESC){b.stopPropagation(),u(b);return}e.visible&&b.keyCode===Fe.TAB&&a.value.changeActive(!b.shiftKey)};return Ie(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),Ct(()=>{var b;clearTimeout(f.value),(b=e.scrollLocker)===null||b===void 0||b.unLock()}),ct(()=>{var b,$;(b=e.scrollLocker)===null||b===void 0||b.unLock(),l.value&&(($=e.scrollLocker)===null||$===void 0||$.lock())}),()=>{const{prefixCls:b,mask:$,visible:x,maskTransitionName:_,maskAnimation:w,zIndex:I,wrapClassName:O,rootClassName:P,wrapStyle:E,closable:R,maskProps:A,maskStyle:N,transitionName:F,animation:W,wrapProps:D,title:B=r.title}=e,{style:k,class:L}=n;return g("div",V({class:[`${b}-root`,P]},Ts(e,{data:!0})),[g(qxe,{prefixCls:b,visible:$&&x,motionName:V6(b,_,w),style:S({zIndex:I},N),maskProps:A},null),g("div",V({tabIndex:-1,onKeydown:y,class:me(`${b}-wrap`,O),ref:i,onClick:v,role:"dialog","aria-labelledby":B?s.value:null,style:S(S({zIndex:I},E),{display:l.value?null:"none"})},D),[g(Xxe,V(V({},Ot(e,["scrollLocker"])),{},{style:k,class:L,onMousedown:h,onMouseup:m,ref:a,closable:R,ariaId:s.value,prefixCls:b,visible:x,onClose:u,onVisibleChanged:c,motionName:V6(b,F,W)}),r)])])}}}),Zxe=jy(),Qxe=pe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:bt(Zxe,{visible:!1}),setup(e,t){let{attrs:n,slots:r}=t;const o=he(e.visible);return r_({},{inTriggerContext:!1}),Ie(()=>e.visible,()=>{e.visible&&(o.value=!0)},{flush:"post"}),()=>{const{visible:i,getContainer:a,forceRender:l,destroyOnClose:s=!1,afterClose:c}=e;let u=S(S(S({},e),n),{ref:"_component",key:"dialog"});return a===!1?g(Y6,V(V({},u),{},{getOpenCount:()=>2}),r):!l&&s&&!o.value?null:g(Hh,{autoLock:!0,visible:i,forceRender:l,getContainer:a},{default:d=>(u=S(S(S({},u),d),{afterClose:()=>{c==null||c(),o.value=!1}}),g(Y6,u,r))})}}}),TH=Qxe;function Jxe(e){const t=he(null),n=St(S({},e)),r=he([]),o=i=>{t.value===null&&(r.value=[],t.value=mt(()=>{let a;r.value.forEach(l=>{a=S(S({},a),l)}),S(n,a),t.value=null})),r.value.push(i)};return lt(()=>{t.value&&mt.cancel(t.value)}),[n,o]}function X6(e,t,n,r){const o=t+n,i=(n-r)/2;if(n>r){if(t>0)return{[e]:i};if(t<0&&or)return{[e]:t<0?i:-i};return{}}function ewe(e,t,n,r){const{width:o,height:i}=Uxe();let a=null;return e<=o&&t<=i?a={x:0,y:0}:(e>o||t>i)&&(a=S(S({},X6("x",n,e,o)),X6("y",r,t,i))),a}var twe=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{ft(q6,e)},inject:()=>it(q6,{isPreviewGroup:ve(!1),previewUrls:M(()=>new Map),setPreviewUrls:()=>{},current:he(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},nwe=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),rwe=pe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:nwe(),setup(e,t){let{slots:n}=t;const r=M(()=>{const w={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?RH(e.preview,w):w}),o=St(new Map),i=he(),a=M(()=>r.value.visible),l=M(()=>r.value.getContainer),s=(w,I)=>{var O,P;(P=(O=r.value).onVisibleChange)===null||P===void 0||P.call(O,w,I)},[c,u]=yn(!!a.value,{value:a,onChange:s}),d=he(null),f=M(()=>a.value!==void 0),h=M(()=>Array.from(o.keys())),m=M(()=>h.value[r.value.current]),v=M(()=>new Map(Array.from(o).filter(w=>{let[,{canPreview:I}]=w;return!!I}).map(w=>{let[I,{url:O}]=w;return[I,O]}))),y=function(w,I){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;o.set(w,{url:I,canPreview:O})},b=w=>{i.value=w},$=w=>{d.value=w},x=function(w,I){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const P=()=>{o.delete(w)};return o.set(w,{url:I,canPreview:O}),P},_=w=>{w==null||w.stopPropagation(),u(!1),$(null)};return Ie(m,w=>{b(w)},{immediate:!0,flush:"post"}),ct(()=>{c.value&&f.value&&b(m.value)},{flush:"post"}),dI.provide({isPreviewGroup:ve(!0),previewUrls:v,setPreviewUrls:y,current:i,setCurrent:b,setShowPreview:u,setMousePosition:$,registerImage:x}),()=>{const w=twe(r.value,[]);return g(Je,null,[n.default&&n.default(),g(AH,V(V({},w),{},{"ria-hidden":!c.value,visible:c.value,prefixCls:e.previewPrefixCls,onClose:_,mousePosition:d.value,src:v.value.get(i.value),icons:e.icons,getContainer:l.value}),null)])}}}),EH=rwe,Js={x:0,y:0},owe=S(S({},jy()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),iwe=pe({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:owe,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:r}=t;const{rotateLeft:o,rotateRight:i,zoomIn:a,zoomOut:l,close:s,left:c,right:u,flipX:d,flipY:f}=St(e.icons),h=ve(1),m=ve(0),v=St({x:1,y:1}),[y,b]=Jxe(Js),$=()=>n("close"),x=ve(),_=St({originX:0,originY:0,deltaX:0,deltaY:0}),w=ve(!1),I=dI.inject(),{previewUrls:O,current:P,isPreviewGroup:E,setCurrent:R}=I,A=M(()=>O.value.size),N=M(()=>Array.from(O.value.keys())),F=M(()=>N.value.indexOf(P.value)),W=M(()=>E.value?O.value.get(P.value):e.src),D=M(()=>E.value&&A.value>1),B=ve({wheelDirection:0}),k=()=>{h.value=1,m.value=0,v.x=1,v.y=1,b(Js),n("afterClose")},L=ae=>{ae?h.value+=.5:h.value++,b(Js)},z=ae=>{h.value>1&&(ae?h.value-=.5:h.value--),b(Js)},K=()=>{m.value+=90},G=()=>{m.value-=90},Y=()=>{v.x=-v.x},ne=()=>{v.y=-v.y},oe=ae=>{ae.preventDefault(),ae.stopPropagation(),F.value>0&&R(N.value[F.value-1])},J=ae=>{ae.preventDefault(),ae.stopPropagation(),F.valueL(),type:"zoomIn"},{icon:l,onClick:()=>z(),type:"zoomOut",disabled:M(()=>h.value===1)},{icon:i,onClick:K,type:"rotateRight"},{icon:o,onClick:G,type:"rotateLeft"},{icon:d,onClick:Y,type:"flipX"},{icon:f,onClick:ne,type:"flipY"}],X=()=>{if(e.visible&&w.value){const ae=x.value.offsetWidth*h.value,ge=x.value.offsetHeight*h.value,{left:Se,top:$e}=G0(x.value),_e=m.value%180!==0;w.value=!1;const be=ewe(_e?ge:ae,_e?ae:ge,Se,$e);be&&b(S({},be))}},ue=ae=>{ae.button===0&&(ae.preventDefault(),ae.stopPropagation(),_.deltaX=ae.pageX-y.x,_.deltaY=ae.pageY-y.y,_.originX=y.x,_.originY=y.y,w.value=!0)},ye=ae=>{e.visible&&w.value&&b({x:ae.pageX-_.deltaX,y:ae.pageY-_.deltaY})},H=ae=>{if(!e.visible)return;ae.preventDefault();const ge=ae.deltaY;B.value={wheelDirection:ge}},j=ae=>{!e.visible||!D.value||(ae.preventDefault(),ae.keyCode===Fe.LEFT?F.value>0&&R(N.value[F.value-1]):ae.keyCode===Fe.RIGHT&&F.value{e.visible&&(h.value!==1&&(h.value=1),(y.x!==Js.x||y.y!==Js.y)&&b(Js))};let se=()=>{};return lt(()=>{Ie([()=>e.visible,w],()=>{se();let ae,ge;const Se=wn(window,"mouseup",X,!1),$e=wn(window,"mousemove",ye,!1),_e=wn(window,"wheel",H,{passive:!1}),be=wn(window,"keydown",j,!1);try{window.top!==window.self&&(ae=wn(window.top,"mouseup",X,!1),ge=wn(window.top,"mousemove",ye,!1))}catch{}se=()=>{Se.remove(),$e.remove(),_e.remove(),be.remove(),ae&&ae.remove(),ge&&ge.remove()}},{flush:"post",immediate:!0}),Ie([B],()=>{const{wheelDirection:ae}=B.value;ae>0?z(!0):ae<0&&L(!0)})}),Fr(()=>{se()}),()=>{const{visible:ae,prefixCls:ge,rootClassName:Se}=e;return g(TH,V(V({},r),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:ge,onClose:$,afterClose:k,visible:ae,wrapClassName:te,rootClassName:Se,getContainer:e.getContainer}),{default:()=>[g("div",{class:[`${e.prefixCls}-operations-wrapper`,Se]},[g("ul",{class:`${e.prefixCls}-operations`},[ie.map($e=>{let{icon:_e,onClick:be,type:Te,disabled:Pe}=$e;return g("li",{class:me(ee,{[`${e.prefixCls}-operations-operation-disabled`]:Pe&&(Pe==null?void 0:Pe.value)}),onClick:be,key:Te},[kr(_e,{class:fe})])})])]),g("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${y.x}px, ${y.y}px, 0)`}},[g("img",{onMousedown:ue,onDblclick:q,ref:x,class:`${e.prefixCls}-img`,src:W.value,alt:e.alt,style:{transform:`scale3d(${v.x*h.value}, ${v.y*h.value}, 1) rotate(${m.value}deg)`}},null)]),D.value&&g("div",{class:me(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:F.value<=0}),onClick:oe},[c]),D.value&&g("div",{class:me(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:F.value>=A.value-1}),onClick:J},[u])]})}}}),AH=iwe;var awe=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({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Z.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),RH=(e,t)=>{const n=S({},e);return Object.keys(t).forEach(r=>{e[r]===void 0&&(n[r]=t[r])}),n};let lwe=0;const DH=pe({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:MH(),emits:["click","error"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const i=M(()=>e.prefixCls),a=M(()=>`${i.value}-preview`),l=M(()=>{const L={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?RH(e.preview,L):L}),s=M(()=>{var L;return(L=l.value.src)!==null&&L!==void 0?L:e.src}),c=M(()=>e.placeholder&&e.placeholder!==!0||r.placeholder),u=M(()=>l.value.visible),d=M(()=>l.value.getContainer),f=M(()=>u.value!==void 0),h=(L,z)=>{var K,G;(G=(K=l.value).onVisibleChange)===null||G===void 0||G.call(K,L,z)},[m,v]=yn(!!u.value,{value:u,onChange:h}),y=he(c.value?"loading":"normal");Ie(()=>e.src,()=>{y.value=c.value?"loading":"normal"});const b=he(null),$=M(()=>y.value==="error"),x=dI.inject(),{isPreviewGroup:_,setCurrent:w,setShowPreview:I,setMousePosition:O,registerImage:P}=x,E=he(lwe++),R=M(()=>e.preview&&!$.value),A=()=>{y.value="normal"},N=L=>{y.value="error",o("error",L)},F=L=>{if(!f.value){const{left:z,top:K}=G0(L.target);_.value?(w(E.value),O({x:z,y:K})):b.value={x:z,y:K}}_.value?I(!0):v(!0),o("click",L)},W=()=>{v(!1),f.value||(b.value=null)},D=he(null);Ie(()=>D,()=>{y.value==="loading"&&D.value.complete&&(D.value.naturalWidth||D.value.naturalHeight)&&A()});let B=()=>{};lt(()=>{Ie([s,R],()=>{if(B(),!_.value)return()=>{};B=P(E.value,s.value,R.value),R.value||B()},{flush:"post",immediate:!0})}),Fr(()=>{B()});const k=L=>Mfe(L)?L+"px":L;return()=>{const{prefixCls:L,wrapperClassName:z,fallback:K,src:G,placeholder:Y,wrapperStyle:ne,rootClassName:oe}=e,{width:J,height:te,crossorigin:ee,decoding:fe,alt:ie,sizes:X,srcset:ue,usemap:ye,class:H,style:j}=n,q=l.value,{icons:se,maskClassName:ae}=q,ge=awe(q,["icons","maskClassName"]),Se=me(L,z,oe,{[`${L}-error`]:$.value}),$e=$.value&&K?K:s.value,_e={crossorigin:ee,decoding:fe,alt:ie,sizes:X,srcset:ue,usemap:ye,width:J,height:te,class:me(`${L}-img`,{[`${L}-img-placeholder`]:Y===!0},H),style:S({height:k(te)},j)};return g(Je,null,[g("div",{class:Se,onClick:R.value?F:be=>{o("click",be)},style:S({width:k(J),height:k(te)},ne)},[g("img",V(V(V({},_e),$.value&&K?{src:K}:{onLoad:A,onError:N,src:G}),{},{ref:D}),null),y.value==="loading"&&g("div",{"aria-hidden":"true",class:`${L}-placeholder`},[Y||r.placeholder&&r.placeholder()]),r.previewMask&&R.value&&g("div",{class:[`${L}-mask`,ae]},[r.previewMask()])]),!_.value&&R.value&&g(AH,V(V({},ge),{},{"aria-hidden":!m.value,visible:m.value,prefixCls:a.value,onClose:W,mousePosition:b.value,src:$e,alt:ie,getContainer:d.value,icons:se,rootClassName:oe}),null)])}}});DH.PreviewGroup=EH;const swe=DH;var cwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const uwe=cwe;function Z6(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:S(S({},r8("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:S(S({},r8("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:A_(e)}]},Pwe=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:S(S({},vt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:S({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Sl(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Twe=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:S({},aa()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Ewe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Awe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},Mwe=pt("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=nt(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Pwe(o),Twe(o),Ewe(o),LH(o),e.wireframe&&Awe(o),cf(o,"zoom")]}),Zx=e=>({position:e||"absolute",inset:0}),Rwe=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new Zt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:S(S({},er),{padding:`0 ${r}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},Dwe=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:o,motionDurationSlow:i}=e,a=new Zt(n).setAlpha(.1),l=a.clone().setAlpha(.2);return{[`${t}-operations`]:S(S({},vt(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:a.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Lwe=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Zt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},Nwe=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:S(S({},Zx()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":S(S({},Zx()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Dwe(e),Lwe(e)]}]},kwe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:S({},Rwe(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:S({},Zx())}}},Bwe=e=>{const{previewCls:t}=e;return{[`${t}-root`]:cf(e,"zoom"),"&":A_(e,!0)}},NH=pt("Image",e=>{const t=`${e.componentCls}-preview`,n=nt(e,{previewCls:t,modalMaskBg:new Zt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[kwe(n),Nwe(n),LH(nt(n,{componentCls:t})),Bwe(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Zt(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new Zt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),kH={rotateLeft:g(fwe,null,null),rotateRight:g(vwe,null,null),zoomIn:g(Swe,null,null),zoomOut:g(wwe,null,null),close:g(Vo,null,null),left:g(xs,null,null),right:g(sa,null,null),flipX:g(n8,null,null),flipY:g(n8,{rotate:90},null)},Fwe=()=>({previewPrefixCls:String,preview:cn()}),Hwe=pe({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Fwe(),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,rootPrefixCls:i}=Ve("image",e),a=M(()=>`${o.value}-preview`),[l,s]=NH(o),c=M(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return S(S({},d),{rootClassName:s.value,transitionName:uo(i.value,"zoom",d.transitionName),maskTransitionName:uo(i.value,"fade",d.maskTransitionName)})});return()=>l(g(EH,V(V({},S(S({},n),e)),{},{preview:c.value,icons:kH,previewPrefixCls:a.value}),r))}}),BH=Hwe,fc=pe({name:"AImage",inheritAttrs:!1,props:MH(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,rootPrefixCls:i,configProvider:a}=Ve("image",e),[l,s]=NH(o),c=M(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return S(S({icons:kH},d),{transitionName:uo(i.value,"zoom",d.transitionName),maskTransitionName:uo(i.value,"fade",d.maskTransitionName)})});return()=>{var u,d;const f=((d=(u=a.locale)===null||u===void 0?void 0:u.value)===null||d===void 0?void 0:d.Image)||so.Image,h=()=>g("div",{class:`${o.value}-mask-info`},[g(cI,null,null),f==null?void 0:f.preview]),{previewMask:m=n.previewMask||h}=e;return l(g(swe,V(V({},S(S(S({},r),e),{prefixCls:o.value})),{},{preview:c.value,rootClassName:me(e.rootClassName,s.value)}),S(S({},n),{previewMask:typeof m=="function"?m:null})))}}});fc.PreviewGroup=BH;fc.install=function(e){return e.component(fc.name,fc),e.component(fc.PreviewGroup.name,fc.PreviewGroup),e};const zwe=fc;var jwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Wwe=jwe;function o8(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(Qx()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new pc(Number.MAX_SAFE_INTEGER);if(r0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":yI(this.number):this.origin}}class ed{constructor(t){if(this.origin="",FH(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(bI(n)&&(n=Number(n)),n=typeof n=="string"?n:yI(n),SI(n)){const r=Mp(n);this.negative=r.negative;const o=r.trimStr.split(".");this.integer=BigInt(o[0]);const i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new ed(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new ed(t);const n=new ed(t);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(r),i=n.alignDecimal(r),a=(o+i).toString(),{negativeStr:l,trimStr:s}=Mp(a),c=`${l}${s.padStart(r+1,"0")}`;return new ed(`${c.slice(0,-r)}.${c.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Mp(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function xa(e){return Qx()?new ed(e):new pc(e)}function Jx(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:o,integerStr:i,decimalStr:a}=Mp(e),l=`${t}${a}`,s=`${o}${i}`;if(n>=0){const c=Number(a[n]);if(c>=5&&!r){const u=xa(e).add(`${o}0.${"0".repeat(n)}${10-c}`);return Jx(u.toString(),t,n,r)}return n===0?s:`${s}${t}${a.padEnd(n,"0").slice(0,n)}`}return l===".0"?s:`${s}${l}`}const Uwe=200,Gwe=600,Ywe=pe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:Oe()},slots:Object,setup(e,t){let{slots:n,emit:r}=t;const o=he(),i=(l,s)=>{l.preventDefault(),r("step",s);function c(){r("step",s),o.value=setTimeout(c,Uwe)}o.value=setTimeout(c,Gwe)},a=()=>{clearTimeout(o.value)};return Ct(()=>{a()}),()=>{if(i_())return null;const{prefixCls:l,upDisabled:s,downDisabled:c}=e,u=`${l}-handler`,d=me(u,`${u}-up`,{[`${u}-up-disabled`]:s}),f=me(u,`${u}-down`,{[`${u}-down-disabled`]:c}),h={unselectable:"on",role:"button",onMouseup:a,onMouseleave:a},{upNode:m,downNode:v}=n;return g("div",{class:`${u}-wrap`},[g("span",V(V({},h),{},{onMousedown:y=>{i(y,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(m==null?void 0:m())||g("span",{unselectable:"on",class:`${l}-handler-up-inner`},null)]),g("span",V(V({},h),{},{onMousedown:y=>{i(y,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:f}),[(v==null?void 0:v())||g("span",{unselectable:"on",class:`${l}-handler-down-inner`},null)])])}}});function Xwe(e,t){const n=he(null);function r(){try{const{selectionStart:i,selectionEnd:a,value:l}=e.value,s=l.substring(0,i),c=l.substring(a);n.value={start:i,end:a,value:l,beforeTxt:s,afterTxt:c}}catch{}}function o(){if(e.value&&n.value&&t.value)try{const{value:i}=e.value,{beforeTxt:a,afterTxt:l,start:s}=n.value;let c=i.length;if(i.endsWith(l))c=i.length-n.value.afterTxt.length;else if(i.startsWith(a))c=a.length;else{const u=a[s-1],d=i.indexOf(u,s-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}catch(i){`${i.message}`}}return[r,o]}const qwe=()=>{const e=ve(0),t=()=>{mt.cancel(e.value)};return Ct(()=>{t()}),n=>{t(),e.value=mt(()=>{n()})}};var Zwe=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);oe||t.isEmpty()?t.toString():t.toNumber(),a8=e=>{const t=xa(e);return t.isInvalidate()?null:t},HH=()=>({stringMode:De(),defaultValue:ot([String,Number]),value:ot([String,Number]),prefixCls:Qe(),min:ot([String,Number]),max:ot([String,Number]),step:ot([String,Number],1),tabindex:Number,controls:De(!0),readonly:De(),disabled:De(),autofocus:De(),keyboard:De(!0),parser:Oe(),formatter:Oe(),precision:Number,decimalSeparator:String,onInput:Oe(),onChange:Oe(),onPressEnter:Oe(),onStep:Oe(),onBlur:Oe(),onFocus:Oe()}),Qwe=pe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:S(S({},HH()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:i}=t;const a=ve(),l=ve(!1),s=ve(!1),c=ve(!1),u=ve(xa(e.value));function d(G){e.value===void 0&&(u.value=G)}const f=(G,Y)=>{if(!Y)return e.precision>=0?e.precision:Math.max(Ch(G),Ch(e.step))},h=G=>{const Y=String(G);if(e.parser)return e.parser(Y);let ne=Y;return e.decimalSeparator&&(ne=ne.replace(e.decimalSeparator,".")),ne.replace(/[^\w.-]+/g,"")},m=ve(""),v=(G,Y)=>{if(e.formatter)return e.formatter(G,{userTyping:Y,input:String(m.value)});let ne=typeof G=="number"?yI(G):G;if(!Y){const oe=f(ne,Y);if(SI(ne)&&(e.decimalSeparator||oe>=0)){const J=e.decimalSeparator||".";ne=Jx(ne,J,oe)}}return ne},y=(()=>{const G=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof G)?Number.isNaN(G)?"":G:v(u.value.toString(),!1)})();m.value=y;function b(G,Y){m.value=v(G.isInvalidate()?G.toString(!1):G.toString(!Y),Y)}const $=M(()=>a8(e.max)),x=M(()=>a8(e.min)),_=M(()=>!$.value||!u.value||u.value.isInvalidate()?!1:$.value.lessEquals(u.value)),w=M(()=>!x.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals(x.value)),[I,O]=Xwe(a,l),P=G=>$.value&&!G.lessEquals($.value)?$.value:x.value&&!x.value.lessEquals(G)?x.value:null,E=G=>!P(G),R=(G,Y)=>{var ne;let oe=G,J=E(oe)||oe.isEmpty();if(!oe.isEmpty()&&!Y&&(oe=P(oe)||oe,J=!0),!e.readonly&&!e.disabled&&J){const te=oe.toString(),ee=f(te,Y);return ee>=0&&(oe=xa(Jx(te,".",ee))),oe.equals(u.value)||(d(oe),(ne=e.onChange)===null||ne===void 0||ne.call(e,oe.isEmpty()?null:i8(e.stringMode,oe)),e.value===void 0&&b(oe,Y)),oe}return u.value},A=qwe(),N=G=>{var Y;if(I(),m.value=G,!c.value){const ne=h(G),oe=xa(ne);oe.isNaN()||R(oe,!0)}(Y=e.onInput)===null||Y===void 0||Y.call(e,G),A(()=>{let ne=G;e.parser||(ne=G.replace(/。/g,".")),ne!==G&&N(ne)})},F=()=>{c.value=!0},W=()=>{c.value=!1,N(a.value.value)},D=G=>{N(G.target.value)},B=G=>{var Y,ne;if(G&&_.value||!G&&w.value)return;s.value=!1;let oe=xa(e.step);G||(oe=oe.negate());const J=(u.value||xa(0)).add(oe.toString()),te=R(J,!1);(Y=e.onStep)===null||Y===void 0||Y.call(e,i8(e.stringMode,te),{offset:e.step,type:G?"up":"down"}),(ne=a.value)===null||ne===void 0||ne.focus()},k=G=>{const Y=xa(h(m.value));let ne=Y;Y.isNaN()?ne=u.value:ne=R(Y,G),e.value!==void 0?b(u.value,!1):ne.isNaN()||b(ne,!1)},L=G=>{var Y;const{which:ne}=G;s.value=!0,ne===Fe.ENTER&&(c.value||(s.value=!1),k(!1),(Y=e.onPressEnter)===null||Y===void 0||Y.call(e,G)),e.keyboard!==!1&&!c.value&&[Fe.UP,Fe.DOWN].includes(ne)&&(B(Fe.UP===ne),G.preventDefault())},z=()=>{s.value=!1},K=G=>{k(!1),l.value=!1,s.value=!1,o("blur",G)};return Ie(()=>e.precision,()=>{u.value.isInvalidate()||b(u.value,!1)},{flush:"post"}),Ie(()=>e.value,()=>{const G=xa(e.value);u.value=G;const Y=xa(h(m.value));(!G.equals(Y)||!s.value||e.formatter)&&b(G,s.value)},{flush:"post"}),Ie(m,()=>{e.formatter&&O()},{flush:"post"}),Ie(()=>e.disabled,G=>{G&&(l.value=!1)}),i({focus:()=>{var G;(G=a.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=a.value)===null||G===void 0||G.blur()}}),()=>{const G=S(S({},n),e),{prefixCls:Y="rc-input-number",min:ne,max:oe,step:J=1,defaultValue:te,value:ee,disabled:fe,readonly:ie,keyboard:X,controls:ue=!0,autofocus:ye,stringMode:H,parser:j,formatter:q,precision:se,decimalSeparator:ae,onChange:ge,onInput:Se,onPressEnter:$e,onStep:_e,lazy:be,class:Te,style:Pe}=G,re=Zwe(G,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:le,downHandler:xe}=r,Ae=`${Y}-input`,Be={};return be?Be.onChange=D:Be.onInput=D,g("div",{class:me(Y,Te,{[`${Y}-focused`]:l.value,[`${Y}-disabled`]:fe,[`${Y}-readonly`]:ie,[`${Y}-not-a-number`]:u.value.isNaN(),[`${Y}-out-of-range`]:!u.value.isInvalidate()&&!E(u.value)}),style:Pe,onKeydown:L,onKeyup:z},[ue&&g(Ywe,{prefixCls:Y,upDisabled:_.value,downDisabled:w.value,onStep:B},{upNode:le,downNode:xe}),g("div",{class:`${Ae}-wrap`},[g("input",V(V(V({autofocus:ye,autocomplete:"off",role:"spinbutton","aria-valuemin":ne,"aria-valuemax":oe,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:J},re),{},{ref:a,class:Ae,value:m.value,disabled:fe,readonly:ie,onFocus:Ye=>{l.value=!0,o("focus",Ye)}},Be),{},{onBlur:K,onCompositionstart:F,onCompositionend:W}),null)])])}}});function NC(e){return e!=null}const Jwe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:h,controlHeight:m,inputPaddingHorizontal:v,colorBgContainer:y,colorTextDisabled:b,borderRadiusSM:$,borderRadiusLG:x,controlWidth:_,handleVisible:w}=e;return[{[t]:S(S(S(S({},vt(e)),ou(e)),Xh(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:x,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:$,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":S({},hf(e)),"&-focused":S({},$s(e)),"&-disabled":S(S({},IO(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":S(S(S({},vt(e)),kB(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}}}),[t]:{"&-input":S(S({width:"100%",height:m-2*n,padding:`0 ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},OO(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:y,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:w===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:h}},"&-up-inner, &-down-inner":S(S({},Xc()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:i},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},e2e=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-affix-wrapper`]:S(S(S({},ou(e)),Xh(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:S(S({},hf(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},t2e=pt("InputNumber",e=>{const t=iu(e);return[Jwe(t),e2e(t),uf(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var n2e=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);oS(S({},l8),{size:Qe(),bordered:De(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,"onUpdate:value":l8.onChange,valueModifiers:Object,status:Qe()}),kC=pe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:r2e(),slots:Object,setup(e,t){let{emit:n,expose:r,attrs:o,slots:i}=t;const a=cr(),l=Tr.useInject(),s=M(()=>da(l.status,e.status)),{prefixCls:c,size:u,direction:d,disabled:f}=Ve("input-number",e),{compactSize:h,compactItemClassnames:m}=Es(c,d),v=jo(),y=M(()=>{var N;return(N=f.value)!==null&&N!==void 0?N:v.value}),[b,$]=t2e(c),x=M(()=>h.value||u.value),_=ve(e.value===void 0?e.defaultValue:e.value),w=ve(!1);Ie(()=>e.value,()=>{_.value=e.value});const I=ve(null),O=()=>{var N;(N=I.value)===null||N===void 0||N.focus()};r({focus:O,blur:()=>{var N;(N=I.value)===null||N===void 0||N.blur()}});const E=N=>{e.value===void 0&&(_.value=N),n("update:value",N),n("change",N),a.onFieldChange()},R=N=>{w.value=!1,n("blur",N),a.onFieldBlur()},A=N=>{w.value=!0,n("focus",N)};return()=>{var N,F,W,D;const{hasFeedback:B,isFormItemInput:k,feedbackIcon:L}=l,z=(N=e.id)!==null&&N!==void 0?N:a.id.value,K=S(S(S({},o),e),{id:z,disabled:y.value}),{class:G,bordered:Y,readonly:ne,style:oe,addonBefore:J=(F=i.addonBefore)===null||F===void 0?void 0:F.call(i),addonAfter:te=(W=i.addonAfter)===null||W===void 0?void 0:W.call(i),prefix:ee=(D=i.prefix)===null||D===void 0?void 0:D.call(i),valueModifiers:fe={}}=K,ie=n2e(K,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),X=c.value,ue=me({[`${X}-lg`]:x.value==="large",[`${X}-sm`]:x.value==="small",[`${X}-rtl`]:d.value==="rtl",[`${X}-readonly`]:ne,[`${X}-borderless`]:!Y,[`${X}-in-form-item`]:k},lo(X,s.value),G,m.value,$.value);let ye=g(Qwe,V(V({},Ot(ie,["size","defaultValue"])),{},{ref:I,lazy:!!fe.lazy,value:_.value,class:ue,prefixCls:X,readonly:ne,onChange:E,onBlur:R,onFocus:A}),{upHandler:i.upIcon?()=>g("span",{class:`${X}-handler-up-inner`},[i.upIcon()]):()=>g(Kwe,{class:`${X}-handler-up-inner`},null),downHandler:i.downIcon?()=>g("span",{class:`${X}-handler-down-inner`},[i.downIcon()]):()=>g(jh,{class:`${X}-handler-down-inner`},null)});const H=NC(J)||NC(te),j=NC(ee);if(j||B){const q=me(`${X}-affix-wrapper`,lo(`${X}-affix-wrapper`,s.value,B),{[`${X}-affix-wrapper-focused`]:w.value,[`${X}-affix-wrapper-disabled`]:y.value,[`${X}-affix-wrapper-sm`]:x.value==="small",[`${X}-affix-wrapper-lg`]:x.value==="large",[`${X}-affix-wrapper-rtl`]:d.value==="rtl",[`${X}-affix-wrapper-readonly`]:ne,[`${X}-affix-wrapper-borderless`]:!Y,[`${G}`]:!H&&G},$.value);ye=g("div",{class:q,style:oe,onClick:O},[j&&g("span",{class:`${X}-prefix`},[ee]),ye,B&&g("span",{class:`${X}-suffix`},[L])])}if(H){const q=`${X}-group`,se=`${q}-addon`,ae=J?g("div",{class:se},[J]):null,ge=te?g("div",{class:se},[te]):null,Se=me(`${X}-wrapper`,q,{[`${q}-rtl`]:d.value==="rtl"},$.value),$e=me(`${X}-group-wrapper`,{[`${X}-group-wrapper-sm`]:x.value==="small",[`${X}-group-wrapper-lg`]:x.value==="large",[`${X}-group-wrapper-rtl`]:d.value==="rtl"},lo(`${c}-group-wrapper`,s.value,B),G,$.value);ye=g("div",{class:$e,style:oe},[g("div",{class:Se},[ae&&g(dh,null,{default:()=>[g(C0,null,{default:()=>[ae]})]}),ye,ge&&g(dh,null,{default:()=>[g(C0,null,{default:()=>[ge]})]})])])}return b(Gt(ye,{style:oe}))}}}),o2e=S(kC,{install:e=>(e.component(kC.name,kC),e)}),i2e=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:r,colorText:o}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:o,background:n},[`${t}-sider-zero-width-trigger`]:{color:o,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}},a2e=e=>{const{antCls:t,componentCls:n,colorText:r,colorTextLightSolid:o,colorBgHeader:i,colorBgBody:a,colorBgTrigger:l,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:h,motionDurationMid:m,motionDurationSlow:v,fontSize:y,borderRadius:b}=e;return{[n]:S(S({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:a,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:y,background:a},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${m}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:`${f}px`,textAlign:"center",background:l,cursor:"pointer",transition:`all ${m}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-h,zIndex:1,width:h,height:h,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${v} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${v}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-h,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},i2e(e)),{"&-rtl":{direction:"rtl"}})}},l2e=pt("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:r,controlHeightLG:o,marginXXS:i}=e,a=o*1.25,l=nt(e,{layoutHeaderHeight:r*2,layoutHeaderPaddingInline:a,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${a}px`,layoutTriggerHeight:o+i*2,layoutZeroTriggerSize:o});return[a2e(l)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),CI=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function Wy(e){let{suffixCls:t,tagName:n,name:r}=e;return o=>pe({compatConfig:{MODE:3},name:r,props:CI(),setup(a,l){let{slots:s}=l;const{prefixCls:c}=Ve(t,a);return()=>{const u=S(S({},a),{prefixCls:c.value,tagName:n});return g(o,u,s)}}})}const $I=pe({compatConfig:{MODE:3},props:CI(),setup(e,t){let{slots:n}=t;return()=>g(e.tagName,{class:e.prefixCls},n)}}),s2e=pe({compatConfig:{MODE:3},inheritAttrs:!1,props:CI(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("",e),[a,l]=l2e(o),s=he([]);ft(K9,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const u=M(()=>{const{prefixCls:d,hasSider:f}=e;return{[l.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:i.value==="rtl"}});return()=>{const{tagName:d}=e;return a(g(d,S(S({},r),{class:[u.value,r.class]}),n))}}}),c2e=Wy({suffixCls:"layout",tagName:"section",name:"ALayout"})(s2e),Tm=Wy({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})($I),Em=Wy({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})($I),Am=Wy({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})($I),BC=c2e;var u2e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const d2e=u2e;function s8(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:Z.any,width:Z.oneOfType([Z.number,Z.string]),collapsedWidth:Z.oneOfType([Z.number,Z.string]),breakpoint:Z.oneOf(Ur("xs","sm","md","lg","xl","xxl","xxxl")),theme:Z.oneOf(Ur("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),g2e=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),Mm=pe({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:bt(h2e(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:r,slots:o}=t;const{prefixCls:i}=Ve("layout-sider",e),a=it(K9,void 0),l=ve(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=ve(!1);Ie(()=>e.collapsed,()=>{l.value=!!e.collapsed}),ft(V9,l);const c=(v,y)=>{e.collapsed===void 0&&(l.value=v),n("update:collapsed",v),n("collapse",v,y)},u=ve(v=>{s.value=v.matches,n("breakpoint",v.matches),l.value!==v.matches&&c(v.matches,"responsive")});let d;function f(v){return u.value(v)}const h=g2e("ant-sider-");a&&a.addSider(h),lt(()=>{Ie(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}if(typeof window<"u"){const{matchMedia:v}=window;if(v&&e.breakpoint&&e.breakpoint in c8){d=v(`(max-width: ${c8[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),Ct(()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}a&&a.removeSider(h)});const m=()=>{c(!l.value,"clickTrigger")};return()=>{var v,y;const b=i.value,{collapsedWidth:$,width:x,reverseArrow:_,zeroWidthTriggerStyle:w,trigger:I=(v=o.trigger)===null||v===void 0?void 0:v.call(o),collapsible:O,theme:P}=e,E=l.value?$:x,R=I0(E)?`${E}px`:String(E),A=parseFloat(String($||0))===0?g("span",{onClick:m,class:me(`${b}-zero-width-trigger`,`${b}-zero-width-trigger-${_?"right":"left"}`),style:w},[I||g(p2e,null,null)]):null,N={expanded:g(_?sa:xs,null,null),collapsed:g(_?xs:sa,null,null)},F=l.value?"collapsed":"expanded",W=N[F],D=I!==null?A||g("div",{class:`${b}-trigger`,onClick:m,style:{width:R}},[I||W]):null,B=[r.style,{flex:`0 0 ${R}`,maxWidth:R,minWidth:R,width:R}],k=me(b,`${b}-${P}`,{[`${b}-collapsed`]:!!l.value,[`${b}-has-trigger`]:O&&I!==null&&!A,[`${b}-below`]:!!s.value,[`${b}-zero-width`]:parseFloat(R)===0},r.class);return g("aside",V(V({},r),{},{class:k,style:B}),[g("div",{class:`${b}-children`},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),O||s.value&&A?D:null])}}}),v2e=Tm,m2e=Em,b2e=Mm,y2e=Am,S2e=S(BC,{Header:Tm,Footer:Em,Content:Am,Sider:Mm,install:e=>(e.component(BC.name,BC),e.component(Tm.name,Tm),e.component(Em.name,Em),e.component(Mm.name,Mm),e.component(Am.name,Am),e)});function C2e(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,s=r.debounceMode,c=s===void 0?void 0:s,u,d=!1,f=0;function h(){u&&clearTimeout(u)}function m(y){var b=y||{},$=b.upcomingOnly,x=$===void 0?!1:$;h(),d=!x}function v(){for(var y=arguments.length,b=new Array(y),$=0;$e?l?(f=Date.now(),i||(u=setTimeout(c?I:w,e))):w():i!==!0&&(u=setTimeout(c?I:w,c===void 0?e-_:e))}return v.cancel=m,v}function $2e(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return C2e(e,t,{debounceMode:i!==!1})}const x2e=new Pt("antSpinMove",{to:{opacity:1}}),w2e=new Pt("antRotate",{to:{transform:"rotate(405deg)"}}),_2e=e=>({[`${e.componentCls}`]:S(S({},vt(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:x2e,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:w2e,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"}})}),O2e=pt("Spin",e=>{const t=nt(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[_2e(t)]},{contentHeight:400});var I2e=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({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Z.any,delay:Number,indicator:Z.any});let Rm=null;function T2e(e,t){return!!e&&!!t&&!isNaN(Number(t))}function E2e(e){const t=e.indicator;Rm=typeof t=="function"?t:()=>g(t,null,null)}const Aa=pe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:bt(P2e(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,size:i,direction:a}=Ve("spin",e),[l,s]=O2e(o),c=ve(e.spinning&&!T2e(e.spinning,e.delay));let u;return Ie([()=>e.spinning,()=>e.delay],()=>{u==null||u.cancel(),u=$2e(e.delay,()=>{c.value=e.spinning}),u==null||u()},{immediate:!0,flush:"post"}),Ct(()=>{u==null||u.cancel()}),()=>{var d,f;const{class:h}=n,m=I2e(n,["class"]),{tip:v=(d=r.tip)===null||d===void 0?void 0:d.call(r)}=e,y=(f=r.default)===null||f===void 0?void 0:f.call(r),b={[s.value]:!0,[o.value]:!0,[`${o.value}-sm`]:i.value==="small",[`${o.value}-lg`]:i.value==="large",[`${o.value}-spinning`]:c.value,[`${o.value}-show-text`]:!!v,[`${o.value}-rtl`]:a.value==="rtl",[h]:!!h};function $(_){const w=`${_}-dot`;let I=lr(r,e,"indicator");return I===null?null:(Array.isArray(I)&&(I=I.length===1?I[0]:I),vr(I)?kr(I,{class:w}):Rm&&vr(Rm())?kr(Rm(),{class:w}):g("span",{class:`${w} ${_}-dot-spin`},[g("i",{class:`${_}-dot-item`},null),g("i",{class:`${_}-dot-item`},null),g("i",{class:`${_}-dot-item`},null),g("i",{class:`${_}-dot-item`},null)]))}const x=g("div",V(V({},m),{},{class:b,"aria-live":"polite","aria-busy":c.value}),[$(o.value),v?g("div",{class:`${o.value}-text`},[v]):null]);if(y&&_n(y).length){const _={[`${o.value}-container`]:!0,[`${o.value}-blur`]:c.value};return l(g("div",{class:[`${o.value}-nested-loading`,e.wrapperClassName,s.value]},[c.value&&g("div",{key:"loading"},[x]),g("div",{class:_,key:"container"},[y])]))}return l(x)}}});Aa.setDefaultIndicator=E2e;Aa.install=function(e){return e.component(Aa.name,Aa),e};var A2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const M2e=A2e;function u8(e){for(var t=1;t{const o=S(S(S({},e),{size:"small"}),n);return g(Cl,o,r)}}}),B2e=pe({name:"MiddleSelect",inheritAttrs:!1,props:Cy(),Option:Cl.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{const o=S(S(S({},e),{size:"middle"}),n);return g(Cl,o,r)}}}),ec=pe({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Z.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:r}=t;const o=()=>{n("click",e.page)},i=a=>{n("keypress",a,o,e.page)};return()=>{const{showTitle:a,page:l,itemRender:s}=e,{class:c,style:u}=r,d=`${e.rootPrefixCls}-item`,f=me(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},c);return g("li",{onClick:o,onKeypress:i,title:a?String(l):null,tabindex:"0",class:f,style:u},[s({page:l,type:"page",originalElement:g("a",{rel:"nofollow"},[l])})])}}}),oc={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},F2e=pe({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Z.any,current:Number,pageSizeOptions:Z.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:Z.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Z.any},setup(e){const t=he(""),n=M(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=s=>`${s.value} ${e.locale.items_per_page}`,o=s=>{const{value:c,composing:u}=s.target;s.isComposing||u||t.value===c||(t.value=c)},i=s=>{const{goButton:c,quickGo:u,rootPrefixCls:d}=e;if(!(c||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else u(n.value),t.value=""},a=s=>{t.value!==""&&(s.keyCode===oc.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},l=M(()=>{const{pageSize:s,pageSizeOptions:c}=e;return c.some(u=>u.toString()===s.toString())?c:c.concat([s.toString()]).sort((u,d)=>{const f=isNaN(Number(u))?0:Number(u),h=isNaN(Number(d))?0:Number(d);return f-h})});return()=>{const{rootPrefixCls:s,locale:c,changeSize:u,quickGo:d,goButton:f,selectComponentClass:h,selectPrefixCls:m,pageSize:v,disabled:y}=e,b=`${s}-options`;let $=null,x=null,_=null;if(!u&&!d)return null;if(u&&h){const w=e.buildOptionText||r,I=l.value.map((O,P)=>g(h.Option,{key:P,value:O},{default:()=>[w({value:O})]}));$=g(h,{disabled:y,prefixCls:m,showSearch:!1,class:`${b}-size-changer`,optionLabelProp:"children",value:(v||l.value[0]).toString(),onChange:O=>u(Number(O)),getPopupContainer:O=>O.parentNode},{default:()=>[I]})}return d&&(f&&(_=typeof f=="boolean"?g("button",{type:"button",onClick:a,onKeyup:a,disabled:y,class:`${b}-quick-jumper-button`},[c.jump_to_confirm]):g("span",{onClick:a,onKeyup:a},[f])),x=g("div",{class:`${b}-quick-jumper`},[c.jump_to,Ln(g("input",{disabled:y,type:"text",value:t.value,onInput:o,onChange:o,onKeyup:a,onBlur:i},null),[[nf]]),c.page,_])),g("li",{class:`${b}`},[$,x])}}}),zH={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var H2e=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"u"?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}const W2e=pe({compatConfig:{MODE:3},name:"Pagination",mixins:[eu],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Z.string.def("rc-pagination"),selectPrefixCls:Z.string.def("rc-select"),current:Number,defaultCurrent:Z.number.def(1),total:Z.number.def(0),pageSize:Number,defaultPageSize:Z.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Z.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Z.oneOfType([Z.looseBool,Z.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Z.arrayOf(Z.oneOfType([Z.number,Z.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Z.object.def(zH),itemRender:Z.func.def(j2e),prevIcon:Z.any,nextIcon:Z.any,jumpPrevIcon:Z.any,jumpNextIcon:Z.any,totalBoundaryShowSizeChanger:Z.number.def(50)},data(){const e=this.$props;let t=w0([this.current,this.defaultCurrent]);const n=w0([this.pageSize,this.defaultPageSize]);return t=Math.min(t,el(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const r=el(e,this.$data,this.$props);n=n>r?r:n,ul(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=el(this.pageSize,this.$data,this.$props);if(ul(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(el(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return FN(this,e,this.$props)||g("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=el(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data;let o;return t===""?o=t:isNaN(Number(t))?o=r:t>=n?o=n:o=Number(t),o},isValid(e){return z2e(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===oc.ARROW_UP||e.keyCode===oc.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===oc.ENTER?this.handleChange(t):e.keyCode===oc.ARROW_UP?this.handleChange(t-1):e.keyCode===oc.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,r=el(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e=="number"&&(ul(this,"pageSize")||this.setState({statePageSize:e}),ul(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const r=el(void 0,this.$data,this.$props);return n>r?n=r:n<1&&(n=1),ul(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o0?b-1:0,B=b+1=W*2&&b!==3&&(O[0]=g(ec,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:J,page:J,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),O.unshift(P)),I-b>=W*2&&b!==I-2&&(O[O.length-1]=g(ec,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:te,page:te,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),O.push(E)),J!==1&&O.unshift(R),te!==I&&O.push(A)}let z=null;s&&(z=g("li",{class:`${e}-total-text`},[s(r,[r===0?0:(b-1)*$+1,b*$>r?r:b*$])]));const K=!k||!I,G=!L||!I,Y=this.buildOptionText||this.$slots.buildOptionText;return g("ul",V(V({unselectable:"on",ref:"paginationNode"},w),{},{class:me({[`${e}`]:!0,[`${e}-disabled`]:t},_)}),[z,g("li",{title:l?o.prev_page:null,onClick:this.prev,tabindex:K?null:0,onKeypress:this.runIfEnterPrev,class:me(`${e}-prev`,{[`${e}-disabled`]:K}),"aria-disabled":K},[this.renderPrev(D)]),O,g("li",{title:l?o.next_page:null,onClick:this.next,tabindex:G?null:0,onKeypress:this.runIfEnterNext,class:me(`${e}-next`,{[`${e}-disabled`]:G}),"aria-disabled":G},[this.renderNext(B)]),g(F2e,{disabled:t,locale:o,rootPrefixCls:e,selectComponentClass:m,selectPrefixCls:v,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:b,pageSize:$,pageSizeOptions:y,buildOptionText:Y||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:F},null)])}}),V2e=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},K2e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:S(S({},PO(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},U2e=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},G2e=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":S({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},yl(e))},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:S({},yl(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:S(S({},ou(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Y2e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:S(S({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Sl(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},X2e=e=>{const{componentCls:t}=e;return{[t]:S(S(S(S(S(S(S(S({},vt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Y2e(e)),G2e(e)),U2e(e)),K2e(e)),V2e(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},q2e=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Z2e=pt("Pagination",e=>{const t=nt(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},iu(e));return[X2e(t),e.wireframe&&q2e(t)]});var Q2e=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({total:Number,defaultCurrent:Number,disabled:De(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:De(),showSizeChanger:De(),pageSizeOptions:kt(),buildOptionText:Oe(),showQuickJumper:ot([Boolean,Object]),showTotal:Oe(),size:Qe(),simple:De(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Oe(),role:String,responsive:Boolean,showLessItems:De(),onChange:Oe(),onShowSizeChange:Oe(),"onUpdate:current":Oe(),"onUpdate:pageSize":Oe()}),e_e=pe({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:J2e(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,configProvider:i,direction:a,size:l}=Ve("pagination",e),[s,c]=Z2e(o),u=M(()=>i.getPrefixCls("select",e.selectPrefixCls)),d=ff(),[f]=Wi("Pagination",qN,st(e,"locale")),h=m=>{const v=g("span",{class:`${m}-item-ellipsis`},[Dr("•••")]),y=g("button",{class:`${m}-item-link`,type:"button",tabindex:-1},[a.value==="rtl"?g(sa,null,null):g(xs,null,null)]),b=g("button",{class:`${m}-item-link`,type:"button",tabindex:-1},[a.value==="rtl"?g(xs,null,null):g(sa,null,null)]),$=g("a",{rel:"nofollow",class:`${m}-item-link`},[g("div",{class:`${m}-item-container`},[a.value==="rtl"?g(p8,{class:`${m}-item-link-icon`},null):g(d8,{class:`${m}-item-link-icon`},null),v])]),x=g("a",{rel:"nofollow",class:`${m}-item-link`},[g("div",{class:`${m}-item-container`},[a.value==="rtl"?g(d8,{class:`${m}-item-link-icon`},null):g(p8,{class:`${m}-item-link-icon`},null),v])]);return{prevIcon:y,nextIcon:b,jumpPrevIcon:$,jumpNextIcon:x}};return()=>{var m;const{itemRender:v=n.itemRender,buildOptionText:y=n.buildOptionText,selectComponentClass:b,responsive:$}=e,x=Q2e(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),_=l.value==="small"||!!(!((m=d.value)===null||m===void 0)&&m.xs&&!l.value&&$),w=S(S(S(S(S({},x),h(o.value)),{prefixCls:o.value,selectPrefixCls:u.value,selectComponentClass:b||(_?k2e:B2e),locale:f.value,buildOptionText:y}),r),{class:me({[`${o.value}-mini`]:_,[`${o.value}-rtl`]:a.value==="rtl"},r.class,c.value),itemRender:v});return s(g(W2e,w,null))}}}),Vy=$n(e_e),t_e=()=>({avatar:Z.any,description:Z.any,prefixCls:String,title:Z.any}),jH=pe({compatConfig:{MODE:3},name:"AListItemMeta",props:t_e(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=Ve("list",e);return()=>{var o,i,a,l,s,c;const u=`${r.value}-item-meta`,d=(o=e.title)!==null&&o!==void 0?o:(i=n.title)===null||i===void 0?void 0:i.call(n),f=(a=e.description)!==null&&a!==void 0?a:(l=n.description)===null||l===void 0?void 0:l.call(n),h=(s=e.avatar)!==null&&s!==void 0?s:(c=n.avatar)===null||c===void 0?void 0:c.call(n),m=g("div",{class:`${r.value}-item-meta-content`},[d&&g("h4",{class:`${r.value}-item-meta-title`},[d]),f&&g("div",{class:`${r.value}-item-meta-description`},[f])]);return g("div",{class:u},[h&&g("div",{class:`${r.value}-item-meta-avatar`},[h]),(d||f)&&m])}}}),WH=Symbol("ListContextKey");var n_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o({prefixCls:String,extra:Z.any,actions:Z.array,grid:Object,colStyle:{type:Object,default:void 0}}),VH=pe({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:jH,props:r_e(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{itemLayout:o,grid:i}=it(WH,{grid:he(),itemLayout:he()}),{prefixCls:a}=Ve("list",e),l=()=>{var c;const u=((c=n.default)===null||c===void 0?void 0:c.call(n))||[];let d;return u.forEach(f=>{Uee(f)&&!Nh(f)&&(d=!0)}),d&&u.length>1},s=()=>{var c,u;const d=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n);return o.value==="vertical"?!!d:!l()};return()=>{var c,u,d,f,h;const{class:m}=r,v=n_e(r,["class"]),y=a.value,b=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n),$=(d=n.default)===null||d===void 0?void 0:d.call(n);let x=(f=e.actions)!==null&&f!==void 0?f:ln((h=n.actions)===null||h===void 0?void 0:h.call(n));x=x&&!Array.isArray(x)?[x]:x;const _=x&&x.length>0&&g("ul",{class:`${y}-item-action`,key:"actions"},[x.map((O,P)=>g("li",{key:`${y}-item-action-${P}`},[O,P!==x.length-1&&g("em",{class:`${y}-item-action-split`},null)]))]),w=i.value?"div":"li",I=g(w,V(V({},v),{},{class:me(`${y}-item`,{[`${y}-item-no-flex`]:!s()},m)}),{default:()=>[o.value==="vertical"&&b?[g("div",{class:`${y}-item-main`,key:"content"},[$,_]),g("div",{class:`${y}-item-extra`,key:"extra"},[b])]:[$,_,Gt(b,{key:"extra"})]]});return i.value?g(Fy,{flex:1,style:e.colStyle},{default:()=>[I]}):I}}}),o_e=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,padding:i,listItemPaddingSM:a,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${r}px`}}}},i_e=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${a}px`}}}}}},a_e=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:f,margin:h,colorText:m,colorTextDescription:v,motionDurationSlow:y,lineWidth:b}=e;return{[`${t}`]:S(S({},vt(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${y}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:v,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:l,[`${t}-item-meta-title`]:{marginBlockEnd:i,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},l_e=pt("List",e=>{const t=nt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[a_e(t),o_e(t),i_e(t)]},{contentWidth:220}),s_e=()=>({bordered:De(),dataSource:kt(),extra:ro(),grid:qe(),itemLayout:String,loading:ot([Boolean,Object]),loadMore:ro(),pagination:ot([Boolean,Object]),prefixCls:String,rowKey:ot([String,Number,Function]),renderItem:Oe(),size:String,split:De(),header:ro(),footer:ro(),locale:qe()}),es=pe({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:VH,props:bt(s_e(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;var o,i;ft(WH,{grid:st(e,"grid"),itemLayout:st(e,"itemLayout")});const a={current:1,total:0},{prefixCls:l,direction:s,renderEmpty:c}=Ve("list",e),[u,d]=l_e(l),f=M(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),h=he((o=f.value.defaultCurrent)!==null&&o!==void 0?o:1),m=he((i=f.value.defaultPageSize)!==null&&i!==void 0?i:10);Ie(f,()=>{"current"in f.value&&(h.value=f.value.current),"pageSize"in f.value&&(m.value=f.value.pageSize)});const v=[],y=F=>(W,D)=>{h.value=W,m.value=D,f.value[F]&&f.value[F](W,D)},b=y("onChange"),$=y("onShowSizeChange"),x=M(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),_=M(()=>x.value&&x.value.spinning),w=M(()=>{let F="";switch(e.size){case"large":F="lg";break;case"small":F="sm";break}return F}),I=M(()=>({[`${l.value}`]:!0,[`${l.value}-vertical`]:e.itemLayout==="vertical",[`${l.value}-${w.value}`]:w.value,[`${l.value}-split`]:e.split,[`${l.value}-bordered`]:e.bordered,[`${l.value}-loading`]:_.value,[`${l.value}-grid`]:!!e.grid,[`${l.value}-rtl`]:s.value==="rtl"})),O=M(()=>{const F=S(S(S({},a),{total:e.dataSource.length,current:h.value,pageSize:m.value}),e.pagination||{}),W=Math.ceil(F.total/F.pageSize);return F.current>W&&(F.current=W),F}),P=M(()=>{let F=[...e.dataSource];return e.pagination&&e.dataSource.length>(O.value.current-1)*O.value.pageSize&&(F=[...e.dataSource].splice((O.value.current-1)*O.value.pageSize,O.value.pageSize)),F}),E=ff(),R=ai(()=>{for(let F=0;F{if(!e.grid)return;const F=R.value&&e.grid[R.value]?e.grid[R.value]:e.grid.column;if(F)return{width:`${100/F}%`,maxWidth:`${100/F}%`}}),N=(F,W)=>{var D;const B=(D=e.renderItem)!==null&&D!==void 0?D:n.renderItem;if(!B)return null;let k;const L=typeof e.rowKey;return L==="function"?k=e.rowKey(F):L==="string"||L==="number"?k=F[e.rowKey]:k=F.key,k||(k=`list-item-${W}`),v[W]=k,B({item:F,index:W})};return()=>{var F,W,D,B,k,L,z,K;const G=(F=e.loadMore)!==null&&F!==void 0?F:(W=n.loadMore)===null||W===void 0?void 0:W.call(n),Y=(D=e.footer)!==null&&D!==void 0?D:(B=n.footer)===null||B===void 0?void 0:B.call(n),ne=(k=e.header)!==null&&k!==void 0?k:(L=n.header)===null||L===void 0?void 0:L.call(n),oe=ln((z=n.default)===null||z===void 0?void 0:z.call(n)),J=!!(G||e.pagination||Y),te=me(S(S({},I.value),{[`${l.value}-something-after-last-item`]:J}),r.class,d.value),ee=e.pagination?g("div",{class:`${l.value}-pagination`},[g(Vy,V(V({},O.value),{},{onChange:b,onShowSizeChange:$}),null)]):null;let fe=_.value&&g("div",{style:{minHeight:"53px"}},null);if(P.value.length>0){v.length=0;const X=P.value.map((ye,H)=>N(ye,H)),ue=X.map((ye,H)=>g("div",{key:v[H],style:A.value},[ye]));fe=e.grid?g(WO,{gutter:e.grid.gutter},{default:()=>[ue]}):g("ul",{class:`${l.value}-items`},[X])}else!oe.length&&!_.value&&(fe=g("div",{class:`${l.value}-empty-text`},[((K=e.locale)===null||K===void 0?void 0:K.emptyText)||c("List")]));const ie=O.value.position||"bottom";return u(g("div",V(V({},r),{},{class:te}),[(ie==="top"||ie==="both")&&ee,ne&&g("div",{class:`${l.value}-header`},[ne]),g(Aa,x.value,{default:()=>[fe,oe]}),Y&&g("div",{class:`${l.value}-footer`},[Y]),G||(ie==="bottom"||ie==="both")&&ee]))}}});es.install=function(e){return e.component(es.name,es),e.component(es.Item.name,es.Item),e.component(es.Item.Meta.name,es.Item.Meta),e};const c_e=es;function u_e(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function d_e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((r,o)=>{const i=e.lastIndexOf(o);return i>r.location?{location:i,prefix:o}:r},{location:-1,prefix:""})}function h8(e){return(e||"").toLowerCase()}function f_e(e,t,n){const r=e[0];if(!r||r===n)return e;let o=e;const i=t.length;for(let a=0;a[]}},setup(e,t){let{slots:n}=t;const{activeIndex:r,setActiveIndex:o,selectOption:i,onFocus:a=b_e,loading:l}=it(KH,{activeIndex:ve(),loading:ve(!1)});let s;const c=u=>{clearTimeout(s),s=setTimeout(()=>{a(u)})};return Ct(()=>{clearTimeout(s)}),()=>{var u;const{prefixCls:d,options:f}=e,h=f[r.value]||{};return g(qn,{prefixCls:`${d}-menu`,activeKey:h.value,onSelect:m=>{let{key:v}=m;const y=f.find(b=>{let{value:$}=b;return $===v});i(y)},onMousedown:c},{default:()=>[!l.value&&f.map((m,v)=>{var y,b;const{value:$,disabled:x,label:_=m.value,class:w,style:I}=m;return g(Ea,{key:$,disabled:x,onMouseenter:()=>{o(v)},class:w,style:I},{default:()=>[(b=(y=n.option)===null||y===void 0?void 0:y.call(n,m))!==null&&b!==void 0?b:typeof _=="function"?_(m):_]})}),!l.value&&f.length===0?g(Ea,{key:"notFoundContent",disabled:!0},{default:()=>[(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)]}):null,l.value&&g(Ea,{key:"loading",disabled:!0},{default:()=>[g(Aa,{size:"small"},null)]})]})}}}),S_e={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},C_e=pe({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const r=()=>`${e.prefixCls}-dropdown`,o=()=>{const{options:a}=e;return g(y_e,{prefixCls:r(),options:a},{notFoundContent:n.notFoundContent,option:n.option})},i=M(()=>{const{placement:a,direction:l}=e;let s="topRight";return l==="rtl"?s=a==="top"?"topLeft":"bottomLeft":s=a==="top"?"topRight":"bottomRight",s});return()=>{const{visible:a,transitionName:l,getPopupContainer:s}=e;return g(tu,{prefixCls:r(),popupVisible:a,popup:o(),popupClassName:e.dropdownClassName,popupPlacement:i.value,popupTransitionName:l,builtinPlacements:S_e,getPopupContainer:s},{default:n.default})}}}),$_e=Ur("top","bottom"),UH={autofocus:{type:Boolean,default:void 0},prefix:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:Z.oneOf($_e),character:Z.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:kt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},GH=S(S({},UH),{dropdownClassName:String}),YH={prefix:"@",split:" ",rows:1,validateSearch:g_e,filterOption:()=>v_e};bt(GH,YH);var g8=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{c.value=e.value});const u=A=>{n("change",A)},d=A=>{let{target:{value:N,composing:F},isComposing:W}=A;W||F||u(N)},f=(A,N,F)=>{S(c,{measuring:!0,measureText:A,measurePrefix:N,measureLocation:F,activeIndex:0})},h=A=>{S(c,{measuring:!1,measureLocation:0,measureText:null}),A==null||A()},m=A=>{const{which:N}=A;if(c.measuring){if(N===Fe.UP||N===Fe.DOWN){const F=P.value.length,W=N===Fe.UP?-1:1,D=(c.activeIndex+W+F)%F;c.activeIndex=D,A.preventDefault()}else if(N===Fe.ESC)h();else if(N===Fe.ENTER){if(A.preventDefault(),!P.value.length){h();return}const F=P.value[c.activeIndex];w(F)}}},v=A=>{const{key:N,which:F}=A,{measureText:W,measuring:D}=c,{prefix:B,validateSearch:k}=e,L=A.target;if(L.composing)return;const z=u_e(L),{location:K,prefix:G}=d_e(z,B);if([Fe.ESC,Fe.UP,Fe.DOWN,Fe.ENTER].indexOf(F)===-1)if(K!==-1){const Y=z.slice(K+G.length),ne=k(Y,e),oe=!!O(Y).length;ne?(N===G||N==="Shift"||D||Y!==W&&oe)&&f(Y,G,K):D&&h(),ne&&n("search",Y,G)}else D&&h()},y=A=>{c.measuring||n("pressenter",A)},b=A=>{x(A)},$=A=>{_(A)},x=A=>{clearTimeout(s.value);const{isFocus:N}=c;!N&&A&&n("focus",A),c.isFocus=!0},_=A=>{s.value=setTimeout(()=>{c.isFocus=!1,h(),n("blur",A)},100)},w=A=>{const{split:N}=e,{value:F=""}=A,{text:W,selectionLocation:D}=p_e(c.value,{measureLocation:c.measureLocation,targetText:F,prefix:c.measurePrefix,selectionStart:l.value.selectionStart,split:N});u(W),h(()=>{h_e(l.value,D)}),n("select",A,c.measurePrefix)},I=A=>{c.activeIndex=A},O=A=>{const N=A||c.measureText||"",{filterOption:F}=e;return e.options.filter(D=>F?F(N,D):!0)},P=M(()=>O());return o({blur:()=>{l.value.blur()},focus:()=>{l.value.focus()}}),ft(KH,{activeIndex:st(c,"activeIndex"),setActiveIndex:I,selectOption:w,onFocus:x,onBlur:_,loading:st(e,"loading")}),fo(()=>{_t(()=>{c.measuring&&(a.value.scrollTop=l.value.scrollTop)})}),()=>{const{measureLocation:A,measurePrefix:N,measuring:F}=c,{prefixCls:W,placement:D,transitionName:B,getPopupContainer:k,direction:L}=e,z=g8(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:K,style:G}=r,Y=g8(r,["class","style"]),ne=Ot(z,["value","prefix","split","validateSearch","filterOption","options","loading"]),oe=S(S(S({},ne),Y),{onChange:v8,onSelect:v8,value:c.value,onInput:d,onBlur:$,onKeydown:m,onKeyup:v,onFocus:b,onPressenter:y});return g("div",{class:me(W,K),style:G},[Ln(g("textarea",V({ref:l},oe),null),[[nf]]),F&&g("div",{ref:a,class:`${W}-measure`},[c.value.slice(0,A),g(C_e,{prefixCls:W,transitionName:B,dropdownClassName:e.dropdownClassName,placement:D,options:F?P.value:[],visible:!0,direction:L,getPopupContainer:k},{default:()=>[g("span",null,[N])],notFoundContent:i.notFoundContent,option:i.option}),c.value.slice(A+N.length)])])}}}),w_e={value:String,disabled:Boolean,payload:qe()},XH=S(S({},w_e),{label:cn([])}),qH={name:"Option",props:XH,render(e,t){let{slots:n}=t;var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}};S({compatConfig:{MODE:3}},qH);const __e=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:o,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:f,borderRadiusLG:h,boxShadowSecondary:m}=e,v=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:S(S(S(S(S({},vt(e)),ou(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Xh(e,t)),{"&-disabled":{"> textarea":S({},IO(e))},"&-focused":S({},$s(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":S({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},OO(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":S(S({},vt(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:h,outline:"none",boxShadow:m,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":S(S({},er),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${v}px ${o}px`,color:i,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},O_e=pt("Mentions",e=>{const t=iu(e);return[__e(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var m8=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);o0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,o=Array.isArray(n)?n:[n];return e.split(r).map(function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=null;return o.some(l=>i.slice(0,l.length)===l?(a=l,!0):!1),a!==null?{prefix:a,value:i.slice(a.length)}:null}).filter(i=>!!i&&!!i.value)},T_e=()=>S(S({},UH),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:Z.any,defaultValue:String,id:String,status:String}),FC=pe({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:T_e(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o,expose:i}=t;var a,l;const{prefixCls:s,renderEmpty:c,direction:u}=Ve("mentions",e),[d,f]=O_e(s),h=ve(!1),m=ve(null),v=ve((l=(a=e.value)!==null&&a!==void 0?a:e.defaultValue)!==null&&l!==void 0?l:""),y=cr(),b=Tr.useInject(),$=M(()=>da(b.status,e.status));tO({prefixCls:M(()=>`${s.value}-menu`),mode:M(()=>"vertical"),selectable:M(()=>!1),onClick:()=>{},validator:N=>{Sn()}}),Ie(()=>e.value,N=>{v.value=N});const x=N=>{h.value=!0,r("focus",N)},_=N=>{h.value=!1,r("blur",N),y.onFieldBlur()},w=function(){for(var N=arguments.length,F=new Array(N),W=0;W{e.value===void 0&&(v.value=N),r("update:value",N),r("change",N),y.onFieldChange()},O=()=>{const N=e.notFoundContent;return N!==void 0?N:n.notFoundContent?n.notFoundContent():c("Select")},P=()=>{var N;return ln(((N=n.default)===null||N===void 0?void 0:N.call(n))||[]).map(F=>{var W,D;return S(S({},BN(F)),{label:(D=(W=F.children)===null||W===void 0?void 0:W.default)===null||D===void 0?void 0:D.call(W)})})};i({focus:()=>{m.value.focus()},blur:()=>{m.value.blur()}});const A=M(()=>e.loading?I_e:e.filterOption);return()=>{const{disabled:N,getPopupContainer:F,rows:W=1,id:D=y.id.value}=e,B=m8(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:k,feedbackIcon:L}=b,{class:z}=o,K=m8(o,["class"]),G=Ot(B,["defaultValue","onUpdate:value","prefixCls"]),Y=me({[`${s.value}-disabled`]:N,[`${s.value}-focused`]:h.value,[`${s.value}-rtl`]:u.value==="rtl"},lo(s.value,$.value),!k&&z,f.value),ne=S(S(S(S({prefixCls:s.value},G),{disabled:N,direction:u.value,filterOption:A.value,getPopupContainer:F,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:g(Aa,{size:"small"},null)}]:e.options||P(),class:Y}),K),{rows:W,onChange:I,onSelect:w,onFocus:x,onBlur:_,ref:m,value:v.value,id:D}),oe=g(x_e,V(V({},ne),{},{dropdownClassName:f.value}),{notFoundContent:O,option:n.option});return d(k?g("div",{class:me(`${s.value}-affix-wrapper`,lo(`${s.value}-affix-wrapper`,$.value,k),z,f.value)},[oe,g("span",{class:`${s.value}-suffix`},[L])]):oe)}}}),Dm=pe(S(S({compatConfig:{MODE:3}},qH),{name:"AMentionsOption",props:XH})),E_e=S(FC,{Option:Dm,getMentions:P_e,install:e=>(e.component(FC.name,FC),e.component(Dm.name,Dm),e)});var A_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{ew={x:e.pageX,y:e.pageY},setTimeout(()=>ew=null,100)};vF()&&wn(document.documentElement,"click",M_e,!0);const R_e=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Z.any,closable:{type:Boolean,default:void 0},closeIcon:Z.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Z.any,okText:Z.any,okType:String,cancelText:Z.any,icon:Z.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:qe(),cancelButtonProps:qe(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:qe(),maskStyle:qe(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:qe()}),xr=pe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:bt(R_e(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const[i]=Wi("Modal"),{prefixCls:a,rootPrefixCls:l,direction:s,getPopupContainer:c}=Ve("modal",e),[u,d]=Mwe(a);Sn(e.visible===void 0);const f=v=>{n("update:visible",!1),n("update:open",!1),n("cancel",v),n("change",!1)},h=v=>{n("ok",v)},m=()=>{var v,y;const{okText:b=(v=r.okText)===null||v===void 0?void 0:v.call(r),okType:$,cancelText:x=(y=r.cancelText)===null||y===void 0?void 0:y.call(r),confirmLoading:_}=e;return g(Je,null,[g(Un,V({onClick:f},e.cancelButtonProps),{default:()=>[x||i.value.cancelText]}),g(Un,V(V({},P0($)),{},{loading:_,onClick:h},e.okButtonProps),{default:()=>[b||i.value.okText]})])};return()=>{var v,y;const{prefixCls:b,visible:$,open:x,wrapClassName:_,centered:w,getContainer:I,closeIcon:O=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),focusTriggerAfterClose:P=!0}=e,E=A_e(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),R=me(_,{[`${a.value}-centered`]:!!w,[`${a.value}-wrap-rtl`]:s.value==="rtl"});return u(g(TH,V(V(V({},E),o),{},{rootClassName:d.value,class:me(d.value,o.class),getContainer:I||(c==null?void 0:c.value),prefixCls:a.value,wrapClassName:R,visible:x??$,onClose:f,focusTriggerAfterClose:P,transitionName:uo(l.value,"zoom",e.transitionName),maskTransitionName:uo(l.value,"fade",e.maskTransitionName),mousePosition:(y=E.mousePosition)!==null&&y!==void 0?y:ew}),S(S({},r),{footer:r.footer||m,closeIcon:()=>g("span",{class:`${a.value}-close-x`},[O||g(Vo,{class:`${a.value}-close-icon`},null)])})))}}}),ZH=()=>{const e=ve(!1);return Ct(()=>{e.value=!0}),e},D_e={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:qe(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function b8(e){return!!(e&&e.then)}const tw=pe({compatConfig:{MODE:3},name:"ActionButton",props:D_e,setup(e,t){let{slots:n}=t;const r=ve(!1),o=ve(),i=ve(!1);let a;const l=ZH();lt(()=>{e.autofocus&&(a=setTimeout(()=>{var d,f;return(f=(d=No(o.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),Ct(()=>{clearTimeout(a)});const s=function(){for(var d,f=arguments.length,h=new Array(f),m=0;m{b8(d)&&(i.value=!0,d.then(function(){l.value||(i.value=!1),s(...arguments),r.value=!1},f=>(l.value||(i.value=!1),r.value=!1,Promise.reject(f))))},u=d=>{const{actionFn:f}=e;if(r.value)return;if(r.value=!0,!f){s();return}let h;if(e.emitEvent){if(h=f(d),e.quitOnNullishReturnValue&&!b8(h)){r.value=!1,s(d);return}}else if(f.length)h=f(e.close),r.value=!1;else if(h=f(),!h){s();return}c(h)};return()=>{const{type:d,prefixCls:f,buttonProps:h}=e;return g(Un,V(V(V({},P0(d)),{},{onClick:u,loading:i.value,prefixCls:f},h),{},{ref:o}),n)}}});function Ru(e){return typeof e=="function"?e():e}const QH=pe({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[r]=Wi("Modal");return()=>{const{icon:o,onCancel:i,onOk:a,close:l,okText:s,closable:c=!1,zIndex:u,afterClose:d,keyboard:f,centered:h,getContainer:m,maskStyle:v,okButtonProps:y,cancelButtonProps:b,okCancel:$,width:x=416,mask:_=!0,maskClosable:w=!1,type:I,open:O,title:P,content:E,direction:R,closeIcon:A,modalRender:N,focusTriggerAfterClose:F,rootPrefixCls:W,bodyStyle:D,wrapClassName:B,footer:k}=e;let L=o;if(!o&&o!==null)switch(I){case"info":L=g(df,null,null);break;case"success":L=g(Tl,null,null);break;case"error":L=g(Ko,null,null);break;default:L=g(El,null,null)}const z=e.okType||"primary",K=e.prefixCls||"ant-modal",G=`${K}-confirm`,Y=n.style||{},ne=$??I==="confirm",oe=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",J=`${K}-confirm`,te=me(J,`${J}-${e.type}`,{[`${J}-rtl`]:R==="rtl"},n.class),ee=r.value,fe=ne&&g(tw,{actionFn:i,close:l,autofocus:oe==="cancel",buttonProps:b,prefixCls:`${W}-btn`},{default:()=>[Ru(e.cancelText)||ee.cancelText]});return g(xr,{prefixCls:K,class:te,wrapClassName:me({[`${J}-centered`]:!!h},B),onCancel:ie=>l==null?void 0:l({triggerCancel:!0},ie),open:O,title:"",footer:"",transitionName:uo(W,"zoom",e.transitionName),maskTransitionName:uo(W,"fade",e.maskTransitionName),mask:_,maskClosable:w,maskStyle:v,style:Y,bodyStyle:D,width:x,zIndex:u,afterClose:d,keyboard:f,centered:h,getContainer:m,closable:c,closeIcon:A,modalRender:N,focusTriggerAfterClose:F},{default:()=>[g("div",{class:`${G}-body-wrapper`},[g("div",{class:`${G}-body`},[Ru(L),P===void 0?null:g("span",{class:`${G}-title`},[Ru(P)]),g("div",{class:`${G}-content`},[Ru(E)])]),k!==void 0?Ru(k):g("div",{class:`${G}-btns`},[fe,g(tw,{type:z,actionFn:a,close:l,autofocus:oe==="ok",buttonProps:y,prefixCls:`${W}-btn`},{default:()=>[Ru(s)||(ne?ee.okText:ee.justOkText)]})])])]})}}}),mc=[],eg=e=>{const t=document.createDocumentFragment();let n=S(S({},Ot(e,["parentContext","appContext"])),{close:i,open:!0}),r=null;function o(){r&&(Pc(null,t),r=null);for(var c=arguments.length,u=new Array(c),d=0;dh&&h.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...u.slice(1));for(let h=0;h{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),n.visible&&delete n.visible,a(n)}function a(c){typeof c=="function"?n=c(n):n=S(S({},n),c),r&&Ioe(r,n,t)}const l=c=>{const u=jr,d=u.prefixCls,f=c.prefixCls||`${d}-modal`,h=u.iconPrefixCls,m=QSe();return g(ZO,V(V({},u),{},{prefixCls:d}),{default:()=>[g(QH,V(V({},c),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:h,locale:m,cancelText:c.cancelText||m.cancelText}),null)]})};function s(c){const u=g(l,S({},c));return u.appContext=e.parentContext||e.appContext||u.appContext,Pc(u,t),u}return r=s(n),mc.push(i),{destroy:i,update:a}};function JH(e){return S(S({},e),{type:"warning"})}function ez(e){return S(S({},e),{type:"info"})}function tz(e){return S(S({},e),{type:"success"})}function nz(e){return S(S({},e),{type:"error"})}function rz(e){return S(S({},e),{type:"confirm"})}const L_e=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),N_e=pe({name:"HookModal",inheritAttrs:!1,props:bt(L_e(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var r;const o=M(()=>e.open),i=M(()=>e.config),{direction:a,getPrefixCls:l}=Fb(),s=l("modal"),c=l(),u=()=>{var m,v;e==null||e.afterClose(),(v=(m=i.value).afterClose)===null||v===void 0||v.call(m)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(r=i.value.okCancel)!==null&&r!==void 0?r:i.value.type==="confirm",[h]=Wi("Modal",so.Modal);return()=>g(QH,V(V({prefixCls:s,rootPrefixCls:c},i.value),{},{close:d,open:o.value,afterClose:u,okText:i.value.okText||(f?h==null?void 0:h.value.okText:h==null?void 0:h.value.justOkText),direction:i.value.direction||a.value,cancelText:i.value.cancelText||(h==null?void 0:h.value.cancelText)}),null)}});let y8=0;const k_e=pe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const r=ve([]);return n({addModal:i=>(r.value.push(i),r.value=r.value.slice(),()=>{r.value=r.value.filter(a=>a!==i)})}),()=>r.value.map(i=>i())}});function oz(){const e=ve(null),t=ve([]);Ie(t,()=>{t.value.length&&([...t.value].forEach(a=>{a()}),t.value=[])},{immediate:!0});const n=i=>function(l){var s;y8+=1;const c=ve(!0),u=ve(null),d=ve(wt(l)),f=ve({});Ie(()=>l,x=>{y(S(S({},Wn(x)?x.value:x),f.value))});const h=function(){c.value=!1;for(var x=arguments.length,_=new Array(x),w=0;wO&&O.triggerCancel);d.value.onCancel&&I&&d.value.onCancel(()=>{},..._.slice(1))};let m;const v=()=>g(N_e,{key:`modal-${y8}`,config:i(d.value),ref:u,open:c.value,destroyAction:h,afterClose:()=>{m==null||m()}},null);m=(s=e.value)===null||s===void 0?void 0:s.addModal(v),m&&mc.push(m);const y=x=>{d.value=S(S({},d.value),x)};return{destroy:()=>{u.value?h():t.value=[...t.value,h]},update:x=>{f.value=x,u.value?y(x):t.value=[...t.value,()=>y(x)]}}},r=M(()=>({info:n(ez),success:n(tz),error:n(nz),warning:n(JH),confirm:n(rz)})),o=Symbol("modalHolderKey");return[r.value,()=>g(k_e,{key:o,ref:e},null)]}function iz(e){return eg(JH(e))}xr.useModal=oz;xr.info=function(t){return eg(ez(t))};xr.success=function(t){return eg(tz(t))};xr.error=function(t){return eg(nz(t))};xr.warning=iz;xr.warn=iz;xr.confirm=function(t){return eg(rz(t))};xr.destroyAll=function(){for(;mc.length;){const t=mc.pop();t&&t()}};xr.install=function(e){return e.component(xr.name,xr),e};const az=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:i="",prefixCls:a}=e;let l;if(typeof n=="function")l=n({value:t});else{const s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c)l=s;else{const u=c[1];let d=c[2]||"0",f=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(f=f.padEnd(r,"0").slice(0,r>0?r:0)),f&&(f=`${o}${f}`),l=[g("span",{key:"int",class:`${a}-content-value-int`},[u,d]),f&&g("span",{key:"decimal",class:`${a}-content-value-decimal`},[f])]}}return g("span",{class:`${a}-content-value`},[l])};az.displayName="StatisticNumber";const B_e=az,F_e=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,statisticTitleFontSize:i,colorTextHeading:a,statisticContentFontSize:l,statisticFontFamily:s}=e;return{[`${t}`]:S(S({},vt(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},H_e=pt("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:r}=e,o=nt(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:r});return[F_e(o)]}),lz=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:ot([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:Oe(),formatter:cn(),precision:Number,prefix:ro(),suffix:ro(),title:ro(),loading:De()}),dl=pe({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:bt(lz(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("statistic",e),[a,l]=H_e(o);return()=>{var s,c,u,d,f,h,m;const{value:v=0,valueStyle:y,valueRender:b}=e,$=o.value,x=(s=e.title)!==null&&s!==void 0?s:(c=n.title)===null||c===void 0?void 0:c.call(n),_=(u=e.prefix)!==null&&u!==void 0?u:(d=n.prefix)===null||d===void 0?void 0:d.call(n),w=(f=e.suffix)!==null&&f!==void 0?f:(h=n.suffix)===null||h===void 0?void 0:h.call(n),I=(m=e.formatter)!==null&&m!==void 0?m:n.formatter;let O=g(B_e,V({"data-for-update":Date.now()},S(S({},e),{prefixCls:$,value:v,formatter:I})),null);return b&&(O=b(O)),a(g("div",V(V({},r),{},{class:[$,{[`${$}-rtl`]:i.value==="rtl"},r.class,l.value]}),[x&&g("div",{class:`${$}-title`},[x]),g(no,{paragraph:!1,loading:e.loading},{default:()=>[g("div",{style:y,class:`${$}-content`},[_&&g("span",{class:`${$}-content-prefix`},[_]),O,w&&g("span",{class:`${$}-content-suffix`},[w])])]})]))}}}),z_e=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function j_e(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(s=>s.slice(1,-1)),i=t.replace(r,"[]"),a=z_e.reduce((s,c)=>{let[u,d]=c;if(s.includes(u)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${u}+`,"g"),h=>{const m=h.length;return f.toString().padStart(m,"0")})}return s},i);let l=0;return a.replace(r,()=>{const s=o[l];return l+=1,s})}function W_e(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now(),i=Math.max(r-o,0);return j_e(i,n)}const V_e=1e3/30;function HC(e){return new Date(e).getTime()}const K_e=()=>S(S({},lz()),{value:ot([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),U_e=pe({compatConfig:{MODE:3},name:"AStatisticCountdown",props:bt(K_e(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:r}=t;const o=he(),i=he(),a=()=>{const{value:d}=e;HC(d)>=Date.now()?l():s()},l=()=>{if(o.value)return;const d=HC(e.value);o.value=setInterval(()=>{i.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),a()},V_e)},s=()=>{const{value:d}=e;o.value&&(clearInterval(o.value),o.value=void 0,HC(d){let{value:f,config:h}=d;const{format:m}=e;return W_e(f,S(S({},h),{format:m}))},u=d=>d;return lt(()=>{a()}),fo(()=>{a()}),Ct(()=>{s()}),()=>{const d=e.value;return g(dl,V({ref:i},S(S({},Ot(e,["onFinish","onChange"])),{value:d,valueRender:u,formatter:c})),r)}}});dl.Countdown=U_e;dl.install=function(e){return e.component(dl.name,dl),e.component(dl.Countdown.name,dl.Countdown),e};const G_e=dl.Countdown;var Y_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const X_e=Y_e;function S8(e){for(var t=1;t{const{keyCode:h}=f;h===Fe.ENTER&&f.preventDefault()},s=f=>{const{keyCode:h}=f;h===Fe.ENTER&&r("click",f)},c=f=>{r("click",f)},u=()=>{a.value&&a.value.focus()},d=()=>{a.value&&a.value.blur()};return lt(()=>{e.autofocus&&u()}),i({focus:u,blur:d}),()=>{var f;const{noStyle:h,disabled:m}=e,v=nOe(e,["noStyle","disabled"]);let y={};return h||(y=S({},rOe)),m&&(y.pointerEvents="none"),g("div",V(V(V({role:"button",tabindex:0,ref:a},v),o),{},{onClick:c,onKeydown:l,onKeyup:s,style:S(S({},y),o.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),Y0=oOe,iOe={small:8,middle:16,large:24},aOe=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:Z.oneOf(Ur("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Ur("start","end","center","baseline")),wrap:De()});function lOe(e){return typeof e=="string"?iOe[e]:e||0}const Rp=pe({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:aOe(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,space:i,direction:a}=Ve("space",e),[l,s]=zk(o),c=bF(),u=M(()=>{var b,$,x;return(x=(b=e.size)!==null&&b!==void 0?b:($=i==null?void 0:i.value)===null||$===void 0?void 0:$.size)!==null&&x!==void 0?x:"small"}),d=he(),f=he();Ie(u,()=>{[d.value,f.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(b=>lOe(b))},{immediate:!0});const h=M(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),m=M(()=>me(o.value,s.value,`${o.value}-${e.direction}`,{[`${o.value}-rtl`]:a.value==="rtl",[`${o.value}-align-${h.value}`]:h.value})),v=M(()=>a.value==="rtl"?"marginLeft":"marginRight"),y=M(()=>{const b={};return c.value&&(b.columnGap=`${d.value}px`,b.rowGap=`${f.value}px`),S(S({},b),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var b,$;const{wrap:x,direction:_="horizontal"}=e,w=(b=n.default)===null||b===void 0?void 0:b.call(n),I=_n(w),O=I.length;if(O===0)return null;const P=($=n.split)===null||$===void 0?void 0:$.call(n),E=`${o.value}-item`,R=d.value,A=O-1;return g("div",V(V({},r),{},{class:[m.value,r.class],style:[y.value,r.style]}),[I.map((N,F)=>{let W=w.indexOf(N);W===-1&&(W=`$$space-${F}`);let D={};return c.value||(_==="vertical"?F{const{componentCls:t,antCls:n}=e;return{[t]:S(S({},vt(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":S(S({},Kb(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},"&-title":S({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},er),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":S({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},er),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},cOe=pt("PageHeader",e=>{const t=nt(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[sOe(t)]}),uOe=()=>({backIcon:ro(),prefixCls:String,title:ro(),subTitle:ro(),breadcrumb:Z.object,tags:ro(),footer:ro(),extra:ro(),avatar:qe(),ghost:{type:Boolean,default:void 0},onBack:Function}),dOe=pe({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:uOe(),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:i,direction:a,pageHeader:l}=Ve("page-header",e),[s,c]=cOe(i),u=ve(!1),d=ZH(),f=_=>{let{width:w}=_;d.value||(u.value=w<768)},h=M(()=>{var _,w,I;return(I=(_=e.ghost)!==null&&_!==void 0?_:(w=l==null?void 0:l.value)===null||w===void 0?void 0:w.ghost)!==null&&I!==void 0?I:!0}),m=()=>{var _,w,I;return(I=(_=e.backIcon)!==null&&_!==void 0?_:(w=r.backIcon)===null||w===void 0?void 0:w.call(r))!==null&&I!==void 0?I:a.value==="rtl"?g(tOe,null,null):g(Z_e,null,null)},v=_=>!_||!e.onBack?null:g(Yc,{componentName:"PageHeader",children:w=>{let{back:I}=w;return g("div",{class:`${i.value}-back`},[g(Y0,{onClick:O=>{n("back",O)},class:`${i.value}-back-button`,"aria-label":I},{default:()=>[_]})])}},null),y=()=>{var _;return e.breadcrumb?g(xc,e.breadcrumb,null):(_=r.breadcrumb)===null||_===void 0?void 0:_.call(r)},b=()=>{var _,w,I,O,P,E,R,A,N;const{avatar:F}=e,W=(_=e.title)!==null&&_!==void 0?_:(w=r.title)===null||w===void 0?void 0:w.call(r),D=(I=e.subTitle)!==null&&I!==void 0?I:(O=r.subTitle)===null||O===void 0?void 0:O.call(r),B=(P=e.tags)!==null&&P!==void 0?P:(E=r.tags)===null||E===void 0?void 0:E.call(r),k=(R=e.extra)!==null&&R!==void 0?R:(A=r.extra)===null||A===void 0?void 0:A.call(r),L=`${i.value}-heading`,z=W||D||B||k;if(!z)return null;const K=m(),G=v(K);return g("div",{class:L},[(G||F||z)&&g("div",{class:`${L}-left`},[G,F?g($c,F,null):(N=r.avatar)===null||N===void 0?void 0:N.call(r),W&&g("span",{class:`${L}-title`,title:typeof W=="string"?W:void 0},[W]),D&&g("span",{class:`${L}-sub-title`,title:typeof D=="string"?D:void 0},[D]),B&&g("span",{class:`${L}-tags`},[B])]),k&&g("span",{class:`${L}-extra`},[g(sz,null,{default:()=>[k]})])])},$=()=>{var _,w;const I=(_=e.footer)!==null&&_!==void 0?_:_n((w=r.footer)===null||w===void 0?void 0:w.call(r));return Kee(I)?null:g("div",{class:`${i.value}-footer`},[I])},x=_=>g("div",{class:`${i.value}-content`},[_]);return()=>{var _,w;const I=((_=e.breadcrumb)===null||_===void 0?void 0:_.routes)||r.breadcrumb,O=e.footer||r.footer,P=ln((w=r.default)===null||w===void 0?void 0:w.call(r)),E=me(i.value,{"has-breadcrumb":I,"has-footer":O,[`${i.value}-ghost`]:h.value,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-compact`]:u.value},o.class,c.value);return s(g(ki,{onResize:f},{default:()=>[g("div",V(V({},o),{},{class:E}),[y(),b(),P.length?x(P):null,$()])]}))}}}),fOe=$n(dOe),pOe=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXS:a,fontSize:l,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:r,[`${t}-inner-content`]:{color:o},[`${t}-message`]:{position:"relative",marginBottom:a,color:o,fontSize:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:l,flex:"none",lineHeight:1,paddingTop:(Math.round(l*c)-l)/2},"&-title":{flex:"auto",marginInlineStart:a},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:l+a,marginBottom:a,color:o,fontSize:l},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:a}}}}},hOe=pt("Popconfirm",e=>pOe(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var gOe=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);oS(S({},V_()),{prefixCls:String,content:cn(),title:cn(),description:cn(),okType:Qe("primary"),disabled:{type:Boolean,default:!1},okText:cn(),cancelText:cn(),icon:cn(),okButtonProps:qe(),cancelButtonProps:qe(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),mOe=pe({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:bt(vOe(),S(S({},O9()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:r,expose:o,attrs:i}=t;const a=he();Sn(e.visible===void 0),o({getPopupDomNode:()=>{var I,O;return(O=(I=a.value)===null||I===void 0?void 0:I.getPopupDomNode)===null||O===void 0?void 0:O.call(I)}});const[l,s]=yn(!1,{value:st(e,"open")}),c=(I,O)=>{e.open===void 0&&s(I),r("update:open",I),r("openChange",I,O)},u=I=>{c(!1,I)},d=I=>{var O;return(O=e.onConfirm)===null||O===void 0?void 0:O.call(e,I)},f=I=>{var O;c(!1,I),(O=e.onCancel)===null||O===void 0||O.call(e,I)},h=I=>{I.keyCode===Fe.ESC&&l&&c(!1,I)},m=I=>{const{disabled:O}=e;O||c(I)},{prefixCls:v,getPrefixCls:y}=Ve("popconfirm",e),b=M(()=>y()),$=M(()=>y("btn")),[x]=hOe(v),[_]=Wi("Popconfirm",so.Popconfirm),w=()=>{var I,O,P,E,R;const{okButtonProps:A,cancelButtonProps:N,title:F=(I=n.title)===null||I===void 0?void 0:I.call(n),description:W=(O=n.description)===null||O===void 0?void 0:O.call(n),cancelText:D=(P=n.cancel)===null||P===void 0?void 0:P.call(n),okText:B=(E=n.okText)===null||E===void 0?void 0:E.call(n),okType:k,icon:L=((R=n.icon)===null||R===void 0?void 0:R.call(n))||g(El,null,null),showCancel:z=!0}=e,{cancelButton:K,okButton:G}=n,Y=S({onClick:f,size:"small"},N),ne=S(S(S({onClick:d},P0(k)),{size:"small"}),A);return g("div",{class:`${v.value}-inner-content`},[g("div",{class:`${v.value}-message`},[L&&g("span",{class:`${v.value}-message-icon`},[L]),g("div",{class:[`${v.value}-message-title`,{[`${v.value}-message-title-only`]:!!W}]},[F])]),W&&g("div",{class:`${v.value}-description`},[W]),g("div",{class:`${v.value}-buttons`},[z?K?K(Y):g(Un,Y,{default:()=>[D||_.value.cancelText]}):null,G?G(ne):g(tw,{buttonProps:S(S({size:"small"},P0(k)),A),actionFn:d,close:u,prefixCls:$.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[B||_.value.okText]})])])};return()=>{var I;const{placement:O,overlayClassName:P,trigger:E="click"}=e,R=gOe(e,["placement","overlayClassName","trigger"]),A=Ot(R,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),N=me(v.value,P);return x(g(Y_,V(V(V({},A),i),{},{trigger:E,placement:O,onOpenChange:m,open:l.value,overlayClassName:N,transitionName:uo(b.value,"zoom-big",e.transitionName),ref:a,"data-popover-inject":!0}),{default:()=>[Ooe(((I=n.default)===null||I===void 0?void 0:I.call(n))||[],{onKeydown:F=>{h(F)}},!1)],content:w}))}}}),bOe=$n(mOe),yOe=["normal","exception","active","success"],Ky=()=>({prefixCls:String,type:Qe(),percent:Number,format:Oe(),status:Qe(),showInfo:De(),strokeWidth:Number,strokeLinecap:Qe(),strokeColor:cn(),trailColor:String,width:Number,success:qe(),gapDegree:Number,gapPosition:Qe(),size:ot([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Qe()});function _c(e){return!e||e<0?0:e>100?100:e}function X0(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(pn(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function SOe(e){let{percent:t,success:n,successPercent:r}=e;const o=_c(X0({success:n,successPercent:r}));return[o,_c(_c(t)-o)]}function COe(e){let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||ld.green,n||null]}const Uy=(e,t,n)=>{var r,o,i,a;let l=-1,s=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=u??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=c||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return{width:l,height:s}};var $Oe=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);oS(S({},Ky()),{strokeColor:cn(),direction:Qe()}),wOe=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},_Oe=(e,t)=>{const{from:n=ld.blue,to:r=ld.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=$Oe(e,["from","to","direction"]);if(Object.keys(i).length!==0){const a=wOe(i);return{backgroundImage:`linear-gradient(${o}, ${a})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},OOe=pe({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:xOe(),setup(e,t){let{slots:n,attrs:r}=t;const o=M(()=>{const{strokeColor:h,direction:m}=e;return h&&typeof h!="string"?_Oe(h,m):{backgroundColor:h}}),i=M(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),a=M(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),l=M(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=M(()=>Uy(l.value,"line",{strokeWidth:e.strokeWidth})),c=M(()=>{const{percent:h}=e;return S({width:`${_c(h)}%`,height:`${s.value.height}px`,borderRadius:i.value},o.value)}),u=M(()=>X0(e)),d=M(()=>{const{success:h}=e;return{width:`${_c(u.value)}%`,height:`${s.value.height}px`,borderRadius:i.value,backgroundColor:h==null?void 0:h.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var h;return g(Je,null,[g("div",V(V({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,f]}),[g("div",{class:`${e.prefixCls}-inner`,style:a.value},[g("div",{class:`${e.prefixCls}-bg`,style:c.value},null),u.value!==void 0?g("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(h=n.default)===null||h===void 0?void 0:h.call(n)])}}}),IOe={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},POe=e=>{const t=he(null);return fo(()=>{const n=Date.now();let r=!1;e.value.forEach(o=>{const i=(o==null?void 0:o.$el)||o;if(!i)return;r=!0;const a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(a.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},TOe={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var EOe=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);o4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const a=50-r/2;let l=0,s=-a,c=0,u=-2*a;switch(i){case"left":l=-a,s=0,c=2*a,u=0;break;case"right":l=a,s=0,c=-2*a,u=0;break;case"bottom":s=a,u=2*a;break}const d=`M 50,50 m ${l},${s} - a ${a},${a} 0 1 1 ${c},${-u} - a ${a},${a} 0 1 1 ${-c},${u}`,f=Math.PI*2*a,h={stroke:n,strokeDasharray:`${t/100*(f-o)}px ${f}px`,strokeDashoffset:`-${o/2+e/100*(f-o)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:h}}const AOe=pe({compatConfig:{MODE:3},name:"VCCircle",props:bt(TOe,IOe),setup(e){$8+=1;const t=he($8),n=M(()=>w8(e.percent)),r=M(()=>w8(e.strokeColor)),[o,i]=EO();POe(i);const a=()=>{const{prefixCls:l,strokeWidth:s,strokeLinecap:c,gapDegree:u,gapPosition:d}=e;let f=0;return n.value.map((h,m)=>{const v=r.value[m]||r.value[r.value.length-1],y=Object.prototype.toString.call(v)==="[object Object]"?`url(#${l}-gradient-${t.value})`:"",{pathString:b,pathStyle:$}=_8(f,h,v,s,u,d);f+=h;const x={key:m,d:b,stroke:y,"stroke-linecap":c,"stroke-width":s,opacity:h===0?0:1,"fill-opacity":"0",class:`${l}-circle-path`,style:$};return g("path",V({ref:o(m)},x),null)})};return()=>{const{prefixCls:l,strokeWidth:s,trailWidth:c,gapDegree:u,gapPosition:d,trailColor:f,strokeLinecap:h,strokeColor:m}=e,v=EOe(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:y,pathStyle:b}=_8(0,100,f,s,u,d);delete v.percent;const $=r.value.find(_=>Object.prototype.toString.call(_)==="[object Object]"),x={d:y,stroke:f,"stroke-linecap":h,"stroke-width":c||s,"fill-opacity":"0",class:`${l}-circle-trail`,style:b};return g("svg",V({class:`${l}-circle`,viewBox:"0 0 100 100"},v),[$&&g("defs",null,[g("linearGradient",{id:`${l}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys($).sort((_,w)=>x8(_)-x8(w)).map((_,w)=>g("stop",{key:w,offset:_,"stop-color":$[_]},null))])]),g("path",x,null),a().reverse()])}}}),MOe=()=>S(S({},Ky()),{strokeColor:cn()}),ROe=3,DOe=e=>ROe/e*100,LOe=pe({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:bt(MOe(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t;const o=M(()=>{var v;return(v=e.width)!==null&&v!==void 0?v:120}),i=M(()=>{var v;return(v=e.size)!==null&&v!==void 0?v:[o.value,o.value]}),a=M(()=>Uy(i.value,"circle")),l=M(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=M(()=>({width:`${a.value.width}px`,height:`${a.value.height}px`,fontSize:`${a.value.width*.15+6}px`})),c=M(()=>{var v;return(v=e.strokeWidth)!==null&&v!==void 0?v:Math.max(DOe(a.value.width),6)}),u=M(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=M(()=>SOe(e)),f=M(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),h=M(()=>COe({success:e.success,strokeColor:e.strokeColor})),m=M(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var v;const y=g(AOe,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:h.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:l.value,gapPosition:u.value},null);return g("div",V(V({},r),{},{class:[m.value,r.class],style:[r.style,s.value]}),[a.value.width<=20?g(Bo,null,{default:()=>[g("span",null,[y])],title:n.default}):g(Je,null,[y,(v=n.default)===null||v===void 0?void 0:v.call(n)])])}}}),NOe=()=>S(S({},Ky()),{steps:Number,strokeColor:ot(),trailColor:String}),kOe=pe({compatConfig:{MODE:3},name:"Steps",props:NOe(),setup(e,t){let{slots:n}=t;const r=M(()=>Math.round(e.steps*((e.percent||0)/100))),o=M(()=>{var l;return(l=e.size)!==null&&l!==void 0?l:[e.size==="small"?2:14,e.strokeWidth||8]}),i=M(()=>Uy(o.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),a=M(()=>{const{steps:l,strokeColor:s,trailColor:c,prefixCls:u}=e,d=[];for(let f=0;f{var l;return g("div",{class:`${e.prefixCls}-steps-outer`},[a.value,(l=n.default)===null||l===void 0?void 0:l.call(n)])}}}),BOe=new Pt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),FOe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:S(S({},vt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:BOe,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},HOe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},zOe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},jOe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},WOe=pt("Progress",e=>{const t=e.marginXXS/2,n=nt(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[FOe(n),HOe(n),zOe(n),jOe(n)]});var VOe=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);oArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),c=M(()=>{const{percent:m=0}=e,v=X0(e);return parseInt(v!==void 0?v.toString():m.toString(),10)}),u=M(()=>{const{status:m}=e;return!yOe.includes(m)&&c.value>=100?"success":m||"normal"}),d=M(()=>{const{type:m,showInfo:v,size:y}=e,b=o.value;return{[b]:!0,[`${b}-inline-circle`]:m==="circle"&&Uy(y,"circle").width<=20,[`${b}-${m==="dashboard"&&"circle"||m}`]:!0,[`${b}-status-${u.value}`]:!0,[`${b}-show-info`]:v,[`${b}-${y}`]:y,[`${b}-rtl`]:i.value==="rtl",[l.value]:!0}}),f=M(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),h=()=>{const{showInfo:m,format:v,type:y,percent:b,title:$}=e,x=X0(e);if(!m)return null;let _;const w=v||(n==null?void 0:n.format)||(O=>`${O}%`),I=y==="line";return v||n!=null&&n.format||u.value!=="exception"&&u.value!=="success"?_=w(_c(b),_c(x)):u.value==="exception"?_=g(I?Ko:Vo,null,null):u.value==="success"&&(_=g(I?Tl:cy,null,null)),g("span",{class:`${o.value}-text`,title:$===void 0&&typeof _=="string"?_:void 0},[_])};return()=>{const{type:m,steps:v,title:y}=e,{class:b}=r,$=VOe(r,["class"]),x=h();let _;return m==="line"?_=v?g(kOe,V(V({},e),{},{strokeColor:f.value,prefixCls:o.value,steps:v}),{default:()=>[x]}):g(OOe,V(V({},e),{},{strokeColor:s.value,prefixCls:o.value,direction:i.value}),{default:()=>[x]}):(m==="circle"||m==="dashboard")&&(_=g(LOe,V(V({},e),{},{prefixCls:o.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[x]})),a(g("div",V(V({role:"progressbar"},$),{},{class:[d.value,b],title:y}),[_]))}}}),PI=$n(KOe);function UOe(e){let t=e.pageXOffset;const n="scrollLeft";if(typeof t!="number"){const r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function GOe(e){let t,n;const r=e.ownerDocument,{body:o}=r,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}function YOe(e){const t=GOe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=UOe(r),t.left}var XOe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const qOe=XOe;function O8(e){for(var t=1;t{const{index:s}=e;n("hover",l,s)},o=l=>{const{index:s}=e;n("click",l,s)},i=l=>{const{index:s}=e;l.keyCode===13&&n("click",l,s)},a=M(()=>{const{prefixCls:l,index:s,value:c,allowHalf:u,focused:d}=e,f=s+1;let h=l;return c===0&&s===0&&d?h+=` ${l}-focused`:u&&c+.5>=f&&c{const{disabled:l,prefixCls:s,characterRender:c,character:u,index:d,count:f,value:h}=e,m=typeof u=="function"?u({disabled:l,prefixCls:s,index:d,count:f,value:h}):u;let v=g("li",{class:a.value},[g("div",{onClick:l?null:o,onKeydown:l?null:i,onMousemove:l?null:r,role:"radio","aria-checked":h>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:l?-1:0},[g("div",{class:`${s}-first`},[m]),g("div",{class:`${s}-second`},[m])])]);return c&&(v=c(v,e)),v}}}),tIe=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},nIe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),rIe=e=>{const{componentCls:t}=e;return{[t]:S(S(S(S(S({},vt(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),tIe(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),nIe(e))}},oIe=pt("Rate",e=>{const{colorFillContent:t}=e,n=nt(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[rIe(n)]}),iIe=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:Z.any,autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),aIe=pe({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:bt(iIe(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:r,emit:o,expose:i}=t;const{prefixCls:a,direction:l}=Ve("rate",e),[s,c]=oIe(a),u=cr(),d=he(),[f,h]=EO(),m=St({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});Ie(()=>e.value,()=>{m.value=e.value});const v=A=>No(h.value.get(A)),y=(A,N)=>{const F=l.value==="rtl";let W=A+1;if(e.allowHalf){const D=v(A),B=YOe(D),k=D.clientWidth;(F&&N-B>k/2||!F&&N-B{e.value===void 0&&(m.value=A),o("update:value",A),o("change",A),u.onFieldChange()},$=(A,N)=>{const F=y(N,A.pageX);F!==m.cleanedValue&&(m.hoverValue=F,m.cleanedValue=null),o("hoverChange",F)},x=()=>{m.hoverValue=void 0,m.cleanedValue=null,o("hoverChange",void 0)},_=(A,N)=>{const{allowClear:F}=e,W=y(N,A.pageX);let D=!1;F&&(D=W===m.value),x(),b(D?0:W),m.cleanedValue=D?W:null},w=A=>{m.focused=!0,o("focus",A)},I=A=>{m.focused=!1,o("blur",A),u.onFieldBlur()},O=A=>{const{keyCode:N}=A,{count:F,allowHalf:W}=e,D=l.value==="rtl";N===Fe.RIGHT&&m.value0&&!D||N===Fe.RIGHT&&m.value>0&&D?(W?m.value-=.5:m.value-=1,b(m.value),A.preventDefault()):N===Fe.LEFT&&m.value{e.disabled||d.value.focus()};i({focus:P,blur:()=>{e.disabled||d.value.blur()}}),lt(()=>{const{autofocus:A,disabled:N}=e;A&&!N&&P()});const R=(A,N)=>{let{index:F}=N;const{tooltips:W}=e;return W?g(Bo,{title:W[F]},{default:()=>[A]}):A};return()=>{const{count:A,allowHalf:N,disabled:F,tabindex:W,id:D=u.id.value}=e,{class:B,style:k}=r,L=[],z=F?`${a.value}-disabled`:"",K=e.character||n.character||(()=>g(QOe,null,null));for(let Y=0;Yg("svg",{width:"252",height:"294"},[g("defs",null,[g("path",{d:"M0 .387h251.772v251.772H0z"},null)]),g("g",{fill:"none","fill-rule":"evenodd"},[g("g",{transform:"translate(0 .012)"},[g("mask",{fill:"#fff"},null),g("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),g("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),g("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),g("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),g("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),g("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),g("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),g("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),g("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),g("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),g("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),g("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),g("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),g("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),g("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),g("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),g("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),g("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),g("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),g("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),g("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),g("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),g("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),g("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),g("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),g("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),g("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),g("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),g("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),g("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),g("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),g("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),g("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),g("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),g("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),g("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),g("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),g("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),g("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),g("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),g("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),g("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),pIe=fIe,hIe=()=>g("svg",{width:"254",height:"294"},[g("defs",null,[g("path",{d:"M0 .335h253.49v253.49H0z"},null),g("path",{d:"M0 293.665h253.49V.401H0z"},null)]),g("g",{fill:"none","fill-rule":"evenodd"},[g("g",{transform:"translate(0 .067)"},[g("mask",{fill:"#fff"},null),g("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),g("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),g("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),g("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),g("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),g("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),g("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),g("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),g("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),g("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),g("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),g("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),g("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),g("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),g("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),g("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),g("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),g("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),g("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),g("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),g("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),g("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),g("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),g("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),g("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),g("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),g("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),g("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),g("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),g("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),g("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),g("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),g("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),g("mask",{fill:"#fff"},null),g("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),g("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),g("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),g("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),g("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),g("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),g("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),g("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),g("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),g("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),g("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),gIe=hIe,vIe=()=>g("svg",{width:"251",height:"294"},[g("g",{fill:"none","fill-rule":"evenodd"},[g("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),g("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),g("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),g("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),g("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),g("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),g("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),g("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),g("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),g("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),g("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),g("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),g("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),g("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),g("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),g("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),g("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),g("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),g("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),g("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),g("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),g("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),g("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),g("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),g("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),g("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),g("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),g("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),g("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),g("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),g("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),g("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),g("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),g("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),g("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),g("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),g("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),g("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),g("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),g("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),mIe=vIe,bIe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${l*2}px ${i}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${l}px ${o*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},yIe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},SIe=e=>[bIe(e),yIe(e)],CIe=e=>SIe(e),$Ie=pt("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,o=`${t}px 0 0 0`,i=e.colorInfo,a=e.colorError,l=e.colorSuccess,s=e.colorWarning,c=nt(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:o,resultInfoIconColor:i,resultErrorIconColor:a,resultSuccessIconColor:l,resultWarningIconColor:s});return[CIe(c)]},{imageWidth:250,imageHeight:295}),xIe={success:Tl,error:Ko,info:El,warning:dIe},tg={404:pIe,500:gIe,403:mIe},wIe=Object.keys(tg),_Ie=()=>({prefixCls:String,icon:Z.any,status:{type:[Number,String],default:"info"},title:Z.any,subTitle:Z.any,extra:Z.any}),OIe=(e,t)=>{let{status:n,icon:r}=t;if(wIe.includes(`${n}`)){const a=tg[n];return g("div",{class:`${e}-icon ${e}-image`},[g(a,null,null)])}const o=xIe[n],i=r||g(o,null,null);return g("div",{class:`${e}-icon`},[i])},IIe=(e,t)=>t&&g("div",{class:`${e}-extra`},[t]),Oc=pe({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:_Ie(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("result",e),[a,l]=$Ie(o),s=M(()=>me(o.value,l.value,`${o.value}-${e.status}`,{[`${o.value}-rtl`]:i.value==="rtl"}));return()=>{var c,u,d,f,h,m,v,y;const b=(c=e.title)!==null&&c!==void 0?c:(u=n.title)===null||u===void 0?void 0:u.call(n),$=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),x=(h=e.icon)!==null&&h!==void 0?h:(m=n.icon)===null||m===void 0?void 0:m.call(n),_=(v=e.extra)!==null&&v!==void 0?v:(y=n.extra)===null||y===void 0?void 0:y.call(n),w=o.value;return a(g("div",V(V({},r),{},{class:[s.value,r.class]}),[OIe(w,{status:e.status,icon:x}),g("div",{class:`${w}-title`},[b]),$&&g("div",{class:`${w}-subtitle`},[$]),IIe(w,_),n.default&&g("div",{class:`${w}-content`},[n.default()])]))}}});Oc.PRESENTED_IMAGE_403=tg[403];Oc.PRESENTED_IMAGE_404=tg[404];Oc.PRESENTED_IMAGE_500=tg[500];Oc.install=function(e){return e.component(Oc.name,Oc),e};const PIe=Oc,TIe=$n(WO),cz=(e,t)=>{let{attrs:n}=t;const{included:r,vertical:o,style:i,class:a}=n;let{length:l,offset:s,reverse:c}=n;l<0&&(c=!c,l=Math.abs(l),s=100-s);const u=o?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${l}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${l}%`},d=S(S({},i),u);return r?g("div",{class:a,style:d},null):null};cz.inheritAttrs=!1;const uz=cz,EIe=(e,t,n,r,o,i)=>{Sn();const a=Object.keys(t).map(parseFloat).sort((l,s)=>l-s);if(n&&r)for(let l=o;l<=i;l+=r)a.indexOf(l)===-1&&a.push(l);return a},dz=(e,t)=>{let{attrs:n}=t;const{prefixCls:r,vertical:o,reverse:i,marks:a,dots:l,step:s,included:c,lowerBound:u,upperBound:d,max:f,min:h,dotStyle:m,activeDotStyle:v}=n,y=f-h,b=EIe(o,a,l,s,h,f).map($=>{const x=`${Math.abs($-h)/y*100}%`,_=!c&&$===d||c&&$<=d&&$>=u;let w=o?S(S({},m),{[i?"top":"bottom"]:x}):S(S({},m),{[i?"right":"left"]:x});_&&(w=S(S({},w),v));const I=me({[`${r}-dot`]:!0,[`${r}-dot-active`]:_,[`${r}-dot-reverse`]:i});return g("span",{class:I,style:w,key:$},null)});return g("div",{class:`${r}-step`},[b])};dz.inheritAttrs=!1;const AIe=dz,fz=(e,t)=>{let{attrs:n,slots:r}=t;const{class:o,vertical:i,reverse:a,marks:l,included:s,upperBound:c,lowerBound:u,max:d,min:f,onClickLabel:h}=n,m=Object.keys(l),v=r.mark,y=d-f,b=m.map(parseFloat).sort(($,x)=>$-x).map($=>{const x=typeof l[$]=="function"?l[$]():l[$],_=typeof x=="object"&&!Jn(x);let w=_?x.label:x;if(!w&&w!==0)return null;v&&(w=v({point:$,label:w}));const I=!s&&$===c||s&&$<=c&&$>=u,O=me({[`${o}-text`]:!0,[`${o}-text-active`]:I}),P={marginBottom:"-50%",[a?"top":"bottom"]:`${($-f)/y*100}%`},E={transform:`translateX(${a?"50%":"-50%"})`,msTransform:`translateX(${a?"50%":"-50%"})`,[a?"right":"left"]:`${($-f)/y*100}%`},R=i?P:E,A=_?S(S({},R),x.style):R,N={[dr?"onTouchstartPassive":"onTouchstart"]:F=>h(F,$)};return g("span",V({class:O,style:A,key:$,onMousedown:F=>h(F,$)},N),[w])});return g("div",{class:o},[b])};fz.inheritAttrs=!1;const MIe=fz,pz=pe({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:Z.oneOfType([Z.number,Z.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:r,expose:o}=t;const i=ve(!1),a=ve(),l=()=>{document.activeElement===a.value&&(i.value=!0)},s=y=>{i.value=!1,r("blur",y)},c=()=>{i.value=!1},u=()=>{var y;(y=a.value)===null||y===void 0||y.focus()},d=()=>{var y;(y=a.value)===null||y===void 0||y.blur()},f=()=>{i.value=!0,u()},h=y=>{y.preventDefault(),u(),r("mousedown",y)};o({focus:u,blur:d,clickFocus:f,ref:a});let m=null;lt(()=>{m=wn(document,"mouseup",l)}),Ct(()=>{m==null||m.remove()});const v=M(()=>{const{vertical:y,offset:b,reverse:$}=e;return y?{[$?"top":"bottom"]:`${b}%`,[$?"bottom":"top"]:"auto",transform:$?null:"translateY(+50%)"}:{[$?"right":"left"]:`${b}%`,[$?"left":"right"]:"auto",transform:`translateX(${$?"+":"-"}50%)`}});return()=>{const{prefixCls:y,disabled:b,min:$,max:x,value:_,tabindex:w,ariaLabel:I,ariaLabelledBy:O,ariaValueTextFormatter:P,onMouseenter:E,onMouseleave:R}=e,A=me(n.class,{[`${y}-handle-click-focused`]:i.value}),N={"aria-valuemin":$,"aria-valuemax":x,"aria-valuenow":_,"aria-disabled":!!b},F=[n.style,v.value];let W=w||0;(b||w===null)&&(W=null);let D;P&&(D=P(_));const B=S(S(S(S({},n),{role:"slider",tabindex:W}),N),{class:A,onBlur:s,onKeydown:c,onMousedown:h,onMouseenter:E,onMouseleave:R,ref:a,style:F});return g("div",V(V({},B),{},{"aria-label":I,"aria-labelledby":O,"aria-valuetext":D}),null)}}});function zC(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function hz(e,t){let{min:n,max:r}=t;return er}function P8(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function T8(e,t){let{marks:n,step:r,min:o,max:i}=t;const a=Object.keys(n).map(parseFloat);if(r!==null){const s=Math.pow(10,gz(r)),c=Math.floor((i*s-o*s)/(r*s)),u=Math.min((e-o)/r,c),d=Math.round(u)*r+o;a.push(d)}const l=a.map(s=>Math.abs(e-s));return a[l.indexOf(Math.min(...l))]}function gz(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function E8(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function A8(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function M8(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.pageXOffset+n.left+n.width*.5}function AI(e,t){let{max:n,min:r}=t;return e<=r?r:e>=n?n:e}function vz(e,t){const{step:n}=t,r=isFinite(T8(e,t))?T8(e,t):0;return n===null?r:parseFloat(r.toFixed(gz(n)))}function Nd(e){e.stopPropagation(),e.preventDefault()}function RIe(e,t,n){const r={increase:(a,l)=>a+l,decrease:(a,l)=>a-l},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}function mz(e,t,n){const r="increase",o="decrease";let i=r;switch(e.keyCode){case Fe.UP:i=t&&n?o:r;break;case Fe.RIGHT:i=!t&&n?o:r;break;case Fe.DOWN:i=t&&n?r:o;break;case Fe.LEFT:i=!t&&n?r:o;break;case Fe.END:return(a,l)=>l.max;case Fe.HOME:return(a,l)=>l.min;case Fe.PAGE_UP:return(a,l)=>a+l.step*2;case Fe.PAGE_DOWN:return(a,l)=>a-l.step*2;default:return}return(a,l)=>RIe(i,a,l)}var DIe=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{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:r}=this;n&&!r&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:r,directives:o,className:i,style:a}=n,l=DIe(n,["index","directives","className","style"]);if(delete l.dragging,l.value===null)return null;const s=S(S({},l),{class:i,style:a,key:r});return g(pz,s,null)},onDown(n,r){let o=r;const{draggableTrack:i,vertical:a}=this.$props,{bounds:l}=this.$data,s=i&&this.positionGetValue?this.positionGetValue(o)||[]:[],c=zC(n,this.handlesRefs);if(this.dragTrack=i&&l.length>=2&&!c&&!s.map((u,d)=>{const f=d?!0:u>=l[d];return d===s.length-1?u<=l[d]:f}).some(u=>!u),this.dragTrack)this.dragOffset=o,this.startBounds=[...l];else{if(!c)this.dragOffset=0;else{const u=M8(a,n.target);this.dragOffset=o-u,o=u}this.onStart(o)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const r=this.$props.vertical,o=E8(r,n);this.onDown(n,o),this.addDocumentMouseEvents()},onTouchStart(n){if(P8(n))return;const r=this.vertical,o=A8(r,n);this.onDown(n,o),this.addDocumentTouchEvents(),Nd(n)},onFocus(n){const{vertical:r}=this;if(zC(n,this.handlesRefs)&&!this.dragTrack){const o=M8(r,n.target);this.dragOffset=0,this.onStart(o),Nd(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const r=E8(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(P8(n)||!this.sliderRef){this.onEnd();return}const r=A8(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&zC(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,r){n.stopPropagation(),this.onChange({sValue:r}),this.setState({sValue:r},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:r,reverse:o}=this,i=n.getBoundingClientRect();return r?o?i.bottom:i.top:window.pageXOffset+(o?i.right:i.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=wn(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=wn(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=wn(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=wn(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var r,o;(o=(r=this.handlesRefs[n])===null||r===void 0?void 0:r.blur)===null||o===void 0||o.call(r)})},calcValue(n){const{vertical:r,min:o,max:i}=this,a=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-a)*(i-o)+o:a*(i-o)+o},calcValueByPos(n){const o=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(o))},calcOffset(n){const{min:r,max:o}=this,i=(n-r)/(o-r);return Math.max(0,i*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:o,step:i,included:a,disabled:l,vertical:s,reverse:c,min:u,max:d,maximumTrackStyle:f,railStyle:h,dotStyle:m,activeDotStyle:v,id:y}=this,{class:b,style:$}=this.$attrs,{tracks:x,handles:_}=this.renderSlider(),w=me(n,b,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:l,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),I={vertical:s,marks:r,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,reverse:c,class:`${n}-mark`,onClickLabel:l?tc:this.onClickMarkLabel},O={[dr?"onTouchstartPassive":"onTouchstart"]:l?tc:this.onTouchStart};return g("div",V(V({id:y,ref:this.saveSlider,tabindex:"-1",class:w},O),{},{onMousedown:l?tc:this.onMouseDown,onMouseup:l?tc:this.onMouseUp,onKeydown:l?tc:this.onKeyDown,onFocus:l?tc:this.onFocus,onBlur:l?tc:this.onBlur,style:$}),[g("div",{class:`${n}-rail`,style:S(S({},f),h)},null),x,g(AIe,{prefixCls:n,vertical:s,reverse:c,marks:r,dots:o,step:i,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,dotStyle:m,activeDotStyle:v},null),_,g(MIe,I,{mark:this.$slots.mark}),Bb(this)])}})}const LIe=pe({compatConfig:{MODE:3},name:"Slider",mixins:[eu],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),hz(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!ul(this,"value"),n=e.sValue>this.max?S(S({},e),{sValue:this.max}):e;t&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Nd(e);const{sValue:n}=this,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=mz(e,n,t);if(r){Nd(e);const{sValue:o}=this,i=r(o,this.$props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({sValue:a}),this.$emit("afterChange",a),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=S(S({},this.$props),t),r=AI(e,n);return vz(r,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:r,included:o,minimumTrackStyle:i,mergedTrackStyle:a,length:l,offset:s}=e;return g(uz,{class:`${t}-track`,vertical:r,included:o,offset:s,reverse:n,length:l,style:S(S({},i),a)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:r,minimumTrackStyle:o,trackStyle:i,handleStyle:a,tabindex:l,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:f,startPoint:h,reverse:m,handle:v,defaultHandle:y}=this,b=v||y,{sValue:$,dragging:x}=this,_=this.calcOffset($),w=b({class:`${e}-handle`,prefixCls:e,vertical:t,offset:_,value:$,dragging:x,disabled:r,min:d,max:f,reverse:m,index:0,tabindex:l,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:a[0]||a,ref:P=>this.saveHandle(0,P),onFocus:this.onFocus,onBlur:this.onBlur}),I=h!==void 0?this.calcOffset(h):0,O=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:m,vertical:t,included:n,offset:I,minimumTrackStyle:o,mergedTrackStyle:O,length:_-I}),handles:w}}}}),NIe=bz(LIe),Gf=e=>{let{value:t,handle:n,bounds:r,props:o}=e;const{allowCross:i,pushable:a}=o,l=Number(a),s=AI(t,o);let c=s;return!i&&n!=null&&r!==void 0&&(n>0&&s<=r[n-1]+l&&(c=r[n-1]+l),n=r[n+1]-l&&(c=r[n+1]-l)),vz(c,o)},kIe={defaultValue:Z.arrayOf(Z.number),value:Z.arrayOf(Z.number),count:Number,pushable:K7(Z.oneOfType([Z.looseBool,Z.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:Z.arrayOf(Z.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},BIe=pe({compatConfig:{MODE:3},name:"Range",mixins:[eu],inheritAttrs:!1,props:bt(kIe,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,r=Array(...Array(e+1)).map(()=>t),o=ul(this,"defaultValue")?this.defaultValue:r;let{value:i}=this;i===void 0&&(i=o);const a=i.map((s,c)=>Gf({value:s,handle:c,props:this.$props}));return{sHandle:null,recent:a[0]===n?0:a.length-1,bounds:a}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((r,o)=>Gf({value:r,handle:o,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((r,o)=>r===t[o]))return null}else n=e.map((r,o)=>Gf({value:r,handle:o,props:this.$props}));if(this.setState({bounds:n}),e.some(r=>hz(r,this.$props))){const r=e.map(o=>AI(o,this.$props));this.$emit("change",r)}},onChange(e){if(!ul(this,"value"))this.setState(e);else{const o={};["sHandle","recent"].forEach(i=>{e[i]!==void 0&&(o[i]=e[i])}),Object.keys(o).length&&this.setState(o)}const r=S(S({},this.$data),e).bounds;this.$emit("change",r)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),r=this.getClosestBound(n),o=this.getBoundNeedMoving(n,r),i=t[o];if(n===i)return null;const a=[...t];return a[o]=n,a},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const o=t[this.prevMovedHandleIndex];if(n===o)return;const i=[...t];i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,r){Nd(e);const{$data:o,$props:i}=this,a=i.max||100,l=i.min||0;if(n){let f=i.vertical?-t:t;f=i.reverse?-f:f;const h=a-Math.max(...r),m=l-Math.min(...r),v=Math.min(Math.max(f/(this.getSliderLength()/100),m),h),y=r.map(b=>Math.floor(Math.max(Math.min(b+v,a),l)));o.bounds.map((b,$)=>b===y[$]).some(b=>!b)&&this.onChange({bounds:y});return}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t),d=s[c];u!==d&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=mz(e,n,t);if(r){Nd(e);const{bounds:o,sHandle:i}=this,a=o[i===null?this.recent:i],l=r(a,this.$props),s=Gf({value:l,handle:i,bounds:o,props:this.$props});if(s===a)return;this.moveTo(s,!0)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let r=1;r=t[r]&&(n=r);return Math.abs(t[n+1]-e)l-s),this.internalPointsCache={marks:e,step:t,points:a}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:r,recent:o}=this,i=r===null?o:r;n[i]=e;let a=i;this.$props.pushable!==!1?this.pushSurroundingHandles(n,a):this.$props.allowCross&&(n.sort((l,s)=>l-s),a=n.indexOf(e)),this.onChange({recent:a,sHandle:a,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[a].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:r}=this,o=Number(r);let i=0;if(e[t+1]-n=r.length||i<0)return!1;const a=t+n,l=r[i],{pushable:s}=this,c=Number(s),u=n*(e[a]-l);return this.pushHandle(e,a,n,c-u)?(e[t]=l,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return Gf({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:r,pushable:o}=n;const i=this.$data||{},{bounds:a}=i;if(e=e===void 0?i.sHandle:e,o=Number(o),!r&&e!=null&&a!==void 0){if(e>0&&t<=a[e-1]+o)return a[e-1]+o;if(e=a[e+1]-o)return a[e+1]-o}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:r,vertical:o,included:i,offsets:a,trackStyle:l}=e;return t.slice(0,-1).map((s,c)=>{const u=c+1,d=me({[`${n}-track`]:!0,[`${n}-track-${u}`]:!0});return g(uz,{class:d,vertical:o,reverse:r,included:i,offset:a[u-1],length:a[u]-a[u-1],style:l[c],key:u},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:r,included:o,disabled:i,min:a,max:l,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:f,tabindex:h,ariaLabelGroupForHandles:m,ariaLabelledByGroupForHandles:v,ariaValueTextFormatterGroupForHandles:y}=this,b=c||u,$=t.map(w=>this.calcOffset(w)),x=`${n}-handle`,_=t.map((w,I)=>{let O=h[I]||0;(i||h[I]===null)&&(O=null);const P=e===I;return b({class:me({[x]:!0,[`${x}-${I+1}`]:!0,[`${x}-dragging`]:P}),prefixCls:n,vertical:r,dragging:P,offset:$[I],value:w,index:I,tabindex:O,min:a,max:l,reverse:s,disabled:i,style:f[I],ref:E=>this.saveHandle(I,E),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:m[I],ariaLabelledBy:v[I],ariaValueTextFormatter:y[I]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:r,included:o,offsets:$,trackStyle:d}),handles:_}}}}),FIe=bz(BIe),HIe=pe({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:_9(),setup(e,t){let{attrs:n,slots:r}=t;const o=he(null),i=he(null);function a(){mt.cancel(i.value),i.value=null}function l(){i.value=mt(()=>{var c;(c=o.value)===null||c===void 0||c.forcePopupAlign(),i.value=null})}const s=()=>{a(),e.open&&l()};return Ie([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Tb(()=>{s()}),Ct(()=>{a()}),()=>g(Bo,V(V({ref:o},e),n),r)}}),zIe=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:i,colorFillContentHover:a}=e;return{[t]:S(S({},vt(e)),{position:"relative",height:n,margin:`${i}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${o}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${e.motionDurationMid}, - inset-block-start ${e.motionDurationMid}, - width ${e.motionDurationMid}, - height ${e.motionDurationMid}, - box-shadow ${e.motionDurationMid} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Zt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}}})}},yz=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"paddingBlock":"paddingInline",l=t?"width":"height",s=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return{[a]:r,[s]:r*3,[`${n}-rail`]:{[l]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[c]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:o,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[l]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},jIe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:S(S({},yz(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},WIe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:S(S({},yz(e,!1)),{height:"100%"})}},VIe=pt("Slider",e=>{const t=nt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[zIe(t),jIe(t),WIe(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i}});var R8=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);otypeof e=="number"?e.toString():"",UIe=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:ot([Boolean,Object]),reverse:De(),min:Number,max:Number,step:ot([Object,Number]),marks:qe(),dots:De(),value:ot([Array,Number]),defaultValue:ot([Array,Number]),included:De(),disabled:De(),vertical:De(),tipFormatter:ot([Function,Object],()=>KIe),tooltipOpen:De(),tooltipVisible:De(),tooltipPlacement:Qe(),getTooltipPopupContainer:Oe(),autofocus:De(),handleStyle:ot([Array,Object]),trackStyle:ot([Array,Object]),onChange:Oe(),onAfterChange:Oe(),onFocus:Oe(),onBlur:Oe(),"onUpdate:value":Oe()}),GIe=pe({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:UIe(),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:i}=t;const{prefixCls:a,rootPrefixCls:l,direction:s,getPopupContainer:c,configProvider:u}=Ve("slider",e),[d,f]=VIe(a),h=cr(),m=he(),v=he({}),y=(O,P)=>{v.value[O]=P},b=M(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),$=()=>{var O;(O=m.value)===null||O===void 0||O.focus()},x=()=>{var O;(O=m.value)===null||O===void 0||O.blur()},_=O=>{o("update:value",O),o("change",O),h.onFieldChange()},w=O=>{o("blur",O)};i({focus:$,blur:x});const I=O=>{var{tooltipPrefixCls:P}=O,E=O.info,{value:R,dragging:A,index:N}=E,F=R8(E,["value","dragging","index"]);const{tipFormatter:W,tooltipOpen:D=e.tooltipVisible,getTooltipPopupContainer:B}=e,k=W?v.value[N]||A:!1,L=D||D===void 0&&k;return g(HIe,{prefixCls:P,title:W?W(R):"",open:L,placement:b.value,transitionName:`${l.value}-zoom-down`,key:N,overlayClassName:`${a.value}-tooltip`,getPopupContainer:B||(c==null?void 0:c.value)},{default:()=>[g(pz,V(V({},F),{},{value:R,onMouseenter:()=>y(N,!0),onMouseleave:()=>y(N,!1)}),null)]})};return()=>{const{tooltipPrefixCls:O,range:P,id:E=h.id.value}=e,R=R8(e,["tooltipPrefixCls","range","id"]),A=u.getPrefixCls("tooltip",O),N=me(n.class,{[`${a.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!R.vertical&&(R.reverse=!R.reverse);let F;return typeof P=="object"&&(F=P.draggableTrack),d(P?g(FIe,V(V(V({},n),R),{},{step:R.step,draggableTrack:F,class:N,ref:m,handle:W=>I({tooltipPrefixCls:A,prefixCls:a.value,info:W}),prefixCls:a.value,onChange:_,onBlur:w}),{mark:r.mark}):g(NIe,V(V(V({},n),R),{},{id:E,step:R.step,class:N,ref:m,handle:W=>I({tooltipPrefixCls:A,prefixCls:a.value,info:W}),prefixCls:a.value,onChange:_,onBlur:w}),{mark:r.mark}))}}}),YIe=$n(GIe);function D8(e){return typeof e=="string"}function XIe(){}const Sz=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Qe(),iconPrefix:String,icon:Z.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:Z.any,title:Z.any,subTitle:Z.any,progressDot:K7(Z.oneOfType([Z.looseBool,Z.func])),tailContent:Z.any,icons:Z.shape({finish:Z.any,error:Z.any}).loose,onClick:Oe(),onStepClick:Oe(),stepIcon:Oe(),itemRender:Oe(),__legacy:De()}),Cz=pe({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:Sz(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const i=l=>{r("click",l),r("stepClick",e.stepIndex)},a=l=>{let{icon:s,title:c,description:u}=l;const{prefixCls:d,stepNumber:f,status:h,iconPrefix:m,icons:v,progressDot:y=n.progressDot,stepIcon:b=n.stepIcon}=e;let $;const x=me(`${d}-icon`,`${m}icon`,{[`${m}icon-${s}`]:s&&D8(s),[`${m}icon-check`]:!s&&h==="finish"&&(v&&!v.finish||!v),[`${m}icon-cross`]:!s&&h==="error"&&(v&&!v.error||!v)}),_=g("span",{class:`${d}-icon-dot`},null);return y?typeof y=="function"?$=g("span",{class:`${d}-icon`},[y({iconDot:_,index:f-1,status:h,title:c,description:u,prefixCls:d})]):$=g("span",{class:`${d}-icon`},[_]):s&&!D8(s)?$=g("span",{class:`${d}-icon`},[s]):v&&v.finish&&h==="finish"?$=g("span",{class:`${d}-icon`},[v.finish]):v&&v.error&&h==="error"?$=g("span",{class:`${d}-icon`},[v.error]):s||h==="finish"||h==="error"?$=g("span",{class:x},null):$=g("span",{class:`${d}-icon`},[f]),b&&($=b({index:f-1,status:h,title:c,description:u,node:$})),$};return()=>{var l,s,c,u;const{prefixCls:d,itemWidth:f,active:h,status:m="wait",tailContent:v,adjustMarginRight:y,disabled:b,title:$=(l=n.title)===null||l===void 0?void 0:l.call(n),description:x=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:_=(c=n.subTitle)===null||c===void 0?void 0:c.call(n),icon:w=(u=n.icon)===null||u===void 0?void 0:u.call(n),onClick:I,onStepClick:O}=e,P=m||"wait",E=me(`${d}-item`,`${d}-item-${P}`,{[`${d}-item-custom`]:w,[`${d}-item-active`]:h,[`${d}-item-disabled`]:b===!0}),R={};f&&(R.width=f),y&&(R.marginRight=y);const A={onClick:I||XIe};O&&!b&&(A.role="button",A.tabindex=0,A.onClick=i);const N=g("div",V(V({},Ot(o,["__legacy"])),{},{class:[E,o.class],style:[o.style,R]}),[g("div",V(V({},A),{},{class:`${d}-item-container`}),[g("div",{class:`${d}-item-tail`},[v]),g("div",{class:`${d}-item-icon`},[a({icon:w,title:$,description:x})]),g("div",{class:`${d}-item-content`},[g("div",{class:`${d}-item-title`},[$,_&&g("div",{title:typeof _=="string"?_:void 0,class:`${d}-item-subtitle`},[_])]),x&&g("div",{class:`${d}-item-description`},[x])])])]);return e.itemRender?e.itemRender(N):N}}});var qIe=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[]),icons:Z.shape({finish:Z.any,error:Z.any}).loose,stepIcon:Oe(),isInline:Z.looseBool,itemRender:Oe()},emits:["change"],setup(e,t){let{slots:n,emit:r}=t;const o=l=>{const{current:s}=e;s!==l&&r("change",l)},i=(l,s,c)=>{const{prefixCls:u,iconPrefix:d,status:f,current:h,initial:m,icons:v,stepIcon:y=n.stepIcon,isInline:b,itemRender:$,progressDot:x=n.progressDot}=e,_=b||x,w=S(S({},l),{class:""}),I=m+s,O={active:I===h,stepNumber:I+1,stepIndex:I,key:I,prefixCls:u,iconPrefix:d,progressDot:_,stepIcon:y,icons:v,onStepClick:o};return f==="error"&&s===h-1&&(w.class=`${u}-next-error`),w.status||(I===h?w.status=f:I$(w,P)),g(Cz,V(V(V({},w),O),{},{__legacy:!1}),null))},a=(l,s)=>i(S({},l.props),s,c=>Gt(l,c));return()=>{var l;const{prefixCls:s,direction:c,type:u,labelPlacement:d,iconPrefix:f,status:h,size:m,current:v,progressDot:y=n.progressDot,initial:b,icons:$,items:x,isInline:_,itemRender:w}=e,I=qIe(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),O=u==="navigation",P=_||y,E=_?"horizontal":c,R=_?void 0:m,A=P?"vertical":d,N=me(s,`${s}-${c}`,{[`${s}-${R}`]:R,[`${s}-label-${A}`]:E==="horizontal",[`${s}-dot`]:!!P,[`${s}-navigation`]:O,[`${s}-inline`]:_});return g("div",V({class:N},I),[x.filter(F=>F).map((F,W)=>i(F,W)),_n((l=n.default)===null||l===void 0?void 0:l.call(n)).map(a)])}}}),QIe=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:r,stepsIconCustomFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:`${r}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},JIe=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:r,stepsSmallIconSize:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},ePe=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:S(S({maxWidth:"100%",paddingInlineEnd:0},er),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},tPe=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},nPe=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:r,stepsCurrentDotSize:o,stepsDotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:(e.descriptionWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(i-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(i-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},rPe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},oPe=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:r,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},iPe=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${r}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${r+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},aPe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${i}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":S({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-finish":S({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":S({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}};var td;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(td||(td={}));const Hv=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},lPe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`;return S(S(S(S(S(S({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none"},[`${r}-icon, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[`${r}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Hv(td.wait,e)),Hv(td.process,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),Hv(td.finish,e)),Hv(td.error,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},sPe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},cPe=e=>{const{componentCls:t}=e;return{[t]:S(S(S(S(S(S(S(S(S(S(S(S(S({},vt(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),lPe(e)),sPe(e)),QIe(e)),oPe(e)),iPe(e)),JIe(e)),nPe(e)),ePe(e)),rPe(e)),tPe(e)),aPe(e))}},uPe=pt("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:r,fontSize:o,controlHeight:i,controlHeightLG:a,colorTextLightSolid:l,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:h,controlItemBgActive:m,colorError:v,colorBgContainer:y,colorBorderSecondary:b}=e,$=e.controlHeight,x=e.colorSplit,_=nt(e,{processTailColor:x,stepsNavArrowColor:n,stepsIconSize:$,stepsIconCustomSize:$,stepsIconCustomTop:0,stepsIconCustomFontSize:a/2,stepsIconTop:-.5,stepsIconFontSize:o,stepsTitleLineHeight:i,stepsSmallIconSize:r,stepsDotSize:i/4,stepsCurrentDotSize:a/4,stepsNavContentMaxWidth:"auto",processIconColor:l,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:x,waitIconBgColor:t?y:h,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?y:m,finishIconBorderColor:t?c:m,finishDotColor:c,errorIconColor:l,errorTitleColor:v,errorDescriptionColor:v,errorTailColor:x,errorIconBgColor:v,errorIconBorderColor:v,errorDotColor:v,stepsNavActiveColor:c,stepsProgressSize:a,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:b});return[cPe(_)]},{descriptionWidth:140}),dPe=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:De(),items:kt(),labelPlacement:Qe(),status:Qe(),size:Qe(),direction:Qe(),progressDot:ot([Boolean,Function]),type:Qe(),onChange:Oe(),"onUpdate:current":Oe()}),jC=pe({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:bt(dPe(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const{prefixCls:i,direction:a,configProvider:l}=Ve("steps",e),[s,c]=uPe(i),[,u]=Ol(),d=ff(),f=M(()=>e.responsive&&d.value.xs?"vertical":e.direction),h=M(()=>l.getPrefixCls("",e.iconPrefix)),m=x=>{o("update:current",x),o("change",x)},v=M(()=>e.type==="inline"),y=M(()=>v.value?void 0:e.percent),b=x=>{let{node:_,status:w}=x;if(w==="process"&&e.percent!==void 0){const I=e.size==="small"?u.value.controlHeight:u.value.controlHeightLG;return g("div",{class:`${i.value}-progress-icon`},[g(PI,{type:"circle",percent:y.value,size:I,strokeWidth:4,format:()=>null},null),_])}return _},$=M(()=>({finish:g(cy,{class:`${i.value}-finish-icon`},null),error:g(Vo,{class:`${i.value}-error-icon`},null)}));return()=>{const x=me({[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-with-progress`]:y.value!==void 0},n.class,c.value),_=(w,I)=>w.description?g(Bo,{title:w.description},{default:()=>[I]}):I;return s(g(ZIe,V(V(V({icons:$.value},n),Ot(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:i.value,iconPrefix:h.value,class:x,onChange:m,isInline:v.value,itemRender:v.value?_:void 0}),S({stepIcon:b},r)))}}}),Lm=pe(S(S({compatConfig:{MODE:3}},Cz),{name:"AStep",props:Sz()})),fPe=S(jC,{Step:Lm,install:e=>(e.component(jC.name,jC),e.component(Lm.name,Lm),e)}),pPe=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},hPe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},gPe=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},vPe=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},mPe=e=>{const{componentCls:t}=e;return{[t]:S(S(S(S({},vt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Sl(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},bPe=pt("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,i=n-r*2,a=nt(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+r+r*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new Zt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[mPe(a),vPe(a),gPe(a),hPe(a),pPe(a)]}),yPe=Ur("small","default"),SPe=()=>({id:String,prefixCls:String,size:Z.oneOf(yPe),disabled:{type:Boolean,default:void 0},checkedChildren:Z.any,unCheckedChildren:Z.any,tabindex:Z.oneOfType([Z.string,Z.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:Z.oneOfType([Z.string,Z.number,Z.looseBool]),checkedValue:Z.oneOfType([Z.string,Z.number,Z.looseBool]).def(!0),unCheckedValue:Z.oneOfType([Z.string,Z.number,Z.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),CPe=pe({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:SPe(),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o,emit:i}=t;const a=cr(),l=jo(),s=M(()=>{var E;return(E=e.disabled)!==null&&E!==void 0?E:l.value});Dh(()=>{Sn(),Sn()});const c=he(e.checked!==void 0?e.checked:n.defaultChecked),u=M(()=>c.value===e.checkedValue);Ie(()=>e.checked,()=>{c.value=e.checked});const{prefixCls:d,direction:f,size:h}=Ve("switch",e),[m,v]=bPe(d),y=he(),b=()=>{var E;(E=y.value)===null||E===void 0||E.focus()};o({focus:b,blur:()=>{var E;(E=y.value)===null||E===void 0||E.blur()}}),lt(()=>{_t(()=>{e.autofocus&&!s.value&&y.value.focus()})});const x=(E,R)=>{s.value||(i("update:checked",E),i("change",E,R),a.onFieldChange())},_=E=>{i("blur",E)},w=E=>{b();const R=u.value?e.unCheckedValue:e.checkedValue;x(R,E),i("click",R,E)},I=E=>{E.keyCode===Fe.LEFT?x(e.unCheckedValue,E):E.keyCode===Fe.RIGHT&&x(e.checkedValue,E),i("keydown",E)},O=E=>{var R;(R=y.value)===null||R===void 0||R.blur(),i("mouseup",E)},P=M(()=>({[`${d.value}-small`]:h.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[v.value]:!0}));return()=>{var E;return m(g(X_,null,{default:()=>[g("button",V(V(V({},Ot(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(E=e.id)!==null&&E!==void 0?E:a.id.value,onKeydown:I,onClick:w,onBlur:_,onMouseup:O,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,P.value],ref:y}),[g("div",{class:`${d.value}-handle`},[e.loading?g(di,{class:`${d.value}-loading-icon`},null):null]),g("span",{class:`${d.value}-inner`},[g("span",{class:`${d.value}-inner-checked`},[lr(r,e,"checkedChildren")]),g("span",{class:`${d.value}-inner-unchecked`},[lr(r,e,"unCheckedChildren")])])])]}))}}}),$Pe=$n(CPe),$z=Symbol("TableContextProps"),xPe=e=>{ft($z,e)},Ha=()=>it($z,{}),wPe="RC_TABLE_KEY";function xz(e){return e==null?[]:Array.isArray(e)?e:[e]}function wz(e,t){if(!t&&typeof t!="number")return e;const n=xz(t);let r=e;for(let o=0;o{const{key:o,dataIndex:i}=r||{};let a=o||xz(i).join("-")||wPe;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function _Pe(){const e={};function t(i,a){a&&Object.keys(a).forEach(l=>{const s=a[l];s&&typeof s=="object"?(i[l]=i[l]||{},t(i[l],s)):i[l]=s})}for(var n=arguments.length,r=new Array(n),o=0;o{t(e,i)}),e}function nw(e){return e!=null}const _z=Symbol("SlotsContextProps"),OPe=e=>{ft(_z,e)},MI=()=>it(_z,M(()=>({}))),Oz=Symbol("ContextProps"),IPe=e=>{ft(Oz,e)},PPe=()=>it(Oz,{onResizeColumn:()=>{}}),md="RC_TABLE_INTERNAL_COL_DEFINE",Iz=Symbol("HoverContextProps"),TPe=e=>{ft(Iz,e)},EPe=()=>it(Iz,{startRow:ve(-1),endRow:ve(-1),onHover(){}}),rw=ve(!1),APe=()=>{lt(()=>{rw.value=rw.value||jO("position","sticky")})},MPe=()=>rw;var RPe=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=n}function LPe(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!vr(e)}const Yy=pe({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const r=MI(),{onHover:o,startRow:i,endRow:a}=EPe(),l=M(()=>{var m,v,y,b;return(y=(m=e.colSpan)!==null&&m!==void 0?m:(v=e.additionalProps)===null||v===void 0?void 0:v.colSpan)!==null&&y!==void 0?y:(b=e.additionalProps)===null||b===void 0?void 0:b.colspan}),s=M(()=>{var m,v,y,b;return(y=(m=e.rowSpan)!==null&&m!==void 0?m:(v=e.additionalProps)===null||v===void 0?void 0:v.rowSpan)!==null&&y!==void 0?y:(b=e.additionalProps)===null||b===void 0?void 0:b.rowspan}),c=ai(()=>{const{index:m}=e;return DPe(m,s.value||1,i.value,a.value)}),u=MPe(),d=(m,v)=>{var y;const{record:b,index:$,additionalProps:x}=e;b&&o($,$+v-1),(y=x==null?void 0:x.onMouseenter)===null||y===void 0||y.call(x,m)},f=m=>{var v;const{record:y,additionalProps:b}=e;y&&o(-1,-1),(v=b==null?void 0:b.onMouseleave)===null||v===void 0||v.call(b,m)},h=m=>{const v=_n(m)[0];return vr(v)?v.type===_l?v.children:Array.isArray(v.children)?h(v.children):void 0:v};return()=>{var m,v,y,b,$,x;const{prefixCls:_,record:w,index:I,renderIndex:O,dataIndex:P,customRender:E,component:R="td",fixLeft:A,fixRight:N,firstFixLeft:F,lastFixLeft:W,firstFixRight:D,lastFixRight:B,appendNode:k=(m=n.appendNode)===null||m===void 0?void 0:m.call(n),additionalProps:L={},ellipsis:z,align:K,rowType:G,isSticky:Y,column:ne={},cellType:oe}=e,J=`${_}-cell`;let te,ee;const fe=(v=n.default)===null||v===void 0?void 0:v.call(n);if(nw(fe)||oe==="header")ee=fe;else{const Pe=wz(w,P);if(ee=Pe,E){const re=E({text:Pe,value:Pe,record:w,index:I,renderIndex:O,column:ne.__originColumn__});LPe(re)?(ee=re.children,te=re.props):ee=re}if(!(md in ne)&&oe==="body"&&r.value.bodyCell&&!(!((y=ne.slots)===null||y===void 0)&&y.customRender)){const re=Yb(r.value,"bodyCell",{text:Pe,value:Pe,record:w,index:I,column:ne.__originColumn__},()=>{const le=ee===void 0?Pe:ee;return[typeof le=="object"&&Jn(le)||typeof le!="object"?le:null]});ee=ln(re)}e.transformCellText&&(ee=e.transformCellText({text:ee,record:w,index:I,column:ne.__originColumn__}))}typeof ee=="object"&&!Array.isArray(ee)&&!vr(ee)&&(ee=null),z&&(W||D)&&(ee=g("span",{class:`${J}-content`},[ee])),Array.isArray(ee)&&ee.length===1&&(ee=ee[0]);const ie=te||{},{colSpan:X,rowSpan:ue,style:ye,class:H}=ie,j=RPe(ie,["colSpan","rowSpan","style","class"]),q=(b=X!==void 0?X:l.value)!==null&&b!==void 0?b:1,se=($=ue!==void 0?ue:s.value)!==null&&$!==void 0?$:1;if(q===0||se===0)return null;const ae={},ge=typeof A=="number"&&u.value,Se=typeof N=="number"&&u.value;ge&&(ae.position="sticky",ae.left=`${A}px`),Se&&(ae.position="sticky",ae.right=`${N}px`);const $e={};K&&($e.textAlign=K);let _e;const be=z===!0?{showTitle:!0}:z;be&&(be.showTitle||G==="header")&&(typeof ee=="string"||typeof ee=="number"?_e=ee.toString():vr(ee)&&(_e=h([ee])));const Te=S(S(S({title:_e},j),L),{colSpan:q!==1?q:null,rowSpan:se!==1?se:null,class:me(J,{[`${J}-fix-left`]:ge&&u.value,[`${J}-fix-left-first`]:F&&u.value,[`${J}-fix-left-last`]:W&&u.value,[`${J}-fix-right`]:Se&&u.value,[`${J}-fix-right-first`]:D&&u.value,[`${J}-fix-right-last`]:B&&u.value,[`${J}-ellipsis`]:z,[`${J}-with-append`]:k,[`${J}-fix-sticky`]:(ge||Se)&&Y&&u.value,[`${J}-row-hover`]:!te&&c.value},L.class,H),onMouseenter:Pe=>{d(Pe,se)},onMouseleave:f,style:[L.style,$e,ae,ye]});return g(R,Te,{default:()=>[k,ee,(x=n.dragHandle)===null||x===void 0?void 0:x.call(n)]})}}});function RI(e,t,n,r,o){const i=n[e]||{},a=n[t]||{};let l,s;i.fixed==="left"?l=r.left[e]:a.fixed==="right"&&(s=r.right[t]);let c=!1,u=!1,d=!1,f=!1;const h=n[t+1],m=n[e-1];return o==="rtl"?l!==void 0?f=!(m&&m.fixed==="left"):s!==void 0&&(d=!(h&&h.fixed==="right")):l!==void 0?c=!(h&&h.fixed==="left"):s!==void 0&&(u=!(m&&m.fixed==="right")),{fixLeft:l,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const L8={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},N8=50,NPe=pe({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:N8},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},r={remove:()=>{}};const o=()=>{n.remove(),r.remove()};Fr(()=>{o()}),ct(()=>{pn(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:i}=PPe(),a=M(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:N8),l=M(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=Nn();let c=0;const u=ve(!1);let d;const f=x=>{let _=0;x.touches?x.touches.length?_=x.touches[0].pageX:_=x.changedTouches[0].pageX:_=x.pageX;const w=t-_;let I=Math.max(c-w,a.value);I=Math.min(I,l.value),mt.cancel(d),d=mt(()=>{i(I,e.column.__originColumn__)})},h=x=>{f(x)},m=x=>{u.value=!1,f(x),o()},v=(x,_)=>{u.value=!0,o(),c=s.vnode.el.parentNode.getBoundingClientRect().width,!(x instanceof MouseEvent&&x.which!==1)&&(x.stopPropagation&&x.stopPropagation(),t=x.touches?x.touches[0].pageX:x.pageX,n=wn(document.documentElement,_.move,h),r=wn(document.documentElement,_.stop,m))},y=x=>{x.stopPropagation(),x.preventDefault(),v(x,L8.mouse)},b=x=>{x.stopPropagation(),x.preventDefault(),v(x,L8.touch)},$=x=>{x.stopPropagation(),x.preventDefault()};return()=>{const{prefixCls:x}=e,_={[dr?"onTouchstartPassive":"onTouchstart"]:w=>b(w)};return g("div",V(V({class:`${x}-resize-handle ${u.value?"dragging":""}`,onMousedown:y},_),{},{onClick:$}),[g("div",{class:`${x}-resize-handle-line`},null)])}}}),kPe=pe({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=Ha();return()=>{const{prefixCls:n,direction:r}=t,{cells:o,stickyOffsets:i,flattenColumns:a,rowComponent:l,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(o.map(h=>h.column),u));const f=Gy(o.map(h=>h.column));return g(l,d,{default:()=>[o.map((h,m)=>{const{column:v}=h,y=RI(h.colStart,h.colEnd,a,i,r);let b;v&&v.customHeaderCell&&(b=h.column.customHeaderCell(v));const $=v;return g(Yy,V(V(V({},h),{},{cellType:"header",ellipsis:v.ellipsis,align:v.align,component:s,prefixCls:n,key:f[m]},y),{},{additionalProps:b,rowType:"header",column:v}),{default:()=>v.title,dragHandle:()=>$.resizable?g(NPe,{prefixCls:n,width:$.width,minWidth:$.minWidth,maxWidth:$.maxWidth,column:$},null):null})})]})}}});function BPe(e){const t=[];function n(o,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[a]=t[a]||[];let l=i;return o.filter(Boolean).map(c=>{const u={key:c.key,class:me(c.className,c.class),column:c,colStart:l};let d=1;const f=c.children;return f&&f.length>0&&(d=n(f,l,a+1).reduce((h,m)=>h+m,0),u.hasSubColumns=!0),"colSpan"in c&&({colSpan:d}=c),"rowSpan"in c&&(u.rowSpan=c.rowSpan),u.colSpan=d,u.colEnd=u.colStart+d-1,t[a].push(u),l+=d,d})}n(e,0);const r=t.length;for(let o=0;o{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-o)});return t}const k8=pe({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=Ha(),n=M(()=>BPe(e.columns));return()=>{const{prefixCls:r,getComponent:o}=t,{stickyOffsets:i,flattenColumns:a,customHeaderRow:l}=e,s=o(["header","wrapper"],"thead"),c=o(["header","row"],"tr"),u=o(["header","cell"],"th");return g(s,{class:`${r}-thead`},{default:()=>[n.value.map((d,f)=>g(kPe,{key:f,flattenColumns:a,cells:d,stickyOffsets:i,rowComponent:c,cellComponent:u,customHeaderRow:l,index:f},null))]})}}}),Pz=Symbol("ExpandedRowProps"),FPe=e=>{ft(Pz,e)},HPe=()=>it(Pz,{}),Tz=pe({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:r}=t;const o=Ha(),i=HPe(),{fixHeader:a,fixColumn:l,componentWidth:s,horizonScroll:c}=i;return()=>{const{prefixCls:u,component:d,cellComponent:f,expanded:h,colSpan:m,isEmpty:v}=e;return g(d,{class:r.class,style:{display:h?null:"none"}},{default:()=>[g(Yy,{component:f,prefixCls:u,colSpan:m},{default:()=>{var y;let b=(y=n.default)===null||y===void 0?void 0:y.call(n);return(v?c.value:l.value)&&(b=g("div",{style:{width:`${s.value-(a.value?o.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${u}-expanded-row-fixed`},[b])),b}})]})}}}),zPe=pe({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const r=he();return lt(()=>{r.value&&n("columnResize",e.columnKey,r.value.offsetWidth)}),()=>g(ki,{onResize:o=>{let{offsetWidth:i}=o;n("columnResize",e.columnKey,i)}},{default:()=>[g("td",{ref:r,style:{padding:0,border:0,height:0}},[g("div",{style:{height:0,overflow:"hidden"}},[Dr(" ")])])]})}}),Ez=Symbol("BodyContextProps"),jPe=e=>{ft(Ez,e)},Az=()=>it(Ez,{}),WPe=pe({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const r=Ha(),o=Az(),i=ve(!1),a=M(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));ct(()=>{a.value&&(i.value=!0)});const l=M(()=>o.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=M(()=>o.expandableType==="nest"),c=M(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),u=M(()=>l.value||s.value),d=(y,b)=>{o.onTriggerExpand(y,b)},f=M(()=>{var y;return((y=e.customRow)===null||y===void 0?void 0:y.call(e,e.record,e.index))||{}}),h=function(y){var b,$;o.expandRowByClick&&u.value&&d(e.record,y);for(var x=arguments.length,_=new Array(x>1?x-1:0),w=1;w{const{record:y,index:b,indent:$}=e,{rowClassName:x}=o;return typeof x=="string"?x:typeof x=="function"?x(y,b,$):""}),v=M(()=>Gy(o.flattenColumns));return()=>{const{class:y,style:b}=n,{record:$,index:x,rowKey:_,indent:w=0,rowComponent:I,cellComponent:O}=e,{prefixCls:P,fixedInfoList:E,transformCellText:R}=r,{flattenColumns:A,expandedRowClassName:N,indentSize:F,expandIcon:W,expandedRowRender:D,expandIconColumnIndex:B}=o,k=g(I,V(V({},f.value),{},{"data-row-key":_,class:me(y,`${P}-row`,`${P}-row-level-${w}`,m.value,f.value.class),style:[b,f.value.style],onClick:h}),{default:()=>[A.map((z,K)=>{const{customRender:G,dataIndex:Y,className:ne}=z,oe=v[K],J=E[K];let te;z.customCell&&(te=z.customCell($,x,z));const ee=K===(B||0)&&s.value?g(Je,null,[g("span",{style:{paddingLeft:`${F*w}px`},class:`${P}-row-indent indent-level-${w}`},null),W({prefixCls:P,expanded:a.value,expandable:c.value,record:$,onExpand:d})]):null;return g(Yy,V(V({cellType:"body",class:ne,ellipsis:z.ellipsis,align:z.align,component:O,prefixCls:P,key:oe,record:$,index:x,renderIndex:e.renderIndex,dataIndex:Y,customRender:G},J),{},{additionalProps:te,column:z,transformCellText:R,appendNode:ee}),null)})]});let L;if(l.value&&(i.value||a.value)){const z=D({record:$,index:x,indent:w+1,expanded:a.value}),K=N&&N($,x,w);L=g(Tz,{expanded:a.value,class:me(`${P}-expanded-row`,`${P}-expanded-row-level-${w+1}`,K),prefixCls:P,component:I,cellComponent:O,colSpan:A.length,isEmpty:!1},{default:()=>[z]})}return g(Je,null,[k,L])}}});function Mz(e,t,n,r,o,i){const a=[];a.push({record:e,indent:t,index:i});const l=o(e),s=r==null?void 0:r.has(l);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{const i=t.value,a=n.value,l=e.value;if(a!=null&&a.size){const s=[];for(let c=0;c<(l==null?void 0:l.length);c+=1){const u=l[c];s.push(...Mz(u,0,i,a,r.value,c))}return s}return l==null?void 0:l.map((s,c)=>({record:s,indent:0,index:c}))})}const Rz=Symbol("ResizeContextProps"),KPe=e=>{ft(Rz,e)},UPe=()=>it(Rz,{onColumnResize:()=>{}}),GPe=pe({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const r=UPe(),o=Ha(),i=Az(),a=VPe(st(e,"data"),st(e,"childrenColumnName"),st(e,"expandedKeys"),st(e,"getRowKey")),l=ve(-1),s=ve(-1);let c;return TPe({startRow:l,endRow:s,onHover:(u,d)=>{clearTimeout(c),c=setTimeout(()=>{l.value=u,s.value=d},100)}}),()=>{var u;const{data:d,getRowKey:f,measureColumnWidth:h,expandedKeys:m,customRow:v,rowExpandable:y,childrenColumnName:b}=e,{onColumnResize:$}=r,{prefixCls:x,getComponent:_}=o,{flattenColumns:w}=i,I=_(["body","wrapper"],"tbody"),O=_(["body","row"],"tr"),P=_(["body","cell"],"td");let E;d.length?E=a.value.map((A,N)=>{const{record:F,indent:W,index:D}=A,B=f(F,N);return g(WPe,{key:B,rowKey:B,record:F,recordKey:B,index:N,renderIndex:D,rowComponent:O,cellComponent:P,expandedKeys:m,customRow:v,getRowKey:f,rowExpandable:y,childrenColumnName:b,indent:W},null)}):E=g(Tz,{expanded:!0,class:`${x}-placeholder`,prefixCls:x,component:O,cellComponent:P,colSpan:w.length,isEmpty:!0},{default:()=>[(u=n.emptyNode)===null||u===void 0?void 0:u.call(n)]});const R=Gy(w);return g(I,{class:`${x}-tbody`},{default:()=>[h&&g("tr",{"aria-hidden":"true",class:`${x}-measure-row`,style:{height:0,fontSize:0}},[R.map(A=>g(zPe,{key:A,columnKey:A,onColumnResize:$},null))]),E]})}}}),as={};var YPe=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{fixed:r}=n,o=r===!0?"left":r,i=n.children;return i&&i.length>0?[...t,...ow(i).map(a=>S({fixed:o},a))]:[...t,S(S({},n),{fixed:o})]},[])}function XPe(e){return e.map(t=>{const{fixed:n}=t,r=YPe(t,["fixed"]);let o=n;return n==="left"?o="right":n==="right"&&(o="left"),S({fixed:o},r)})}function qPe(e,t){let{prefixCls:n,columns:r,expandable:o,expandedKeys:i,getRowKey:a,onTriggerExpand:l,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:f,expandColumnWidth:h,expandFixed:m}=e;const v=MI(),y=M(()=>{if(o.value){let x=r.value.slice();if(!x.includes(as)){const F=u.value||0;F>=0&&x.splice(F,0,as)}const _=x.indexOf(as);x=x.filter((F,W)=>F!==as||W===_);const w=r.value[_];let I;(m.value==="left"||m.value)&&!u.value?I="left":(m.value==="right"||m.value)&&u.value===r.value.length?I="right":I=w?w.fixed:null;const O=i.value,P=c.value,E=s.value,R=n.value,A=f.value,N={[md]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:Yb(v.value,"expandColumnTitle",{},()=>[""]),fixed:I,class:`${n.value}-row-expand-icon-cell`,width:h.value,customRender:F=>{let{record:W,index:D}=F;const B=a.value(W,D),k=O.has(B),L=P?P(W):!0,z=E({prefixCls:R,expanded:k,expandable:L,record:W,onExpand:l});return A?g("span",{onClick:K=>K.stopPropagation()},[z]):z}};return x.map(F=>F===as?N:F)}return r.value.filter(x=>x!==as)}),b=M(()=>{let x=y.value;return t.value&&(x=t.value(x)),x.length||(x=[{customRender:()=>null}]),x}),$=M(()=>d.value==="rtl"?XPe(ow(b.value)):ow(b.value));return[b,$]}function Dz(e){const t=ve(e);let n;const r=ve([]);function o(i){r.value.push(i),mt.cancel(n),n=mt(()=>{const a=r.value;r.value=[],a.forEach(l=>{t.value=l(t.value)})})}return Ct(()=>{mt.cancel(n)}),[t,o]}function ZPe(e){const t=he(e||null),n=he();function r(){clearTimeout(n.value)}function o(a){t.value=a,r(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function i(){return t.value}return Ct(()=>{r()}),[o,i]}function QPe(e,t,n){return M(()=>{const o=[],i=[];let a=0,l=0;const s=e.value,c=t.value,u=n.value;for(let d=0;d=0;l-=1){const s=t[l],c=n&&n[l],u=c&&c[md];if(s||u||a){const d=u||{},f=JPe(d,["columnType"]);o.unshift(g("col",V({key:l,style:{width:typeof s=="number"?`${s}px`:s}},f),null)),a=!0}}return g("colgroup",null,[o])}function iw(e,t){let{slots:n}=t;var r;return g("div",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}iw.displayName="Panel";let eTe=0;const tTe=pe({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const r=Ha(),o=`table-summary-uni-key-${++eTe}`,i=M(()=>e.fixed===""||e.fixed);return ct(()=>{r.summaryCollect(o,i.value)}),Ct(()=>{r.summaryCollect(o,!1)}),()=>{var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),nTe=tTe,rTe=pe({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var r;return g("tr",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),Nz=Symbol("SummaryContextProps"),oTe=e=>{ft(Nz,e)},iTe=()=>it(Nz,{}),aTe=pe({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:r}=t;const o=Ha(),i=iTe();return()=>{const{index:a,colSpan:l=1,rowSpan:s,align:c}=e,{prefixCls:u,direction:d}=o,{scrollColumnIndex:f,stickyOffsets:h,flattenColumns:m}=i,y=a+l-1+1===f?l+1:l,b=RI(a,a+y-1,m,h,d);return g(Yy,V({class:n.class,index:a,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:y,rowSpan:s,customRender:()=>{var $;return($=r.default)===null||$===void 0?void 0:$.call(r)}},b),null)}}}),zv=pe({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const r=Ha();return oTe(St({stickyOffsets:st(e,"stickyOffsets"),flattenColumns:st(e,"flattenColumns"),scrollColumnIndex:M(()=>{const o=e.flattenColumns.length-1,i=e.flattenColumns[o];return i!=null&&i.scrollbar?o:null})})),()=>{var o;const{prefixCls:i}=r;return g("tfoot",{class:`${i}-summary`},[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),lTe=nTe;function sTe(e){let{prefixCls:t,record:n,onExpand:r,expanded:o,expandable:i}=e;const a=`${t}-row-expand-icon`;if(!i)return g("span",{class:[a,`${t}-row-spaced`]},null);const l=s=>{r(n,s),s.stopPropagation()};return g("span",{class:{[a]:!0,[`${t}-row-expanded`]:o,[`${t}-row-collapsed`]:!o},onClick:l},null)}function cTe(e,t,n){const r=[];function o(i){(i||[]).forEach((a,l)=>{r.push(t(a,l)),o(a[n])})}return o(e),r}const uTe=pe({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:r}=t;const o=Ha(),i=ve(0),a=ve(0),l=ve(0);ct(()=>{i.value=e.scrollBodySizeInfo.scrollWidth||0,a.value=e.scrollBodySizeInfo.clientWidth||0,l.value=i.value&&a.value*(a.value/i.value)},{flush:"post"});const s=ve(),[c,u]=Dz({scrollLeft:0,isHiddenScrollBar:!0}),d=he({delta:0,x:0}),f=ve(!1),h=()=>{f.value=!1},m=O=>{d.value={delta:O.pageX-c.value.scrollLeft,x:0},f.value=!0,O.preventDefault()},v=O=>{const{buttons:P}=O||(window==null?void 0:window.event);if(!f.value||P===0){f.value&&(f.value=!1);return}let E=d.value.x+O.pageX-d.value.x-d.value.delta;E<=0&&(E=0),E+l.value>=a.value&&(E=a.value-l.value),n("scroll",{scrollLeft:E/a.value*(i.value+2)}),d.value.x=O.pageX},y=()=>{if(!e.scrollBodyRef.value)return;const O=G0(e.scrollBodyRef.value).top,P=O+e.scrollBodyRef.value.offsetHeight,E=e.container===window?document.documentElement.scrollTop+window.innerHeight:G0(e.container).top+e.container.clientHeight;P-g0()<=E||O>=E-e.offsetScroll?u(R=>S(S({},R),{isHiddenScrollBar:!0})):u(R=>S(S({},R),{isHiddenScrollBar:!1}))};r({setScrollLeft:O=>{u(P=>S(S({},P),{scrollLeft:O/i.value*a.value||0}))}});let $=null,x=null,_=null,w=null;lt(()=>{$=wn(document.body,"mouseup",h,!1),x=wn(document.body,"mousemove",v,!1),_=wn(window,"resize",y,!1)}),Tb(()=>{_t(()=>{y()})}),lt(()=>{setTimeout(()=>{Ie([l,f],()=>{y()},{immediate:!0,flush:"post"})})}),Ie(()=>e.container,()=>{w==null||w.remove(),w=wn(e.container,"scroll",y,!1)},{immediate:!0,flush:"post"}),Ct(()=>{$==null||$.remove(),x==null||x.remove(),w==null||w.remove(),_==null||_.remove()}),Ie(()=>S({},c.value),(O,P)=>{O.isHiddenScrollBar!==(P==null?void 0:P.isHiddenScrollBar)&&!O.isHiddenScrollBar&&u(E=>{const R=e.scrollBodyRef.value;return R?S(S({},E),{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):E})},{immediate:!0});const I=g0();return()=>{if(i.value<=a.value||!l.value||c.value.isHiddenScrollBar)return null;const{prefixCls:O}=o;return g("div",{style:{height:`${I}px`,width:`${a.value}px`,bottom:`${e.offsetScroll}px`},class:`${O}-sticky-scroll`},[g("div",{onMousedown:m,ref:s,class:me(`${O}-sticky-scroll-bar`,{[`${O}-sticky-scroll-bar-active`]:f.value}),style:{width:`${l.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),B8=co()?window:null;function dTe(e,t){return M(()=>{const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:o=0,getContainer:i=()=>B8}=typeof e.value=="object"?e.value:{},a=i()||B8,l=!!e.value;return{isSticky:l,stickyClassName:l?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:o,container:a}})}function fTe(e,t){return M(()=>{const n=[],r=e.value,o=t.value;for(let i=0;ii.isSticky&&!e.fixHeader?0:i.scrollbarSize),l=he(),s=v=>{const{currentTarget:y,deltaX:b}=v;b&&(o("scroll",{currentTarget:y,scrollLeft:y.scrollLeft+b}),v.preventDefault())},c=he();lt(()=>{_t(()=>{c.value=wn(l.value,"wheel",s)})}),Ct(()=>{var v;(v=c.value)===null||v===void 0||v.remove()});const u=M(()=>e.flattenColumns.every(v=>v.width&&v.width!==0&&v.width!=="0px")),d=he([]),f=he([]);ct(()=>{const v=e.flattenColumns[e.flattenColumns.length-1],y={fixed:v?v.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${i.prefixCls}-cell-scrollbar`})};d.value=a.value?[...e.columns,y]:e.columns,f.value=a.value?[...e.flattenColumns,y]:e.flattenColumns});const h=M(()=>{const{stickyOffsets:v,direction:y}=e,{right:b,left:$}=v;return S(S({},v),{left:y==="rtl"?[...$.map(x=>x+a.value),0]:$,right:y==="rtl"?b:[...b.map(x=>x+a.value),0],isSticky:i.isSticky})}),m=fTe(st(e,"colWidths"),st(e,"columCount"));return()=>{var v;const{noData:y,columCount:b,stickyTopOffset:$,stickyBottomOffset:x,stickyClassName:_,maxContentScroll:w}=e,{isSticky:I}=i;return g("div",{style:S({overflow:"hidden"},I?{top:`${$}px`,bottom:`${x}px`}:{}),ref:l,class:me(n.class,{[_]:!!_})},[g("table",{style:{tableLayout:"fixed",visibility:y||m.value?null:"hidden"}},[(!y||!w||u.value)&&g(Lz,{colWidths:m.value?[...m.value,a.value]:[],columCount:b+1,columns:f.value},null),(v=r.default)===null||v===void 0?void 0:v.call(r,S(S({},e),{stickyOffsets:h.value,columns:d.value,flattenColumns:f.value}))])])}}});function H8(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r[o,st(e,o)])))}const pTe=[],hTe={},aw="rc-table-internal-hook",gTe=pe({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const i=M(()=>e.data||pTe),a=M(()=>!!i.value.length),l=M(()=>_Pe(e.components,{})),s=(le,xe)=>wz(l.value,le)||xe,c=M(()=>{const le=e.rowKey;return typeof le=="function"?le:xe=>xe&&xe[le]}),u=M(()=>e.expandIcon||sTe),d=M(()=>e.childrenColumnName||"children"),f=M(()=>e.expandedRowRender?"row":e.canExpandable||i.value.some(le=>le&&typeof le=="object"&&le[d.value])?"nest":!1),h=ve([]);ct(()=>{e.defaultExpandedRowKeys&&(h.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(h.value=cTe(i.value,c.value,d.value))})();const v=M(()=>new Set(e.expandedRowKeys||h.value||[])),y=le=>{const xe=c.value(le,i.value.indexOf(le));let Ae;const Be=v.value.has(xe);Be?(v.value.delete(xe),Ae=[...v.value]):Ae=[...v.value,xe],h.value=Ae,o("expand",!Be,le),o("update:expandedRowKeys",Ae),o("expandedRowsChange",Ae)},b=he(0),[$,x]=qPe(S(S({},ra(e)),{expandable:M(()=>!!e.expandedRowRender),expandedKeys:v,getRowKey:c,onTriggerExpand:y,expandIcon:u}),M(()=>e.internalHooks===aw?e.transformColumns:null)),_=M(()=>({columns:$.value,flattenColumns:x.value})),w=he(),I=he(),O=he(),P=he({scrollWidth:0,clientWidth:0}),E=he(),[R,A]=nn(!1),[N,F]=nn(!1),[W,D]=Dz(new Map),B=M(()=>Gy(x.value)),k=M(()=>B.value.map(le=>W.value.get(le))),L=M(()=>x.value.length),z=QPe(k,L,st(e,"direction")),K=M(()=>e.scroll&&nw(e.scroll.y)),G=M(()=>e.scroll&&nw(e.scroll.x)||!!e.expandFixed),Y=M(()=>G.value&&x.value.some(le=>{let{fixed:xe}=le;return xe})),ne=he(),oe=dTe(st(e,"sticky"),st(e,"prefixCls")),J=St({}),te=M(()=>{const le=Object.values(J)[0];return(K.value||oe.value.isSticky)&&le}),ee=(le,xe)=>{xe?J[le]=xe:delete J[le]},fe=he({}),ie=he({}),X=he({});ct(()=>{K.value&&(ie.value={overflowY:"scroll",maxHeight:sc(e.scroll.y)}),G.value&&(fe.value={overflowX:"auto"},K.value||(ie.value={overflowY:"hidden"}),X.value={width:e.scroll.x===!0?"auto":sc(e.scroll.x),minWidth:"100%"})});const ue=(le,xe)=>{Xb(w.value)&&D(Ae=>{if(Ae.get(le)!==xe){const Be=new Map(Ae);return Be.set(le,xe),Be}return Ae})},[ye,H]=ZPe(null);function j(le,xe){if(!xe)return;if(typeof xe=="function"){xe(le);return}const Ae=xe.$el||xe;Ae.scrollLeft!==le&&(Ae.scrollLeft=le)}const q=le=>{let{currentTarget:xe,scrollLeft:Ae}=le;var Be;const Ye=e.direction==="rtl",Re=typeof Ae=="number"?Ae:xe.scrollLeft,Le=xe||hTe;if((!H()||H()===Le)&&(ye(Le),j(Re,I.value),j(Re,O.value),j(Re,E.value),j(Re,(Be=ne.value)===null||Be===void 0?void 0:Be.setScrollLeft)),xe){const{scrollWidth:Ne,clientWidth:Ke}=xe;Ye?(A(-Re0)):(A(Re>0),F(Re{G.value&&O.value?q({currentTarget:O.value}):(A(!1),F(!1))};let ae;const ge=le=>{le!==b.value&&(se(),b.value=w.value?w.value.offsetWidth:le)},Se=le=>{let{width:xe}=le;if(clearTimeout(ae),b.value===0){ge(xe);return}ae=setTimeout(()=>{ge(xe)},100)};Ie([G,()=>e.data,()=>e.columns],()=>{G.value&&se()},{flush:"post"});const[$e,_e]=nn(0);APe(),lt(()=>{_t(()=>{var le,xe;se(),_e(fle(O.value).width),P.value={scrollWidth:((le=O.value)===null||le===void 0?void 0:le.scrollWidth)||0,clientWidth:((xe=O.value)===null||xe===void 0?void 0:xe.clientWidth)||0}})}),fo(()=>{_t(()=>{var le,xe;const Ae=((le=O.value)===null||le===void 0?void 0:le.scrollWidth)||0,Be=((xe=O.value)===null||xe===void 0?void 0:xe.clientWidth)||0;(P.value.scrollWidth!==Ae||P.value.clientWidth!==Be)&&(P.value={scrollWidth:Ae,clientWidth:Be})})}),ct(()=>{e.internalHooks===aw&&e.internalRefs&&e.onUpdateInternalRefs({body:O.value?O.value.$el||O.value:null})},{flush:"post"});const be=M(()=>e.tableLayout?e.tableLayout:Y.value?e.scroll.x==="max-content"?"auto":"fixed":K.value||oe.value.isSticky||x.value.some(le=>{let{ellipsis:xe}=le;return xe})?"fixed":"auto"),Te=()=>{var le;return a.value?null:((le=r.emptyText)===null||le===void 0?void 0:le.call(r))||"No Data"};xPe(St(S(S({},ra(H8(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:$e,fixedInfoList:M(()=>x.value.map((le,xe)=>RI(xe,xe,x.value,z.value,e.direction))),isSticky:M(()=>oe.value.isSticky),summaryCollect:ee}))),jPe(St(S(S({},ra(H8(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:$,flattenColumns:x,tableLayout:be,expandIcon:u,expandableType:f,onTriggerExpand:y}))),KPe({onColumnResize:ue}),FPe({componentWidth:b,fixHeader:K,fixColumn:Y,horizonScroll:G});const Pe=()=>g(GPe,{data:i.value,measureColumnWidth:K.value||G.value||oe.value.isSticky,expandedKeys:v.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:Te}),re=()=>g(Lz,{colWidths:x.value.map(le=>{let{width:xe}=le;return xe}),columns:x.value},null);return()=>{var le;const{prefixCls:xe,scroll:Ae,tableLayout:Be,direction:Ye,title:Re=r.title,footer:Le=r.footer,id:Ne,showHeader:Ke,customHeaderRow:Ze}=e,{isSticky:Ue,offsetHeader:Xe,offsetSummary:xt,offsetScroll:Mt,stickyClassName:Ft,container:jt}=oe.value,Yt=s(["table"],"table"),Vn=s(["body"]),Gn=(le=r.summary)===null||le===void 0?void 0:le.call(r,{pageData:i.value});let rr=()=>null;const kn={colWidths:k.value,columCount:x.value.length,stickyOffsets:z.value,customHeaderRow:Ze,fixHeader:K.value,scroll:Ae};if(K.value||Ue){let wo=()=>null;typeof Vn=="function"?(wo=()=>Vn(i.value,{scrollbarSize:$e.value,ref:O,onScroll:q}),kn.colWidths=x.value.map((Ar,za)=>{let{width:We}=Ar;const gt=za===$.value.length-1?We-$e.value:We;return typeof gt=="number"&&!Number.isNaN(gt)?gt:0})):wo=()=>g("div",{style:S(S({},fe.value),ie.value),onScroll:q,ref:O,class:me(`${xe}-body`)},[g(Yt,{style:S(S({},X.value),{tableLayout:be.value})},{default:()=>[re(),Pe(),!te.value&&Gn&&g(zv,{stickyOffsets:z.value,flattenColumns:x.value},{default:()=>[Gn]})]})]);const Uo=S(S(S({noData:!i.value.length,maxContentScroll:G.value&&Ae.x==="max-content"},kn),_.value),{direction:Ye,stickyClassName:Ft,onScroll:q});rr=()=>g(Je,null,[Ke!==!1&&g(F8,V(V({},Uo),{},{stickyTopOffset:Xe,class:`${xe}-header`,ref:I}),{default:Ar=>g(Je,null,[g(k8,Ar,null),te.value==="top"&&g(zv,Ar,{default:()=>[Gn]})])}),wo(),te.value&&te.value!=="top"&&g(F8,V(V({},Uo),{},{stickyBottomOffset:xt,class:`${xe}-summary`,ref:E}),{default:Ar=>g(zv,Ar,{default:()=>[Gn]})}),Ue&&O.value&&g(uTe,{ref:ne,offsetScroll:Mt,scrollBodyRef:O,onScroll:q,container:jt,scrollBodySizeInfo:P.value},null)])}else rr=()=>g("div",{style:S(S({},fe.value),ie.value),class:me(`${xe}-content`),onScroll:q,ref:O},[g(Yt,{style:S(S({},X.value),{tableLayout:be.value})},{default:()=>[re(),Ke!==!1&&g(k8,V(V({},kn),_.value),null),Pe(),Gn&&g(zv,{stickyOffsets:z.value,flattenColumns:x.value},{default:()=>[Gn]})]})]);const br=Ts(n,{aria:!0,data:!0}),Gr=()=>g("div",V(V({},br),{},{class:me(xe,{[`${xe}-rtl`]:Ye==="rtl",[`${xe}-ping-left`]:R.value,[`${xe}-ping-right`]:N.value,[`${xe}-layout-fixed`]:Be==="fixed",[`${xe}-fixed-header`]:K.value,[`${xe}-fixed-column`]:Y.value,[`${xe}-scroll-horizontal`]:G.value,[`${xe}-has-fix-left`]:x.value[0]&&x.value[0].fixed,[`${xe}-has-fix-right`]:x.value[L.value-1]&&x.value[L.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:Ne,ref:w}),[Re&&g(iw,{class:`${xe}-title`},{default:()=>[Re(i.value)]}),g("div",{class:`${xe}-container`},[rr()]),Le&&g(iw,{class:`${xe}-footer`},{default:()=>[Le(i.value)]})]);return G.value?g(ki,{onResize:Se},{default:Gr}):Gr()}}});function vTe(){const e=S({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e}const lw=10;function mTe(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function bTe(e,t,n){const r=M(()=>t.value&&typeof t.value=="object"?t.value:{}),o=M(()=>r.value.total||0),[i,a]=nn(()=>({current:"defaultCurrent"in r.value?r.value.defaultCurrent:1,pageSize:"defaultPageSize"in r.value?r.value.defaultPageSize:lw})),l=M(()=>{const u=vTe(i.value,r.value,{total:o.value>0?o.value:e.value}),d=Math.ceil((o.value||e.value)/u.pageSize);return u.current>d&&(u.current=d||1),u}),s=(u,d)=>{t.value!==!1&&a({current:u??1,pageSize:d||l.value.pageSize})},c=(u,d)=>{var f,h;t.value&&((h=(f=r.value).onChange)===null||h===void 0||h.call(f,u,d)),s(u,d),n(u,d||l.value.pageSize)};return[M(()=>t.value===!1?{}:S(S({},l.value),{onChange:c})),s]}function yTe(e,t,n){const r=ve({});Ie([e,t,n],()=>{const i=new Map,a=n.value,l=t.value;function s(c){c.forEach((u,d)=>{const f=a(u,d);i.set(f,u),u&&typeof u=="object"&&l in u&&s(u[l]||[])})}s(e.value),r.value={kvMap:i}},{deep:!0,immediate:!0});function o(i){return r.value.kvMap.get(i)}return[o]}const ll={},sw="SELECT_ALL",cw="SELECT_INVERT",uw="SELECT_NONE",STe=[];function kz(e,t){let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[...n,...kz(e,r[e])])}),n}function CTe(e,t){const n=M(()=>{const E=e.value||{},{checkStrictly:R=!0}=E;return S(S({},E),{checkStrictly:R})}),[r,o]=yn(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||STe,{value:M(()=>n.value.selectedRowKeys)}),i=ve(new Map),a=E=>{if(n.value.preserveSelectedRowKeys){const R=new Map;E.forEach(A=>{let N=t.getRecordByKey(A);!N&&i.value.has(A)&&(N=i.value.get(A)),R.set(A,N)}),i.value=R}};ct(()=>{a(r.value)});const l=M(()=>n.value.checkStrictly?null:Qh(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=M(()=>kz(t.childrenColumnName.value,t.pageData.value)),c=M(()=>{const E=new Map,R=t.getRowKey.value,A=n.value.getCheckboxProps;return s.value.forEach((N,F)=>{const W=R(N,F),D=(A?A(N):null)||{};E.set(W,D)}),E}),{maxLevel:u,levelEntities:d}=Ny(l),f=E=>{var R;return!!(!((R=c.value.get(t.getRowKey.value(E)))===null||R===void 0)&&R.disabled)},h=M(()=>{if(n.value.checkStrictly)return[r.value||[],[]];const{checkedKeys:E,halfCheckedKeys:R}=Mi(r.value,!0,l.value,u.value,d.value,f);return[E||[],R]}),m=M(()=>h.value[0]),v=M(()=>h.value[1]),y=M(()=>{const E=n.value.type==="radio"?m.value.slice(0,1):m.value;return new Set(E)}),b=M(()=>n.value.type==="radio"?new Set:new Set(v.value)),[$,x]=nn(null),_=E=>{let R,A;a(E);const{preserveSelectedRowKeys:N,onChange:F}=n.value,{getRecordByKey:W}=t;N?(R=E,A=E.map(D=>i.value.get(D))):(R=[],A=[],E.forEach(D=>{const B=W(D);B!==void 0&&(R.push(D),A.push(B))})),o(R),F==null||F(R,A)},w=(E,R,A,N)=>{const{onSelect:F}=n.value,{getRecordByKey:W}=t||{};if(F){const D=A.map(B=>W(B));F(W(E),R,D,N)}_(A)},I=M(()=>{const{onSelectInvert:E,onSelectNone:R,selections:A,hideSelectAll:N}=n.value,{data:F,pageData:W,getRowKey:D,locale:B}=t;return!A||N?null:(A===!0?[sw,cw,uw]:A).map(L=>L===sw?{key:"all",text:B.value.selectionAll,onSelect(){_(F.value.map((z,K)=>D.value(z,K)).filter(z=>{const K=c.value.get(z);return!(K!=null&&K.disabled)||y.value.has(z)}))}}:L===cw?{key:"invert",text:B.value.selectInvert,onSelect(){const z=new Set(y.value);W.value.forEach((G,Y)=>{const ne=D.value(G,Y),oe=c.value.get(ne);oe!=null&&oe.disabled||(z.has(ne)?z.delete(ne):z.add(ne))});const K=Array.from(z);E&&(pn(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),E(K)),_(K)}}:L===uw?{key:"none",text:B.value.selectNone,onSelect(){R==null||R(),_(Array.from(y.value).filter(z=>{const K=c.value.get(z);return K==null?void 0:K.disabled}))}}:L)}),O=M(()=>s.value.length);return[E=>{var R;const{onSelectAll:A,onSelectMultiple:N,columnWidth:F,type:W,fixed:D,renderCell:B,hideSelectAll:k,checkStrictly:L}=n.value,{prefixCls:z,getRecordByKey:K,getRowKey:G,expandType:Y,getPopupContainer:ne}=t;if(!e.value)return E.filter(ge=>ge!==ll);let oe=E.slice();const J=new Set(y.value),te=s.value.map(G.value).filter(ge=>!c.value.get(ge).disabled),ee=te.every(ge=>J.has(ge)),fe=te.some(ge=>J.has(ge)),ie=()=>{const ge=[];ee?te.forEach($e=>{J.delete($e),ge.push($e)}):te.forEach($e=>{J.has($e)||(J.add($e),ge.push($e))});const Se=Array.from(J);A==null||A(!ee,Se.map($e=>K($e)),ge.map($e=>K($e))),_(Se)};let X;if(W!=="radio"){let ge;if(I.value){const Te=g(qn,{getPopupContainer:ne.value},{default:()=>[I.value.map((Pe,re)=>{const{key:le,text:xe,onSelect:Ae}=Pe;return g(qn.Item,{key:le||re,onClick:()=>{Ae==null||Ae(te)}},{default:()=>[xe]})})]});ge=g("div",{class:`${z.value}-selection-extra`},[g(Ta,{overlay:Te,getPopupContainer:ne.value},{default:()=>[g("span",null,[g(jh,null,null)])]})])}const Se=s.value.map((Te,Pe)=>{const re=G.value(Te,Pe),le=c.value.get(re)||{};return S({checked:J.has(re)},le)}).filter(Te=>{let{disabled:Pe}=Te;return Pe}),$e=!!Se.length&&Se.length===O.value,_e=$e&&Se.every(Te=>{let{checked:Pe}=Te;return Pe}),be=$e&&Se.some(Te=>{let{checked:Pe}=Te;return Pe});X=!k&&g("div",{class:`${z.value}-selection`},[g(Ri,{checked:$e?_e:!!O.value&&ee,indeterminate:$e?!_e&&be:!ee&&fe,onChange:ie,disabled:O.value===0||$e,"aria-label":ge?"Custom selection":"Select all",skipGroup:!0},null),ge])}let ue;W==="radio"?ue=ge=>{let{record:Se,index:$e}=ge;const _e=G.value(Se,$e),be=J.has(_e);return{node:g(yo,V(V({},c.value.get(_e)),{},{checked:be,onClick:Te=>Te.stopPropagation(),onChange:Te=>{J.has(_e)||w(_e,!0,[_e],Te.nativeEvent)}}),null),checked:be}}:ue=ge=>{let{record:Se,index:$e}=ge;var _e;const be=G.value(Se,$e),Te=J.has(be),Pe=b.value.has(be),re=c.value.get(be);let le;return Y.value==="nest"?(le=Pe,pn(typeof(re==null?void 0:re.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):le=(_e=re==null?void 0:re.indeterminate)!==null&&_e!==void 0?_e:Pe,{node:g(Ri,V(V({},re),{},{indeterminate:le,checked:Te,skipGroup:!0,onClick:xe=>xe.stopPropagation(),onChange:xe=>{let{nativeEvent:Ae}=xe;const{shiftKey:Be}=Ae;let Ye=-1,Re=-1;if(Be&&L){const Le=new Set([$.value,be]);te.some((Ne,Ke)=>{if(Le.has(Ne))if(Ye===-1)Ye=Ke;else return Re=Ke,!0;return!1})}if(Re!==-1&&Ye!==Re&&L){const Le=te.slice(Ye,Re+1),Ne=[];Te?Le.forEach(Ze=>{J.has(Ze)&&(Ne.push(Ze),J.delete(Ze))}):Le.forEach(Ze=>{J.has(Ze)||(Ne.push(Ze),J.add(Ze))});const Ke=Array.from(J);N==null||N(!Te,Ke.map(Ze=>K(Ze)),Ne.map(Ze=>K(Ze))),_(Ke)}else{const Le=m.value;if(L){const Ne=Te?$a(Le,be):al(Le,be);w(be,!Te,Ne,Ae)}else{const Ne=Mi([...Le,be],!0,l.value,u.value,d.value,f),{checkedKeys:Ke,halfCheckedKeys:Ze}=Ne;let Ue=Ke;if(Te){const Xe=new Set(Ke);Xe.delete(be),Ue=Mi(Array.from(Xe),{checked:!1,halfCheckedKeys:Ze},l.value,u.value,d.value,f).checkedKeys}w(be,!Te,Ue,Ae)}}x(be)}}),null),checked:Te}};const ye=ge=>{let{record:Se,index:$e}=ge;const{node:_e,checked:be}=ue({record:Se,index:$e});return B?B(be,Se,$e,_e):_e};if(!oe.includes(ll))if(oe.findIndex(ge=>{var Se;return((Se=ge[md])===null||Se===void 0?void 0:Se.columnType)==="EXPAND_COLUMN"})===0){const[ge,...Se]=oe;oe=[ge,ll,...Se]}else oe=[ll,...oe];const H=oe.indexOf(ll);oe=oe.filter((ge,Se)=>ge!==ll||Se===H);const j=oe[H-1],q=oe[H+1];let se=D;se===void 0&&((q==null?void 0:q.fixed)!==void 0?se=q.fixed:(j==null?void 0:j.fixed)!==void 0&&(se=j.fixed)),se&&j&&((R=j[md])===null||R===void 0?void 0:R.columnType)==="EXPAND_COLUMN"&&j.fixed===void 0&&(j.fixed=se);const ae={fixed:se,width:F,className:`${z.value}-selection-column`,title:n.value.columnTitle||X,customRender:ye,[md]:{class:`${z.value}-selection-col`}};return oe.map(ge=>ge===ll?ae:ge)},y]}var $Te={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const xTe=$Te;function z8(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=ln(e),n=[];return t.forEach(r=>{var o,i,a,l;if(!r)return;const s=r.key,c=((o=r.props)===null||o===void 0?void 0:o.style)||{},u=((i=r.props)===null||i===void 0?void 0:i.class)||"",d=r.props||{};for(const[y,b]of Object.entries(d))d[Gc(y)]=b;const f=r.children||{},{default:h}=f,m=ETe(f,["default"]),v=S(S(S({},m),d),{style:c,class:u});if(s&&(v.key=s),!((a=r.type)===null||a===void 0)&&a.__ANT_TABLE_COLUMN_GROUP)v.children=Bz(typeof h=="function"?h():h);else{const y=(l=r.children)===null||l===void 0?void 0:l.default;v.customRender=v.customRender||y}n.push(v)}),n}const Nm="ascend",WC="descend";function q0(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function W8(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ATe(e,t){return t?e[e.indexOf(t)+1]:e[0]}function dw(e,t,n){let r=[];function o(i,a){r.push({column:i,key:Dc(i,a),multiplePriority:q0(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const l=ng(a,n);i.children?("sortOrder"in i&&o(i,l),r=[...r,...dw(i.children,t,l)]):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Dc(i,l),multiplePriority:q0(i),sortOrder:i.defaultSortOrder}))}),r}function Fz(e,t,n,r,o,i,a,l){return(t||[]).map((s,c)=>{const u=ng(c,l);let d=s;if(d.sorter){const f=d.sortDirections||o,h=d.showSorterTooltip===void 0?a:d.showSorterTooltip,m=Dc(d,u),v=n.find(E=>{let{key:R}=E;return R===m}),y=v?v.sortOrder:null,b=ATe(f,y),$=f.includes(Nm)&&g(TTe,{class:me(`${e}-column-sorter-up`,{active:y===Nm}),role:"presentation"},null),x=f.includes(WC)&&g(_Te,{role:"presentation",class:me(`${e}-column-sorter-down`,{active:y===WC})},null),{cancelSort:_,triggerAsc:w,triggerDesc:I}=i||{};let O=_;b===WC?O=I:b===Nm&&(O=w);const P=typeof h=="object"?h:{title:O};d=S(S({},d),{className:me(d.className,{[`${e}-column-sort`]:y}),title:E=>{const R=g("div",{class:`${e}-column-sorters`},[g("span",{class:`${e}-column-title`},[NI(s.title,E)]),g("span",{class:me(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!($&&x)})},[g("span",{class:`${e}-column-sorter-inner`},[$,x])])]);return h?g(Bo,P,{default:()=>[R]}):R},customHeaderCell:E=>{const R=s.customHeaderCell&&s.customHeaderCell(E)||{},A=R.onClick,N=R.onKeydown;return R.onClick=F=>{r({column:s,key:m,sortOrder:b,multiplePriority:q0(s)}),A&&A(F)},R.onKeydown=F=>{F.keyCode===Fe.ENTER&&(r({column:s,key:m,sortOrder:b,multiplePriority:q0(s)}),N==null||N(F))},y&&(R["aria-sort"]=y==="ascend"?"ascending":"descending"),R.class=me(R.class,`${e}-column-has-sorters`),R.tabindex=0,R}})}return"children"in d&&(d=S(S({},d),{children:Fz(e,d.children,n,r,o,i,a,u)})),d})}function V8(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function K8(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(V8);return t.length===0&&e.length?S(S({},V8(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function fw(e,t,n){const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:s}=a;return W8(l)&&s});return i.length?o.sort((a,l)=>{for(let s=0;s{const l=a[n];return l?S(S({},a),{[n]:fw(l,t,n)}):a}):o}function MTe(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[l,s]=nn(dw(n.value,!0)),c=M(()=>{let m=!0;const v=dw(n.value,!1);if(!v.length)return l.value;const y=[];function b(x){m?y.push(x):y.push(S(S({},x),{sortOrder:null}))}let $=null;return v.forEach(x=>{$===null?(b(x),x.sortOrder&&(x.multiplePriority===!1?m=!1:$=!0)):($&&x.multiplePriority!==!1||(m=!1),b(x))}),y}),u=M(()=>{const m=c.value.map(v=>{let{column:y,sortOrder:b}=v;return{column:y,order:b}});return{sortColumns:m,sortColumn:m[0]&&m[0].column,sortOrder:m[0]&&m[0].order}});function d(m){let v;m.multiplePriority===!1||!c.value.length||c.value[0].multiplePriority===!1?v=[m]:v=[...c.value.filter(y=>{let{key:b}=y;return b!==m.key}),m],s(v),r(K8(v),v)}const f=m=>Fz(t.value,m,c.value,d,o.value,i.value,a.value),h=M(()=>K8(c.value));return[f,c,u,h]}var RTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const DTe=RTe;function U8(e){for(var t=1;t{const{keyCode:t}=e;t===Fe.ENTER&&e.stopPropagation()},BTe=(e,t)=>{let{slots:n}=t;var r;return g("div",{onClick:o=>o.stopPropagation(),onKeydown:kTe},[(r=n.default)===null||r===void 0?void 0:r.call(n)])},FTe=BTe,G8=pe({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Qe(),onChange:Oe(),filterSearch:ot([Boolean,Function]),tablePrefixCls:Qe(),locale:qe()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?g("div",{class:`${o}-filter-dropdown-search`},[g(ur,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${o}-filter-dropdown-search-input`},{prefix:()=>g(uy,null,null)})]):null}}});var Y8=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);oe.motion?e.motion:Uh()),s=(c,u)=>{var d,f,h,m;u==="appear"?(f=(d=l.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,c):u==="leave"&&((m=(h=l.value)===null||h===void 0?void 0:h.onAfterLeave)===null||m===void 0||m.call(h,c)),a.value||e.onMotionEnd(),a.value=!0};return Ie(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&o.value&&_t(()=>{o.value=!1})},{immediate:!0,flush:"post"}),lt(()=>{e.motionNodes&&e.onMotionStart()}),Ct(()=>{e.motionNodes&&s()}),()=>{const{motion:c,motionNodes:u,motionType:d,active:f,eventKey:h}=e,m=Y8(e,["motion","motionNodes","motionType","active","eventKey"]);return u?g(sr,V(V({},l.value),{},{appear:d==="show",onAfterAppear:v=>s(v,"appear"),onAfterLeave:v=>s(v,"leave")}),{default:()=>[Ln(g("div",{class:`${i.value.prefixCls}-treenode-motion`},[u.map(v=>{const y=Y8(v.data,[]),{title:b,key:$,isStart:x,isEnd:_}=v;return delete y.children,g(Lx,V(V({},y),{},{title:b,active:f,data:v.data,key:$,eventKey:$,isStart:x,isEnd:_}),r)})]),[[Br,o.value]])]}):g(Lx,V(V({class:n.class,style:n.style},m),{},{active:f,eventKey:h}),r)}}});function zTe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){const l=new Map;i.forEach(c=>{l.set(c,!0)});const s=a.filter(c=>!l.has(c));return s.length===1?s[0]:null}return na.key===n),o=e[r+1],i=t.findIndex(a=>a.key===n);if(o){const a=t.findIndex(l=>l.key===o.key);return t.slice(i+1,a)}return t.slice(i+1)}var q8=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{},Lc=`RC_TREE_MOTION_${Math.random()}`,pw={key:Lc},Hz={key:Lc,level:0,index:0,pos:"0",node:pw,nodes:[pw]},Q8={parent:null,children:[],pos:Hz.pos,data:pw,title:null,key:Lc,isStart:[],isEnd:[]};function J8(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function eR(e){const{key:t,pos:n}=e;return Zh(t,n)}function WTe(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const VTe=pe({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:wye,setup(e,t){let{expose:n,attrs:r}=t;const o=he(),i=he(),{expandedKeys:a,flattenNodes:l}=sF();n({scrollTo:v=>{o.value.scrollTo(v)},getIndentWidth:()=>i.value.offsetWidth});const s=ve(l.value),c=ve([]),u=he(null);function d(){s.value=l.value,c.value=[],u.value=null,e.onListChangeEnd()}const f=FO();Ie([()=>a.value.slice(),l],(v,y)=>{let[b,$]=v,[x,_]=y;const w=zTe(x,b);if(w.key!==null){const{virtual:I,height:O,itemHeight:P}=e;if(w.add){const E=_.findIndex(N=>{let{key:F}=N;return F===w.key}),R=J8(X8(_,$,w.key),I,O,P),A=_.slice();A.splice(E+1,0,Q8),s.value=A,c.value=R,u.value="show"}else{const E=$.findIndex(N=>{let{key:F}=N;return F===w.key}),R=J8(X8($,_,w.key),I,O,P),A=$.slice();A.splice(E+1,0,Q8),s.value=A,c.value=R,u.value="hide"}}else _!==$&&(s.value=$)}),Ie(()=>f.value.dragging,v=>{v||d()});const h=M(()=>e.motion===void 0?s.value:l.value),m=()=>{e.onActiveChange(null)};return()=>{const v=S(S({},e),r),{prefixCls:y,selectable:b,checkable:$,disabled:x,motion:_,height:w,itemHeight:I,virtual:O,focusable:P,activeItem:E,focused:R,tabindex:A,onKeydown:N,onFocus:F,onBlur:W,onListChangeStart:D,onListChangeEnd:B}=v,k=q8(v,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return g(Je,null,[R&&E&&g("span",{style:Z8,"aria-live":"assertive"},[WTe(E)]),g("div",null,[g("input",{style:Z8,disabled:P===!1||x,tabindex:P!==!1?A:null,onKeydown:N,onFocus:F,onBlur:W,value:"",onChange:jTe,"aria-label":"for screen reader"},null)]),g("div",{class:`${y}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[g("div",{class:`${y}-indent`},[g("div",{ref:i,class:`${y}-indent-unit`},null)])]),g(Pk,V(V({},Ot(k,["onActiveChange"])),{},{data:h.value,itemKey:eR,height:w,fullHeight:!1,virtual:O,itemHeight:I,prefixCls:`${y}-list`,ref:o,onVisibleChange:(L,z)=>{const K=new Set(L);z.filter(Y=>!K.has(Y)).some(Y=>eR(Y)===Lc)&&d()}}),{default:L=>{const{pos:z}=L,K=q8(L.data,[]),{title:G,key:Y,isStart:ne,isEnd:oe}=L,J=Zh(Y,z);return delete K.key,delete K.children,g(HTe,V(V({},K),{},{eventKey:J,title:G,active:!!E&&Y===E.key,data:L.data,isStart:ne,isEnd:oe,motion:_,motionNodes:Y===Lc?c.value:null,motionType:u.value,onMotionStart:D,onMotionEnd:d,onMousemove:m}),null)}})])}}});function KTe(e){let{dropPosition:t,dropLevelOffset:n,indent:r}=e;const o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:o.top=0,o.left=`${-n*r}px`;break;case 1:o.bottom=0,o.left=`${-n*r}px`;break;case 0:o.bottom=0,o.left=`${r}`;break}return g("div",{style:o},null)}const UTe=10,zz=pe({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:bt(uF(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:KTe,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:r,expose:o}=t;const i=ve(!1);let a={};const l=ve(),s=ve([]),c=ve([]),u=ve([]),d=ve([]),f=ve([]),h=ve([]),m={},v=St({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),y=ve([]);Ie([()=>e.treeData,()=>e.children],()=>{y.value=e.treeData!==void 0?$t(e.treeData).slice():kx($t(e.children))},{immediate:!0,deep:!0});const b=ve({}),$=ve(!1),x=ve(null),_=ve(!1),w=M(()=>My(e.fieldNames)),I=ve();let O=null,P=null,E=null;const R=M(()=>({expandedKeysSet:A.value,selectedKeysSet:N.value,loadedKeysSet:F.value,loadingKeysSet:W.value,checkedKeysSet:D.value,halfCheckedKeysSet:B.value,dragOverNodeKey:v.dragOverNodeKey,dropPosition:v.dropPosition,keyEntities:b.value})),A=M(()=>new Set(h.value)),N=M(()=>new Set(s.value)),F=M(()=>new Set(d.value)),W=M(()=>new Set(f.value)),D=M(()=>new Set(c.value)),B=M(()=>new Set(u.value));ct(()=>{if(y.value){const Re=Qh(y.value,{fieldNames:w.value});b.value=S({[Lc]:Hz},Re.keyEntities)}});let k=!1;Ie([()=>e.expandedKeys,()=>e.autoExpandParent,b],(Re,Le)=>{let[Ne,Ke]=Re,[Ze,Ue]=Le,Xe=h.value;if(e.expandedKeys!==void 0||k&&Ke!==Ue)Xe=e.autoExpandParent||!k&&e.defaultExpandParent?Nx(e.expandedKeys,b.value):e.expandedKeys;else if(!k&&e.defaultExpandAll){const xt=S({},b.value);delete xt[Lc],Xe=Object.keys(xt).map(Mt=>xt[Mt].key)}else!k&&e.defaultExpandedKeys&&(Xe=e.autoExpandParent||e.defaultExpandParent?Nx(e.defaultExpandedKeys,b.value):e.defaultExpandedKeys);Xe&&(h.value=Xe),k=!0},{immediate:!0});const L=ve([]);ct(()=>{L.value=Mye(y.value,h.value,w.value)}),ct(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=l6(e.selectedKeys,e):!k&&e.defaultSelectedKeys&&(s.value=l6(e.defaultSelectedKeys,e)))});const{maxLevel:z,levelEntities:K}=Ny(b);ct(()=>{if(e.checkable){let Re;if(e.checkedKeys!==void 0?Re=_C(e.checkedKeys)||{}:!k&&e.defaultCheckedKeys?Re=_C(e.defaultCheckedKeys)||{}:y.value&&(Re=_C(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),Re){let{checkedKeys:Le=[],halfCheckedKeys:Ne=[]}=Re;e.checkStrictly||({checkedKeys:Le,halfCheckedKeys:Ne}=Mi(Le,!0,b.value,z.value,K.value)),c.value=Le,u.value=Ne}}}),ct(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const G=()=>{S(v,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},Y=Re=>{I.value.scrollTo(Re)};Ie(()=>e.activeKey,()=>{e.activeKey!==void 0&&(x.value=e.activeKey)},{immediate:!0}),Ie(x,Re=>{_t(()=>{Re!==null&&Y({key:Re})})},{immediate:!0,flush:"post"});const ne=Re=>{e.expandedKeys===void 0&&(h.value=Re)},oe=()=>{v.draggingNodeKey!==null&&S(v,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),O=null,E=null},J=(Re,Le)=>{const{onDragend:Ne}=e;v.dragOverNodeKey=null,oe(),Ne==null||Ne({event:Re,node:Le.eventData}),P=null},te=Re=>{J(Re,null),window.removeEventListener("dragend",te)},ee=(Re,Le)=>{const{onDragstart:Ne}=e,{eventKey:Ke,eventData:Ze}=Le;P=Le,O={x:Re.clientX,y:Re.clientY};const Ue=$a(h.value,Ke);v.draggingNodeKey=Ke,v.dragChildrenKeys=Pye(Ke,b.value),l.value=I.value.getIndentWidth(),ne(Ue),window.addEventListener("dragend",te),Ne&&Ne({event:Re,node:Ze})},fe=(Re,Le)=>{const{onDragenter:Ne,onExpand:Ke,allowDrop:Ze,direction:Ue}=e,{pos:Xe,eventKey:xt}=Le;if(E!==xt&&(E=xt),!P){G();return}const{dropPosition:Mt,dropLevelOffset:Ft,dropTargetKey:jt,dropContainerKey:Yt,dropTargetPos:Vn,dropAllowed:Gn,dragOverNodeKey:rr}=a6(Re,P,Le,l.value,O,Ze,L.value,b.value,A.value,Ue);if(v.dragChildrenKeys.indexOf(jt)!==-1||!Gn){G();return}if(a||(a={}),Object.keys(a).forEach(kn=>{clearTimeout(a[kn])}),P.eventKey!==Le.eventKey&&(a[Xe]=window.setTimeout(()=>{if(v.draggingNodeKey===null)return;let kn=h.value.slice();const br=b.value[Le.eventKey];br&&(br.children||[]).length&&(kn=al(h.value,Le.eventKey)),ne(kn),Ke&&Ke(kn,{node:Le.eventData,expanded:!0,nativeEvent:Re})},800)),P.eventKey===jt&&Ft===0){G();return}S(v,{dragOverNodeKey:rr,dropPosition:Mt,dropLevelOffset:Ft,dropTargetKey:jt,dropContainerKey:Yt,dropTargetPos:Vn,dropAllowed:Gn}),Ne&&Ne({event:Re,node:Le.eventData,expandedKeys:h.value})},ie=(Re,Le)=>{const{onDragover:Ne,allowDrop:Ke,direction:Ze}=e;if(!P)return;const{dropPosition:Ue,dropLevelOffset:Xe,dropTargetKey:xt,dropContainerKey:Mt,dropAllowed:Ft,dropTargetPos:jt,dragOverNodeKey:Yt}=a6(Re,P,Le,l.value,O,Ke,L.value,b.value,A.value,Ze);v.dragChildrenKeys.indexOf(xt)!==-1||!Ft||(P.eventKey===xt&&Xe===0?v.dropPosition===null&&v.dropLevelOffset===null&&v.dropTargetKey===null&&v.dropContainerKey===null&&v.dropTargetPos===null&&v.dropAllowed===!1&&v.dragOverNodeKey===null||G():Ue===v.dropPosition&&Xe===v.dropLevelOffset&&xt===v.dropTargetKey&&Mt===v.dropContainerKey&&jt===v.dropTargetPos&&Ft===v.dropAllowed&&Yt===v.dragOverNodeKey||S(v,{dropPosition:Ue,dropLevelOffset:Xe,dropTargetKey:xt,dropContainerKey:Mt,dropTargetPos:jt,dropAllowed:Ft,dragOverNodeKey:Yt}),Ne&&Ne({event:Re,node:Le.eventData}))},X=(Re,Le)=>{E===Le.eventKey&&!Re.currentTarget.contains(Re.relatedTarget)&&(G(),E=null);const{onDragleave:Ne}=e;Ne&&Ne({event:Re,node:Le.eventData})},ue=function(Re,Le){let Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ke;const{dragChildrenKeys:Ze,dropPosition:Ue,dropTargetKey:Xe,dropTargetPos:xt,dropAllowed:Mt}=v;if(!Mt)return;const{onDrop:Ft}=e;if(v.dragOverNodeKey=null,oe(),Xe===null)return;const jt=S(S({},ym(Xe,$t(R.value))),{active:((Ke=xe.value)===null||Ke===void 0?void 0:Ke.key)===Xe,data:b.value[Xe].node});Ze.indexOf(Xe);const Yt=HO(xt),Vn={event:Re,node:Sm(jt),dragNode:P?P.eventData:null,dragNodesKeys:[P.eventKey].concat(Ze),dropToGap:Ue!==0,dropPosition:Ue+Number(Yt[Yt.length-1])};Ne||Ft==null||Ft(Vn),P=null},ye=(Re,Le)=>{const{expanded:Ne,key:Ke}=Le,Ze=L.value.filter(Xe=>Xe.key===Ke)[0],Ue=Sm(S(S({},ym(Ke,R.value)),{data:Ze.data}));ne(Ne?$a(h.value,Ke):al(h.value,Ke)),Te(Re,Ue)},H=(Re,Le)=>{const{onClick:Ne,expandAction:Ke}=e;Ke==="click"&&ye(Re,Le),Ne&&Ne(Re,Le)},j=(Re,Le)=>{const{onDblclick:Ne,expandAction:Ke}=e;(Ke==="doubleclick"||Ke==="dblclick")&&ye(Re,Le),Ne&&Ne(Re,Le)},q=(Re,Le)=>{let Ne=s.value;const{onSelect:Ke,multiple:Ze}=e,{selected:Ue}=Le,Xe=Le[w.value.key],xt=!Ue;xt?Ze?Ne=al(Ne,Xe):Ne=[Xe]:Ne=$a(Ne,Xe);const Mt=b.value,Ft=Ne.map(jt=>{const Yt=Mt[jt];return Yt?Yt.node:null}).filter(jt=>jt);e.selectedKeys===void 0&&(s.value=Ne),Ke&&Ke(Ne,{event:"select",selected:xt,node:Le,selectedNodes:Ft,nativeEvent:Re})},se=(Re,Le,Ne)=>{const{checkStrictly:Ke,onCheck:Ze}=e,Ue=Le[w.value.key];let Xe;const xt={event:"check",node:Le,checked:Ne,nativeEvent:Re},Mt=b.value;if(Ke){const Ft=Ne?al(c.value,Ue):$a(c.value,Ue),jt=$a(u.value,Ue);Xe={checked:Ft,halfChecked:jt},xt.checkedNodes=Ft.map(Yt=>Mt[Yt]).filter(Yt=>Yt).map(Yt=>Yt.node),e.checkedKeys===void 0&&(c.value=Ft)}else{let{checkedKeys:Ft,halfCheckedKeys:jt}=Mi([...c.value,Ue],!0,Mt,z.value,K.value);if(!Ne){const Yt=new Set(Ft);Yt.delete(Ue),{checkedKeys:Ft,halfCheckedKeys:jt}=Mi(Array.from(Yt),{checked:!1,halfCheckedKeys:jt},Mt,z.value,K.value)}Xe=Ft,xt.checkedNodes=[],xt.checkedNodesPositions=[],xt.halfCheckedKeys=jt,Ft.forEach(Yt=>{const Vn=Mt[Yt];if(!Vn)return;const{node:Gn,pos:rr}=Vn;xt.checkedNodes.push(Gn),xt.checkedNodesPositions.push({node:Gn,pos:rr})}),e.checkedKeys===void 0&&(c.value=Ft,u.value=jt)}Ze&&Ze(Xe,xt)},ae=Re=>{const Le=Re[w.value.key],Ne=new Promise((Ke,Ze)=>{const{loadData:Ue,onLoad:Xe}=e;if(!Ue||F.value.has(Le)||W.value.has(Le))return null;Ue(Re).then(()=>{const Mt=al(d.value,Le),Ft=$a(f.value,Le);Xe&&Xe(Mt,{event:"load",node:Re}),e.loadedKeys===void 0&&(d.value=Mt),f.value=Ft,Ke()}).catch(Mt=>{const Ft=$a(f.value,Le);if(f.value=Ft,m[Le]=(m[Le]||0)+1,m[Le]>=UTe){const jt=al(d.value,Le);e.loadedKeys===void 0&&(d.value=jt),Ke()}Ze(Mt)}),f.value=al(f.value,Le)});return Ne.catch(()=>{}),Ne},ge=(Re,Le)=>{const{onMouseenter:Ne}=e;Ne&&Ne({event:Re,node:Le})},Se=(Re,Le)=>{const{onMouseleave:Ne}=e;Ne&&Ne({event:Re,node:Le})},$e=(Re,Le)=>{const{onRightClick:Ne}=e;Ne&&(Re.preventDefault(),Ne({event:Re,node:Le}))},_e=Re=>{const{onFocus:Le}=e;$.value=!0,Le&&Le(Re)},be=Re=>{const{onBlur:Le}=e;$.value=!1,le(null),Le&&Le(Re)},Te=(Re,Le)=>{let Ne=h.value;const{onExpand:Ke,loadData:Ze}=e,{expanded:Ue}=Le,Xe=Le[w.value.key];if(_.value)return;Ne.indexOf(Xe);const xt=!Ue;if(xt?Ne=al(Ne,Xe):Ne=$a(Ne,Xe),ne(Ne),Ke&&Ke(Ne,{node:Le,expanded:xt,nativeEvent:Re}),xt&&Ze){const Mt=ae(Le);Mt&&Mt.then(()=>{}).catch(Ft=>{const jt=$a(h.value,Xe);ne(jt),Promise.reject(Ft)})}},Pe=()=>{_.value=!0},re=()=>{setTimeout(()=>{_.value=!1})},le=Re=>{const{onActiveChange:Le}=e;x.value!==Re&&(e.activeKey!==void 0&&(x.value=Re),Re!==null&&Y({key:Re}),Le&&Le(Re))},xe=M(()=>x.value===null?null:L.value.find(Re=>{let{key:Le}=Re;return Le===x.value})||null),Ae=Re=>{let Le=L.value.findIndex(Ke=>{let{key:Ze}=Ke;return Ze===x.value});Le===-1&&Re<0&&(Le=L.value.length),Le=(Le+Re+L.value.length)%L.value.length;const Ne=L.value[Le];if(Ne){const{key:Ke}=Ne;le(Ke)}else le(null)},Be=M(()=>Sm(S(S({},ym(x.value,R.value)),{data:xe.value.data,active:!0}))),Ye=Re=>{const{onKeydown:Le,checkable:Ne,selectable:Ke}=e;switch(Re.which){case Fe.UP:{Ae(-1),Re.preventDefault();break}case Fe.DOWN:{Ae(1),Re.preventDefault();break}}const Ze=xe.value;if(Ze&&Ze.data){const Ue=Ze.data.isLeaf===!1||!!(Ze.data.children||[]).length,Xe=Be.value;switch(Re.which){case Fe.LEFT:{Ue&&A.value.has(x.value)?Te({},Xe):Ze.parent&&le(Ze.parent.key),Re.preventDefault();break}case Fe.RIGHT:{Ue&&!A.value.has(x.value)?Te({},Xe):Ze.children&&Ze.children.length&&le(Ze.children[0].key),Re.preventDefault();break}case Fe.ENTER:case Fe.SPACE:{Ne&&!Xe.disabled&&Xe.checkable!==!1&&!Xe.disableCheckbox?se({},Xe,!D.value.has(x.value)):!Ne&&Ke&&!Xe.disabled&&Xe.selectable!==!1&&q({},Xe);break}}}Le&&Le(Re)};return o({onNodeExpand:Te,scrollTo:Y,onKeydown:Ye,selectedKeys:M(()=>s.value),checkedKeys:M(()=>c.value),halfCheckedKeys:M(()=>u.value),loadedKeys:M(()=>d.value),loadingKeys:M(()=>f.value),expandedKeys:M(()=>h.value)}),Fr(()=>{window.removeEventListener("dragend",te),i.value=!0}),Cye({expandedKeys:h,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:A,selectedKeysSet:N,loadedKeysSet:F,loadingKeysSet:W,checkedKeysSet:D,halfCheckedKeysSet:B,flattenNodes:L}),()=>{const{draggingNodeKey:Re,dropLevelOffset:Le,dropContainerKey:Ne,dropTargetKey:Ke,dropPosition:Ze,dragOverNodeKey:Ue}=v,{prefixCls:Xe,showLine:xt,focusable:Mt,tabindex:Ft=0,selectable:jt,showIcon:Yt,icon:Vn=r.icon,switcherIcon:Gn,draggable:rr,checkable:kn,checkStrictly:br,disabled:Gr,motion:wo,loadData:Uo,filterTreeNode:Ar,height:za,itemHeight:We,virtual:gt,dropIndicatorRender:ut,onContextmenu:un,onScroll:Yn,direction:Bn,rootClassName:Yr,rootStyle:yr}=e,{class:hi,style:Xr}=n,_o=Ts(S(S({},e),n),{aria:!0,data:!0});let Cn;return rr?typeof rr=="object"?Cn=rr:typeof rr=="function"?Cn={nodeDraggable:rr}:Cn={}:Cn=!1,g(Sye,{value:{prefixCls:Xe,selectable:jt,showIcon:Yt,icon:Vn,switcherIcon:Gn,draggable:Cn,draggingNodeKey:Re,checkable:kn,customCheckable:r.checkable,checkStrictly:br,disabled:Gr,keyEntities:b.value,dropLevelOffset:Le,dropContainerKey:Ne,dropTargetKey:Ke,dropPosition:Ze,dragOverNodeKey:Ue,dragging:Re!==null,indent:l.value,direction:Bn,dropIndicatorRender:ut,loadData:Uo,filterTreeNode:Ar,onNodeClick:H,onNodeDoubleClick:j,onNodeExpand:Te,onNodeSelect:q,onNodeCheck:se,onNodeLoad:ae,onNodeMouseEnter:ge,onNodeMouseLeave:Se,onNodeContextMenu:$e,onNodeDragStart:ee,onNodeDragEnter:fe,onNodeDragOver:ie,onNodeDragLeave:X,onNodeDragEnd:J,onNodeDrop:ue,slots:r}},{default:()=>[g("div",{role:"tree",class:me(Xe,hi,Yr,{[`${Xe}-show-line`]:xt,[`${Xe}-focused`]:$.value,[`${Xe}-active-focused`]:x.value!==null}),style:yr},[g(VTe,V({ref:I,prefixCls:Xe,style:Xr,disabled:Gr,selectable:jt,checkable:!!kn,motion:wo,height:za,itemHeight:We,virtual:gt,focusable:Mt,focused:$.value,tabindex:Ft,activeItem:xe.value,onFocus:_e,onBlur:be,onKeydown:Ye,onActiveChange:le,onListChangeStart:Pe,onListChangeEnd:re,onContextmenu:un,onScroll:Yn},_o),null)])]})}}});var GTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const YTe=GTe;function tR(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),dEe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),fEe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i}=t,a=(i-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:S(S({},vt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:S({},yl(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:cEe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:S({},yl(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:S(S({},uEe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,marginBlockStart:a},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:S({lineHeight:`${i}px`,userSelect:"none"},dEe(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${i/2}px !important`}}}}})}},pEe=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},Vz=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,i=t.controlHeightSM,a=nt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:i});return[fEe(e,a),pEe(a)]},hEe=pt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Hy(`${n}-checkbox`,e)},Vz(n,e),Kh(e)]}),Kz=()=>{const e=uF();return S(S({},e),{showLine:ot([Boolean,Object]),multiple:De(),autoExpandParent:De(),checkStrictly:De(),checkable:De(),disabled:De(),defaultExpandAll:De(),defaultExpandParent:De(),defaultExpandedKeys:kt(),expandedKeys:kt(),checkedKeys:ot([Array,Object]),defaultCheckedKeys:kt(),selectedKeys:kt(),defaultSelectedKeys:kt(),selectable:De(),loadedKeys:kt(),draggable:De(),showIcon:De(),icon:Oe(),switcherIcon:Z.any,prefixCls:String,replaceFields:qe(),blockNode:De(),openAnimation:Z.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Oe(),"onUpdate:checkedKeys":Oe(),"onUpdate:expandedKeys":Oe()})},km=pe({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:bt(Kz(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:r,emit:o,slots:i}=t;e.treeData===void 0&&i.default;const{prefixCls:a,direction:l,virtual:s}=Ve("tree",e),[c,u]=hEe(a),d=he();r({treeRef:d,onNodeExpand:function(){var y;(y=d.value)===null||y===void 0||y.onNodeExpand(...arguments)},scrollTo:y=>{var b;(b=d.value)===null||b===void 0||b.scrollTo(y)},selectedKeys:M(()=>{var y;return(y=d.value)===null||y===void 0?void 0:y.selectedKeys}),checkedKeys:M(()=>{var y;return(y=d.value)===null||y===void 0?void 0:y.checkedKeys}),halfCheckedKeys:M(()=>{var y;return(y=d.value)===null||y===void 0?void 0:y.halfCheckedKeys}),loadedKeys:M(()=>{var y;return(y=d.value)===null||y===void 0?void 0:y.loadedKeys}),loadingKeys:M(()=>{var y;return(y=d.value)===null||y===void 0?void 0:y.loadingKeys}),expandedKeys:M(()=>{var y;return(y=d.value)===null||y===void 0?void 0:y.expandedKeys})}),ct(()=>{pn(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const h=(y,b)=>{o("update:checkedKeys",y),o("check",y,b)},m=(y,b)=>{o("update:expandedKeys",y),o("expand",y,b)},v=(y,b)=>{o("update:selectedKeys",y),o("select",y,b)};return()=>{const{showIcon:y,showLine:b,switcherIcon:$=i.switcherIcon,icon:x=i.icon,blockNode:_,checkable:w,selectable:I,fieldNames:O=e.replaceFields,motion:P=e.openAnimation,itemHeight:E=28,onDoubleclick:R,onDblclick:A}=e,N=S(S(S({},n),Ot(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!b,dropIndicatorRender:sEe,fieldNames:O,icon:x,itemHeight:E}),F=i.default?_n(i.default()):void 0;return c(g(zz,V(V({},N),{},{virtual:s.value,motion:P,ref:d,prefixCls:a.value,class:me({[`${a.value}-icon-hide`]:!y,[`${a.value}-block-node`]:_,[`${a.value}-unselectable`]:!I,[`${a.value}-rtl`]:l.value==="rtl"},n.class,u.value),direction:l.value,checkable:w,selectable:I,switcherIcon:W=>Wz(a.value,$,W,i.leafIcon,b),onCheck:h,onExpand:m,onSelect:v,onDblclick:A||R,children:F}),S(S({},i),{checkable:()=>g("span",{class:`${a.value}-checkbox-inner`},null)})))}}});var gEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const vEe=gEe;function aR(e){for(var t=1;t{if(l===sl.End)return!1;if(s(c)){if(a.push(c),l===sl.None)l=sl.Start;else if(l===sl.Start)return l=sl.End,!1}else l===sl.Start&&a.push(c);return n.includes(c)}),a}function VC(e,t,n){const r=[...t],o=[];return VI(e,n,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length}),o}var wEe=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);oS(S({},Kz()),{expandAction:ot([Boolean,String])});function OEe(e){const{isLeaf:t,expanded:n}=e;return g(t?jz:n?bEe:$Ee,null,null)}const Bm=pe({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:bt(_Ee(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:i}=t;var a;const l=he(e.treeData||kx(_n((a=r.default)===null||a===void 0?void 0:a.call(r))));Ie(()=>e.treeData,()=>{l.value=e.treeData}),fo(()=>{_t(()=>{var E;e.treeData===void 0&&r.default&&(l.value=kx(_n((E=r.default)===null||E===void 0?void 0:E.call(r))))})});const s=he(),c=he(),u=M(()=>My(e.fieldNames)),d=he();i({scrollTo:E=>{var R;(R=d.value)===null||R===void 0||R.scrollTo(E)},selectedKeys:M(()=>{var E;return(E=d.value)===null||E===void 0?void 0:E.selectedKeys}),checkedKeys:M(()=>{var E;return(E=d.value)===null||E===void 0?void 0:E.checkedKeys}),halfCheckedKeys:M(()=>{var E;return(E=d.value)===null||E===void 0?void 0:E.halfCheckedKeys}),loadedKeys:M(()=>{var E;return(E=d.value)===null||E===void 0?void 0:E.loadedKeys}),loadingKeys:M(()=>{var E;return(E=d.value)===null||E===void 0?void 0:E.loadingKeys}),expandedKeys:M(()=>{var E;return(E=d.value)===null||E===void 0?void 0:E.expandedKeys})});const h=()=>{const{keyEntities:E}=Qh(l.value,{fieldNames:u.value});let R;return e.defaultExpandAll?R=Object.keys(E):e.defaultExpandParent?R=Nx(e.expandedKeys||e.defaultExpandedKeys||[],E):R=e.expandedKeys||e.defaultExpandedKeys,R},m=he(e.selectedKeys||e.defaultSelectedKeys||[]),v=he(h());Ie(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(m.value=e.selectedKeys)},{immediate:!0}),Ie(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(v.value=e.expandedKeys)},{immediate:!0});const b=E_((E,R)=>{const{isLeaf:A}=R;A||E.shiftKey||E.metaKey||E.ctrlKey||d.value.onNodeExpand(E,R)},200,{leading:!0}),$=(E,R)=>{e.expandedKeys===void 0&&(v.value=E),o("update:expandedKeys",E),o("expand",E,R)},x=(E,R)=>{const{expandAction:A}=e;A==="click"&&b(E,R),o("click",E,R)},_=(E,R)=>{const{expandAction:A}=e;(A==="dblclick"||A==="doubleclick")&&b(E,R),o("doubleclick",E,R),o("dblclick",E,R)},w=(E,R)=>{const{multiple:A}=e,{node:N,nativeEvent:F}=R,W=N[u.value.key],D=S(S({},R),{selected:!0}),B=(F==null?void 0:F.ctrlKey)||(F==null?void 0:F.metaKey),k=F==null?void 0:F.shiftKey;let L;A&&B?(L=E,s.value=W,c.value=L,D.selectedNodes=VC(l.value,L,u.value)):A&&k?(L=Array.from(new Set([...c.value||[],...xEe({treeData:l.value,expandedKeys:v.value,startKey:W,endKey:s.value,fieldNames:u.value})])),D.selectedNodes=VC(l.value,L,u.value)):(L=[W],s.value=W,c.value=L,D.selectedNodes=VC(l.value,L,u.value)),o("update:selectedKeys",L),o("select",L,D),e.selectedKeys===void 0&&(m.value=L)},I=(E,R)=>{o("update:checkedKeys",E),o("check",E,R)},{prefixCls:O,direction:P}=Ve("tree",e);return()=>{const E=me(`${O.value}-directory`,{[`${O.value}-directory-rtl`]:P.value==="rtl"},n.class),{icon:R=r.icon,blockNode:A=!0}=e,N=wEe(e,["icon","blockNode"]);return g(km,V(V(V({},n),{},{icon:R||OEe,ref:d,blockNode:A},N),{},{prefixCls:O.value,class:E,expandedKeys:v.value,selectedKeys:m.value,onSelect:w,onClick:x,onDblclick:_,onExpand:$,onCheck:I}),r)}}}),Fm=Lx,Uz=S(km,{DirectoryTree:Bm,TreeNode:Fm,install:e=>(e.component(km.name,km),e.component(Fm.name,Fm),e.component(Bm.name,Bm),e)});function sR(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const r=new Set;function o(i,a){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=r.has(i);if(zb(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);const c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(let u=0;uo(i[d],a[d],c))}return!1}return o(e,t)}const{SubMenu:IEe,Item:PEe}=qn;function TEe(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function Gz(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Yz(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,s)=>{const c=String(l.value);if(l.children)return g(IEe,{key:c||s,title:l.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[Yz({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})]});const u=o?Ri:yo,d=g(PEe,{key:l.value!==void 0?c:s},{default:()=>[g(u,{checked:r.includes(c)},null),g("span",null,[l.text])]});return i.trim()?typeof a=="function"?a(i,l)?d:void 0:Gz(i,l.text)?d:void 0:d})}const EEe=pe({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const r=MI(),o=M(()=>{var Y;return(Y=e.filterMode)!==null&&Y!==void 0?Y:"menu"}),i=M(()=>{var Y;return(Y=e.filterSearch)!==null&&Y!==void 0?Y:!1}),a=M(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),l=M(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=ve(!1),c=M(()=>{var Y;return!!(e.filterState&&(!((Y=e.filterState.filteredKeys)===null||Y===void 0)&&Y.length||e.filterState.forceFiltered))}),u=M(()=>{var Y;return Xy((Y=e.column)===null||Y===void 0?void 0:Y.filters)}),d=M(()=>{const{filterDropdown:Y,slots:ne={},customFilterDropdown:oe}=e.column;return Y||ne.filterDropdown&&r.value[ne.filterDropdown]||oe&&r.value.customFilterDropdown}),f=M(()=>{const{filterIcon:Y,slots:ne={}}=e.column;return Y||ne.filterIcon&&r.value[ne.filterIcon]||r.value.customFilterIcon}),h=Y=>{var ne;s.value=Y,(ne=l.value)===null||ne===void 0||ne.call(l,Y)},m=M(()=>typeof a.value=="boolean"?a.value:s.value),v=M(()=>{var Y;return(Y=e.filterState)===null||Y===void 0?void 0:Y.filteredKeys}),y=ve([]),b=Y=>{let{selectedKeys:ne}=Y;y.value=ne},$=(Y,ne)=>{let{node:oe,checked:J}=ne;e.filterMultiple?b({selectedKeys:Y}):b({selectedKeys:J&&oe.key?[oe.key]:[]})};Ie(v,()=>{s.value&&b({selectedKeys:v.value||[]})},{immediate:!0});const x=ve([]),_=ve(),w=Y=>{_.value=setTimeout(()=>{x.value=Y})},I=()=>{clearTimeout(_.value)};Ct(()=>{clearTimeout(_.value)});const O=ve(""),P=Y=>{const{value:ne}=Y.target;O.value=ne};Ie(s,()=>{s.value||(O.value="")});const E=Y=>{const{column:ne,columnKey:oe,filterState:J}=e,te=Y&&Y.length?Y:null;if(te===null&&(!J||!J.filteredKeys)||sR(te,J==null?void 0:J.filteredKeys,!0))return null;e.triggerFilter({column:ne,key:oe,filteredKeys:te})},R=()=>{h(!1),E(y.value)},A=function(){let{confirm:Y,closeDropdown:ne}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Y&&E([]),ne&&h(!1),O.value="",e.column.filterResetToDefaultFilteredValue?y.value=(e.column.defaultFilteredValue||[]).map(oe=>String(oe)):y.value=[]},N=function(){let{closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Y&&h(!1),E(y.value)},F=Y=>{Y&&v.value!==void 0&&(y.value=v.value||[]),h(Y),!Y&&!d.value&&R()},{direction:W}=Ve("",e),D=Y=>{if(Y.target.checked){const ne=u.value;y.value=ne}else y.value=[]},B=Y=>{let{filters:ne}=Y;return(ne||[]).map((oe,J)=>{const te=String(oe.value),ee={title:oe.text,key:oe.value!==void 0?te:J};return oe.children&&(ee.children=B({filters:oe.children})),ee})},k=Y=>{var ne;return S(S({},Y),{text:Y.title,value:Y.key,children:((ne=Y.children)===null||ne===void 0?void 0:ne.map(oe=>k(oe)))||[]})},L=M(()=>B({filters:e.column.filters})),z=M(()=>me({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!TEe(e.column.filters||[])})),K=()=>{const Y=y.value,{column:ne,locale:oe,tablePrefixCls:J,filterMultiple:te,dropdownPrefixCls:ee,getPopupContainer:fe,prefixCls:ie}=e;return(ne.filters||[]).length===0?g(cs,{image:cs.PRESENTED_IMAGE_SIMPLE,description:oe.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):o.value==="tree"?g(Je,null,[g(G8,{filterSearch:i.value,value:O.value,onChange:P,tablePrefixCls:J,locale:oe},null),g("div",{class:`${J}-filter-dropdown-tree`},[te?g(Ri,{class:`${J}-filter-dropdown-checkall`,onChange:D,checked:Y.length===u.value.length,indeterminate:Y.length>0&&Y.length[oe.filterCheckall]}):null,g(Uz,{checkable:!0,selectable:!1,blockNode:!0,multiple:te,checkStrictly:!te,class:`${ee}-menu`,onCheck:$,checkedKeys:Y,selectedKeys:Y,showIcon:!1,treeData:L.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:O.value.trim()?X=>typeof i.value=="function"?i.value(O.value,k(X)):Gz(O.value,X.title):void 0},null)])]):g(Je,null,[g(G8,{filterSearch:i.value,value:O.value,onChange:P,tablePrefixCls:J,locale:oe},null),g(qn,{multiple:te,prefixCls:`${ee}-menu`,class:z.value,onClick:I,onSelect:b,onDeselect:b,selectedKeys:Y,getPopupContainer:fe,openKeys:x.value,onOpenChange:w},{default:()=>Yz({filters:ne.filters||[],filterSearch:i.value,prefixCls:ie,filteredKeys:y.value,filterMultiple:te,searchValue:O.value})})])},G=M(()=>{const Y=y.value;return e.column.filterResetToDefaultFilteredValue?sR((e.column.defaultFilteredValue||[]).map(ne=>String(ne)),Y,!0):Y.length===0});return()=>{var Y;const{tablePrefixCls:ne,prefixCls:oe,column:J,dropdownPrefixCls:te,locale:ee,getPopupContainer:fe}=e;let ie;typeof d.value=="function"?ie=d.value({prefixCls:`${te}-custom`,setSelectedKeys:ye=>b({selectedKeys:ye}),selectedKeys:y.value,confirm:N,clearFilters:A,filters:J.filters,visible:m.value,column:J.__originColumn__,close:()=>{h(!1)}}):d.value?ie=d.value:ie=g(Je,null,[K(),g("div",{class:`${oe}-dropdown-btns`},[g(Un,{type:"link",size:"small",disabled:G.value,onClick:()=>A()},{default:()=>[ee.filterReset]}),g(Un,{type:"primary",size:"small",onClick:R},{default:()=>[ee.filterConfirm]})])]);const X=g(FTe,{class:`${oe}-dropdown`},{default:()=>[ie]});let ue;return typeof f.value=="function"?ue=f.value({filtered:c.value,column:J.__originColumn__}):f.value?ue=f.value:ue=g(NTe,null,null),g("div",{class:`${oe}-column`},[g("span",{class:`${ne}-column-title`},[(Y=n.default)===null||Y===void 0?void 0:Y.call(n)]),g(Ta,{overlay:X,trigger:["click"],open:m.value,onOpenChange:F,getPopupContainer:fe,placement:W.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[g("span",{role:"button",tabindex:-1,class:me(`${oe}-trigger`,{active:c.value}),onClick:ye=>{ye.stopPropagation()}},[ue])]})])}}});function hw(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a,l;const s=ng(i,n),c=o.filterDropdown||((a=o==null?void 0:o.slots)===null||a===void 0?void 0:a.filterDropdown)||o.customFilterDropdown;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(l=u==null?void 0:u.map(String))!==null&&l!==void 0?l:u),r.push({column:o,key:Dc(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:Dc(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[...r,...hw(o.children,t,s)])}),r}function Xz(e,t,n,r,o,i,a,l){return n.map((s,c)=>{var u;const d=ng(c,l),{filterMultiple:f=!0,filterMode:h,filterSearch:m}=s;let v=s;const y=s.filterDropdown||((u=s==null?void 0:s.slots)===null||u===void 0?void 0:u.filterDropdown)||s.customFilterDropdown;if(v.filters||y){const b=Dc(v,d),$=r.find(x=>{let{key:_}=x;return b===_});v=S(S({},v),{title:x=>g(EEe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:b,filterState:$,filterMultiple:f,filterMode:h,filterSearch:m,triggerFilter:i,locale:o,getPopupContainer:a},{default:()=>[NI(s.title,x)]})})}return"children"in v&&(v=S(S({},v),{children:Xz(e,t,v.children,r,o,i,a,d)})),v})}function Xy(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[...t,...Xy(o)])}),t}function cR(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;var a;const l=i.filterDropdown||((a=i==null?void 0:i.slots)===null||a===void 0?void 0:a.filterDropdown)||i.customFilterDropdown,{filters:s}=i;if(l)t[r]=o||null;else if(Array.isArray(o)){const c=Xy(s);t[r]=c.filter(u=>o.includes(String(u)))}else t[r]=null}),t}function uR(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(l=>a.some(s=>{const c=Xy(i),u=c.findIndex(f=>String(f)===String(s)),d=u!==-1?c[u]:s;return o(d,l)})):n},e)}function qz(e){return e.flatMap(t=>"children"in t?[t,...qz(t.children||[])]:[t])}function AEe(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,locale:o,onFilterChange:i,getPopupContainer:a}=e;const l=M(()=>qz(r.value)),[s,c]=nn(hw(l.value,!0)),u=M(()=>{const m=hw(l.value,!1);if(m.length===0)return m;let v=!0,y=!0;if(m.forEach(b=>{let{filteredKeys:$}=b;$!==void 0?v=!1:y=!1}),v){const b=(l.value||[]).map(($,x)=>Dc($,ng(x)));return s.value.filter($=>{let{key:x}=$;return b.includes(x)}).map($=>{const x=l.value[b.findIndex(_=>_===$.key)];return S(S({},$),{column:S(S({},$.column),x),forceFiltered:x.filtered})})}return pn(y,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),m}),d=M(()=>cR(u.value)),f=m=>{const v=u.value.filter(y=>{let{key:b}=y;return b!==m.key});v.push(m),c(v),i(cR(v),v)};return[m=>Xz(t.value,n.value,m,u.value,o.value,f,a.value),u,d]}function Zz(e,t){return e.map(n=>{const r=S({},n);return r.title=NI(r.title,t),"children"in r&&(r.children=Zz(r.children,t)),r})}function MEe(e){return[n=>Zz(n,e.value)]}function REe(e){return function(n){let{prefixCls:r,onExpand:o,record:i,expanded:a,expandable:l}=n;const s=`${r}-row-expand-icon`;return g("button",{type:"button",onClick:c=>{o(i,c),c.stopPropagation()},class:me(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a},null)}}function Qz(e,t){const n=t.value;return e.map(r=>{var o;if(r===ll||r===as)return r;const i=S({},r),{slots:a={}}=i;return i.__originColumn__=r,pn(!("slots"in i),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(a).forEach(l=>{const s=a[l];i[l]===void 0&&n[s]&&(i[l]=n[s])}),t.value.headerCell&&!(!((o=r.slots)===null||o===void 0)&&o.title)&&(i.title=Yb(t.value,"headerCell",{title:r.title,column:r},()=>[r.title])),"children"in i&&Array.isArray(i.children)&&(i.children=Qz(i.children,t)),i})}function DEe(e){return[n=>Qz(n,e)]}const LEe=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(o,i,a)=>({[`&${t}-${o}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${i}px -${a+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:S(S(S({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` - > ${t}-content, - > ${t}-header - `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},NEe=LEe,kEe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:S(S({},er),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},BEe=kEe,FEe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},HEe=FEe,zEe=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:h,lineHeight:m,tablePaddingVertical:v,tablePaddingHorizontal:y,tableExpandedRowBg:b,paddingXXS:$}=e,x=r/2-i,_=x*2+i*3,w=`${i}px ${l} ${s}`,I=$-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:S(S({},Kb(e)),{position:"relative",float:"left",boxSizing:"border-box",width:_,height:_,padding:0,color:"inherit",lineHeight:`${_}px`,background:c,border:w,borderRadius:d,transform:`scale(${r/_})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:I,insetInlineStart:I,height:i},"&::after":{top:I,bottom:I,insetInlineStart:x,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*m-i*3)/2-Math.ceil((h*1.4-i*3)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:b}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${v}px -${y}px`,padding:`${v}px ${y}px`}}}},jEe=zEe,WEe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:h,tablePaddingHorizontal:m,borderRadius:v,motionDurationSlow:y,colorTextDescription:b,colorPrimary:$,tableHeaderFilterActiveBg:x,colorTextDisabled:_,tableFilterDropdownBg:w,tableFilterDropdownHeight:I,controlItemBgHover:O,controlItemBgActive:P,boxShadowSecondary:E}=e,R=`${n}-dropdown`,A=`${t}-filter-dropdown`,N=`${n}-tree`,F=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:f,fontSize:h,borderRadius:v,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:b,background:x},"&.active":{color:$}}}},{[`${n}-dropdown`]:{[A]:S(S({},vt(e)),{minWidth:o,backgroundColor:w,borderRadius:v,boxShadow:E,[`${R}-menu`]:{maxHeight:I,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:_,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${A}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:O},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:P}}},[`${A}-search`]:{padding:l,borderBottom:F,"&-input":{input:{minWidth:i},[r]:{color:_}}},[`${A}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${A}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-c}px ${l}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:F}})}},{[`${n}-dropdown ${A}, ${A}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},VEe=WEe,KEe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l}=e,s=r;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:i,background:a},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},UEe=KEe,GEe=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},YEe=GEe,XEe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},qEe=XEe,ZEe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},QEe=ZEe,JEe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,paddingXS:i,tableHeaderIconColor:a,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+i*2},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:a,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}}}}},e4e=JEe,t4e=e=>{const{componentCls:t}=e,n=(r,o,i,a)=>({[`${t}${t}-${r}`]:{fontSize:a,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${o}px ${i}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${i/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${i}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-i}px -${i}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${i/4}px`}}});return{[`${t}-wrapper`]:S(S({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},n4e=t4e,r4e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},o4e=r4e,i4e=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},a4e=i4e,l4e=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${i}px !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},s4e=l4e,c4e=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}},dR=c4e,u4e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:i,lineType:a,tableBorderColor:l,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:h,tableHeaderCellSplitColor:m,tableRowHoverBg:v,tableSelectedRowBg:y,tableSelectedRowHoverBg:b,tableFooterTextColor:$,tableFooterBg:x,paddingContentVerticalLG:_}=e,w=`${i}px ${a} ${l}`;return{[`${t}-wrapper`]:S(S({clear:"both",maxWidth:"100%"},aa()),{[t]:S(S({},vt(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${_}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:h,borderBottom:w,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:w,borderBottom:"transparent"},"&:last-child > td":{borderBottom:w},[`&:first-child > td, - &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:w}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` - &${t}-row:hover > td, - > td${t}-cell-row-hover - `]:{background:v},[`&${t}-row-selected`]:{"> td":{background:y},"&:hover > td":{background:b}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:$,background:x}})}},d4e=pt("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:i,colorBorderSecondary:a,fontSize:l,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:h,colorIconHover:m,opacityLoading:v,colorBgContainer:y,borderRadiusLG:b,colorFillContent:$,colorFillSecondary:x,controlInteractiveSize:_}=e,w=new Zt(h),I=new Zt(m),O=t,P=2,E=new Zt(x).onBackground(y).toHexString(),R=new Zt($).onBackground(y).toHexString(),A=new Zt(f).onBackground(y).toHexString(),N=nt(e,{tableFontSize:l,tableBg:y,tableRadius:b,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:a,tableHeaderTextColor:o,tableHeaderBg:A,tableFooterTextColor:o,tableFooterBg:A,tableHeaderCellSplitColor:a,tableHeaderSortBg:E,tableHeaderSortHoverBg:R,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*v).toRgbString(),tableHeaderIconColorHover:I.clone().setAlpha(I.getAlpha()*v).toRgbString(),tableBodySortBg:A,tableFixedHeaderSortActiveBg:E,tableHeaderFilterActiveBg:$,tableFilterDropdownBg:y,tableRowHoverBg:A,tableSelectedRowBg:O,tableSelectedRowHoverBg:n,zIndexTableFixed:P,zIndexTableSticky:P+1,tableFontSizeMiddle:l,tableFontSizeSmall:l,tableSelectionColumnWidth:d,tableExpandIconBg:y,tableExpandColumnWidth:_+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:i});return[u4e(N),YEe(N),dR(N),a4e(N),VEe(N),NEe(N),qEe(N),jEe(N),dR(N),HEe(N),e4e(N),UEe(N),s4e(N),BEe(N),n4e(N),o4e(N),QEe(N)]}),f4e=[],Jz=()=>({prefixCls:Qe(),columns:kt(),rowKey:ot([String,Function]),tableLayout:Qe(),rowClassName:ot([String,Function]),title:Oe(),footer:Oe(),id:Qe(),showHeader:De(),components:qe(),customRow:Oe(),customHeaderRow:Oe(),direction:Qe(),expandFixed:ot([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:kt(),defaultExpandedRowKeys:kt(),expandedRowRender:Oe(),expandRowByClick:De(),expandIcon:Oe(),onExpand:Oe(),onExpandedRowsChange:Oe(),"onUpdate:expandedRowKeys":Oe(),defaultExpandAllRows:De(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:De(),expandedRowClassName:Oe(),childrenColumnName:Qe(),rowExpandable:Oe(),sticky:ot([Boolean,Object]),dropdownPrefixCls:String,dataSource:kt(),pagination:ot([Boolean,Object]),loading:ot([Boolean,Object]),size:Qe(),bordered:De(),locale:qe(),onChange:Oe(),onResizeColumn:Oe(),rowSelection:qe(),getPopupContainer:Oe(),scroll:qe(),sortDirections:kt(),showSorterTooltip:ot([Boolean,Object],!0),transformCellText:Oe()}),p4e=pe({name:"InternalTable",inheritAttrs:!1,props:bt(S(S({},Jz()),{contextSlots:qe()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:r,expose:o,emit:i}=t;pn(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),OPe(M(()=>e.contextSlots)),IPe({onResizeColumn:(se,ae)=>{i("resizeColumn",se,ae)}});const a=ff(),l=M(()=>{const se=new Set(Object.keys(a.value).filter(ae=>a.value[ae]));return e.columns.filter(ae=>!ae.responsive||ae.responsive.some(ge=>se.has(ge)))}),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:f}=Ve("table",e),[h,m]=d4e(d),v=M(()=>{var se;return e.transformCellText||((se=f.transformCellText)===null||se===void 0?void 0:se.value)}),[y]=Wi("Table",so.Table,st(e,"locale")),b=M(()=>e.dataSource||f4e),$=M(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),x=M(()=>e.childrenColumnName||"children"),_=M(()=>b.value.some(se=>se==null?void 0:se[x.value])?"nest":e.expandedRowRender?"row":null),w=St({body:null}),I=se=>{S(w,se)},O=M(()=>typeof e.rowKey=="function"?e.rowKey:se=>se==null?void 0:se[e.rowKey]),[P]=yTe(b,x,O),E={},R=function(se,ae){let ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:Se,scroll:$e,onChange:_e}=e,be=S(S({},E),se);ge&&(E.resetPagination(),be.pagination.current&&(be.pagination.current=1),Se&&Se.onChange&&Se.onChange(1,be.pagination.pageSize)),$e&&$e.scrollToFirstRowOnChange!==!1&&w.body&&H2(0,{getContainer:()=>w.body}),_e==null||_e(be.pagination,be.filters,be.sorter,{currentDataSource:uR(fw(b.value,be.sorterStates,x.value),be.filterStates),action:ae})},A=(se,ae)=>{R({sorter:se,sorterStates:ae},"sort",!1)},[N,F,W,D]=MTe({prefixCls:d,mergedColumns:l,onSorterChange:A,sortDirections:M(()=>e.sortDirections||["ascend","descend"]),tableLocale:y,showSorterTooltip:st(e,"showSorterTooltip")}),B=M(()=>fw(b.value,F.value,x.value)),k=(se,ae)=>{R({filters:se,filterStates:ae},"filter",!0)},[L,z,K]=AEe({prefixCls:d,locale:y,dropdownPrefixCls:$,mergedColumns:l,onFilterChange:k,getPopupContainer:st(e,"getPopupContainer")}),G=M(()=>uR(B.value,z.value)),[Y]=DEe(st(e,"contextSlots")),ne=M(()=>{const se={},ae=K.value;return Object.keys(ae).forEach(ge=>{ae[ge]!==null&&(se[ge]=ae[ge])}),S(S({},W.value),{filters:se})}),[oe]=MEe(ne),J=(se,ae)=>{R({pagination:S(S({},E.pagination),{current:se,pageSize:ae})},"paginate")},[te,ee]=bTe(M(()=>G.value.length),st(e,"pagination"),J);ct(()=>{E.sorter=D.value,E.sorterStates=F.value,E.filters=K.value,E.filterStates=z.value,E.pagination=e.pagination===!1?{}:mTe(te.value,e.pagination),E.resetPagination=ee});const fe=M(()=>{if(e.pagination===!1||!te.value.pageSize)return G.value;const{current:se=1,total:ae,pageSize:ge=lw}=te.value;return pn(se>0,"Table","`current` should be positive number."),G.value.lengthge?G.value.slice((se-1)*ge,se*ge):G.value:G.value.slice((se-1)*ge,se*ge)});ct(()=>{_t(()=>{const{total:se,pageSize:ae=lw}=te.value;G.value.lengthae&&pn(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const ie=M(()=>e.showExpandColumn===!1?-1:_.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),X=he();Ie(()=>e.rowSelection,()=>{X.value=e.rowSelection?S({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[ue,ye]=CTe(X,{prefixCls:d,data:G,pageData:fe,getRowKey:O,getRecordByKey:P,expandType:_,childrenColumnName:x,locale:y,getPopupContainer:M(()=>e.getPopupContainer)}),H=(se,ae,ge)=>{let Se;const{rowClassName:$e}=e;return typeof $e=="function"?Se=me($e(se,ae,ge)):Se=me($e),me({[`${d.value}-row-selected`]:ye.value.has(O.value(se,ae))},Se)};o({selectedKeySet:ye});const j=M(()=>typeof e.indentSize=="number"?e.indentSize:15),q=se=>oe(ue(L(N(Y(se)))));return()=>{var se;const{expandIcon:ae=r.expandIcon||REe(y.value),pagination:ge,loading:Se,bordered:$e}=e;let _e,be;if(ge!==!1&&(!((se=te.value)===null||se===void 0)&&se.total)){let le;te.value.size?le=te.value.size:le=s.value==="small"||s.value==="middle"?"small":void 0;const xe=Ye=>g(Vy,V(V({},te.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ye}`,te.value.class],size:le}),null),Ae=u.value==="rtl"?"left":"right",{position:Be}=te.value;if(Be!==null&&Array.isArray(Be)){const Ye=Be.find(Ne=>Ne.includes("top")),Re=Be.find(Ne=>Ne.includes("bottom")),Le=Be.every(Ne=>`${Ne}`=="none");!Ye&&!Re&&!Le&&(be=xe(Ae)),Ye&&(_e=xe(Ye.toLowerCase().replace("top",""))),Re&&(be=xe(Re.toLowerCase().replace("bottom","")))}else be=xe(Ae)}let Te;typeof Se=="boolean"?Te={spinning:Se}:typeof Se=="object"&&(Te=S({spinning:!0},Se));const Pe=me(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:u.value==="rtl"},n.class,m.value),re=Ot(e,["columns"]);return h(g("div",{class:Pe,style:n.style},[g(Aa,V({spinning:!1},Te),{default:()=>[_e,g(gTe,V(V(V({},n),re),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:ie.value,indentSize:j.value,expandIcon:ae,columns:l.value,direction:u.value,prefixCls:d.value,class:me({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:$e,[`${d.value}-empty`]:b.value.length===0}),data:fe.value,rowKey:O.value,rowClassName:H,internalHooks:aw,internalRefs:w,onUpdateInternalRefs:I,transformColumns:q,transformCellText:v.value}),S(S({},r),{emptyText:()=>{var le,xe;return((le=r.emptyText)===null||le===void 0?void 0:le.call(r))||((xe=e.locale)===null||xe===void 0?void 0:xe.emptyText)||c("Table")}})),be]})]))}}}),h4e=pe({name:"ATable",inheritAttrs:!1,props:bt(Jz(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o}=t;const i=he();return o({table:i}),()=>{var a;const l=e.columns||Bz((a=r.default)===null||a===void 0?void 0:a.call(r));return g(p4e,V(V(V({ref:i},n),e),{},{columns:l||[],expandedRowRender:r.expandedRowRender||e.expandedRowRender,contextSlots:S({},r)}),r)}}}),KC=h4e,Hm=pe({name:"ATableColumn",slots:Object,render(){return null}}),zm=pe({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Z0=rTe,Q0=aTe,jm=S(lTe,{Cell:Q0,Row:Z0,name:"ATableSummary"}),g4e=S(KC,{SELECTION_ALL:sw,SELECTION_INVERT:cw,SELECTION_NONE:uw,SELECTION_COLUMN:ll,EXPAND_COLUMN:as,Column:Hm,ColumnGroup:zm,Summary:jm,install:e=>(e.component(jm.name,jm),e.component(Q0.name,Q0),e.component(Z0.name,Z0),e.component(KC.name,KC),e.component(Hm.name,Hm),e.component(zm.name,zm),e)}),v4e={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},m4e=pe({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:bt(v4e,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const r=o=>{var i;n("change",o),o.target.value===""&&((i=e.handleClear)===null||i===void 0||i.call(e))};return()=>{const{placeholder:o,value:i,prefixCls:a,disabled:l}=e;return g(ur,{placeholder:o,class:a,value:i,onChange:r,disabled:l,allowClear:!0},{prefix:()=>g(uy,null,null)})}}});var b4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const y4e=b4e;function fR(e){for(var t=1;t{const{renderedText:r,renderedEl:o,item:i,checked:a,disabled:l,prefixCls:s,showRemove:c}=e,u=me({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:l||i.disabled});let d;return(typeof r=="string"||typeof r=="number")&&(d=String(r)),g(Yc,{componentName:"Transfer",defaultLocale:so.Transfer},{default:f=>{const h=g("span",{class:`${s}-content-item-text`},[o]);return c?g("li",{class:u,title:d},[h,g(Y0,{disabled:l||i.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",i)}},{default:()=>[g(ej,null,null)]})]):g("li",{class:u,title:d,onClick:l||i.disabled?C4e:()=>{n("click",i)}},[g(Ri,{class:`${s}-checkbox`,checked:a,disabled:l||i.disabled},null),h])}})}}}),w4e={prefixCls:String,filteredRenderItems:Z.array.def([]),selectedKeys:Z.array,disabled:De(),showRemove:De(),pagination:Z.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function _4e(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?S(S({},t),e):t}const O4e=pe({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:w4e,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:r}=t;const o=he(1),i=d=>{const{selectedKeys:f}=e,h=f.indexOf(d.key)>=0;n("itemSelect",d.key,!h)},a=d=>{n("itemRemove",[d.key])},l=d=>{n("scroll",d)},s=M(()=>_4e(e.pagination));Ie([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);o.value=Math.min(o.value,d)}},{immediate:!0});const c=M(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((o.value-1)*s.value.pageSize,o.value*s.value.pageSize)),f}),u=d=>{o.value=d};return r({items:c}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:h,disabled:m,showRemove:v}=e;let y=null;s.value&&(y=g(Vy,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:m,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:o.value,onChange:u},null));const b=c.value.map($=>{let{renderedEl:x,renderedText:_,item:w}=$;const{disabled:I}=w,O=h.indexOf(w.key)>=0;return g(x4e,{disabled:m||I,key:w.key,item:w,renderedText:_,renderedEl:x,checked:O,prefixCls:d,onClick:i,onRemove:a,showRemove:v},null)});return g(Je,null,[g("ul",{class:me(`${d}-content`,{[`${d}-content-show-remove`]:v}),onScroll:l},[b]),y])}}}),I4e=O4e,gw=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},P4e=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:i}=n;o&&t.set(i,r)}),t},T4e=()=>null;function E4e(e){return!!(e&&!Jn(e)&&Object.prototype.toString.call(e)==="[object Object]")}function jv(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const A4e={prefixCls:String,dataSource:kt([]),filter:String,filterOption:Function,checkedKeys:Z.arrayOf(Z.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:De(!1),searchPlaceholder:String,notFoundContent:Z.any,itemUnit:String,itemsUnit:String,renderList:Z.any,disabled:De(),direction:Qe(),showSelectAll:De(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:Z.any,showRemove:De(),pagination:Z.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},pR=pe({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:A4e,slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const o=he(""),i=he(),a=he(),l=(w,I)=>{let O=w?w(I):null;const P=!!O&&_n(O).length>0;return P||(O=g(I4e,V(V({},I),{},{ref:a}),null)),{customize:P,bodyContent:O}},s=w=>{const{renderItem:I=T4e}=e,O=I(w),P=E4e(O);return{renderedText:P?O.value:O,renderedEl:P?O.label:O,item:w}},c=he([]),u=he([]);ct(()=>{const w=[],I=[];e.dataSource.forEach(O=>{const P=s(O),{renderedText:E}=P;if(o.value&&o.value.trim()&&!b(E,O))return null;w.push(O),I.push(P)}),c.value=w,u.value=I});const d=M(()=>{const{checkedKeys:w}=e;if(w.length===0)return"none";const I=gw(w);return c.value.every(O=>I.has(O.key)||!!O.disabled)?"all":"part"}),f=M(()=>jv(c.value)),h=(w,I)=>Array.from(new Set([...w,...e.checkedKeys])).filter(O=>I.indexOf(O)===-1),m=w=>{let{disabled:I,prefixCls:O}=w;var P;const E=d.value==="all";return g(Ri,{disabled:((P=e.dataSource)===null||P===void 0?void 0:P.length)===0||I,checked:E,indeterminate:d.value==="part",class:`${O}-checkbox`,onChange:()=>{const A=f.value;e.onItemSelectAll(h(E?[]:A,E?e.checkedKeys:[]))}},null)},v=w=>{var I;const{target:{value:O}}=w;o.value=O,(I=e.handleFilter)===null||I===void 0||I.call(e,w)},y=w=>{var I;o.value="",(I=e.handleClear)===null||I===void 0||I.call(e,w)},b=(w,I)=>{const{filterOption:O}=e;return O?O(o.value,I):w.includes(o.value)},$=(w,I)=>{const{itemsUnit:O,itemUnit:P,selectAllLabel:E}=e;if(E)return typeof E=="function"?E({selectedCount:w,totalCount:I}):E;const R=I>1?O:P;return g(Je,null,[(w>0?`${w}/`:"")+I,Dr(" "),R])},x=M(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),_=(w,I,O,P,E,R)=>{const A=E?g("div",{class:`${w}-body-search-wrapper`},[g(m4e,{prefixCls:`${w}-search`,onChange:v,handleClear:y,placeholder:I,value:o.value,disabled:R},null)]):null;let N;const{onEvents:F}=O2(n),{bodyContent:W,customize:D}=l(P,S(S(S({},e),{filteredItems:c.value,filteredRenderItems:u.value,selectedKeys:O}),F));return D?N=g("div",{class:`${w}-body-customize-wrapper`},[W]):N=c.value.length?W:g("div",{class:`${w}-body-not-found`},[x.value]),g("div",{class:E?`${w}-body ${w}-body-with-search`:`${w}-body`,ref:i},[A,N])};return()=>{var w,I;const{prefixCls:O,checkedKeys:P,disabled:E,showSearch:R,searchPlaceholder:A,selectAll:N,selectCurrent:F,selectInvert:W,removeAll:D,removeCurrent:B,renderList:k,onItemSelectAll:L,onItemRemove:z,showSelectAll:K=!0,showRemove:G,pagination:Y}=e,ne=(w=r.footer)===null||w===void 0?void 0:w.call(r,S({},e)),oe=me(O,{[`${O}-with-pagination`]:!!Y,[`${O}-with-footer`]:!!ne}),J=_(O,A,P,k,R,E),te=ne?g("div",{class:`${O}-footer`},[ne]):null,ee=!G&&!Y&&m({disabled:E,prefixCls:O});let fe=null;G?fe=g(qn,null,{default:()=>[Y&&g(qn.Item,{key:"removeCurrent",onClick:()=>{const X=jv((a.value.items||[]).map(ue=>ue.item));z==null||z(X)}},{default:()=>[B]}),g(qn.Item,{key:"removeAll",onClick:()=>{z==null||z(f.value)}},{default:()=>[D]})]}):fe=g(qn,null,{default:()=>[g(qn.Item,{key:"selectAll",onClick:()=>{const X=f.value;L(h(X,[]))}},{default:()=>[N]}),Y&&g(qn.Item,{onClick:()=>{const X=jv((a.value.items||[]).map(ue=>ue.item));L(h(X,[]))}},{default:()=>[F]}),g(qn.Item,{key:"selectInvert",onClick:()=>{let X;Y?X=jv((a.value.items||[]).map(j=>j.item)):X=f.value;const ue=new Set(P),ye=[],H=[];X.forEach(j=>{ue.has(j)?H.push(j):ye.push(j)}),L(h(ye,H))}},{default:()=>[W]})]});const ie=g(Ta,{class:`${O}-header-dropdown`,overlay:fe,disabled:E},{default:()=>[g(jh,null,null)]});return g("div",{class:oe,style:n.style},[g("div",{class:`${O}-header`},[K?g(Je,null,[ee,ie]):null,g("span",{class:`${O}-header-selected`},[g("span",null,[$(P.length,c.value.length)]),g("span",{class:`${O}-header-title`},[(I=r.titleText)===null||I===void 0?void 0:I.call(r)])])]),J,te])}}});function hR(){}const UI=e=>{const{disabled:t,moveToLeft:n=hR,moveToRight:r=hR,leftArrowText:o="",rightArrowText:i="",leftActive:a,rightActive:l,class:s,style:c,direction:u,oneWay:d}=e;return g("div",{class:s,style:c},[g(Un,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:g(u!=="rtl"?sa:xs,null,null)},{default:()=>[i]}),!d&&g(Un,{type:"primary",size:"small",disabled:t||!a,onClick:n,icon:g(u!=="rtl"?xs:sa,null,null)},{default:()=>[o]})])};UI.displayName="Operation";UI.inheritAttrs=!1;const M4e=UI,R4e=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:i,margin:a}=e,l=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:o,minWidth:o}},[`${l}-pagination${l}-pagination`]:{margin:`${a}px 0 ${i}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},gR=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},D4e=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:S({},gR(e,e.colorError)),[`${t}-status-warning`]:S({},gR(e,e.colorWarning))}},L4e=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,transferItemHeight:i,transferHeaderHeight:a,transferHeaderVerticalPadding:l,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:f,listWidth:h,listWidthLG:m,fontSizeIcon:v,marginXS:y,paddingSM:b,lineType:$,iconCls:x,motionDurationSlow:_}=e;return{display:"flex",flexDirection:"column",width:h,height:f,border:`${o}px ${$} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${x}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${l-o}px ${b}px ${l}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${o}px ${$} ${r}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":S(S({},er),{flex:"auto",textAlign:"end"}),"&-dropdown":S(S({},Xc()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:b}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${b}px`,transition:`all ${_}`,"> *:not(:last-child)":{marginInlineEnd:y},"> *":{flex:"none"},"&-text":S(S({},er),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${_}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${$} ${r}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${o}px ${$} ${r}`},"&-checkbox":{lineHeight:1}}},N4e=e=>{const{antCls:t,iconCls:n,componentCls:r,transferHeaderHeight:o,marginXS:i,marginXXS:a,fontSizeIcon:l,fontSize:s,lineHeight:c}=e;return{[r]:S(S({},vt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:e.colorBgContainerDisabled}},[`${r}-list`]:L4e(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:a},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(s*c)}})}},k4e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},B4e=pt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o,controlHeight:i}=e,a=Math.round(t*n),l=o,s=i,c=nt(e,{transferItemHeight:s,transferHeaderHeight:l,transferHeaderVerticalPadding:Math.ceil((l-r-a)/2),transferItemPaddingVertical:(s-a)/2});return[N4e(c),R4e(c),D4e(c),k4e(c)]},{listWidth:180,listHeight:200,listWidthLG:250}),F4e=()=>({id:String,prefixCls:String,dataSource:kt([]),disabled:De(),targetKeys:kt(),selectedKeys:kt(),render:Oe(),listStyle:ot([Function,Object],()=>({})),operationStyle:qe(void 0),titles:kt(),operations:kt(),showSearch:De(!1),filterOption:Oe(),searchPlaceholder:String,notFoundContent:Z.any,locale:qe(),rowKey:Oe(),showSelectAll:De(),selectAllLabels:kt(),children:Oe(),oneWay:De(),pagination:ot([Object,Boolean]),status:Qe(),onChange:Oe(),onSelectChange:Oe(),onSearch:Oe(),onScroll:Oe(),"onUpdate:targetKeys":Oe(),"onUpdate:selectedKeys":Oe()}),H4e=pe({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:F4e(),slots:Object,setup(e,t){let{emit:n,attrs:r,slots:o,expose:i}=t;const{configProvider:a,prefixCls:l,direction:s}=Ve("transfer",e),[c,u]=B4e(l),d=he([]),f=he([]),h=cr(),m=Tr.useInject(),v=M(()=>da(m.status,e.status));Ie(()=>e.selectedKeys,()=>{var J,te;d.value=((J=e.selectedKeys)===null||J===void 0?void 0:J.filter(ee=>e.targetKeys.indexOf(ee)===-1))||[],f.value=((te=e.selectedKeys)===null||te===void 0?void 0:te.filter(ee=>e.targetKeys.indexOf(ee)>-1))||[]},{immediate:!0});const y=(J,te)=>{const ee={notFoundContent:te("Transfer")},fe=lr(o,e,"notFoundContent");return fe&&(ee.notFoundContent=fe),e.searchPlaceholder!==void 0&&(ee.searchPlaceholder=e.searchPlaceholder),S(S(S({},J),ee),e.locale)},b=J=>{const{targetKeys:te=[],dataSource:ee=[]}=e,fe=J==="right"?d.value:f.value,ie=P4e(ee),X=fe.filter(j=>!ie.has(j)),ue=gw(X),ye=J==="right"?X.concat(te):te.filter(j=>!ue.has(j)),H=J==="right"?"left":"right";J==="right"?d.value=[]:f.value=[],n("update:targetKeys",ye),O(H,[]),n("change",ye,J,X),h.onFieldChange()},$=()=>{b("left")},x=()=>{b("right")},_=(J,te)=>{O(J,te)},w=J=>_("left",J),I=J=>_("right",J),O=(J,te)=>{J==="left"?(e.selectedKeys||(d.value=te),n("update:selectedKeys",[...te,...f.value]),n("selectChange",te,$t(f.value))):(e.selectedKeys||(f.value=te),n("update:selectedKeys",[...te,...d.value]),n("selectChange",$t(d.value),te))},P=(J,te)=>{const ee=te.target.value;n("search",J,ee)},E=J=>{P("left",J)},R=J=>{P("right",J)},A=J=>{n("search",J,"")},N=()=>{A("left")},F=()=>{A("right")},W=(J,te,ee)=>{const fe=J==="left"?[...d.value]:[...f.value],ie=fe.indexOf(te);ie>-1&&fe.splice(ie,1),ee&&fe.push(te),O(J,fe)},D=(J,te)=>W("left",J,te),B=(J,te)=>W("right",J,te),k=J=>{const{targetKeys:te=[]}=e,ee=te.filter(fe=>!J.includes(fe));n("update:targetKeys",ee),n("change",ee,"left",[...J])},L=(J,te)=>{n("scroll",J,te)},z=J=>{L("left",J)},K=J=>{L("right",J)},G=(J,te)=>typeof J=="function"?J({direction:te}):J,Y=he([]),ne=he([]);ct(()=>{const{dataSource:J,rowKey:te,targetKeys:ee=[]}=e,fe=[],ie=new Array(ee.length),X=gw(ee);J.forEach(ue=>{te&&(ue.key=te(ue)),X.has(ue.key)?ie[X.get(ue.key)]=ue:fe.push(ue)}),Y.value=fe,ne.value=ie}),i({handleSelectChange:O});const oe=J=>{var te,ee,fe,ie,X,ue;const{disabled:ye,operations:H=[],showSearch:j,listStyle:q,operationStyle:se,filterOption:ae,showSelectAll:ge,selectAllLabels:Se=[],oneWay:$e,pagination:_e,id:be=h.id.value}=e,{class:Te,style:Pe}=r,re=o.children,le=!re&&_e,xe=a.renderEmpty,Ae=y(J,xe),{footer:Be}=o,Ye=e.render||o.render,Re=f.value.length>0,Le=d.value.length>0,Ne=me(l.value,Te,{[`${l.value}-disabled`]:ye,[`${l.value}-customize-list`]:!!re,[`${l.value}-rtl`]:s.value==="rtl"},lo(l.value,v.value,m.hasFeedback),u.value),Ke=e.titles,Ze=(fe=(te=Ke&&Ke[0])!==null&&te!==void 0?te:(ee=o.leftTitle)===null||ee===void 0?void 0:ee.call(o))!==null&&fe!==void 0?fe:(Ae.titles||["",""])[0],Ue=(ue=(ie=Ke&&Ke[1])!==null&&ie!==void 0?ie:(X=o.rightTitle)===null||X===void 0?void 0:X.call(o))!==null&&ue!==void 0?ue:(Ae.titles||["",""])[1];return g("div",V(V({},r),{},{class:Ne,style:Pe,id:be}),[g(pR,V({key:"leftList",prefixCls:`${l.value}-list`,dataSource:Y.value,filterOption:ae,style:G(q,"left"),checkedKeys:d.value,handleFilter:E,handleClear:N,onItemSelect:D,onItemSelectAll:w,renderItem:Ye,showSearch:j,renderList:re,onScroll:z,disabled:ye,direction:s.value==="rtl"?"right":"left",showSelectAll:ge,selectAllLabel:Se[0]||o.leftSelectAllLabel,pagination:le},Ae),{titleText:()=>Ze,footer:Be}),g(M4e,{key:"operation",class:`${l.value}-operation`,rightActive:Le,rightArrowText:H[0],moveToRight:x,leftActive:Re,leftArrowText:H[1],moveToLeft:$,style:se,disabled:ye,direction:s.value,oneWay:$e},null),g(pR,V({key:"rightList",prefixCls:`${l.value}-list`,dataSource:ne.value,filterOption:ae,style:G(q,"right"),checkedKeys:f.value,handleFilter:R,handleClear:F,onItemSelect:B,onItemSelectAll:I,onItemRemove:k,renderItem:Ye,showSearch:j,renderList:re,onScroll:K,disabled:ye,direction:s.value==="rtl"?"left":"right",showSelectAll:ge,selectAllLabel:Se[1]||o.rightSelectAllLabel,showRemove:$e,pagination:le},Ae),{titleText:()=>Ue,footer:Be})])};return()=>c(g(Yc,{componentName:"Transfer",defaultLocale:so.Transfer,children:oe},null))}}),z4e=$n(H4e);function j4e(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function W4e(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{_title:t?[t]:["title","label"],value:o,key:o,children:r||"children"}}function vw(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function V4e(e,t){const n=[];function r(o){o.forEach(i=>{n.push(i[t.value]);const a=i[t.children];a&&r(a)})}return r(e),n}function vR(e){return e==null}const tj=Symbol("TreeSelectContextPropsKey");function K4e(e){return ft(tj,e)}function U4e(){return it(tj,{})}const G4e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Y4e=pe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:r}=t;const o=zh(),i=ay(),a=U4e(),l=he(),s=l_(()=>a.treeData,[()=>o.open,()=>a.treeData],w=>w[0]),c=M(()=>{const{checkable:w,halfCheckedKeys:I,checkedKeys:O}=i;return w?{checked:O,halfChecked:I}:null});Ie(()=>o.open,()=>{_t(()=>{var w;o.open&&!o.multiple&&i.checkedKeys.length&&((w=l.value)===null||w===void 0||w.scrollTo({key:i.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const u=M(()=>String(o.searchValue).toLowerCase()),d=w=>u.value?String(w[i.treeNodeFilterProp]).toLowerCase().includes(u.value):!1,f=ve(i.treeDefaultExpandedKeys),h=ve(null);Ie(()=>o.searchValue,()=>{o.searchValue&&(h.value=V4e($t(a.treeData),$t(a.fieldNames)))},{immediate:!0});const m=M(()=>i.treeExpandedKeys?i.treeExpandedKeys.slice():o.searchValue?h.value:f.value),v=w=>{var I;f.value=w,h.value=w,(I=i.onTreeExpand)===null||I===void 0||I.call(i,w)},y=w=>{w.preventDefault()},b=(w,I)=>{let{node:O}=I;var P,E;const{checkable:R,checkedKeys:A}=i;R&&vw(O)||((P=a.onSelect)===null||P===void 0||P.call(a,O.key,{selected:!A.includes(O.key)}),o.multiple||(E=o.toggleOpen)===null||E===void 0||E.call(o,!1))},$=he(null),x=M(()=>i.keyEntities[$.value]),_=w=>{$.value=w};return r({scrollTo:function(){for(var w,I,O=arguments.length,P=new Array(O),E=0;E{var I;const{which:O}=w;switch(O){case Fe.UP:case Fe.DOWN:case Fe.LEFT:case Fe.RIGHT:(I=l.value)===null||I===void 0||I.onKeydown(w);break;case Fe.ENTER:{if(x.value){const{selectable:P,value:E}=x.value.node||{};P!==!1&&b(null,{node:{key:$.value},selected:!i.checkedKeys.includes(E)})}break}case Fe.ESC:o.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var w;const{prefixCls:I,multiple:O,searchValue:P,open:E,notFoundContent:R=(w=n.notFoundContent)===null||w===void 0?void 0:w.call(n)}=o,{listHeight:A,listItemHeight:N,virtual:F,dropdownMatchSelectWidth:W,treeExpandAction:D}=a,{checkable:B,treeDefaultExpandAll:k,treeIcon:L,showTreeIcon:z,switcherIcon:K,treeLine:G,loadData:Y,treeLoadedKeys:ne,treeMotion:oe,onTreeLoad:J,checkedKeys:te}=i;if(s.value.length===0)return g("div",{role:"listbox",class:`${I}-empty`,onMousedown:y},[R]);const ee={fieldNames:a.fieldNames};return ne&&(ee.loadedKeys=ne),m.value&&(ee.expandedKeys=m.value),g("div",{onMousedown:y},[x.value&&E&&g("span",{style:G4e,"aria-live":"assertive"},[x.value.node.value]),g(zz,V(V({ref:l,focusable:!1,prefixCls:`${I}-tree`,treeData:s.value,height:A,itemHeight:N,virtual:F!==!1&&W!==!1,multiple:O,icon:L,showIcon:z,switcherIcon:K,showLine:G,loadData:P?null:Y,motion:oe,activeKey:$.value,checkable:B,checkStrictly:!0,checkedKeys:c.value,selectedKeys:B?[]:te,defaultExpandAll:k},ee),{},{onActiveChange:_,onSelect:b,onCheck:b,onExpand:v,onLoad:J,filterTreeNode:d,expandAction:D}),S(S({},n),{checkable:i.customSlots.treeCheckable}))])}}}),X4e="SHOW_ALL",nj="SHOW_PARENT",GI="SHOW_CHILD";function mR(e,t,n,r){const o=new Set(e);return t===GI?e.filter(i=>{const a=n[i];return!(a&&a.children&&a.children.some(l=>{let{node:s}=l;return o.has(s[r.value])})&&a.children.every(l=>{let{node:s}=l;return vw(s)||o.has(s[r.value])}))}):t===nj?e.filter(i=>{const a=n[i],l=a?a.parent:null;return!(l&&!vw(l.node)&&o.has(l.key))}):e}const qy=()=>null;qy.inheritAttrs=!1;qy.displayName="ATreeSelectNode";qy.isTreeSelectNode=!0;const YI=qy;var q4e=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);o0&&arguments[0]!==void 0?arguments[0]:[];return _n(n).map(r=>{var o,i,a;if(!Z4e(r))return null;const l=r.children||{},s=r.key,c={};for(const[O,P]of Object.entries(r.props))c[Gc(O)]=P;const{isLeaf:u,checkable:d,selectable:f,disabled:h,disableCheckbox:m}=c,v={isLeaf:u||u===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:h||h===""||void 0,disableCheckbox:m||m===""||void 0},y=S(S({},c),v),{title:b=(o=l.title)===null||o===void 0?void 0:o.call(l,y),switcherIcon:$=(i=l.switcherIcon)===null||i===void 0?void 0:i.call(l,y)}=c,x=q4e(c,["title","switcherIcon"]),_=(a=l.default)===null||a===void 0?void 0:a.call(l),w=S(S(S({},x),{title:b,switcherIcon:$,key:s,isLeaf:u}),v),I=t(_);return I.length&&(w.children=I),w})}return t(e)}function mw(e){if(!e)return e;const t=S({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function J4e(e,t,n,r,o,i){let a=null,l=null;function s(){function c(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map((h,m)=>{const v=`${d}-${m}`,y=h[i.value],b=n.includes(y),$=c(h[i.children]||[],v,b),x=g(YI,h,{default:()=>[$.map(_=>_.node)]});if(t===y&&(a=x),b){const _={pos:v,node:x,children:$};return f||l.push(_),_}return null}).filter(h=>h)}l||(l=[],c(r),l.sort((u,d)=>{let{node:{props:{value:f}}}=u,{node:{props:{value:h}}}=d;const m=n.indexOf(f),v=n.indexOf(h);return m-v}))}Object.defineProperty(e,"triggerNode",{get(){return s(),a}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),o?l:l.map(c=>{let{node:u}=c;return u})}})}function e3e(e,t){let{id:n,pId:r,rootPId:o}=t;const i={},a=[];return e.map(s=>{const c=S({},s),u=c[n];return i[u]=c,c.key=c.key||u,c}).forEach(s=>{const c=s[r],u=i[c];u&&(u.children=u.children||[],u.children.push(s)),(c===o||!u&&o===null)&&a.push(s)}),a}function t3e(e,t,n){const r=ve();return Ie([n,e,t],()=>{const o=n.value;e.value?r.value=n.value?e3e($t(e.value),S({id:"id",pId:"pId",rootPId:null},o!==!0?o:{})):$t(e.value).slice():r.value=Q4e($t(t.value))},{immediate:!0,deep:!0}),r}const n3e=e=>{const t=ve({valueLabels:new Map}),n=ve();return Ie(e,()=>{n.value=$t(e.value)},{immediate:!0}),[M(()=>{const{valueLabels:o}=t.value,i=new Map,a=n.value.map(l=>{var s;const{value:c}=l,u=(s=l.label)!==null&&s!==void 0?s:o.get(c);return i.set(c,u),S(S({},l),{label:u})});return t.value.valueLabels=i,a})]},r3e=(e,t)=>{const n=ve(new Map),r=ve({});return ct(()=>{const o=t.value,i=Qh(e.value,{fieldNames:o,initWrapper:a=>S(S({},a),{valueEntities:new Map}),processEntity:(a,l)=>{const s=a.node[o.value];l.valueEntities.set(s,a)}});n.value=i.valueEntities,r.value=i.keyEntities}),{valueEntities:n,keyEntities:r}},o3e=(e,t,n,r,o,i)=>{const a=ve([]),l=ve([]);return ct(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),c=t.value.map(d=>{let{value:f}=d;return f});const u=s.filter(d=>!r.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:c}=Mi(s,!0,r.value,o.value,i.value)),a.value=Array.from(new Set([...u,...s])),l.value=c}),[a,l]},i3e=(e,t,n)=>{let{treeNodeFilterProp:r,filterTreeNode:o,fieldNames:i}=n;return M(()=>{const{children:a}=i.value,l=t.value,s=r==null?void 0:r.value;if(!l||o.value===!1)return e.value;let c;if(typeof o.value=="function")c=o.value;else{const d=l.toUpperCase();c=(f,h)=>{const m=h[s];return String(m).toUpperCase().includes(d)}}function u(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const h=[];for(let m=0,v=d.length;me.treeCheckable&&!e.treeCheckStrictly),l=M(()=>e.treeCheckable||e.treeCheckStrictly),s=M(()=>e.treeCheckStrictly||e.labelInValue),c=M(()=>l.value||e.multiple),u=M(()=>W4e(e.fieldNames)),[d,f]=yn("",{value:M(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:be=>be||""}),h=be=>{var Te;f(be),(Te=e.onSearch)===null||Te===void 0||Te.call(e,be)},m=t3e(st(e,"treeData"),st(e,"children"),st(e,"treeDataSimpleMode")),{keyEntities:v,valueEntities:y}=r3e(m,u),b=be=>{const Te=[],Pe=[];return be.forEach(re=>{y.value.has(re)?Pe.push(re):Te.push(re)}),{missingRawValues:Te,existRawValues:Pe}},$=i3e(m,d,{fieldNames:u,treeNodeFilterProp:st(e,"treeNodeFilterProp"),filterTreeNode:st(e,"filterTreeNode")}),x=be=>{if(be){if(e.treeNodeLabelProp)return be[e.treeNodeLabelProp];const{_title:Te}=u.value;for(let Pe=0;Pej4e(be).map(Pe=>a3e(Pe)?{value:Pe}:Pe),w=be=>_(be).map(Pe=>{let{label:re}=Pe;const{value:le,halfChecked:xe}=Pe;let Ae;const Be=y.value.get(le);return Be&&(re=re??x(Be.node),Ae=Be.node.disabled),{label:re,value:le,halfChecked:xe,disabled:Ae}}),[I,O]=yn(e.defaultValue,{value:st(e,"value")}),P=M(()=>_(I.value)),E=ve([]),R=ve([]);ct(()=>{const be=[],Te=[];P.value.forEach(Pe=>{Pe.halfChecked?Te.push(Pe):be.push(Pe)}),E.value=be,R.value=Te});const A=M(()=>E.value.map(be=>be.value)),{maxLevel:N,levelEntities:F}=Ny(v),[W,D]=o3e(E,R,a,v,N,F),B=M(()=>{const Pe=mR(W.value,e.showCheckedStrategy,v.value,u.value).map(xe=>{var Ae,Be,Ye;return(Ye=(Be=(Ae=v.value[xe])===null||Ae===void 0?void 0:Ae.node)===null||Be===void 0?void 0:Be[u.value.value])!==null&&Ye!==void 0?Ye:xe}).map(xe=>{const Ae=E.value.find(Be=>Be.value===xe);return{value:xe,label:Ae==null?void 0:Ae.label}}),re=w(Pe),le=re[0];return!c.value&&le&&vR(le.value)&&vR(le.label)?[]:re.map(xe=>{var Ae;return S(S({},xe),{label:(Ae=xe.label)!==null&&Ae!==void 0?Ae:xe.value})})}),[k]=n3e(B),L=(be,Te,Pe)=>{const re=w(be);if(O(re),e.autoClearSearchValue&&f(""),e.onChange){let le=be;a.value&&(le=mR(be,e.showCheckedStrategy,v.value,u.value).map(Ze=>{const Ue=y.value.get(Ze);return Ue?Ue.node[u.value.value]:Ze}));const{triggerValue:xe,selected:Ae}=Te||{triggerValue:void 0,selected:void 0};let Be=le;if(e.treeCheckStrictly){const Ke=R.value.filter(Ze=>!le.includes(Ze.value));Be=[...Be,...Ke]}const Ye=w(Be),Re={preValue:E.value,triggerValue:xe};let Le=!0;(e.treeCheckStrictly||Pe==="selection"&&!Ae)&&(Le=!1),J4e(Re,xe,be,m.value,Le,u.value),l.value?Re.checked=Ae:Re.selected=Ae;const Ne=s.value?Ye:Ye.map(Ke=>Ke.value);e.onChange(c.value?Ne:Ne[0],s.value?null:Ye.map(Ke=>Ke.label),Re)}},z=(be,Te)=>{let{selected:Pe,source:re}=Te;var le,xe,Ae;const Be=$t(v.value),Ye=$t(y.value),Re=Be[be],Le=Re==null?void 0:Re.node,Ne=(le=Le==null?void 0:Le[u.value.value])!==null&&le!==void 0?le:be;if(!c.value)L([Ne],{selected:!0,triggerValue:Ne},"option");else{let Ke=Pe?[...A.value,Ne]:W.value.filter(Ze=>Ze!==Ne);if(a.value){const{missingRawValues:Ze,existRawValues:Ue}=b(Ke),Xe=Ue.map(Mt=>Ye.get(Mt).key);let xt;Pe?{checkedKeys:xt}=Mi(Xe,!0,Be,N.value,F.value):{checkedKeys:xt}=Mi(Xe,{checked:!1,halfCheckedKeys:D.value},Be,N.value,F.value),Ke=[...Ze,...xt.map(Mt=>Be[Mt].node[u.value.value])]}L(Ke,{selected:Pe,triggerValue:Ne},re||"option")}Pe||!c.value?(xe=e.onSelect)===null||xe===void 0||xe.call(e,Ne,mw(Le)):(Ae=e.onDeselect)===null||Ae===void 0||Ae.call(e,Ne,mw(Le))},K=be=>{if(e.onDropdownVisibleChange){const Te={};Object.defineProperty(Te,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(be,Te)}},G=(be,Te)=>{const Pe=be.map(re=>re.value);if(Te.type==="clear"){L(Pe,{},"selection");return}Te.values.length&&z(Te.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:Y,loadData:ne,treeLoadedKeys:oe,onTreeLoad:J,treeDefaultExpandAll:te,treeExpandedKeys:ee,treeDefaultExpandedKeys:fe,onTreeExpand:ie,virtual:X,listHeight:ue,listItemHeight:ye,treeLine:H,treeIcon:j,showTreeIcon:q,switcherIcon:se,treeMotion:ae,customSlots:ge,dropdownMatchSelectWidth:Se,treeExpandAction:$e}=ra(e);Nle(m0({checkable:l,loadData:ne,treeLoadedKeys:oe,onTreeLoad:J,checkedKeys:W,halfCheckedKeys:D,treeDefaultExpandAll:te,treeExpandedKeys:ee,treeDefaultExpandedKeys:fe,onTreeExpand:ie,treeIcon:j,treeMotion:ae,showTreeIcon:q,switcherIcon:se,treeLine:H,treeNodeFilterProp:Y,keyEntities:v,customSlots:ge})),K4e(m0({virtual:X,listHeight:ue,listItemHeight:ye,treeData:$,fieldNames:u,onSelect:z,dropdownMatchSelectWidth:Se,treeExpandAction:$e}));const _e=he();return r({focus(){var be;(be=_e.value)===null||be===void 0||be.focus()},blur(){var be;(be=_e.value)===null||be===void 0||be.blur()},scrollTo(be){var Te;(Te=_e.value)===null||Te===void 0||Te.scrollTo(be)}}),()=>{var be;const Te=Ot(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return g(a_,V(V(V({ref:_e},n),Te),{},{id:i,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:k.value,onDisplayValuesChange:G,searchValue:d.value,onSearch:h,OptionList:Y4e,emptyOptions:!m.value.length,onDropdownVisibleChange:K,tagRender:e.tagRender||o.tagRender,dropdownMatchSelectWidth:(be=e.dropdownMatchSelectWidth)!==null&&be!==void 0?be:!0}),o)}}}),s3e=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},Vz(n,nt(e,{colorBgContainer:r})),{[o]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},Hy(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function c3e(e,t){return pt("TreeSelect",n=>{const r=nt(n,{treePrefixCls:t.value});return[s3e(r)]})(e)}const bR=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function u3e(){return S(S({},Ot(rj(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:Z.any,size:Qe(),bordered:De(),treeLine:ot([Boolean,Object]),replaceFields:qe(),placement:Qe(),status:Qe(),popupClassName:String,dropdownClassName:String,"onUpdate:value":Oe(),"onUpdate:treeExpandedKeys":Oe(),"onUpdate:searchValue":Oe()})}const UC=pe({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:bt(u3e(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o,emit:i}=t;e.treeData===void 0&&r.default,pn(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),pn(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),pn(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const a=cr(),l=Tr.useInject(),s=M(()=>da(l.status,e.status)),{prefixCls:c,renderEmpty:u,direction:d,virtual:f,dropdownMatchSelectWidth:h,size:m,getPopupContainer:v,getPrefixCls:y,disabled:b}=Ve("select",e),{compactSize:$,compactItemClassnames:x}=Es(c,d),_=M(()=>$.value||m.value),w=jo(),I=M(()=>{var oe;return(oe=b.value)!==null&&oe!==void 0?oe:w.value}),O=M(()=>y()),P=M(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),E=M(()=>bR(O.value,n_(P.value),e.transitionName)),R=M(()=>bR(O.value,"",e.choiceTransitionName)),A=M(()=>y("select-tree",e.prefixCls)),N=M(()=>y("tree-select",e.prefixCls)),[F,W]=R_(c),[D]=c3e(N,A),B=M(()=>me(e.popupClassName||e.dropdownClassName,`${N.value}-dropdown`,{[`${N.value}-dropdown-rtl`]:d.value==="rtl"},W.value)),k=M(()=>!!(e.treeCheckable||e.multiple)),L=M(()=>e.showArrow!==void 0?e.showArrow:e.loading||!k.value),z=he();o({focus(){var oe,J;(J=(oe=z.value).focus)===null||J===void 0||J.call(oe)},blur(){var oe,J;(J=(oe=z.value).blur)===null||J===void 0||J.call(oe)}});const K=function(){for(var oe=arguments.length,J=new Array(oe),te=0;te{i("update:treeExpandedKeys",oe),i("treeExpand",oe)},Y=oe=>{i("update:searchValue",oe),i("search",oe)},ne=oe=>{i("blur",oe),a.onFieldBlur()};return()=>{var oe,J;const{notFoundContent:te=(oe=r.notFoundContent)===null||oe===void 0?void 0:oe.call(r),prefixCls:ee,bordered:fe,listHeight:ie,listItemHeight:X,multiple:ue,treeIcon:ye,treeLine:H,showArrow:j,switcherIcon:q=(J=r.switcherIcon)===null||J===void 0?void 0:J.call(r),fieldNames:se=e.replaceFields,id:ae=a.id.value}=e,{isFormItemInput:ge,hasFeedback:Se,feedbackIcon:$e}=l,{suffixIcon:_e,removeIcon:be,clearIcon:Te}=S_(S(S({},e),{multiple:k.value,showArrow:L.value,hasFeedback:Se,feedbackIcon:$e,prefixCls:c.value}),r);let Pe;te!==void 0?Pe=te:Pe=u("Select");const re=Ot(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),le=me(!ee&&N.value,{[`${c.value}-lg`]:_.value==="large",[`${c.value}-sm`]:_.value==="small",[`${c.value}-rtl`]:d.value==="rtl",[`${c.value}-borderless`]:!fe,[`${c.value}-in-form-item`]:ge},lo(c.value,s.value,Se),x.value,n.class,W.value),xe={};return e.treeData===void 0&&r.default&&(xe.children=ln(r.default())),F(D(g(l3e,V(V(V(V({},n),re),{},{disabled:I.value,virtual:f.value,dropdownMatchSelectWidth:h.value,id:ae,fieldNames:se,ref:z,prefixCls:c.value,class:le,listHeight:ie,listItemHeight:X,treeLine:!!H,inputIcon:_e,multiple:ue,removeIcon:be,clearIcon:Te,switcherIcon:Ae=>Wz(A.value,q,Ae,r.leafIcon,H),showTreeIcon:ye,notFoundContent:Pe,getPopupContainer:v==null?void 0:v.value,treeMotion:null,dropdownClassName:B.value,choiceTransitionName:R.value,onChange:K,onBlur:ne,onSearch:Y,onTreeExpand:G},xe),{},{transitionName:E.value,customSlots:S(S({},r),{treeCheckable:()=>g("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,placement:P.value,showArrow:Se||j}),S(S({},r),{treeCheckable:()=>g("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),bw=YI,d3e=S(UC,{TreeNode:YI,SHOW_ALL:X4e,SHOW_PARENT:nj,SHOW_CHILD:GI,install:e=>(e.component(UC.name,UC),e.component(bw.displayName,bw),e)}),GC=()=>({format:String,showNow:De(),showHour:De(),showMinute:De(),showSecond:De(),use12Hours:De(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:De(),popupClassName:String,status:Qe()});function f3e(e){const t=pH(e,S(S({},GC()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:r}=t,o=pe({name:"ATimePicker",inheritAttrs:!1,props:S(S(S(S({},W0()),uH()),GC()),{addon:{type:Function}}),slots:Object,setup(a,l){let{slots:s,expose:c,emit:u,attrs:d}=l;const f=a,h=cr();pn(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const m=he();c({focus:()=>{var _;(_=m.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=m.value)===null||_===void 0||_.blur()}});const v=(_,w)=>{u("update:value",_),u("change",_,w),h.onFieldChange()},y=_=>{u("update:open",_),u("openChange",_)},b=_=>{u("focus",_)},$=_=>{u("blur",_),h.onFieldBlur()},x=_=>{u("ok",_)};return()=>{const{id:_=h.id.value}=f;return g(n,V(V(V({},d),Ot(f,["onUpdate:value","onUpdate:open"])),{},{id:_,dropdownClassName:f.popupClassName,mode:void 0,ref:m,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:v,onOpenChange:y,onFocus:b,onBlur:$,onOk:x}),s)}}}),i=pe({name:"ATimeRangePicker",inheritAttrs:!1,props:S(S(S(S({},W0()),dH()),GC()),{order:{type:Boolean,default:!0}}),slots:Object,setup(a,l){let{slots:s,expose:c,emit:u,attrs:d}=l;const f=a,h=he(),m=cr();c({focus:()=>{var I;(I=h.value)===null||I===void 0||I.focus()},blur:()=>{var I;(I=h.value)===null||I===void 0||I.blur()}});const v=(I,O)=>{u("update:value",I),u("change",I,O),m.onFieldChange()},y=I=>{u("update:open",I),u("openChange",I)},b=I=>{u("focus",I)},$=I=>{u("blur",I),m.onFieldBlur()},x=(I,O)=>{u("panelChange",I,O)},_=I=>{u("ok",I)},w=(I,O,P)=>{u("calendarChange",I,O,P)};return()=>{const{id:I=m.id.value}=f;return g(r,V(V(V({},d),Ot(f,["onUpdate:open","onUpdate:value"])),{},{id:I,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:h,onChange:v,onOpenChange:y,onFocus:b,onBlur:$,onPanelChange:x,onOk:_,onCalendarChange:w}),s)}}});return{TimePicker:o,TimeRangePicker:i}}const{TimePicker:Wv,TimeRangePicker:Wm}=f3e(oO),p3e=S(Wv,{TimePicker:Wv,TimeRangePicker:Wm,install:e=>(e.component(Wv.name,Wv),e.component(Wm.name,Wm),e)}),h3e=()=>({prefixCls:String,color:String,dot:Z.any,pending:De(),position:Z.oneOf(Ur("left","right","")).def(""),label:Z.any}),$h=pe({compatConfig:{MODE:3},name:"ATimelineItem",props:bt(h3e(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=Ve("timeline",e),o=M(()=>({[`${r.value}-item`]:!0,[`${r.value}-item-pending`]:e.pending})),i=M(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),a=M(()=>({[`${r.value}-item-head`]:!0,[`${r.value}-item-head-${e.color||"blue"}`]:!i.value}));return()=>{var l,s,c;const{label:u=(l=n.label)===null||l===void 0?void 0:l.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return g("li",{class:o.value},[u&&g("div",{class:`${r.value}-item-label`},[u]),g("div",{class:`${r.value}-item-tail`},null),g("div",{class:[a.value,!!d&&`${r.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[d]),g("div",{class:`${r.value}-item-content`},[(c=n.default)===null||c===void 0?void 0:c.call(n)])])}}}),g3e=e=>{const{componentCls:t}=e;return{[t]:S(S({},vt(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, - &${t}-right, - &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, - ${t}-item-head, - ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending - ${t}-item-last - ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse - ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},v3e=pt("Timeline",e=>{const t=nt(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[g3e(t)]}),m3e=()=>({prefixCls:String,pending:Z.any,pendingDot:Z.any,reverse:De(),mode:Z.oneOf(Ur("left","alternate","right",""))}),Dp=pe({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:bt(m3e(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("timeline",e),[a,l]=v3e(o),s=(c,u)=>{const d=c.props||{};return e.mode==="alternate"?d.position==="right"?`${o.value}-item-right`:d.position==="left"?`${o.value}-item-left`:u%2===0?`${o.value}-item-left`:`${o.value}-item-right`:e.mode==="left"?`${o.value}-item-left`:e.mode==="right"?`${o.value}-item-right`:d.position==="right"?`${o.value}-item-right`:""};return()=>{var c,u,d;const{pending:f=(c=n.pending)===null||c===void 0?void 0:c.call(n),pendingDot:h=(u=n.pendingDot)===null||u===void 0?void 0:u.call(n),reverse:m,mode:v}=e,y=typeof f=="boolean"?null:f,b=_n((d=n.default)===null||d===void 0?void 0:d.call(n)),$=f?g($h,{pending:!!f,dot:h||g(di,null,null)},{default:()=>[y]}):null;$&&b.push($);const x=m?b.reverse():b,_=x.length,w=`${o.value}-item-last`,I=x.map((E,R)=>{const A=R===_-2?w:"",N=R===_-1?w:"";return kr(E,{class:me([!m&&f?A:N,s(E,R)])})}),O=x.some(E=>{var R,A;return!!(!((R=E.props)===null||R===void 0)&&R.label||!((A=E.children)===null||A===void 0)&&A.label)}),P=me(o.value,{[`${o.value}-pending`]:!!f,[`${o.value}-reverse`]:!!m,[`${o.value}-${v}`]:!!v&&!O,[`${o.value}-label`]:O,[`${o.value}-rtl`]:i.value==="rtl"},r.class,l.value);return a(g("ul",V(V({},r),{},{class:P}),[I]))}}});Dp.Item=$h;Dp.install=function(e){return e.component(Dp.name,Dp),e.component($h.name,$h),e};var b3e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const y3e=b3e;function yR(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},x3e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` - h${r}&, - div&-h${r}, - div&-h${r} > textarea, - h${r} - `]=$3e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},w3e=e=>{const{componentCls:t}=e;return{"a&, a":S(S({},Kb(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},_3e=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Rne[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),O3e=e=>{const{componentCls:t}=e,r=iu(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-r,marginBottom:`calc(1em - ${r}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},I3e=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),P3e=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),T3e=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:S(S(S(S(S(S(S(S(S({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},x3e(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),_3e()),w3e(e)),{[` - ${t}-expand, - ${t}-edit, - ${t}-copy - `]:S(S({},Kb(e)),{marginInlineStart:e.marginXXS})}),O3e(e)),I3e(e)),P3e()),{"&-rtl":{direction:"rtl"}})}},oj=pt("Typography",e=>[T3e(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),E3e=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),A3e=pe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:E3e(),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:i}=ra(e),a=St({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});Ie(()=>e.value,$=>{a.current=$});const l=he();lt(()=>{var $;if(l.value){const x=($=l.value)===null||$===void 0?void 0:$.resizableTextArea,_=x==null?void 0:x.textArea;_.focus();const{length:w}=_.value;_.setSelectionRange(w,w)}});function s($){l.value=$}function c($){let{target:{value:x}}=$;a.current=x.replace(/[\r\n]/g,""),n("change",a.current)}function u(){a.inComposition=!0}function d(){a.inComposition=!1}function f($){const{keyCode:x}=$;x===Fe.ENTER&&$.preventDefault(),!a.inComposition&&(a.lastKeyCode=x)}function h($){const{keyCode:x,ctrlKey:_,altKey:w,metaKey:I,shiftKey:O}=$;a.lastKeyCode===x&&!a.inComposition&&!_&&!w&&!I&&!O&&(x===Fe.ENTER?(v(),n("end")):x===Fe.ESC&&(a.current=e.originContent,n("cancel")))}function m(){v()}function v(){n("save",a.current.trim())}const[y,b]=oj(i);return()=>{const $=me({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:e.direction==="rtl",[e.component?`${i.value}-${e.component}`:""]:!0},o.class,b.value);return y(g("div",V(V({},o),{},{class:$}),[g(lI,{ref:s,maxlength:e.maxlength,value:a.current,onChange:c,onKeydown:f,onKeyup:h,onCompositionstart:u,onCompositionend:d,onBlur:m,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),r.enterIcon?r.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):g(C3e,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),M3e=A3e,R3e=3,D3e=8;let Ao;const YC={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function L3e(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function ij(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),r=L3e(n);e.setAttribute("style",r),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function N3e(e){const t=document.createElement("div");ij(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const k3e=(e,t,n,r,o)=>{Ao||(Ao=document.createElement("div"),Ao.setAttribute("aria-hidden","true"),document.body.appendChild(Ao));const{rows:i,suffix:a=""}=t,l=N3e(e),s=Math.round(l*i*100)/100;ij(Ao,e);const c=AN({render(){return g("div",{style:YC},[g("span",{style:YC},[n,a]),g("span",{style:YC},[r])])}});c.mount(Ao);function u(){return Math.round(Ao.getBoundingClientRect().height*100)/100-.1<=s}if(u())return c.unmount(),{content:n,text:Ao.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(Ao.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(x=>{let{nodeType:_,data:w}=x;return _!==D3e&&w!==""}),f=Array.prototype.slice.apply(Ao.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const h=[];Ao.innerHTML="";const m=document.createElement("span");Ao.appendChild(m);const v=document.createTextNode(o+a);m.appendChild(v),f.forEach(x=>{Ao.appendChild(x)});function y(x){m.insertBefore(x,v)}function b(x,_){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_.length,O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const P=Math.floor((w+I)/2),E=_.slice(0,P);if(x.textContent=E,w>=I-1)for(let R=I;R>=w;R-=1){const A=_.slice(0,R);if(x.textContent=A,u()||!A)return R===_.length?{finished:!1,vNode:_}:{finished:!0,vNode:A}}return u()?b(x,_,P,I,P):b(x,_,w,P,O)}function $(x){if(x.nodeType===R3e){const w=x.textContent||"",I=document.createTextNode(w);return y(I),b(I,w)}return{finished:!1,vNode:null}}return d.some(x=>{const{finished:_,vNode:w}=$(x);return w&&h.push(w),_}),{content:h,text:Ao.innerHTML,ellipsis:!0}};var B3e=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({prefixCls:String,direction:String,component:String}),H3e=pe({name:"ATypography",inheritAttrs:!1,props:F3e(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:i}=Ve("typography",e),[a,l]=oj(o);return()=>{var s;const c=S(S({},e),r),{prefixCls:u,direction:d,component:f="article"}=c,h=B3e(c,["prefixCls","direction","component"]);return a(g(f,V(V({},h),{},{class:me(o.value,{[`${o.value}-rtl`]:i.value==="rtl"},r.class,l.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),Do=H3e,z3e=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let r=0;r"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=SR[t.format]||SR.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),i.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(c){s&&console.error("unable to copy using execCommand: ",c),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(u){s&&console.error("unable to copy using clipboardData: ",u),s&&console.error("falling back to prompt"),n=W3e("message"in t?t.message:j3e),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),a&&document.body.removeChild(a),r()}return l}var K3e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const U3e=K3e;function CR(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),nAe=pe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:rg(),setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:i,direction:a}=Ve("typography",e),l=St({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=he(),c=he(),u=M(()=>{const D=e.ellipsis;return D?S({rows:1,expandable:!1},typeof D=="object"?D:null):{}});lt(()=>{l.clientRendered=!0,P()}),Ct(()=>{clearTimeout(l.copyId),mt.cancel(l.rafId)}),Ie([()=>u.value.rows,()=>e.content],()=>{_t(()=>{I()})},{flush:"post",deep:!0}),ct(()=>{e.content===void 0&&(Sn(!e.editable),Sn(!e.ellipsis))});function d(){var D;return e.ellipsis||e.editable?e.content:(D=No(s.value))===null||D===void 0?void 0:D.innerText}function f(D){const{onExpand:B}=u.value;l.expanded=!0,B==null||B(D)}function h(D){D.preventDefault(),l.originContent=e.content,w(!0)}function m(D){v(D),w(!1)}function v(D){const{onChange:B}=$.value;D!==e.content&&(o("update:content",D),B==null||B(D))}function y(){var D,B;(B=(D=$.value).onCancel)===null||B===void 0||B.call(D),w(!1)}function b(D){D.preventDefault(),D.stopPropagation();const{copyable:B}=e,k=S({},typeof B=="object"?B:null);k.text===void 0&&(k.text=d()),V3e(k.text||""),l.copied=!0,_t(()=>{k.onCopy&&k.onCopy(D),l.copyId=setTimeout(()=>{l.copied=!1},3e3)})}const $=M(()=>{const D=e.editable;return D?S({},typeof D=="object"?D:null):{editing:!1}}),[x,_]=yn(!1,{value:M(()=>$.value.editing)});function w(D){const{onStart:B}=$.value;D&&B&&B(),_(D)}Ie(x,D=>{var B;D||(B=c.value)===null||B===void 0||B.focus()},{flush:"post"});function I(D){if(D){const{width:B,height:k}=D;if(!B||!k)return}mt.cancel(l.rafId),l.rafId=mt(()=>{P()})}const O=M(()=>{const{rows:D,expandable:B,suffix:k,onEllipsis:L,tooltip:z}=u.value;return k||z||e.editable||e.copyable||B||L?!1:D===1?tAe:eAe}),P=()=>{const{ellipsisText:D,isEllipsis:B}=l,{rows:k,suffix:L,onEllipsis:z}=u.value;if(!k||k<0||!No(s.value)||l.expanded||e.content===void 0||O.value)return;const{content:K,text:G,ellipsis:Y}=k3e(No(s.value),{rows:k,suffix:L},e.content,W(!0),xR);(D!==G||l.isEllipsis!==Y)&&(l.ellipsisText=G,l.ellipsisContent=K,l.isEllipsis=Y,B!==Y&&z&&z(Y))};function E(D,B){let{mark:k,code:L,underline:z,delete:K,strong:G,keyboard:Y}=D,ne=B;function oe(J,te){if(!J)return;const ee=function(){return ne}();ne=g(te,null,{default:()=>[ee]})}return oe(G,"strong"),oe(z,"u"),oe(K,"del"),oe(L,"code"),oe(k,"mark"),oe(Y,"kbd"),ne}function R(D){const{expandable:B,symbol:k}=u.value;if(!B||!D&&(l.expanded||!l.isEllipsis))return null;const L=(n.ellipsisSymbol?n.ellipsisSymbol():k)||l.expandStr;return g("a",{key:"expand",class:`${i.value}-expand`,onClick:f,"aria-label":l.expandStr},[L])}function A(){if(!e.editable)return;const{tooltip:D,triggerType:B=["icon"]}=e.editable,k=n.editableIcon?n.editableIcon():g(Q3e,{role:"button"},null),L=n.editableTooltip?n.editableTooltip():l.editStr,z=typeof L=="string"?L:"";return B.indexOf("icon")!==-1?g(Bo,{key:"edit",title:D===!1?"":L},{default:()=>[g(Y0,{ref:c,class:`${i.value}-edit`,onClick:h,"aria-label":z},{default:()=>[k]})]}):null}function N(){if(!e.copyable)return;const{tooltip:D}=e.copyable,B=l.copied?l.copiedStr:l.copyStr,k=n.copyableTooltip?n.copyableTooltip({copied:l.copied}):B,L=typeof k=="string"?k:"",z=l.copied?g(cy,null,null):g(Y3e,null,null),K=n.copyableIcon?n.copyableIcon({copied:!!l.copied}):z;return g(Bo,{key:"copy",title:D===!1?"":k},{default:()=>[g(Y0,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:l.copied}],onClick:b,"aria-label":L},{default:()=>[K]})]})}function F(){const{class:D,style:B}=r,{maxlength:k,autoSize:L,onEnd:z}=$.value;return g(M3e,{class:D,style:B,prefixCls:i.value,value:e.content,originContent:l.originContent,maxlength:k,autoSize:L,onSave:m,onChange:v,onCancel:y,onEnd:z,direction:a.value,component:e.component},{enterIcon:n.editableEnterIcon})}function W(D){return[R(D),A(),N()].filter(B=>B)}return()=>{var D;const{triggerType:B=["icon"]}=$.value,k=e.ellipsis||e.editable?e.content!==void 0?e.content:(D=n.default)===null||D===void 0?void 0:D.call(n):n.default?n.default():e.content;return x.value?F():g(Yc,{componentName:"Text",children:L=>{const z=S(S({},e),r),{type:K,disabled:G,content:Y,class:ne,style:oe}=z,J=J3e(z,["type","disabled","content","class","style"]),{rows:te,suffix:ee,tooltip:fe}=u.value,{edit:ie,copy:X,copied:ue,expand:ye}=L;l.editStr=ie,l.copyStr=X,l.copiedStr=ue,l.expandStr=ye;const H=Ot(J,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),j=O.value,q=te===1&&j,se=te&&te>1&&j;let ae=k,ge;if(te&&l.isEllipsis&&!l.expanded&&!j){const{title:_e}=J;let be=_e||"";!_e&&(typeof k=="string"||typeof k=="number")&&(be=String(k)),be=be==null?void 0:be.slice(String(l.ellipsisContent||"").length),ae=g(Je,null,[$t(l.ellipsisContent),g("span",{title:be,"aria-hidden":"true"},[xR]),ee])}else ae=g(Je,null,[k,ee]);ae=E(e,ae);const Se=fe&&te&&l.isEllipsis&&!l.expanded&&!j,$e=n.ellipsisTooltip?n.ellipsisTooltip():fe;return g(ki,{onResize:I,disabled:!te},{default:()=>[g(Do,V({ref:s,class:[{[`${i.value}-${K}`]:K,[`${i.value}-disabled`]:G,[`${i.value}-ellipsis`]:te,[`${i.value}-single-line`]:te===1&&!l.isEllipsis,[`${i.value}-ellipsis-single-line`]:q,[`${i.value}-ellipsis-multiple-line`]:se},ne],style:S(S({},oe),{WebkitLineClamp:se?te:void 0}),"aria-label":ge,direction:a.value,onClick:B.indexOf("text")!==-1?h:()=>{}},H),{default:()=>[Se?g(Bo,{title:fe===!0?k:$e},{default:()=>[g("span",null,[ae])]}):ae,W()]})]})}},null)}}}),og=nAe;var rAe=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);oOt(S(S({},rg()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),Zy=(e,t)=>{let{slots:n,attrs:r}=t;const o=S(S({},e),r),{ellipsis:i,rel:a}=o,l=rAe(o,["ellipsis","rel"]);Sn();const s=S(S({},l),{rel:a===void 0&&l.target==="_blank"?"noopener noreferrer":a,ellipsis:!!i,component:"a"});return delete s.navigate,g(og,s,n)};Zy.displayName="ATypographyLink";Zy.inheritAttrs=!1;Zy.props=oAe();const QI=Zy,iAe=()=>Ot(rg(),["component"]),Qy=(e,t)=>{let{slots:n,attrs:r}=t;const o=S(S(S({},e),{component:"div"}),r);return g(og,o,n)};Qy.displayName="ATypographyParagraph";Qy.inheritAttrs=!1;Qy.props=iAe();const JI=Qy,aAe=()=>S(S({},Ot(rg(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),Jy=(e,t)=>{let{slots:n,attrs:r}=t;const{ellipsis:o}=e;Sn();const i=S(S(S({},e),{ellipsis:o&&typeof o=="object"?Ot(o,["expandable","rows"]):o,component:"span"}),r);return g(og,i,n)};Jy.displayName="ATypographyText";Jy.inheritAttrs=!1;Jy.props=aAe();const eP=Jy;var lAe=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);oS(S({},Ot(rg(),["component","strong"])),{level:Number}),e1=(e,t)=>{let{slots:n,attrs:r}=t;const{level:o=1}=e,i=lAe(e,["level"]);let a;sAe.includes(o)?a=`h${o}`:(Sn(),a="h1");const l=S(S(S({},i),{component:a}),r);return g(og,l,n)};e1.displayName="ATypographyTitle";e1.inheritAttrs=!1;e1.props=cAe();const tP=e1;Do.Text=eP;Do.Title=tP;Do.Paragraph=JI;Do.Link=QI;Do.Base=og;Do.install=function(e){return e.component(Do.name,Do),e.component(Do.Text.displayName,eP),e.component(Do.Title.displayName,tP),e.component(Do.Paragraph.displayName,JI),e.component(Do.Link.displayName,QI),e};function uAe(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function wR(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function dAe(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});const n=new FormData;e.data&&Object.keys(e.data).forEach(o=>{const i=e.data[o];if(Array.isArray(i)){i.forEach(a=>{n.append(`${o}[]`,a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(uAe(e,t),wR(t)):e.onSuccess(wR(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(o=>{r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort(){t.abort()}}}const fAe=+new Date;let pAe=0;function XC(){return`vc-upload-${fAe}-${++pAe}`}const qC=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(a=>{const l=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(l.charAt(0)==="."){const s=r.toLowerCase(),c=l.toLowerCase();let u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(d=>s.endsWith(d))}return/\/\*$/.test(l)?i===l.replace(/\/.*$/,""):!!(o===l||/^\w+$/.test(l))})}return!0};function hAe(e,t){const n=e.createReader();let r=[];function o(){n.readEntries(i=>{const a=Array.prototype.slice.apply(i);r=r.concat(a),!a.length?t(r):o()})}o()}const gAe=(e,t,n)=>{const r=(o,i)=>{o.path=i||"",o.isFile?o.file(a=>{n(a)&&(o.fullPath&&!a.webkitRelativePath&&(Object.defineProperties(a,{webkitRelativePath:{writable:!0}}),a.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(a,{webkitRelativePath:{writable:!1}})),t([a]))}):o.isDirectory&&hAe(o,a=>{a.forEach(l=>{r(l,`${i}${o.name}/`)})})};e.forEach(o=>{r(o.webkitGetAsEntry())})},vAe=gAe,aj=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var mAe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(d){a(d)}}function s(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(l,s)}c((r=r.apply(e,t||[])).next())})},bAe=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);omAe(this,void 0,void 0,function*(){const{beforeUpload:_}=e;let w=$;if(_){try{w=yield _($,x)}catch{w=!1}if(w===!1)return{origin:$,parsedFile:null,action:null,data:null}}const{action:I}=e;let O;typeof I=="function"?O=yield I($):O=I;const{data:P}=e;let E;typeof P=="function"?E=yield P($):E=P;const R=(typeof w=="object"||typeof w=="string")&&w?w:$;let A;R instanceof File?A=R:A=new File([R],$.name,{type:$.type});const N=A;return N.uid=$.uid,{origin:$,data:E,parsedFile:N,action:O}}),u=$=>{let{data:x,origin:_,action:w,parsedFile:I}=$;if(!s)return;const{onStart:O,customRequest:P,name:E,headers:R,withCredentials:A,method:N}=e,{uid:F}=_,W=P||dAe,D={action:w,filename:E,data:x,file:I,headers:R,withCredentials:A,method:N||"post",onProgress:B=>{const{onProgress:k}=e;k==null||k(B,I)},onSuccess:(B,k)=>{const{onSuccess:L}=e;L==null||L(B,I,k),delete a[F]},onError:(B,k)=>{const{onError:L}=e;L==null||L(B,k,I),delete a[F]}};O(_),a[F]=W(D)},d=()=>{i.value=XC()},f=$=>{if($){const x=$.uid?$.uid:$;a[x]&&a[x].abort&&a[x].abort(),delete a[x]}else Object.keys(a).forEach(x=>{a[x]&&a[x].abort&&a[x].abort(),delete a[x]})};lt(()=>{s=!0}),Ct(()=>{s=!1,f()});const h=$=>{const x=[...$],_=x.map(w=>(w.uid=XC(),c(w,x)));Promise.all(_).then(w=>{const{onBatchStart:I}=e;I==null||I(w.map(O=>{let{origin:P,parsedFile:E}=O;return{file:P,parsedFile:E}})),w.filter(O=>O.parsedFile!==null).forEach(O=>{u(O)})})},m=$=>{const{accept:x,directory:_}=e,{files:w}=$.target,I=[...w].filter(O=>!_||qC(O,x));h(I),d()},v=$=>{const x=l.value;if(!x)return;const{onClick:_}=e;x.click(),_&&_($)},y=$=>{$.key==="Enter"&&v($)},b=$=>{const{multiple:x}=e;if($.preventDefault(),$.type!=="dragover")if(e.directory)vAe(Array.prototype.slice.call($.dataTransfer.items),h,_=>qC(_,e.accept));else{const _=Wfe(Array.prototype.slice.call($.dataTransfer.files),O=>qC(O,e.accept));let w=_[0];const I=_[1];x===!1&&(w=w.slice(0,1)),h(w),I.length&&e.onReject&&e.onReject(I)}};return o({abort:f}),()=>{var $;const{componentTag:x,prefixCls:_,disabled:w,id:I,multiple:O,accept:P,capture:E,directory:R,openFileDialogOnClick:A,onMouseenter:N,onMouseleave:F}=e,W=bAe(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),D={[_]:!0,[`${_}-disabled`]:w,[r.class]:!!r.class},B=R?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return g(x,V(V({},w?{}:{onClick:A?v:()=>{},onKeydown:A?y:()=>{},onMouseenter:N,onMouseleave:F,onDrop:b,onDragover:b,tabindex:"0"}),{},{class:D,role:"button",style:r.style}),{default:()=>[g("input",V(V(V({},Ts(W,{aria:!0,data:!0})),{},{id:I,type:"file",ref:l,onClick:L=>L.stopPropagation(),onCancel:L=>L.stopPropagation(),key:i.value,style:{display:"none"},accept:P},B),{},{multiple:O,onChange:m},E!=null?{capture:E}:{}),null),($=n.default)===null||$===void 0?void 0:$.call(n)]})}}});function ZC(){}const _R=pe({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:bt(aj(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ZC,onError:ZC,onSuccess:ZC,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const i=he();return o({abort:l=>{var s;(s=i.value)===null||s===void 0||s.abort(l)}}),()=>g(yAe,V(V(V({},e),r),{},{ref:i}),n)}});var SAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const CAe=SAe;function OR(e){for(var t=1;t{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function QC(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function RAe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const DAe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},sj=e=>e.indexOf("image/")===0,LAe=e=>{if(e.type&&!e.thumbUrl)return sj(e.type);const t=e.thumbUrl||e.url||"",n=DAe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Yl=200;function NAe(e){return new Promise(t=>{if(!e.type||!sj(e.type)){t("");return}const n=document.createElement("canvas");n.width=Yl,n.height=Yl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yl}px; height: ${Yl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let l=Yl,s=Yl,c=0,u=0;i>a?(s=a*(Yl/i),u=-(s-l)/2):(l=i*(Yl/a),c=-(l-s)/2),r.drawImage(o,c,u,l,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(o.src=i.result)}),i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var kAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const BAe=kAe;function TR(e){for(var t=1;t({prefixCls:String,locale:qe(void 0),file:qe(),items:kt(),listType:Qe(),isImgUrl:Oe(),showRemoveIcon:De(),showDownloadIcon:De(),showPreviewIcon:De(),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe(),iconRender:Oe(),actionIconRender:Oe(),itemRender:Oe(),onPreview:Oe(),onClose:Oe(),onDownload:Oe(),progress:qe()}),jAe=pe({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:zAe(),setup(e,t){let{slots:n,attrs:r}=t;var o;const i=ve(!1),a=ve();lt(()=>{a.value=setTimeout(()=>{i.value=!0},300)}),Ct(()=>{clearTimeout(a.value)});const l=ve((o=e.file)===null||o===void 0?void 0:o.status);Ie(()=>{var u;return(u=e.file)===null||u===void 0?void 0:u.status},u=>{u!=="removed"&&(l.value=u)});const{rootPrefixCls:s}=Ve("upload",e),c=M(()=>Hi(`${s.value}-fade`));return()=>{var u,d;const{prefixCls:f,locale:h,listType:m,file:v,items:y,progress:b,iconRender:$=n.iconRender,actionIconRender:x=n.actionIconRender,itemRender:_=n.itemRender,isImgUrl:w,showPreviewIcon:I,showRemoveIcon:O,showDownloadIcon:P,previewIcon:E=n.previewIcon,removeIcon:R=n.removeIcon,downloadIcon:A=n.downloadIcon,onPreview:N,onDownload:F,onClose:W}=e,{class:D,style:B}=r,k=$({file:v});let L=g("div",{class:`${f}-text-icon`},[k]);if(m==="picture"||m==="picture-card")if(l.value==="uploading"||!v.thumbUrl&&!v.url){const H={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:l.value!=="uploading"};L=g("div",{class:H},[k])}else{const H=w!=null&&w(v)?g("img",{src:v.thumbUrl||v.url,alt:v.name,class:`${f}-list-item-image`,crossorigin:v.crossOrigin},null):k,j={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:w&&!w(v)};L=g("a",{class:j,onClick:q=>N(v,q),href:v.url||v.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[H])}const z={[`${f}-list-item`]:!0,[`${f}-list-item-${l.value}`]:!0},K=typeof v.linkProps=="string"?JSON.parse(v.linkProps):v.linkProps,G=O?x({customIcon:R?R({file:v}):g(ej,null,null),callback:()=>W(v),prefixCls:f,title:h.removeFile}):null,Y=P&&l.value==="done"?x({customIcon:A?A({file:v}):g(HAe,null,null),callback:()=>F(v),prefixCls:f,title:h.downloadFile}):null,ne=m!=="picture-card"&&g("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:m==="picture"}]},[Y,G]),oe=`${f}-list-item-name`,J=v.url?[g("a",V(V({key:"view",target:"_blank",rel:"noopener noreferrer",class:oe,title:v.name},K),{},{href:v.url,onClick:H=>N(v,H)}),[v.name]),ne]:[g("span",{key:"view",class:oe,onClick:H=>N(v,H),title:v.name},[v.name]),ne],te={pointerEvents:"none",opacity:.5},ee=I?g("a",{href:v.url||v.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:v.url||v.thumbUrl?void 0:te,onClick:H=>N(v,H),title:h.previewFile},[E?E({file:v}):g(cI,null,null)]):null,fe=m==="picture-card"&&l.value!=="uploading"&&g("span",{class:`${f}-list-item-actions`},[ee,l.value==="done"&&Y,G]),ie=g("div",{class:z},[L,J,fe,i.value&&g(sr,c.value,{default:()=>[Ln(g("div",{class:`${f}-list-item-progress`},["percent"in v?g(PI,V(V({},b),{},{type:"line",percent:v.percent}),null):null]),[[Br,l.value==="uploading"]])]})]),X={[`${f}-list-item-container`]:!0,[`${D}`]:!!D},ue=v.response&&typeof v.response=="string"?v.response:((u=v.error)===null||u===void 0?void 0:u.statusText)||((d=v.error)===null||d===void 0?void 0:d.message)||h.uploadError,ye=l.value==="error"?g(Bo,{title:ue,getPopupContainer:H=>H.parentNode},{default:()=>[ie]}):ie;return g("div",{class:X,style:B},[_?_({originNode:ye,file:v,fileList:y,actions:{download:F.bind(null,v),preview:N.bind(null,v),remove:W.bind(null,v)}}):ye])}}}),WAe=(e,t)=>{let{slots:n}=t;var r;return _n((r=n.default)===null||r===void 0?void 0:r.call(n))[0]},VAe=pe({compatConfig:{MODE:3},name:"AUploadList",props:bt(MAe(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:NAe,isImageUrl:LAe,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:r}=t;const o=ve(!1);lt(()=>{o.value==!0});const i=ve([]);Ie(()=>e.items,function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=v.slice()},{immediate:!0,deep:!0}),ct(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let v=!1;(e.items||[]).forEach((y,b)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(y.originFileObj instanceof File||y.originFileObj instanceof Blob)||y.thumbUrl!==void 0||(y.thumbUrl="",e.previewFile&&e.previewFile(y.originFileObj).then($=>{const x=$||"";x!==y.thumbUrl&&(i.value[b].thumbUrl=x,v=!0)}))}),v&&KL(i)});const a=(v,y)=>{if(e.onPreview)return y==null||y.preventDefault(),e.onPreview(v)},l=v=>{typeof e.onDownload=="function"?e.onDownload(v):v.url&&window.open(v.url)},s=v=>{var y;(y=e.onRemove)===null||y===void 0||y.call(e,v)},c=v=>{let{file:y}=v;const b=e.iconRender||n.iconRender;if(b)return b({file:y,listType:e.listType});const $=y.status==="uploading",x=e.isImageUrl&&e.isImageUrl(y)?g(IAe,null,null):g(AAe,null,null);let _=g($?di:xAe,null,null);return e.listType==="picture"?_=$?g(di,null,null):x:e.listType==="picture-card"&&(_=$?e.locale.uploading:x),_},u=v=>{const{customIcon:y,callback:b,prefixCls:$,title:x}=v,_={type:"text",size:"small",title:x,onClick:()=>{b()},class:`${$}-list-item-action`};return Jn(y)?g(Un,_,{icon:()=>y}):g(Un,_,{default:()=>[g("span",null,[y])]})};r({handlePreview:a,handleDownload:l});const{prefixCls:d,rootPrefixCls:f}=Ve("upload",e),h=M(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),m=M(()=>{const v=S({},Uh(`${f.value}-motion-collapse`));delete v.onAfterAppear,delete v.onAfterEnter,delete v.onAfterLeave;const y=S(S({},ry(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:h.value,appear:o.value});return e.listType!=="picture-card"?S(S({},v),y):y});return()=>{const{listType:v,locale:y,isImageUrl:b,showPreviewIcon:$,showRemoveIcon:x,showDownloadIcon:_,removeIcon:w,previewIcon:I,downloadIcon:O,progress:P,appendAction:E,itemRender:R,appendActionVisible:A}=e,N=E==null?void 0:E(),F=i.value;return g(Nb,V(V({},m.value),{},{tag:"div"}),{default:()=>[F.map(W=>{const{uid:D}=W;return g(jAe,{key:D,locale:y,prefixCls:d.value,file:W,items:F,progress:P,listType:v,isImgUrl:b,showPreviewIcon:$,showRemoveIcon:x,showDownloadIcon:_,onPreview:a,onDownload:l,onClose:s,removeIcon:w,previewIcon:I,downloadIcon:O,itemRender:R},S(S({},n),{iconRender:c,actionIconRender:u}))}),E?Ln(g(WAe,{key:"__ant_upload_appendAction"},{default:()=>N}),[[Br,!!A]]):null]})}}}),KAe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},UAe=KAe,GAe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`,c=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:S(S({},aa()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:S(S({},er),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${s}:focus, - &.picture ${s} - `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},YAe=GAe,ER=new Pt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),AR=new Pt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),XAe=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:ER},[`${n}-leave`]:{animationName:AR}}},ER,AR]},qAe=XAe,ZAe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[a]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:S(S({},er),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}}}}},QAe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:S(S({},aa()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${a}-actions, ${a}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Zt(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},JAe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},eMe=JAe,tMe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:S(S({},vt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},nMe=pt("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:i}=e,a=Math.round(n*r),l=nt(e,{uploadThumbnailSize:t*2,uploadProgressOffset:a/2+o,uploadPicCardSize:i*2.55});return[tMe(l),UAe(l),ZAe(l),QAe(l),YAe(l),qAe(l),eMe(l),Kh(l)]});var rMe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(d){a(d)}}function s(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(l,s)}c((r=r.apply(e,t||[])).next())})},oMe=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 A;return(A=s.value)!==null&&A!==void 0?A:d.value}),[h,m]=yn(e.defaultFileList||[],{value:st(e,"fileList"),postState:A=>{const N=Date.now();return(A??[]).map((F,W)=>(!F.uid&&!Object.isFrozen(F)&&(F.uid=`__AUTO__${N}_${W}__`),F))}}),v=he("drop"),y=he(null);lt(()=>{pn(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),pn(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),pn(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const b=(A,N,F)=>{var W,D;let B=[...N];e.maxCount===1?B=B.slice(-1):e.maxCount&&(B=B.slice(0,e.maxCount)),m(B);const k={file:A,fileList:B};F&&(k.event=F),(W=e["onUpdate:fileList"])===null||W===void 0||W.call(e,k.fileList),(D=e.onChange)===null||D===void 0||D.call(e,k),i.onFieldChange()},$=(A,N)=>rMe(this,void 0,void 0,function*(){const{beforeUpload:F,transformFile:W}=e;let D=A;if(F){const B=yield F(A,N);if(B===!1)return!1;if(delete A[ap],B===ap)return Object.defineProperty(A,ap,{value:!0,configurable:!0}),!1;typeof B=="object"&&B&&(D=B)}return W&&(D=yield W(D)),D}),x=A=>{const N=A.filter(D=>!D.file[ap]);if(!N.length)return;const F=N.map(D=>Vv(D.file));let W=[...h.value];F.forEach(D=>{W=Kv(D,W)}),F.forEach((D,B)=>{let k=D;if(N[B].parsedFile)D.status="uploading";else{const{originFileObj:L}=D;let z;try{z=new File([L],L.name,{type:L.type})}catch{z=new Blob([L],{type:L.type}),z.name=L.name,z.lastModifiedDate=new Date,z.lastModified=new Date().getTime()}z.uid=D.uid,k=z}b(k,W)})},_=(A,N,F)=>{try{typeof A=="string"&&(A=JSON.parse(A))}catch{}if(!QC(N,h.value))return;const W=Vv(N);W.status="done",W.percent=100,W.response=A,W.xhr=F;const D=Kv(W,h.value);b(W,D)},w=(A,N)=>{if(!QC(N,h.value))return;const F=Vv(N);F.status="uploading",F.percent=A.percent;const W=Kv(F,h.value);b(F,W,A)},I=(A,N,F)=>{if(!QC(F,h.value))return;const W=Vv(F);W.error=A,W.response=N,W.status="error";const D=Kv(W,h.value);b(W,D)},O=A=>{let N;const F=e.onRemove||e.remove;Promise.resolve(typeof F=="function"?F(A):F).then(W=>{var D,B;if(W===!1)return;const k=RAe(A,h.value);k&&(N=S(S({},A),{status:"removed"}),(D=h.value)===null||D===void 0||D.forEach(L=>{const z=N.uid!==void 0?"uid":"name";L[z]===N[z]&&!Object.isFrozen(L)&&(L.status="removed")}),(B=y.value)===null||B===void 0||B.abort(N),b(N,k))})},P=A=>{var N;v.value=A.type,A.type==="drop"&&((N=e.onDrop)===null||N===void 0||N.call(e,A))};o({onBatchStart:x,onSuccess:_,onProgress:w,onError:I,fileList:h,upload:y});const[E]=Wi("Upload",so.Upload,M(()=>e.locale)),R=(A,N)=>{const{removeIcon:F,previewIcon:W,downloadIcon:D,previewFile:B,onPreview:k,onDownload:L,isImageUrl:z,progress:K,itemRender:G,iconRender:Y,showUploadList:ne}=e,{showDownloadIcon:oe,showPreviewIcon:J,showRemoveIcon:te}=typeof ne=="boolean"?{}:ne;return ne?g(VAe,{prefixCls:a.value,listType:e.listType,items:h.value,previewFile:B,onPreview:k,onDownload:L,onRemove:O,showRemoveIcon:!f.value&&te,showPreviewIcon:J,showDownloadIcon:oe,removeIcon:F,previewIcon:W,downloadIcon:D,iconRender:Y,locale:E.value,isImageUrl:z,progress:K,itemRender:G,appendActionVisible:N,appendAction:A},S({},n)):A==null?void 0:A()};return()=>{var A,N,F;const{listType:W,type:D}=e,{class:B,style:k}=r,L=oMe(r,["class","style"]),z=S(S(S({onBatchStart:x,onError:I,onProgress:w,onSuccess:_},L),e),{id:(A=e.id)!==null&&A!==void 0?A:i.id.value,prefixCls:a.value,beforeUpload:$,onChange:void 0,disabled:f.value});delete z.remove,(!n.default||f.value)&&delete z.id;const K={[`${a.value}-rtl`]:l.value==="rtl"};if(D==="drag"){const oe=me(a.value,{[`${a.value}-drag`]:!0,[`${a.value}-drag-uploading`]:h.value.some(J=>J.status==="uploading"),[`${a.value}-drag-hover`]:v.value==="dragover",[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:l.value==="rtl"},r.class,u.value);return c(g("span",V(V({},r),{},{class:me(`${a.value}-wrapper`,K,B,u.value)}),[g("div",{class:oe,onDrop:P,onDragover:P,onDragleave:P,style:r.style},[g(_R,V(V({},z),{},{ref:y,class:`${a.value}-btn`}),V({default:()=>[g("div",{class:`${a.value}-drag-container`},[(N=n.default)===null||N===void 0?void 0:N.call(n)])]},n))]),R()]))}const G=me(a.value,{[`${a.value}-select`]:!0,[`${a.value}-select-${W}`]:!0,[`${a.value}-disabled`]:f.value,[`${a.value}-rtl`]:l.value==="rtl"}),Y=ln((F=n.default)===null||F===void 0?void 0:F.call(n)),ne=oe=>g("div",{class:G,style:oe},[g(_R,V(V({},z),{},{ref:y}),n)]);return c(W==="picture-card"?g("span",V(V({},r),{},{class:me(`${a.value}-wrapper`,`${a.value}-picture-card-wrapper`,K,r.class,u.value)}),[R(ne,!!(Y&&Y.length))]):g("span",V(V({},r),{},{class:me(`${a.value}-wrapper`,K,r.class,u.value)}),[ne(Y&&Y.length?void 0:{display:"none"}),R()]))}}});var MR=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{height:o}=e,i=MR(e,["height"]),{style:a}=r,l=MR(r,["style"]),s=S(S(S({},i),l),{type:"drag",style:S(S({},a),{height:typeof o=="number"?`${o}px`:o})});return g(Vm,s,n)}}}),iMe=Km,aMe=S(Vm,{Dragger:Km,LIST_IGNORE:ap,install(e){return e.component(Vm.name,Vm),e.component(Km.name,Km),e}});function lMe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sMe(e){return Object.keys(e).map(t=>`${lMe(t)}: ${e[t]};`).join(" ")}function RR(){return window.devicePixelRatio||1}function JC(e,t,n,r){e.translate(t,n),e.rotate(Math.PI/180*Number(r)),e.translate(-t,-n)}const cMe=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(r=>r===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var uMe=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);o2&&arguments[2]!==void 0?arguments[2]:{};const{window:r=IB}=n,o=uMe(n,["window"]);let i;const a=_B(()=>r&&"MutationObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},s=Ie(()=>wO(e),u=>{l(),a.value&&r&&u&&(i=new MutationObserver(t),i.observe(u,o))},{immediate:!0}),c=()=>{l(),s()};return wB(c),{isSupported:a,stop:c}}const e$=2,DR=3,fMe=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:ot([String,Array]),font:qe(),rootClassName:String,gap:kt(),offset:kt()}),pMe=pe({name:"AWatermark",inheritAttrs:!1,props:bt(fMe(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:r}=t;const[,o]=Ol(),i=ve(),a=ve(),l=ve(!1),s=M(()=>{var R,A;return(A=(R=e.gap)===null||R===void 0?void 0:R[0])!==null&&A!==void 0?A:100}),c=M(()=>{var R,A;return(A=(R=e.gap)===null||R===void 0?void 0:R[1])!==null&&A!==void 0?A:100}),u=M(()=>s.value/2),d=M(()=>c.value/2),f=M(()=>{var R,A;return(A=(R=e.offset)===null||R===void 0?void 0:R[0])!==null&&A!==void 0?A:u.value}),h=M(()=>{var R,A;return(A=(R=e.offset)===null||R===void 0?void 0:R[1])!==null&&A!==void 0?A:d.value}),m=M(()=>{var R,A;return(A=(R=e.font)===null||R===void 0?void 0:R.fontSize)!==null&&A!==void 0?A:o.value.fontSizeLG}),v=M(()=>{var R,A;return(A=(R=e.font)===null||R===void 0?void 0:R.fontWeight)!==null&&A!==void 0?A:"normal"}),y=M(()=>{var R,A;return(A=(R=e.font)===null||R===void 0?void 0:R.fontStyle)!==null&&A!==void 0?A:"normal"}),b=M(()=>{var R,A;return(A=(R=e.font)===null||R===void 0?void 0:R.fontFamily)!==null&&A!==void 0?A:"sans-serif"}),$=M(()=>{var R,A;return(A=(R=e.font)===null||R===void 0?void 0:R.color)!==null&&A!==void 0?A:o.value.colorFill}),x=M(()=>{var R;const A={zIndex:(R=e.zIndex)!==null&&R!==void 0?R:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let N=f.value-u.value,F=h.value-d.value;return N>0&&(A.left=`${N}px`,A.width=`calc(100% - ${N}px)`,N=0),F>0&&(A.top=`${F}px`,A.height=`calc(100% - ${F}px)`,F=0),A.backgroundPosition=`${N}px ${F}px`,A}),_=()=>{a.value&&(a.value.remove(),a.value=void 0)},w=(R,A)=>{var N;i.value&&a.value&&(l.value=!0,a.value.setAttribute("style",sMe(S(S({},x.value),{backgroundImage:`url('${R}')`,backgroundSize:`${(s.value+A)*e$}px`}))),(N=i.value)===null||N===void 0||N.append(a.value),setTimeout(()=>{l.value=!1}))},I=R=>{let A=120,N=64;const F=e.content,W=e.image,D=e.width,B=e.height;if(!W&&R.measureText){R.font=`${Number(m.value)}px ${b.value}`;const k=Array.isArray(F)?F:[F],L=k.map(z=>R.measureText(z).width);A=Math.ceil(Math.max(...L)),N=Number(m.value)*k.length+(k.length-1)*DR}return[D??A,B??N]},O=(R,A,N,F,W)=>{const D=RR(),B=e.content,k=Number(m.value)*D;R.font=`${y.value} normal ${v.value} ${k}px/${W}px ${b.value}`,R.fillStyle=$.value,R.textAlign="center",R.textBaseline="top",R.translate(F/2,0);const L=Array.isArray(B)?B:[B];L==null||L.forEach((z,K)=>{R.fillText(z??"",A,N+K*(k+DR*D))})},P=()=>{var R;const A=document.createElement("canvas"),N=A.getContext("2d"),F=e.image,W=(R=e.rotate)!==null&&R!==void 0?R:-22;if(N){a.value||(a.value=document.createElement("div"));const D=RR(),[B,k]=I(N),L=(s.value+B)*D,z=(c.value+k)*D;A.setAttribute("width",`${L*e$}px`),A.setAttribute("height",`${z*e$}px`);const K=s.value*D/2,G=c.value*D/2,Y=B*D,ne=k*D,oe=(Y+s.value*D)/2,J=(ne+c.value*D)/2,te=K+L,ee=G+z,fe=oe+L,ie=J+z;if(N.save(),JC(N,oe,J,W),F){const X=new Image;X.onload=()=>{N.drawImage(X,K,G,Y,ne),N.restore(),JC(N,fe,ie,W),N.drawImage(X,te,ee,Y,ne),w(A.toDataURL(),B)},X.crossOrigin="anonymous",X.referrerPolicy="no-referrer",X.src=F}else O(N,K,G,Y,ne),N.restore(),JC(N,fe,ie,W),O(N,te,ee,Y,ne),w(A.toDataURL(),B)}};return lt(()=>{P()}),Ie(()=>[e,o.value.colorFill,o.value.fontSizeLG],()=>{P()},{deep:!0,flush:"post"}),Ct(()=>{_()}),dMe(i,R=>{l.value||R.forEach(A=>{cMe(A,a.value)&&(_(),P())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var R;return g("div",V(V({},r),{},{ref:i,class:[r.class,e.rootClassName],style:[{position:"relative"},r.style]}),[(R=n.default)===null||R===void 0?void 0:R.call(n)])}}}),hMe=$n(pMe);function LR(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function NR(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const gMe=S({overflow:"hidden"},er),vMe=e=>{const{componentCls:t}=e;return{[t]:S(S(S(S(S({},vt(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":S(S({},NR(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":S({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},gMe),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:S(S({},NR(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),LR(`&-disabled ${t}-item`,e)),LR(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},mMe=pt("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:r,colorText:o,colorFillSecondary:i,colorBgLayout:a,colorBgElevated:l}=e,s=nt(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:r,labelColorHover:o,bgColor:a,bgColorHover:i,bgColorSelected:l});return[vMe(s)]}),kR=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,Du=e=>e!==void 0?`${e}px`:void 0,bMe=pe({props:{value:cn(),getValueIndex:cn(),prefixCls:cn(),motionName:cn(),onMotionStart:cn(),onMotionEnd:cn(),direction:cn(),containerRef:cn()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const r=he(),o=m=>{var v;const y=e.getValueIndex(m),b=(v=e.containerRef.value)===null||v===void 0?void 0:v.querySelectorAll(`.${e.prefixCls}-item`)[y];return(b==null?void 0:b.offsetParent)&&b},i=he(null),a=he(null);Ie(()=>e.value,(m,v)=>{const y=o(v),b=o(m),$=kR(y),x=kR(b);i.value=$,a.value=x,n(y&&b?"motionStart":"motionEnd")},{flush:"post"});const l=M(()=>{var m,v;return e.direction==="rtl"?Du(-((m=i.value)===null||m===void 0?void 0:m.right)):Du((v=i.value)===null||v===void 0?void 0:v.left)}),s=M(()=>{var m,v;return e.direction==="rtl"?Du(-((m=a.value)===null||m===void 0?void 0:m.right)):Du((v=a.value)===null||v===void 0?void 0:v.left)});let c;const u=m=>{clearTimeout(c),_t(()=>{m&&(m.style.transform="translateX(var(--thumb-start-left))",m.style.width="var(--thumb-start-width)")})},d=m=>{c=setTimeout(()=>{m&&($x(m,`${e.motionName}-appear-active`),m.style.transform="translateX(var(--thumb-active-left))",m.style.width="var(--thumb-active-width)")})},f=m=>{i.value=null,a.value=null,m&&(m.style.transform=null,m.style.width=null,xx(m,`${e.motionName}-appear-active`)),n("motionEnd")},h=M(()=>{var m,v;return{"--thumb-start-left":l.value,"--thumb-start-width":Du((m=i.value)===null||m===void 0?void 0:m.width),"--thumb-active-left":s.value,"--thumb-active-width":Du((v=a.value)===null||v===void 0?void 0:v.width)}});return Ct(()=>{clearTimeout(c)}),()=>{const m={ref:r,style:h.value,class:[`${e.prefixCls}-thumb`]};return g(sr,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:f},{default:()=>[!i.value||!a.value?null:g("div",m,null)]})}}}),yMe=bMe;function SMe(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const CMe=()=>({prefixCls:String,options:kt(),block:De(),disabled:De(),size:Qe(),value:S(S({},ot([String,Number])),{required:!0}),motionName:String,onChange:Oe(),"onUpdate:value":Oe()}),cj=(e,t)=>{let{slots:n,emit:r}=t;const{value:o,disabled:i,payload:a,title:l,prefixCls:s,label:c=n.label,checked:u,className:d}=e,f=h=>{i||r("change",h,o)};return g("label",{class:me({[`${s}-item-disabled`]:i},d)},[g("input",{class:`${s}-item-input`,type:"radio",disabled:i,checked:u,onChange:f},null),g("div",{class:`${s}-item-label`,title:typeof l=="string"?l:""},[typeof c=="function"?c({value:o,disabled:i,payload:a,title:l}):c??o])])};cj.inheritAttrs=!1;const $Me=pe({name:"ASegmented",inheritAttrs:!1,props:bt(CMe(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:i,direction:a,size:l}=Ve("segmented",e),[s,c]=mMe(i),u=ve(),d=ve(!1),f=M(()=>SMe(e.options)),h=(m,v)=>{e.disabled||(n("update:value",v),n("change",v))};return()=>{const m=i.value;return s(g("div",V(V({},o),{},{class:me(m,{[c.value]:!0,[`${m}-block`]:e.block,[`${m}-disabled`]:e.disabled,[`${m}-lg`]:l.value=="large",[`${m}-sm`]:l.value=="small",[`${m}-rtl`]:a.value==="rtl"},o.class),ref:u}),[g("div",{class:`${m}-group`},[g(yMe,{containerRef:u,prefixCls:m,value:e.value,motionName:`${m}-${e.motionName}`,direction:a.value,getValueIndex:v=>f.value.findIndex(y=>y.value===v),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(v=>g(cj,V(V({key:v.value,prefixCls:m,checked:v.value===e.value,onChange:h},v),{},{className:me(v.className,`${m}-item`,{[`${m}-item-selected`]:v.value===e.value&&!d.value}),disabled:!!e.disabled||!!v.disabled}),r))])]))}}}),xMe=$n($Me),wMe=e=>{const{componentCls:t}=e;return{[t]:S(S({},vt(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},_Me=pt("QRCode",e=>wMe(nt(e,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var OMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const IMe=OMe;function BR(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:Qe("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:qe()}),EMe=()=>S(S({},lP()),{errorLevel:Qe("M"),icon:String,iconSize:{type:Number,default:40},status:Qe("active"),bordered:{type:Boolean,default:!0}});/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */var Nc;(function(e){class t{static encodeText(l,s){const c=e.QrSegment.makeSegments(l);return t.encodeSegments(c,s)}static encodeBinary(l,s){const c=e.QrSegment.makeBytes(l);return t.encodeSegments([c],s)}static encodeSegments(l,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=c&&c<=u&&u<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let h,m;for(h=c;;h++){const $=t.getNumDataCodewords(h,s)*8,x=i.getTotalBits(l,h);if(x<=$){m=x;break}if(h>=u)throw new RangeError("Data too long")}for(const $ of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&m<=t.getNumDataCodewords(h,$)*8&&(s=$);const v=[];for(const $ of l){n($.mode.modeBits,4,v),n($.numChars,$.mode.numCharCountBits(h),v);for(const x of $.getData())v.push(x)}o(v.length==m);const y=t.getNumDataCodewords(h,s)*8;o(v.length<=y),n(0,Math.min(4,y-v.length),v),n(0,(8-v.length%8)%8,v),o(v.length%8==0);for(let $=236;v.lengthb[x>>>3]|=$<<7-(x&7)),new t(h,s,b,d)}constructor(l,s,c,u){if(this.version=l,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],lt.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=l*4+17;const d=[];for(let h=0;h>>9)*1335;const u=(s<<10|c)^21522;o(u>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,r(u,d));this.setFunctionModule(8,7,r(u,6)),this.setFunctionModule(8,8,r(u,7)),this.setFunctionModule(7,8,r(u,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,r(u,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,r(u,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,r(u,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let c=0;c<12;c++)l=l<<1^(l>>>11)*7973;const s=this.version<<12|l;o(s>>>18==0);for(let c=0;c<18;c++){const u=r(s,c),d=this.size-11+c%3,f=Math.floor(c/3);this.setFunctionModule(d,f,u),this.setFunctionModule(f,d,u)}}drawFinderPattern(l,s){for(let c=-4;c<=4;c++)for(let u=-4;u<=4;u++){const d=Math.max(Math.abs(u),Math.abs(c)),f=l+u,h=s+c;0<=f&&f{($!=m-d||_>=h)&&b.push(x[$])});return o(b.length==f),b}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let u=0;u>>3],7-(s&7)),s++)}}o(s==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&l++):(this.finderPenaltyAddHistory(h,m),f||(l+=this.finderPenaltyCountPatterns(m)*t.PENALTY_N3),f=this.modules[d][v],h=1);l+=this.finderPenaltyTerminateAndCount(f,h,m)*t.PENALTY_N3}for(let d=0;d5&&l++):(this.finderPenaltyAddHistory(h,m),f||(l+=this.finderPenaltyCountPatterns(m)*t.PENALTY_N3),f=this.modules[v][d],h=1);l+=this.finderPenaltyTerminateAndCount(f,h,m)*t.PENALTY_N3}for(let d=0;df+(h?1:0),s);const c=this.size*this.size,u=Math.ceil(Math.abs(s*20-c*10)/c)-1;return o(0<=u&&u<=9),l+=u*t.PENALTY_N4,o(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2,c=[6];for(let u=this.size-7;c.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*l+128)*l+64;if(l>=2){const c=Math.floor(l/7)+2;s-=(25*c-10)*c-55,l>=7&&(s-=36)}return o(208<=s&&s<=29648),s}static getNumDataCodewords(l,s){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");const s=[];for(let u=0;u0);for(const u of l){const d=u^c.shift();c.push(0),s.forEach((f,h)=>c[h]^=t.reedSolomonMultiply(f,d))}return c}static reedSolomonMultiply(l,s){if(l>>>8||s>>>8)throw new RangeError("Byte out of range");let c=0;for(let u=7;u>=0;u--)c=c<<1^(c>>>7)*285,c^=(s>>>u&1)*l;return o(c>>>8==0),c}finderPenaltyCountPatterns(l){const s=l[1];o(s<=this.size*3);const c=s>0&&l[2]==s&&l[3]==s*3&&l[4]==s&&l[5]==s;return(c&&l[0]>=s*4&&l[6]>=s?1:0)+(c&&l[6]>=s*4&&l[0]>=s?1:0)}finderPenaltyTerminateAndCount(l,s,c){return l&&(this.finderPenaltyAddHistory(s,c),s=0),s+=this.size,this.finderPenaltyAddHistory(s,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(l,s){s[0]==0&&(l+=this.size),s.pop(),s.unshift(l)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,s){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let c=l-1;c>=0;c--)s.push(a>>>c&1)}function r(a,l){return(a>>>l&1)!=0}function o(a){if(!a)throw new Error("Assertion error")}class i{static makeBytes(l){const s=[];for(const c of l)n(c,8,s);return new i(i.Mode.BYTE,l.length,s)}static makeNumeric(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");const s=[];for(let c=0;c=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(a,l){if(!a&&i!==null){n.push(`M${i+t} ${o+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!a)return;i===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${i+t},${o+t} h${l+1-i}v1H${i+t}z`);return}a&&i===null&&(i=l)})}),n.join("")}function vj(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((o,i)=>i=t.x+t.w?o:!1))}function mj(e,t,n,r){if(r==null)return null;const o=e.length+n*2,i=Math.floor(t*RMe),a=o/t,l=(r.width||i)*a,s=(r.height||i)*a,c=r.x==null?e.length/2-l/2:r.x*a,u=r.y==null?e.length/2-s/2:r.y*a;let d=null;if(r.excavate){const f=Math.floor(c),h=Math.floor(u),m=Math.ceil(l+c-f),v=Math.ceil(s+u-h);d={x:f,y:h,w:m,h:v}}return{x:c,y:u,h:s,w:l,excavation:d}}function bj(e,t){return t!=null?Math.floor(t):e?AMe:MMe}const DMe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),LMe=pe({name:"QRCodeCanvas",inheritAttrs:!1,props:S(S({},lP()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:r}=t;const o=M(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),i=ve(null),a=ve(null),l=ve(!1);return r({toDataURL:(s,c)=>{var u;return(u=i.value)===null||u===void 0?void 0:u.toDataURL(s,c)}}),ct(()=>{const{value:s,size:c=yw,level:u=dj,bgColor:d=fj,fgColor:f=pj,includeMargin:h=hj,marginSize:m,imageSettings:v}=e;if(i.value!=null){const y=i.value,b=y.getContext("2d");if(!b)return;let $=nd.QrCode.encodeText(s,uj[u]).getModules();const x=bj(h,m),_=$.length+x*2,w=mj($,c,x,v),I=a.value,O=l.value&&w!=null&&I!==null&&I.complete&&I.naturalHeight!==0&&I.naturalWidth!==0;O&&w.excavation!=null&&($=vj($,w.excavation));const P=window.devicePixelRatio||1;y.height=y.width=c*P;const E=c/_*P;b.scale(E,E),b.fillStyle=d,b.fillRect(0,0,_,_),b.fillStyle=f,DMe?b.fill(new Path2D(gj($,x))):$.forEach(function(R,A){R.forEach(function(N,F){N&&b.fillRect(F+x,A+x,1,1)})}),O&&b.drawImage(I,w.x+x,w.y+x,w.w,w.h)}},{flush:"post"}),Ie(o,()=>{l.value=!1}),()=>{var s;const c=(s=e.size)!==null&&s!==void 0?s:yw,u={height:`${c}px`,width:`${c}px`};let d=null;return o.value!=null&&(d=g("img",{src:o.value,key:o.value,style:{display:"none"},onLoad:()=>{l.value=!0},ref:a},null)),g(Je,null,[g("canvas",V(V({},n),{},{style:[u,n.style],ref:i}),null),d])}}}),NMe=pe({name:"QRCodeSVG",inheritAttrs:!1,props:S(S({},lP()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,r=null,o=null,i=null,a=null;return ct(()=>{const{value:l,size:s=yw,level:c=dj,includeMargin:u=hj,marginSize:d,imageSettings:f}=e;t=nd.QrCode.encodeText(l,uj[c]).getModules(),n=bj(u,d),r=t.length+n*2,o=mj(t,s,n,f),f!=null&&o!=null&&(o.excavation!=null&&(t=vj(t,o.excavation)),a=g("image",{"xlink:href":f.src,height:o.h,width:o.w,x:o.x+n,y:o.y+n,preserveAspectRatio:"none"},null)),i=gj(t,n)}),()=>{const l=e.bgColor&&fj,s=e.fgColor&&pj;return g("svg",{height:e.size,width:e.size,viewBox:`0 0 ${r} ${r}`},[!!e.title&&g("title",null,[e.title]),g("path",{fill:l,d:`M0,0 h${r}v${r}H0z`,"shape-rendering":"crispEdges"},null),g("path",{fill:s,d:i,"shape-rendering":"crispEdges"},null),a])}}}),kMe=pe({name:"AQrcode",inheritAttrs:!1,props:EMe(),emits:["refresh"],setup(e,t){let{emit:n,attrs:r,expose:o}=t;const[i]=Wi("QRCode"),{prefixCls:a}=Ve("qrcode",e),[l,s]=_Me(a),[,c]=Ol(),u=he();o({toDataURL:(f,h)=>{var m;return(m=u.value)===null||m===void 0?void 0:m.toDataURL(f,h)}});const d=M(()=>{const{value:f,icon:h="",size:m=160,iconSize:v=40,color:y=c.value.colorText,bgColor:b="transparent",errorLevel:$="M"}=e,x={src:h,x:void 0,y:void 0,height:v,width:v,excavate:!0};return{value:f,size:m-(c.value.paddingSM+c.value.lineWidth)*2,level:$,bgColor:b,fgColor:y,imageSettings:h?x:void 0}});return()=>{const f=a.value;return l(g("div",V(V({},r),{},{style:[r.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&g("div",{class:`${f}-mask`},[e.status==="loading"&&g(Aa,null,null),e.status==="expired"&&g(Je,null,[g("p",{class:`${f}-expired`},[i.value.expired]),g(Un,{type:"link",onClick:h=>n("refresh",h)},{default:()=>[i.value.refresh],icon:()=>g(TMe,null,null)})]),e.status==="scanned"&&g("p",{class:`${f}-scanned`},[i.value.scanned])]),e.type==="canvas"?g(LMe,V({ref:u},d.value),null):g(NMe,d.value,null)]))}}}),BMe=$n(kMe);function FMe(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:i,left:a}=e.getBoundingClientRect();return r>=0&&a>=0&&o<=t&&i<=n}function HMe(e,t,n,r){const[o,i]=nn(void 0);ct(()=>{const u=typeof e.value=="function"?e.value():e.value;i(u||null)},{flush:"post"});const[a,l]=nn(null),s=()=>{if(!t.value){l(null);return}if(o.value){!FMe(o.value)&&t.value&&o.value.scrollIntoView(r.value);const{left:u,top:d,width:f,height:h}=o.value.getBoundingClientRect(),m={left:u,top:d,width:f,height:h,radius:0};JSON.stringify(a.value)!==JSON.stringify(m)&&l(m)}else l(null)};return lt(()=>{Ie([t,o],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),Ct(()=>{window.removeEventListener("resize",s)}),[M(()=>{var u,d;if(!a.value)return a.value;const f=((u=n.value)===null||u===void 0?void 0:u.offset)||6,h=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:a.value.left-f,top:a.value.top-f,width:a.value.width+f*2,height:a.value.height+f*2,radius:h}}),o]}const zMe=()=>({arrow:ot([Boolean,Object]),target:ot([String,Function,Object]),title:ot([String,Object]),description:ot([String,Object]),placement:Qe(),mask:ot([Object,Boolean],!0),className:{type:String},style:qe(),scrollIntoViewOptions:ot([Boolean,Object])}),sP=()=>S(S({},zMe()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:Oe(),onFinish:Oe(),renderPanel:Oe(),onPrev:Oe(),onNext:Oe()}),jMe=pe({name:"DefaultPanel",inheritAttrs:!1,props:sP(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:r,current:o,total:i,title:a,description:l,onClose:s,onPrev:c,onNext:u,onFinish:d}=e;return g("div",V(V({},n),{},{class:me(`${r}-content`,n.class)}),[g("div",{class:`${r}-inner`},[g("button",{type:"button",onClick:s,"aria-label":"Close",class:`${r}-close`},[g("span",{class:`${r}-close-x`},[Dr("×")])]),g("div",{class:`${r}-header`},[g("div",{class:`${r}-title`},[a])]),g("div",{class:`${r}-description`},[l]),g("div",{class:`${r}-footer`},[g("div",{class:`${r}-sliders`},[i>1?[...Array.from({length:i}).keys()].map((f,h)=>g("span",{key:f,class:h===o?"active":""},null)):null]),g("div",{class:`${r}-buttons`},[o!==0?g("button",{class:`${r}-prev-btn`,onClick:c},[Dr("Prev")]):null,o===i-1?g("button",{class:`${r}-finish-btn`,onClick:d},[Dr("Finish")]):g("button",{class:`${r}-next-btn`,onClick:u},[Dr("Next")])])])])])}}}),WMe=jMe,VMe=pe({name:"TourStep",inheritAttrs:!1,props:sP(),setup(e,t){let{attrs:n}=t;return()=>{const{current:r,renderPanel:o}=e;return g(Je,null,[typeof o=="function"?o(S(S({},n),e),r):g(WMe,V(V({},n),e),null)])}}}),KMe=VMe;let FR=0;const UMe=co();function GMe(){let e;return UMe?(e=FR,FR+=1):e="TEST_OR_SSR",e}function YMe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:he("");const t=`vc_unique_${GMe()}`;return e.value||t}const Uv={fill:"transparent","pointer-events":"auto"},XMe=pe({name:"TourMask",props:{prefixCls:{type:String},pos:qe(),rootClassName:{type:String},showMask:De(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:De(),animated:ot([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const r=YMe();return()=>{const{prefixCls:o,open:i,rootClassName:a,pos:l,showMask:s,fill:c,animated:u,zIndex:d}=e,f=`${o}-mask-${r}`,h=typeof u=="object"?u==null?void 0:u.placeholder:u;return g(Hh,{visible:i,autoLock:!0},{default:()=>i&&g("div",V(V({},n),{},{class:me(`${o}-mask`,a,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?g("svg",{style:{width:"100%",height:"100%"}},[g("defs",null,[g("mask",{id:f},[g("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&g("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:h?`${o}-placeholder-animated`:""},null)])]),g("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:`url(#${f})`},null),l&&g(Je,null,[g("rect",V(V({},Uv),{},{x:"0",y:"0",width:"100%",height:l.top}),null),g("rect",V(V({},Uv),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),g("rect",V(V({},Uv),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),g("rect",V(V({},Uv),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),qMe=XMe,ZMe=[0,0],HR={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function yj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(HR).forEach(n=>{t[n]=S(S({},HR[n]),{autoArrow:e,targetOffset:ZMe})}),t}yj();var QMe=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{builtinPlacements:e,popupAlign:t}=Y7();return{builtinPlacements:e,popupAlign:t,steps:kt(),open:De(),defaultCurrent:{type:Number},current:{type:Number},onChange:Oe(),onClose:Oe(),onFinish:Oe(),mask:ot([Boolean,Object],!0),arrow:ot([Boolean,Object],!0),rootClassName:{type:String},placement:Qe("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:Oe(),gap:qe(),animated:ot([Boolean,Object]),scrollIntoViewOptions:ot([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},JMe=pe({name:"Tour",inheritAttrs:!1,props:bt(Sj(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:r,scrollIntoViewOptions:o,open:i,gap:a,arrow:l}=ra(e),s=he(),[c,u]=yn(0,{value:M(()=>e.current),defaultValue:t.value}),[d,f]=yn(void 0,{value:M(()=>e.open),postState:O=>c.value<0||c.value>=e.steps.length?!1:O??!0}),h=ve(d.value);ct(()=>{d.value&&!h.value&&u(0),h.value=d.value});const m=M(()=>e.steps[c.value]||{}),v=M(()=>{var O;return(O=m.value.placement)!==null&&O!==void 0?O:n.value}),y=M(()=>{var O;return d.value&&((O=m.value.mask)!==null&&O!==void 0?O:r.value)}),b=M(()=>{var O;return(O=m.value.scrollIntoViewOptions)!==null&&O!==void 0?O:o.value}),[$,x]=HMe(M(()=>m.value.target),i,a,b),_=M(()=>x.value?typeof m.value.arrow>"u"?l.value:m.value.arrow:!1),w=M(()=>typeof _.value=="object"?_.value.pointAtCenter:!1);Ie(w,()=>{var O;(O=s.value)===null||O===void 0||O.forcePopupAlign()}),Ie(c,()=>{var O;(O=s.value)===null||O===void 0||O.forcePopupAlign()});const I=O=>{var P;u(O),(P=e.onChange)===null||P===void 0||P.call(e,O)};return()=>{var O;const{prefixCls:P,steps:E,onClose:R,onFinish:A,rootClassName:N,renderPanel:F,animated:W,zIndex:D}=e,B=QMe(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if(x.value===void 0)return null;const k=()=>{f(!1),R==null||R(c.value)},L=typeof y.value=="boolean"?y.value:!!y.value,z=typeof y.value=="boolean"?void 0:y.value,K=()=>x.value||document.body,G=()=>g(KMe,V({arrow:_.value,key:"content",prefixCls:P,total:E.length,renderPanel:F,onPrev:()=>{I(c.value-1)},onNext:()=>{I(c.value+1)},onClose:k,current:c.value,onFinish:()=>{k(),A==null||A()}},m.value),null),Y=M(()=>{const ne=$.value||t$,oe={};return Object.keys(ne).forEach(J=>{typeof ne[J]=="number"?oe[J]=`${ne[J]}px`:oe[J]=ne[J]}),oe});return d.value?g(Je,null,[g(qMe,{zIndex:D,prefixCls:P,pos:$.value,showMask:L,style:z==null?void 0:z.style,fill:z==null?void 0:z.color,open:d.value,animated:W,rootClassName:N},null),g(tu,V(V({},B),{},{builtinPlacements:m.value.target?(O=B.builtinPlacements)!==null&&O!==void 0?O:yj(w.value):void 0,ref:s,popupStyle:m.value.target?m.value.style:S(S({},m.value.style),{position:"fixed",left:t$.left,top:t$.top,transform:"translate(-50%, -50%)"}),popupPlacement:v.value,popupVisible:d.value,popupClassName:me(N,m.value.className),prefixCls:P,popup:G,forceRender:!1,destroyPopupOnHide:!0,zIndex:D,mask:!1,getTriggerDOMNode:K}),{default:()=>[g(Hh,{visible:d.value,autoLock:!0},{default:()=>[g("div",{class:me(N,`${P}-target-placeholder`),style:S(S({},Y.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),e6e=JMe,t6e=()=>S(S({},Sj()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),n6e=()=>S(S({},sP()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),r6e=pe({name:"ATourPanel",inheritAttrs:!1,props:n6e(),setup(e,t){let{attrs:n,slots:r}=t;const{current:o,total:i}=ra(e),a=M(()=>o.value===i.value-1),l=c=>{var u;const d=e.prevButtonProps;(u=e.onPrev)===null||u===void 0||u.call(e,c),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},s=c=>{var u,d;const f=e.nextButtonProps;a.value?(u=e.onFinish)===null||u===void 0||u.call(e,c):(d=e.onNext)===null||d===void 0||d.call(e,c),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())};return()=>{const{prefixCls:c,title:u,onClose:d,cover:f,description:h,type:m,arrow:v}=e,y=e.prevButtonProps,b=e.nextButtonProps;let $;u&&($=g("div",{class:`${c}-header`},[g("div",{class:`${c}-title`},[u])]));let x;h&&(x=g("div",{class:`${c}-description`},[h]));let _;f&&(_=g("div",{class:`${c}-cover`},[f]));let w;r.indicatorsRender?w=r.indicatorsRender({current:o.value,total:i}):w=[...Array.from({length:i.value}).keys()].map((P,E)=>g("span",{key:P,class:me(E===o.value&&`${c}-indicator-active`,`${c}-indicator`)},null));const I=m==="primary"?"default":"primary",O={type:"default",ghost:m==="primary"};return g(Yc,{componentName:"Tour",defaultLocale:so.Tour},{default:P=>{var E,R;return g("div",V(V({},n),{},{class:me(m==="primary"?`${c}-primary`:"",n.class,`${c}-content`)}),[v&&g("div",{class:`${c}-arrow`,key:"arrow"},null),g("div",{class:`${c}-inner`},[g(Vo,{class:`${c}-close`,onClick:d},null),_,$,x,g("div",{class:`${c}-footer`},[i.value>1&&g("div",{class:`${c}-indicators`},[w]),g("div",{class:`${c}-buttons`},[o.value!==0?g(Un,V(V(V({},O),y),{},{onClick:l,size:"small",class:me(`${c}-prev-btn`,y==null?void 0:y.className)}),{default:()=>[(E=y==null?void 0:y.children)!==null&&E!==void 0?E:P.Previous]}):null,g(Un,V(V({type:I},b),{},{onClick:s,size:"small",class:me(`${c}-next-btn`,b==null?void 0:b.className)}),{default:()=>[(R=b==null?void 0:b.children)!==null&&R!==void 0?R:a.value?P.Finish:P.Next]})])])])])}})}}}),o6e=r6e,i6e=e=>{let{defaultType:t,steps:n,current:r,defaultCurrent:o}=e;const i=he(o==null?void 0:o.value),a=M(()=>r==null?void 0:r.value);Ie(a,u=>{i.value=u??(o==null?void 0:o.value)},{immediate:!0});const l=u=>{i.value=u},s=M(()=>{var u,d;return typeof i.value=="number"?n&&((d=(u=n.value)===null||u===void 0?void 0:u[i.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:M(()=>{var u;return(u=s.value)!==null&&u!==void 0?u:t==null?void 0:t.value}),updateInnerCurrent:l}},a6e=e=>{const{componentCls:t,lineHeight:n,padding:r,paddingXS:o,borderRadius:i,borderRadiusXS:a,colorPrimary:l,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:h,fontSize:m,colorBgContainer:v,fontWeightStrong:y,marginXS:b,colorTextLightSolid:$,tourBorderRadius:x,colorWhite:_,colorBgTextHover:w,tourCloseSize:I,motionDurationSlow:O,antCls:P}=e;return[{[t]:S(S({},vt(e)),{color:s,position:"absolute",zIndex:h,display:"block",visibility:"visible",fontSize:m,lineHeight:n,width:520,"--antd-arrow-background-color":v,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:x,boxShadow:f,position:"relative",backgroundColor:v,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:r,insetInlineEnd:r,color:e.colorIcon,outline:"none",width:I,height:I,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${r+I+o}px ${r}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${r}px ${r}px ${o}px`,[`${t}-title`]:{lineHeight:n,fontSize:m,fontWeight:y}},[`${t}-description`]:{padding:`0 ${r}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${o}px ${r}px ${r}px`,textAlign:"end",borderRadius:`0 0 ${a}px ${a}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:l}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${P}-btn`]:{marginInlineStart:b}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":l,[`${t}-inner`]:{color:$,textAlign:"start",textDecoration:"none",backgroundColor:l,borderRadius:i,boxShadow:f,[`${t}-close`]:{color:$},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new Zt($).setAlpha(.15).toRgbString(),"&-active":{background:$}}},[`${t}-prev-btn`]:{color:$,borderColor:new Zt($).setAlpha(.15).toRgbString(),backgroundColor:l,"&:hover":{backgroundColor:new Zt($).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:l,borderColor:"transparent",background:_,"&:hover":{background:new Zt(w).onBackground(_).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${O}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(x,U_)}}},G_(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:x,limitVerticalRadius:!0})]},l6e=pt("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:r}=e,o=nt(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*r});return[a6e(o)]});var s6e=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{steps:v,current:y,type:b,rootClassName:$}=e,x=s6e(e,["steps","current","type","rootClassName"]),_=me({[`${c.value}-primary`]:h.value==="primary",[`${c.value}-rtl`]:u.value==="rtl"},f.value,$),w=(P,E)=>g(o6e,V(V({},P),{},{type:b,current:E}),{indicatorsRender:o.indicatorsRender}),I=P=>{m(P),r("update:current",P),r("change",P)},O=M(()=>K_({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(g(e6e,V(V(V({},n),x),{},{rootClassName:_,prefixCls:c.value,current:y,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:w,onChange:I,steps:v,builtinPlacements:O.value}),null))}}}),u6e=$n(c6e),Cj=Symbol("appConfigContext"),d6e=e=>ft(Cj,e),f6e=()=>it(Cj,{}),$j=Symbol("appContext"),p6e=e=>ft($j,e),h6e=St({message:{},notification:{},modal:{}}),g6e=()=>it($j,h6e),v6e=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},m6e=pt("App",e=>[v6e(e)]),b6e=()=>({rootClassName:String,message:qe(),notification:qe()}),y6e=()=>g6e(),Lp=pe({name:"AApp",props:bt(b6e(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:r}=Ve("app",e),[o,i]=m6e(r),a=M(()=>me(i.value,r.value,e.rootClassName)),l=f6e(),s=M(()=>({message:S(S({},l.message),e.message),notification:S(S({},l.notification),e.notification)}));d6e(s.value);const[c,u]=BF(s.value.message),[d,f]=qF(s.value.notification),[h,m]=oz(),v=M(()=>({message:c,notification:d,modal:h}));return p6e(v.value),()=>{var y;return o(g("div",{class:a.value},[m(),u(),f(),(y=n.default)===null||y===void 0?void 0:y.call(n)]))}}});Lp.useApp=y6e;Lp.install=function(e){e.component(Lp.name,Lp)};const S6e=Lp,xj=["wrap","nowrap","wrap-reverse"],wj=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_j=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],C6e=(e,t)=>{const n={};return xj.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},$6e=(e,t)=>{const n={};return _j.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},x6e=(e,t)=>{const n={};return wj.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function w6e(e,t){return me(S(S(S({},C6e(e,t)),$6e(e,t)),x6e(e,t)))}const _6e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},O6e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},I6e=e=>{const{componentCls:t}=e,n={};return xj.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},P6e=e=>{const{componentCls:t}=e,n={};return _j.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},T6e=e=>{const{componentCls:t}=e,n={};return wj.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},E6e=pt("Flex",e=>{const t=nt(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[_6e(t),O6e(t),I6e(t),P6e(t),T6e(t)]});function zR(e){return["small","middle","large"].includes(e)}const A6e=()=>({prefixCls:Qe(),vertical:De(),wrap:Qe(),justify:Qe(),align:Qe(),flex:ot([Number,String]),gap:ot([Number,String]),component:cn()});var M6e=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 u;return[a.value,s.value,w6e(a.value,e),{[`${a.value}-rtl`]:i.value==="rtl",[`${a.value}-gap-${e.gap}`]:zR(e.gap),[`${a.value}-vertical`]:(u=e.vertical)!==null&&u!==void 0?u:o==null?void 0:o.value.vertical}]});return()=>{var u;const{flex:d,gap:f,component:h="div"}=e,m=M6e(e,["flex","gap","component"]),v={};return d&&(v.flex=d),f&&!zR(f)&&(v.gap=`${f}px`),l(g(h,V({class:[r.class,c.value],style:[r.style,v]},Ot(m,["justify","wrap","align","vertical"])),{default:()=>[(u=n.default)===null||u===void 0?void 0:u.call(n)]}))}}}),D6e=$n(R6e),jR=Object.freeze(Object.defineProperty({__proto__:null,Affix:R7,Alert:$he,Anchor:uc,AnchorLink:z2,App:S6e,AutoComplete:Vpe,AutoCompleteOptGroup:Wpe,AutoCompleteOption:jpe,Avatar:$c,AvatarGroup:_0,BackTop:U0,Badge:xp,BadgeRibbon:O0,Breadcrumb:xc,BreadcrumbItem:ph,BreadcrumbSeparator:R0,Button:Un,ButtonGroup:A0,Calendar:v0e,Card:hd,CardGrid:B0,CardMeta:k0,Carousel:vye,Cascader:FSe,CheckableTag:j0,Checkbox:Ri,CheckboxGroup:z0,Col:KSe,Collapse:_p,CollapsePanel:F0,Comment:qSe,Compact:x0,ConfigProvider:ZO,DatePicker:S$e,Descriptions:A$e,DescriptionsItem:hH,DirectoryTree:Bm,Divider:N$e,Drawer:exe,Dropdown:Ta,DropdownButton:fh,Empty:cs,Flex:D6e,FloatButton:Ss,FloatButtonGroup:K0,Form:us,FormItem:TF,FormItemRest:S0,Grid:VSe,Image:zwe,ImagePreviewGroup:BH,Input:ur,InputGroup:_H,InputNumber:o2e,InputPassword:PH,InputSearch:OH,Layout:S2e,LayoutContent:y2e,LayoutFooter:m2e,LayoutHeader:v2e,LayoutSider:b2e,List:c_e,ListItem:VH,ListItemMeta:jH,LocaleProvider:RF,Mentions:E_e,MentionsOption:Dm,Menu:qn,MenuDivider:gh,MenuItem:Ea,MenuItemGroup:hh,Modal:xr,MonthPicker:_m,PageHeader:fOe,Pagination:Vy,Popconfirm:bOe,Popover:Y_,Progress:PI,QRCode:BMe,QuarterPicker:Om,Radio:yo,RadioButton:L0,RadioGroup:_O,RangePicker:Im,Rate:lIe,Result:PIe,Row:TIe,Segmented:xMe,Select:Cl,SelectOptGroup:Fpe,SelectOption:Bpe,Skeleton:no,SkeletonAvatar:LO,SkeletonButton:MO,SkeletonImage:DO,SkeletonInput:RO,SkeletonTitle:Iy,Slider:YIe,Space:sz,Spin:Aa,Statistic:dl,StatisticCountdown:G_e,Step:Lm,Steps:fPe,SubMenu:Rc,Switch:$Pe,TabPane:N0,Table:g4e,TableColumn:Hm,TableColumnGroup:zm,TableSummary:jm,TableSummaryCell:Q0,TableSummaryRow:Z0,Tabs:wc,Tag:aH,Textarea:lI,TimePicker:p3e,TimeRangePicker:Wm,Timeline:Dp,TimelineItem:$h,Tooltip:Bo,Tour:u6e,Transfer:z4e,Tree:Uz,TreeNode:Fm,TreeSelect:d3e,TreeSelectNode:bw,Typography:Do,TypographyLink:QI,TypographyParagraph:JI,TypographyText:eP,TypographyTitle:tP,Upload:aMe,UploadDragger:iMe,Watermark:hMe,WeekPicker:wm,message:YO,notification:XO},Symbol.toStringTag,{value:"Module"})),L6e=function(e){return Object.keys(jR).forEach(t=>{const n=jR[t];n.install&&e.use(n)}),e.use(vne.StyleProvider),e.config.globalProperties.$message=YO,e.config.globalProperties.$notification=XO,e.config.globalProperties.$info=xr.info,e.config.globalProperties.$success=xr.success,e.config.globalProperties.$error=xr.error,e.config.globalProperties.$warning=xr.warning,e.config.globalProperties.$confirm=xr.confirm,e.config.globalProperties.$destroyAll=xr.destroyAll,e},N6e={version:b7,install:L6e};/*! - * vue-router v4.2.5 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */const Gu=typeof window<"u";function k6e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mn=Object.assign;function n$(e,t){const n={};for(const r in t){const o=t[r];n[r]=ca(o)?o.map(e):e(o)}return n}const Np=()=>{},ca=Array.isArray,B6e=/\/$/,F6e=e=>e.replace(B6e,"");function r$(e,t,n="/"){let r,o={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l=0&&(s=-1),s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),a=t.slice(l,t.length)),r=W6e(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function H6e(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function WR(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function z6e(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&kd(t.matched[r],n.matched[o])&&Oj(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function kd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oj(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!j6e(e[n],t[n]))return!1;return!0}function j6e(e,t){return ca(e)?VR(e,t):ca(t)?VR(t,e):e===t}function VR(e,t){return ca(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function W6e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,l;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var xh;(function(e){e.pop="pop",e.push="push"})(xh||(xh={}));var kp;(function(e){e.back="back",e.forward="forward",e.unknown=""})(kp||(kp={}));function V6e(e){if(!e)if(Gu){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),F6e(e)}const K6e=/^[^#]+#/;function U6e(e,t){return e.replace(K6e,"#")+t}function G6e(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const t1=()=>({left:window.pageXOffset,top:window.pageYOffset});function Y6e(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=G6e(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function KR(e,t){return(history.state?history.state.position-t:-1)+e}const Sw=new Map;function X6e(e,t){Sw.set(e,t)}function q6e(e){const t=Sw.get(e);return Sw.delete(e),t}let Z6e=()=>location.protocol+"//"+location.host;function Ij(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let l=o.includes(e.slice(i))?e.slice(i).length:1,s=o.slice(l);return s[0]!=="/"&&(s="/"+s),WR(s,"")}return WR(n,e)+r+o}function Q6e(e,t,n,r){let o=[],i=[],a=null;const l=({state:f})=>{const h=Ij(e,location),m=n.value,v=t.value;let y=0;if(f){if(n.value=h,t.value=f,a&&a===m){a=null;return}y=v?f.position-v.position:0}else r(h);o.forEach(b=>{b(n.value,m,{delta:y,type:xh.pop,direction:y?y>0?kp.forward:kp.back:kp.unknown})})};function s(){a=n.value}function c(f){o.push(f);const h=()=>{const m=o.indexOf(f);m>-1&&o.splice(m,1)};return i.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(mn({},f.state,{scroll:t1()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:c,destroy:d}}function UR(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?t1():null}}function J6e(e){const{history:t,location:n}=window,r={value:Ij(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:Z6e()+e+s;try{t[u?"replaceState":"pushState"](c,"",f),o.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function a(s,c){const u=mn({},t.state,UR(o.value.back,s,o.value.forward,!0),c,{position:o.value.position});i(s,u,!0),r.value=s}function l(s,c){const u=mn({},o.value,t.state,{forward:s,scroll:t1()});i(u.current,u,!0);const d=mn({},UR(r.value,s,null),{position:u.position+1},c);i(s,d,!1),r.value=s}return{location:r,state:o,push:l,replace:a}}function e8e(e){e=V6e(e);const t=J6e(e),n=Q6e(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=mn({location:"",base:e,go:r,createHref:U6e.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function t8e(e){return typeof e=="string"||e&&typeof e=="object"}function Pj(e){return typeof e=="string"||typeof e=="symbol"}const Xl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Tj=Symbol("");var GR;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(GR||(GR={}));function Bd(e,t){return mn(new Error,{type:e,[Tj]:!0},t)}function tl(e,t){return e instanceof Error&&Tj in e&&(t==null||!!(e.type&t))}const YR="[^/]+?",n8e={sensitive:!1,strict:!1,start:!0,end:!0},r8e=/[.+*?^${}()[\]/\\]/g;function o8e(e,t){const n=mn({},n8e,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;dt.length?t.length===1&&t[0]===80?1:-1:0}function a8e(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const l8e={type:0,value:""},s8e=/[a-zA-Z0-9_]/;function c8e(e){if(!e)return[[]];if(e==="/")return[[l8e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let l=0,s,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;l{a($)}:Np}function a(u){if(Pj(u)){const d=r.get(u);d&&(r.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&r.delete(u.record.name),u.children.forEach(a),u.alias.forEach(a))}}function l(){return n}function s(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!Ej(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!ZR(u)&&r.set(u.record.name,u)}function c(u,d){let f,h={},m,v;if("name"in u&&u.name){if(f=r.get(u.name),!f)throw Bd(1,{location:u});v=f.record.name,h=mn(qR(d.params,f.keys.filter($=>!$.optional).map($=>$.name)),u.params&&qR(u.params,f.keys.map($=>$.name))),m=f.stringify(h)}else if("path"in u)m=u.path,f=n.find($=>$.re.test(m)),f&&(h=f.parse(m),v=f.record.name);else{if(f=d.name?r.get(d.name):n.find($=>$.re.test(d.path)),!f)throw Bd(1,{location:u,currentLocation:d});v=f.record.name,h=mn({},d.params,u.params),m=f.stringify(h)}const y=[];let b=f;for(;b;)y.unshift(b.record),b=b.parent;return{name:v,path:m,params:h,matched:y,meta:h8e(y)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:a,getRoutes:l,getRecordMatcher:o}}function qR(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function f8e(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:p8e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function p8e(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ZR(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function h8e(e){return e.reduce((t,n)=>mn(t,n.meta),{})}function QR(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ej(e,t){return t.children.some(n=>n===e||Ej(e,n))}const Aj=/#/g,g8e=/&/g,v8e=/\//g,m8e=/=/g,b8e=/\?/g,Mj=/\+/g,y8e=/%5B/g,S8e=/%5D/g,Rj=/%5E/g,C8e=/%60/g,Dj=/%7B/g,$8e=/%7C/g,Lj=/%7D/g,x8e=/%20/g;function cP(e){return encodeURI(""+e).replace($8e,"|").replace(y8e,"[").replace(S8e,"]")}function w8e(e){return cP(e).replace(Dj,"{").replace(Lj,"}").replace(Rj,"^")}function Cw(e){return cP(e).replace(Mj,"%2B").replace(x8e,"+").replace(Aj,"%23").replace(g8e,"%26").replace(C8e,"`").replace(Dj,"{").replace(Lj,"}").replace(Rj,"^")}function _8e(e){return Cw(e).replace(m8e,"%3D")}function O8e(e){return cP(e).replace(Aj,"%23").replace(b8e,"%3F")}function I8e(e){return e==null?"":O8e(e).replace(v8e,"%2F")}function J0(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function P8e(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Cw(i)):[r&&Cw(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function T8e(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ca(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const E8e=Symbol(""),e5=Symbol(""),n1=Symbol(""),uP=Symbol(""),$w=Symbol("");function Yf(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ls(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const s=d=>{d===!1?l(Bd(4,{from:n,to:t})):d instanceof Error?l(d):t8e(d)?l(Bd(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},c=e.call(r&&r.instances[o],t,n,s);let u=Promise.resolve(c);e.length<3&&(u=u.then(s)),u.catch(d=>l(d))})}function o$(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(A8e(l)){const c=(l.__vccOpts||l)[t];c&&o.push(ls(c,n,r,i,a))}else{let s=l();o.push(()=>s.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const u=k6e(c)?c.default:c;i.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&ls(f,n,r,i,a)()}))}}return o}function A8e(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function t5(e){const t=it(n1),n=it(uP),r=M(()=>t.resolve(wt(e.to))),o=M(()=>{const{matched:s}=r.value,{length:c}=s,u=s[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(kd.bind(null,u));if(f>-1)return f;const h=n5(s[c-2]);return c>1&&n5(u)===h&&d[d.length-1].path!==h?d.findIndex(kd.bind(null,s[c-2])):f}),i=M(()=>o.value>-1&&L8e(n.params,r.value.params)),a=M(()=>o.value>-1&&o.value===n.matched.length-1&&Oj(n.params,r.value.params));function l(s={}){return D8e(s)?t[wt(e.replace)?"replace":"push"](wt(e.to)).catch(Np):Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:i,isExactActive:a,navigate:l}}const M8e=pe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:t5,setup(e,{slots:t}){const n=St(t5(e)),{options:r}=it(n1),o=M(()=>({[r5(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[r5(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ni("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),R8e=M8e;function D8e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function L8e(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ca(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function n5(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const r5=(e,t,n)=>e??t??n,N8e=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=it($w),o=M(()=>e.route||r.value),i=it(e5,0),a=M(()=>{let c=wt(i);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=M(()=>o.value.matched[a.value]);ft(e5,M(()=>a.value+1)),ft(E8e,l),ft($w,o);const s=he();return Ie(()=>[s.value,l.value,e.name],([c,u,d],[f,h,m])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!kd(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,d=l.value,f=d&&d.components[u];if(!f)return o5(n.default,{Component:f,route:c});const h=d.props[u],m=h?h===!0?c.params:typeof h=="function"?h(c):h:null,y=Ni(f,mn({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:s}));return o5(n.default,{Component:y,route:c})||y}}});function o5(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nj=N8e;function k8e(e){const t=d8e(e.routes,e),n=e.parseQuery||P8e,r=e.stringifyQuery||JR,o=e.history,i=Yf(),a=Yf(),l=Yf(),s=ve(Xl);let c=Xl;Gu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=n$.bind(null,ee=>""+ee),d=n$.bind(null,I8e),f=n$.bind(null,J0);function h(ee,fe){let ie,X;return Pj(ee)?(ie=t.getRecordMatcher(ee),X=fe):X=ee,t.addRoute(X,ie)}function m(ee){const fe=t.getRecordMatcher(ee);fe&&t.removeRoute(fe)}function v(){return t.getRoutes().map(ee=>ee.record)}function y(ee){return!!t.getRecordMatcher(ee)}function b(ee,fe){if(fe=mn({},fe||s.value),typeof ee=="string"){const j=r$(n,ee,fe.path),q=t.resolve({path:j.path},fe),se=o.createHref(j.fullPath);return mn(j,q,{params:f(q.params),hash:J0(j.hash),redirectedFrom:void 0,href:se})}let ie;if("path"in ee)ie=mn({},ee,{path:r$(n,ee.path,fe.path).path});else{const j=mn({},ee.params);for(const q in j)j[q]==null&&delete j[q];ie=mn({},ee,{params:d(j)}),fe.params=d(fe.params)}const X=t.resolve(ie,fe),ue=ee.hash||"";X.params=u(f(X.params));const ye=H6e(r,mn({},ee,{hash:w8e(ue),path:X.path})),H=o.createHref(ye);return mn({fullPath:ye,hash:ue,query:r===JR?T8e(ee.query):ee.query||{}},X,{redirectedFrom:void 0,href:H})}function $(ee){return typeof ee=="string"?r$(n,ee,s.value.path):mn({},ee)}function x(ee,fe){if(c!==ee)return Bd(8,{from:fe,to:ee})}function _(ee){return O(ee)}function w(ee){return _(mn($(ee),{replace:!0}))}function I(ee){const fe=ee.matched[ee.matched.length-1];if(fe&&fe.redirect){const{redirect:ie}=fe;let X=typeof ie=="function"?ie(ee):ie;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=$(X):{path:X},X.params={}),mn({query:ee.query,hash:ee.hash,params:"path"in X?{}:ee.params},X)}}function O(ee,fe){const ie=c=b(ee),X=s.value,ue=ee.state,ye=ee.force,H=ee.replace===!0,j=I(ie);if(j)return O(mn($(j),{state:typeof j=="object"?mn({},ue,j.state):ue,force:ye,replace:H}),fe||ie);const q=ie;q.redirectedFrom=fe;let se;return!ye&&z6e(r,X,ie)&&(se=Bd(16,{to:q,from:X}),G(X,X,!0,!1)),(se?Promise.resolve(se):R(q,X)).catch(ae=>tl(ae)?tl(ae,2)?ae:K(ae):L(ae,q,X)).then(ae=>{if(ae){if(tl(ae,2))return O(mn({replace:H},$(ae.to),{state:typeof ae.to=="object"?mn({},ue,ae.to.state):ue,force:ye}),fe||q)}else ae=N(q,X,!0,H,ue);return A(q,X,ae),ae})}function P(ee,fe){const ie=x(ee,fe);return ie?Promise.reject(ie):Promise.resolve()}function E(ee){const fe=oe.values().next().value;return fe&&typeof fe.runWithContext=="function"?fe.runWithContext(ee):ee()}function R(ee,fe){let ie;const[X,ue,ye]=B8e(ee,fe);ie=o$(X.reverse(),"beforeRouteLeave",ee,fe);for(const j of X)j.leaveGuards.forEach(q=>{ie.push(ls(q,ee,fe))});const H=P.bind(null,ee,fe);return ie.push(H),te(ie).then(()=>{ie=[];for(const j of i.list())ie.push(ls(j,ee,fe));return ie.push(H),te(ie)}).then(()=>{ie=o$(ue,"beforeRouteUpdate",ee,fe);for(const j of ue)j.updateGuards.forEach(q=>{ie.push(ls(q,ee,fe))});return ie.push(H),te(ie)}).then(()=>{ie=[];for(const j of ye)if(j.beforeEnter)if(ca(j.beforeEnter))for(const q of j.beforeEnter)ie.push(ls(q,ee,fe));else ie.push(ls(j.beforeEnter,ee,fe));return ie.push(H),te(ie)}).then(()=>(ee.matched.forEach(j=>j.enterCallbacks={}),ie=o$(ye,"beforeRouteEnter",ee,fe),ie.push(H),te(ie))).then(()=>{ie=[];for(const j of a.list())ie.push(ls(j,ee,fe));return ie.push(H),te(ie)}).catch(j=>tl(j,8)?j:Promise.reject(j))}function A(ee,fe,ie){l.list().forEach(X=>E(()=>X(ee,fe,ie)))}function N(ee,fe,ie,X,ue){const ye=x(ee,fe);if(ye)return ye;const H=fe===Xl,j=Gu?history.state:{};ie&&(X||H?o.replace(ee.fullPath,mn({scroll:H&&j&&j.scroll},ue)):o.push(ee.fullPath,ue)),s.value=ee,G(ee,fe,ie,H),K()}let F;function W(){F||(F=o.listen((ee,fe,ie)=>{if(!J.listening)return;const X=b(ee),ue=I(X);if(ue){O(mn(ue,{replace:!0}),X).catch(Np);return}c=X;const ye=s.value;Gu&&X6e(KR(ye.fullPath,ie.delta),t1()),R(X,ye).catch(H=>tl(H,12)?H:tl(H,2)?(O(H.to,X).then(j=>{tl(j,20)&&!ie.delta&&ie.type===xh.pop&&o.go(-1,!1)}).catch(Np),Promise.reject()):(ie.delta&&o.go(-ie.delta,!1),L(H,X,ye))).then(H=>{H=H||N(X,ye,!1),H&&(ie.delta&&!tl(H,8)?o.go(-ie.delta,!1):ie.type===xh.pop&&tl(H,20)&&o.go(-1,!1)),A(X,ye,H)}).catch(Np)}))}let D=Yf(),B=Yf(),k;function L(ee,fe,ie){K(ee);const X=B.list();return X.length?X.forEach(ue=>ue(ee,fe,ie)):console.error(ee),Promise.reject(ee)}function z(){return k&&s.value!==Xl?Promise.resolve():new Promise((ee,fe)=>{D.add([ee,fe])})}function K(ee){return k||(k=!ee,W(),D.list().forEach(([fe,ie])=>ee?ie(ee):fe()),D.reset()),ee}function G(ee,fe,ie,X){const{scrollBehavior:ue}=e;if(!Gu||!ue)return Promise.resolve();const ye=!ie&&q6e(KR(ee.fullPath,0))||(X||!ie)&&history.state&&history.state.scroll||null;return _t().then(()=>ue(ee,fe,ye)).then(H=>H&&Y6e(H)).catch(H=>L(H,ee,fe))}const Y=ee=>o.go(ee);let ne;const oe=new Set,J={currentRoute:s,listening:!0,addRoute:h,removeRoute:m,hasRoute:y,getRoutes:v,resolve:b,options:e,push:_,replace:w,go:Y,back:()=>Y(-1),forward:()=>Y(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:B.add,isReady:z,install(ee){const fe=this;ee.component("RouterLink",R8e),ee.component("RouterView",Nj),ee.config.globalProperties.$router=fe,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>wt(s)}),Gu&&!ne&&s.value===Xl&&(ne=!0,_(o.location).catch(ue=>{}));const ie={};for(const ue in Xl)Object.defineProperty(ie,ue,{get:()=>s.value[ue],enumerable:!0});ee.provide(n1,fe),ee.provide(uP,HL(ie)),ee.provide($w,s);const X=ee.unmount;oe.add(ee),ee.unmount=function(){oe.delete(ee),oe.size<1&&(c=Xl,F&&F(),F=null,s.value=Xl,ne=!1,k=!1),X()}}};function te(ee){return ee.reduce((fe,ie)=>fe.then(()=>E(ie)),Promise.resolve())}return J}function B8e(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;akd(c,l))?r.push(l):n.push(l));const s=e.matched[a];s&&(t.matched.find(c=>kd(c,s))||o.push(s))}return[n,r,o]}function kj(){return it(n1)}function Ml(){return it(uP)}const F8e="modulepreload",H8e=function(e){return"/admin/"+e},i5={},Ht=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link");o=Promise.all(n.map(a=>{if(a=H8e(a),a in i5)return;i5[a]=!0;const l=a.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.href===a&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":F8e,l||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),l)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Bp=/^[a-z0-9]+(-[a-z0-9]+)*$/,r1=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const l=o.pop(),s=o.pop(),c={provider:o.length>0?o[0]:r,prefix:s,name:l};return t&&!Um(c)?null:c}const i=o[0],a=i.split("-");if(a.length>1){const l={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Um(l)?null:l}if(n&&r===""){const l={provider:r,prefix:"",name:i};return t&&!Um(l,n)?null:l}return null},Um=(e,t)=>e?!!((e.provider===""||e.provider.match(Bp))&&(t&&e.prefix===""||e.prefix.match(Bp))&&e.name.match(Bp)):!1,Bj=Object.freeze({left:0,top:0,width:16,height:16}),eb=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o1=Object.freeze({...Bj,...eb}),xw=Object.freeze({...o1,body:"",hidden:!1});function z8e(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function a5(e,t){const n=z8e(e,t);for(const r in xw)r in eb?r in e&&!(r in n)&&(n[r]=eb[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function j8e(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const l=r[a]&&r[a].parent,s=l&&i(l);s&&(o[a]=[l].concat(s))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function W8e(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(l){i=a5(r[l]||o[l],i)}return a(t),n.forEach(a),a5(e,i)}function Fj(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=j8e(e);for(const o in r){const i=r[o];i&&(t(o,W8e(e,o,i)),n.push(o))}return n}const V8e={provider:"",aliases:{},not_found:{},...Bj};function i$(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Hj(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!i$(e,V8e))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Bp)||typeof i.body!="string"||!i$(i,xw))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(Bp)||typeof a!="string"||!n[a]&&!r[a]||!i$(i,xw))return null}return t}const l5=Object.create(null);function K8e(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function kc(e,t){const n=l5[e]||(l5[e]=Object.create(null));return n[t]||(n[t]=K8e(e,t))}function dP(e,t){return Hj(t)?Fj(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function U8e(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let wh=!1;function zj(e){return typeof e=="boolean"&&(wh=e),wh}function G8e(e){const t=typeof e=="string"?r1(e,!0,wh):e;if(t){const n=kc(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Y8e(e,t){const n=r1(e,!0,wh);if(!n)return!1;const r=kc(n.provider,n.prefix);return U8e(r,n.name,t)}function X8e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),wh&&!t&&!e.prefix){let o=!1;return Hj(e)&&(e.prefix="",Fj(e,(i,a)=>{a&&Y8e(i,a)&&(o=!0)})),o}const n=e.prefix;if(!Um({provider:t,prefix:n,name:"a"}))return!1;const r=kc(t,n);return!!dP(r,e)}const jj=Object.freeze({width:null,height:null}),Wj=Object.freeze({...jj,...eb}),q8e=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Z8e=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function s5(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(q8e);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=Z8e.test(i);for(;;){if(a){const l=parseFloat(i);isNaN(l)?o.push(i):o.push(Math.ceil(l*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const Q8e=e=>e==="unset"||e==="undefined"||e==="none";function J8e(e,t){const n={...o1,...e},r={...Wj,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(m=>{const v=[],y=m.hFlip,b=m.vFlip;let $=m.rotate;y?b?$+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):b&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let x;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:x=o.height/2+o.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}$%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),v.length&&(i=''+i+"")});const a=r.width,l=r.height,s=o.width,c=o.height;let u,d;a===null?(d=l===null?"1em":l==="auto"?c:l,u=s5(d,s/c)):(u=a==="auto"?s:a,d=l===null?s5(u,c/s):l==="auto"?c:l);const f={},h=(m,v)=>{Q8e(v)||(f[m]=v.toString())};return h("width",u),h("height",d),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:i}}const eRe=/\sid="(\S+)"/g,tRe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let nRe=0;function rRe(e,t=tRe){const n=[];let r;for(;r=eRe.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(nRe++).toString(),l=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const ww=Object.create(null);function oRe(e,t){ww[e]=t}function _w(e){return ww[e]||ww[""]}function fP(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const pP=Object.create(null),Xf=["https://api.simplesvg.com","https://api.unisvg.com"],Gm=[];for(;Xf.length>0;)Xf.length===1||Math.random()>.5?Gm.push(Xf.shift()):Gm.push(Xf.pop());pP[""]=fP({resources:["https://api.iconify.design"].concat(Gm)});function iRe(e,t){const n=fP(t);return n===null?!1:(pP[e]=n,!0)}function hP(e){return pP[e]}const aRe=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let c5=aRe();function lRe(e,t){const n=hP(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function sRe(e){return e===404}const cRe=(e,t,n)=>{const r=[],o=lRe(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},l=0;return n.forEach((s,c)=>{l+=s.length+1,l>=o&&c>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),r.push(a),r};function uRe(e){if(typeof e=="string"){const t=hP(e);if(t)return t.path}return"/"}const dRe=(e,t,n)=>{if(!c5){n("abort",424);return}let r=uRe(t.provider);switch(t.type){case"icons":{const i=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});r+=i+".json?"+s.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;c5(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(sRe(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},fRe={prepare:cRe,send:dRe};function pRe(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,l=o.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=kc(i,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const d={provider:i,prefix:a,name:l};u.push(d)}),t}function Vj(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function hRe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==o)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:r,prefix:o,name:c});else if(e.missing.has(c))a.missing.push({provider:r,prefix:o,name:c});else return n=!0,!0;return!1}),a.pending.length!==l&&(n||Vj([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let gRe=0;function vRe(e,t,n){const r=gRe++,o=Vj.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function mRe(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?r1(o,t,n):o;i&&r.push(i)}),r}var bRe={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function yRe(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let I=e.resources.slice(0);for(a=[];I.length>1;){const O=Math.floor(Math.random()*I.length);a.push(I[O]),I=I.slice(0,O).concat(I.slice(O+1))}a=a.concat(I)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const l=Date.now();let s="pending",c=0,u,d=null,f=[],h=[];typeof r=="function"&&h.push(r);function m(){d&&(clearTimeout(d),d=null)}function v(){s==="pending"&&(s="aborted"),m(),f.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),f=[]}function y(I,O){O&&(h=[]),typeof I=="function"&&h.push(I)}function b(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:y,abort:v}}function $(){s="failed",h.forEach(I=>{I(void 0,u)})}function x(){f.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),f=[]}function _(I,O,P){const E=O!=="success";switch(f=f.filter(R=>R!==I),s){case"pending":break;case"failed":if(E||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){u=P,$();return}if(E){u=P,f.length||(a.length?w():$());return}if(m(),x(),!e.random){const R=e.resources.indexOf(I.resource);R!==-1&&R!==e.index&&(e.index=R)}s="completed",h.forEach(R=>{R(P)})}function w(){if(s!=="pending")return;m();const I=a.shift();if(I===void 0){if(f.length){d=setTimeout(()=>{m(),s==="pending"&&(x(),$())},e.timeout);return}$();return}const O={status:"pending",resource:I,callback:(P,E)=>{_(O,P,E)}};f.push(O),c++,d=setTimeout(w,e.rotate),n(I,t,O.callback)}return setTimeout(w),b}function Kj(e){const t={...bRe,...e};let n=[];function r(){n=n.filter(l=>l().status==="pending")}function o(l,s,c){const u=yRe(t,l,s,(d,f)=>{r(),c&&c(d,f)});return n.push(u),u}function i(l){return n.find(s=>l(s))||null}return{query:o,find:i,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:r}}function u5(){}const a$=Object.create(null);function SRe(e){if(!a$[e]){const t=hP(e);if(!t)return;const n=Kj(t),r={config:t,redundancy:n};a$[e]=r}return a$[e]}function CRe(e,t,n){let r,o;if(typeof e=="string"){const i=_w(e);if(!i)return n(void 0,424),u5;o=i.send;const a=SRe(e);a&&(r=a.redundancy)}else{const i=fP(e);if(i){r=Kj(i);const a=e.resources?e.resources[0]:"",l=_w(a);l&&(o=l.send)}}return!r||!o?(n(void 0,424),u5):r.query(t,o,n)().abort}const d5="iconify2",_h="iconify",Uj=_h+"-count",f5=_h+"-version",Gj=36e5,$Re=168;function Ow(e,t){try{return e.getItem(t)}catch{}}function gP(e,t,n){try{return e.setItem(t,n),!0}catch{}}function p5(e,t){try{e.removeItem(t)}catch{}}function Iw(e,t){return gP(e,Uj,t.toString())}function Pw(e){return parseInt(Ow(e,Uj))||0}const i1={local:!0,session:!0},Yj={local:new Set,session:new Set};let vP=!1;function xRe(e){vP=e}let Gv=typeof window>"u"?{}:window;function Xj(e){const t=e+"Storage";try{if(Gv&&Gv[t]&&typeof Gv[t].length=="number")return Gv[t]}catch{}i1[e]=!1}function qj(e,t){const n=Xj(e);if(!n)return;const r=Ow(n,f5);if(r!==d5){if(r){const l=Pw(n);for(let s=0;s{const s=_h+l.toString(),c=Ow(n,s);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}p5(n,s)}};let a=Pw(n);for(let l=a-1;l>=0;l--)i(l)||(l===a-1?(a--,Iw(n,a)):Yj[e].add(l))}function Zj(){if(!vP){xRe(!0);for(const e in i1)qj(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=kc(r,o);if(!dP(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function wRe(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in i1)qj(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function _Re(e,t){vP||Zj();function n(r){let o;if(!i1[r]||!(o=Xj(r)))return;const i=Yj[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Pw(o),!Iw(o,a+1))return;const l={cached:Math.floor(Date.now()/Gj),provider:e.provider,data:t};return gP(o,_h+a.toString(),JSON.stringify(l))}t.lastModified&&!wRe(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function h5(){}function ORe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,hRe(e)}))}function IRe(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=_w(n)))return;i.prepare(n,r,o).forEach(l=>{CRe(n,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=dP(e,s);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),_Re(e,s)}catch(c){console.error(c)}ORe(e)})})}))}const PRe=(e,t)=>{const n=mRe(e,!0,zj()),r=pRe(n);if(!r.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(r.loaded,r.missing,r.pending,h5)}),()=>{s=!1}}const o=Object.create(null),i=[];let a,l;return r.pending.forEach(s=>{const{provider:c,prefix:u}=s;if(u===l&&c===a)return;a=c,l=u,i.push(kc(c,u));const d=o[c]||(o[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(s=>{const{provider:c,prefix:u,name:d}=s,f=kc(c,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(d)||(h.add(d),o[c][u].push(d))}),i.forEach(s=>{const{provider:c,prefix:u}=s;o[c][u].length&&IRe(s,o[c][u])}),t?vRe(t,r,i):h5};function TRe(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in jj?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ERe=/[\s,]+/;function ARe(e,t){t.split(ERe).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function MRe(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}function RRe(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function DRe(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function LRe(e){return"data:image/svg+xml,"+DRe(e)}function NRe(e){return'url("'+LRe(e)+'")'}const g5={...Wj,inline:!1},kRe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},BRe={display:"inline-block"},Tw={backgroundColor:"currentColor"},Qj={backgroundColor:"transparent"},v5={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},m5={webkitMask:Tw,mask:Tw,background:Qj};for(const e in m5){const t=m5[e];for(const n in v5)t[e+n]=v5[n]}const Ym={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Ym[e+"-flip"]=t,Ym[e.slice(0,1)+"-flip"]=t,Ym[e+"Flip"]=t});function b5(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const y5=(e,t)=>{const n=TRe(g5,t),r={...kRe},o=t.mode||"svg",i={},a=t.style,l=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const y=t[v];if(y!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&ARe(n,y);break;case"color":i.color=y;break;case"rotate":typeof y=="string"?n[v]=MRe(y):typeof y=="number"&&(n[v]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const b=Ym[v];b?(y===!0||y==="true"||y===1)&&(n[b]=!0):g5[v]===void 0&&(r[v]=y)}}}const s=J8e(e,n),c=s.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...l},Object.assign(r,c);let v=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=rRe(s.body,y?()=>y+"ID"+v++:"iconifyVue"),Ni("svg",r)}const{body:u,width:d,height:f}=e,h=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),m=RRe(u,{...c,width:d+"",height:f+""});return r.style={...i,"--svg":NRe(m),width:b5(c.width),height:b5(c.height),...BRe,...h?Tw:Qj,...l},Ni("span",r)};zj(!0);oRe("",fRe);if(typeof document<"u"&&typeof window<"u"){Zj();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!X8e(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;iRe(n,o)||console.error(r)}catch{console.error(r)}}}}const FRe={...o1,body:""},S5=pe({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=r1(e,!1,!0))===null)return this.abortLoading(),null;const r=G8e(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:PRe([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return y5(FRe,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),y5({...o1,...t.data},n)}});var tb={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */tb.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,f=2,h=4,m=1,v=2,y=1,b=2,$=4,x=8,_=16,w=32,I=64,O=128,P=256,E=512,R=30,A="...",N=800,F=16,W=1,D=2,B=3,k=1/0,L=9007199254740991,z=17976931348623157e292,K=NaN,G=4294967295,Y=G-1,ne=G>>>1,oe=[["ary",O],["bind",y],["bindKey",b],["curry",x],["curryRight",_],["flip",E],["partial",w],["partialRight",I],["rearg",P]],J="[object Arguments]",te="[object Array]",ee="[object AsyncFunction]",fe="[object Boolean]",ie="[object Date]",X="[object DOMException]",ue="[object Error]",ye="[object Function]",H="[object GeneratorFunction]",j="[object Map]",q="[object Number]",se="[object Null]",ae="[object Object]",ge="[object Promise]",Se="[object Proxy]",$e="[object RegExp]",_e="[object Set]",be="[object String]",Te="[object Symbol]",Pe="[object Undefined]",re="[object WeakMap]",le="[object WeakSet]",xe="[object ArrayBuffer]",Ae="[object DataView]",Be="[object Float32Array]",Ye="[object Float64Array]",Re="[object Int8Array]",Le="[object Int16Array]",Ne="[object Int32Array]",Ke="[object Uint8Array]",Ze="[object Uint8ClampedArray]",Ue="[object Uint16Array]",Xe="[object Uint32Array]",xt=/\b__p \+= '';/g,Mt=/\b(__p \+=) '' \+/g,Ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jt=/&(?:amp|lt|gt|quot|#39);/g,Yt=/[&<>"']/g,Vn=RegExp(jt.source),Gn=RegExp(Yt.source),rr=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,br=/<%=([\s\S]+?)%>/g,Gr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wo=/^\w*$/,Uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ar=/[\\^$.*+?()[\]{}|]/g,za=RegExp(Ar.source),We=/^\s+/,gt=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,un=/\{\n\/\* \[wrapped with (.+)\] \*/,Yn=/,? & /,Bn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yr=/[()=,{}\[\]\/\s]/,yr=/\\(\\)?/g,hi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xr=/\w*$/,_o=/^[-+]0x[0-9a-f]+$/i,Cn=/^0b[01]+$/i,Go=/^\[object .+?Constructor\]$/,Oo=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,ha=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qr=/($^)/,Ll=/['\n\r\u2028\u2029\\]/g,Zr="\\ud800-\\udfff",yf="\\u0300-\\u036f",b1="\\ufe20-\\ufe2f",y1="\\u20d0-\\u20ff",ug=yf+b1+y1,dg="\\u2700-\\u27bf",Sf="a-z\\xdf-\\xf6\\xf8-\\xff",S1="\\xac\\xb1\\xd7\\xf7",Ls="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fg="\\u2000-\\u206f",C1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pg="A-Z\\xc0-\\xd6\\xd8-\\xde",hg="\\ufe0e\\ufe0f",Cf=S1+Ls+fg+C1,du="['’]",gg="["+Zr+"]",fu="["+Cf+"]",Nl="["+ug+"]",vg="\\d+",Qr="["+dg+"]",Ki="["+Sf+"]",$f="[^"+Zr+Cf+vg+dg+Sf+pg+"]",Ns="\\ud83c[\\udffb-\\udfff]",ga="(?:"+Nl+"|"+Ns+")",mg="[^"+Zr+"]",bg="(?:\\ud83c[\\udde6-\\uddff]){2}",ks="[\\ud800-\\udbff][\\udc00-\\udfff]",ja="["+pg+"]",xf="\\u200d",pu="(?:"+Ki+"|"+$f+")",HV="(?:"+ja+"|"+$f+")",oT="(?:"+du+"(?:d|ll|m|re|s|t|ve))?",iT="(?:"+du+"(?:D|LL|M|RE|S|T|VE))?",aT=ga+"?",lT="["+hg+"]?",zV="(?:"+xf+"(?:"+[mg,bg,ks].join("|")+")"+lT+aT+")*",jV="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",WV="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sT=lT+aT+zV,VV="(?:"+[Qr,bg,ks].join("|")+")"+sT,KV="(?:"+[mg+Nl+"?",Nl,bg,ks,gg].join("|")+")",UV=RegExp(du,"g"),GV=RegExp(Nl,"g"),$1=RegExp(Ns+"(?="+Ns+")|"+KV+sT,"g"),YV=RegExp([ja+"?"+Ki+"+"+oT+"(?="+[fu,ja,"$"].join("|")+")",HV+"+"+iT+"(?="+[fu,ja+pu,"$"].join("|")+")",ja+"?"+pu+"+"+oT,ja+"+"+iT,WV,jV,vg,VV].join("|"),"g"),XV=RegExp("["+xf+Zr+ug+hg+"]"),qV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ZV=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],QV=-1,En={};En[Be]=En[Ye]=En[Re]=En[Le]=En[Ne]=En[Ke]=En[Ze]=En[Ue]=En[Xe]=!0,En[J]=En[te]=En[xe]=En[fe]=En[Ae]=En[ie]=En[ue]=En[ye]=En[j]=En[q]=En[ae]=En[$e]=En[_e]=En[be]=En[re]=!1;var On={};On[J]=On[te]=On[xe]=On[Ae]=On[fe]=On[ie]=On[Be]=On[Ye]=On[Re]=On[Le]=On[Ne]=On[j]=On[q]=On[ae]=On[$e]=On[_e]=On[be]=On[Te]=On[Ke]=On[Ze]=On[Ue]=On[Xe]=!0,On[ue]=On[ye]=On[re]=!1;var JV={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},eK={"&":"&","<":"<",">":">",'"':""","'":"'"},tK={"&":"&","<":"<",">":">",""":'"',"'":"'"},nK={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rK=parseFloat,oK=parseInt,cT=typeof Lo=="object"&&Lo&&Lo.Object===Object&&Lo,iK=typeof self=="object"&&self&&self.Object===Object&&self,Hr=cT||iK||Function("return this")(),x1=t&&!t.nodeType&&t,Bs=x1&&!0&&e&&!e.nodeType&&e,uT=Bs&&Bs.exports===x1,w1=uT&&cT.process,gi=function(){try{var Ee=Bs&&Bs.require&&Bs.require("util").types;return Ee||w1&&w1.binding&&w1.binding("util")}catch{}}(),dT=gi&&gi.isArrayBuffer,fT=gi&&gi.isDate,pT=gi&&gi.isMap,hT=gi&&gi.isRegExp,gT=gi&&gi.isSet,vT=gi&&gi.isTypedArray;function Yo(Ee,He,ke){switch(ke.length){case 0:return Ee.call(He);case 1:return Ee.call(He,ke[0]);case 2:return Ee.call(He,ke[0],ke[1]);case 3:return Ee.call(He,ke[0],ke[1],ke[2])}return Ee.apply(He,ke)}function aK(Ee,He,ke,dt){for(var Wt=-1,fn=Ee==null?0:Ee.length;++Wt-1}function _1(Ee,He,ke){for(var dt=-1,Wt=Ee==null?0:Ee.length;++dt-1;);return ke}function wT(Ee,He){for(var ke=Ee.length;ke--&&hu(He,Ee[ke],0)>-1;);return ke}function gK(Ee,He){for(var ke=Ee.length,dt=0;ke--;)Ee[ke]===He&&++dt;return dt}var vK=T1(JV),mK=T1(eK);function bK(Ee){return"\\"+nK[Ee]}function yK(Ee,He){return Ee==null?n:Ee[He]}function gu(Ee){return XV.test(Ee)}function SK(Ee){return qV.test(Ee)}function CK(Ee){for(var He,ke=[];!(He=Ee.next()).done;)ke.push(He.value);return ke}function R1(Ee){var He=-1,ke=Array(Ee.size);return Ee.forEach(function(dt,Wt){ke[++He]=[Wt,dt]}),ke}function _T(Ee,He){return function(ke){return Ee(He(ke))}}function Fl(Ee,He){for(var ke=-1,dt=Ee.length,Wt=0,fn=[];++ke-1}function sU(p,C){var T=this.__data__,U=Ng(T,p);return U<0?(++this.size,T.push([p,C])):T[U][1]=C,this}Wa.prototype.clear=oU,Wa.prototype.delete=iU,Wa.prototype.get=aU,Wa.prototype.has=lU,Wa.prototype.set=sU;function Va(p){var C=-1,T=p==null?0:p.length;for(this.clear();++C=C?p:C)),p}function yi(p,C,T,U,Q,de){var Ce,we=C&d,Me=C&f,ze=C&h;if(T&&(Ce=Q?T(p,U,Q,de):T(p)),Ce!==n)return Ce;if(!Kn(p))return p;var je=Kt(p);if(je){if(Ce=fG(p),!we)return Io(p,Ce)}else{var Ge=eo(p),rt=Ge==ye||Ge==H;if(Kl(p))return lE(p,we);if(Ge==ae||Ge==J||rt&&!Q){if(Ce=Me||rt?{}:OE(p),!we)return Me?tG(p,wU(Ce,p)):eG(p,kT(Ce,p))}else{if(!On[Ge])return Q?p:{};Ce=pG(p,Ge,we)}}de||(de=new Gi);var yt=de.get(p);if(yt)return yt;de.set(p,Ce),t4(p)?p.forEach(function(At){Ce.add(yi(At,C,T,At,p,de))}):JE(p)&&p.forEach(function(At,tn){Ce.set(tn,yi(At,C,T,tn,p,de))});var Et=ze?Me?iS:oS:Me?To:Mr,Qt=je?n:Et(p);return vi(Qt||p,function(At,tn){Qt&&(tn=At,At=p[tn]),Ef(Ce,tn,yi(At,C,T,tn,p,de))}),Ce}function _U(p){var C=Mr(p);return function(T){return BT(T,p,C)}}function BT(p,C,T){var U=T.length;if(p==null)return!U;for(p=xn(p);U--;){var Q=T[U],de=C[Q],Ce=p[Q];if(Ce===n&&!(Q in p)||!de(Ce))return!1}return!0}function FT(p,C,T){if(typeof p!="function")throw new mi(a);return kf(function(){p.apply(n,T)},C)}function Af(p,C,T,U){var Q=-1,de=yg,Ce=!0,we=p.length,Me=[],ze=C.length;if(!we)return Me;T&&(C=Fn(C,Xo(T))),U?(de=_1,Ce=!1):C.length>=o&&(de=wf,Ce=!1,C=new zs(C));e:for(;++QQ?0:Q+T),U=U===n||U>Q?Q:Xt(U),U<0&&(U+=Q),U=T>U?0:r4(U);T0&&T(we)?C>1?zr(we,C-1,T,U,Q):Bl(Q,we):U||(Q[Q.length]=we)}return Q}var H1=pE(),jT=pE(!0);function va(p,C){return p&&H1(p,C,Mr)}function z1(p,C){return p&&jT(p,C,Mr)}function Bg(p,C){return kl(C,function(T){return Xa(p[T])})}function Ws(p,C){C=Wl(C,p);for(var T=0,U=C.length;p!=null&&TC}function PU(p,C){return p!=null&&vn.call(p,C)}function TU(p,C){return p!=null&&C in xn(p)}function EU(p,C,T){return p>=Jr(C,T)&&p=120&&je.length>=120)?new zs(Ce&&je):n}je=p[0];var Ge=-1,rt=we[0];e:for(;++Ge-1;)we!==p&&Tg.call(we,Me,1),Tg.call(p,Me,1);return p}function JT(p,C){for(var T=p?C.length:0,U=T-1;T--;){var Q=C[T];if(T==U||Q!==de){var de=Q;Ya(Q)?Tg.call(p,Q,1):Z1(p,Q)}}return p}function Y1(p,C){return p+Mg(RT()*(C-p+1))}function WU(p,C,T,U){for(var Q=-1,de=Cr(Ag((C-p)/(T||1)),0),Ce=ke(de);de--;)Ce[U?de:++Q]=p,p+=T;return Ce}function X1(p,C){var T="";if(!p||C<1||C>L)return T;do C%2&&(T+=p),C=Mg(C/2),C&&(p+=p);while(C);return T}function Jt(p,C){return fS(TE(p,C,Eo),p+"")}function VU(p){return NT(Ou(p))}function KU(p,C){var T=Ou(p);return Xg(T,js(C,0,T.length))}function Df(p,C,T,U){if(!Kn(p))return p;C=Wl(C,p);for(var Q=-1,de=C.length,Ce=de-1,we=p;we!=null&&++QQ?0:Q+C),T=T>Q?Q:T,T<0&&(T+=Q),Q=C>T?0:T-C>>>0,C>>>=0;for(var de=ke(Q);++U>>1,Ce=p[de];Ce!==null&&!Zo(Ce)&&(T?Ce<=C:Ce=o){var ze=C?null:iG(p);if(ze)return Cg(ze);Ce=!1,Q=wf,Me=new zs}else Me=C?[]:we;e:for(;++U=U?p:Si(p,C,T)}var aE=NK||function(p){return Hr.clearTimeout(p)};function lE(p,C){if(C)return p.slice();var T=p.length,U=PT?PT(T):new p.constructor(T);return p.copy(U),U}function tS(p){var C=new p.constructor(p.byteLength);return new Ig(C).set(new Ig(p)),C}function qU(p,C){var T=C?tS(p.buffer):p.buffer;return new p.constructor(T,p.byteOffset,p.byteLength)}function ZU(p){var C=new p.constructor(p.source,Xr.exec(p));return C.lastIndex=p.lastIndex,C}function QU(p){return Tf?xn(Tf.call(p)):{}}function sE(p,C){var T=C?tS(p.buffer):p.buffer;return new p.constructor(T,p.byteOffset,p.length)}function cE(p,C){if(p!==C){var T=p!==n,U=p===null,Q=p===p,de=Zo(p),Ce=C!==n,we=C===null,Me=C===C,ze=Zo(C);if(!we&&!ze&&!de&&p>C||de&&Ce&&Me&&!we&&!ze||U&&Ce&&Me||!T&&Me||!Q)return 1;if(!U&&!de&&!ze&&p=we)return Me;var ze=T[U];return Me*(ze=="desc"?-1:1)}}return p.index-C.index}function uE(p,C,T,U){for(var Q=-1,de=p.length,Ce=T.length,we=-1,Me=C.length,ze=Cr(de-Ce,0),je=ke(Me+ze),Ge=!U;++we1?T[Q-1]:n,Ce=Q>2?T[2]:n;for(de=p.length>3&&typeof de=="function"?(Q--,de):n,Ce&&go(T[0],T[1],Ce)&&(de=Q<3?n:de,Q=1),C=xn(C);++U-1?Q[de?C[Ce]:Ce]:n}}function vE(p){return Ga(function(C){var T=C.length,U=T,Q=bi.prototype.thru;for(p&&C.reverse();U--;){var de=C[U];if(typeof de!="function")throw new mi(a);if(Q&&!Ce&&Gg(de)=="wrapper")var Ce=new bi([],!0)}for(U=Ce?U:T;++U1&&sn.reverse(),je&&Mewe))return!1;var ze=de.get(p),je=de.get(C);if(ze&&je)return ze==C&&je==p;var Ge=-1,rt=!0,yt=T&v?new zs:n;for(de.set(p,C),de.set(C,p);++Ge1?"& ":"")+C[U],C=C.join(T>2?", ":" "),p.replace(ut,`{ -/* [wrapped with `+C+`] */ -`)}function gG(p){return Kt(p)||Us(p)||!!(AT&&p&&p[AT])}function Ya(p,C){var T=typeof p;return C=C??L,!!C&&(T=="number"||T!="symbol"&&pa.test(p))&&p>-1&&p%1==0&&p0){if(++C>=N)return arguments[0]}else C=0;return p.apply(n,arguments)}}function Xg(p,C){var T=-1,U=p.length,Q=U-1;for(C=C===n?U:C;++T1?p[C-1]:n;return T=typeof T=="function"?(p.pop(),T):n,zE(p,T)});function jE(p){var C=ce(p);return C.__chain__=!0,C}function OY(p,C){return C(p),p}function qg(p,C){return C(p)}var IY=Ga(function(p){var C=p.length,T=C?p[0]:0,U=this.__wrapped__,Q=function(de){return F1(de,p)};return C>1||this.__actions__.length||!(U instanceof rn)||!Ya(T)?this.thru(Q):(U=U.slice(T,+T+(C?1:0)),U.__actions__.push({func:qg,args:[Q],thisArg:n}),new bi(U,this.__chain__).thru(function(de){return C&&!de.length&&de.push(n),de}))});function PY(){return jE(this)}function TY(){return new bi(this.value(),this.__chain__)}function EY(){this.__values__===n&&(this.__values__=n4(this.value()));var p=this.__index__>=this.__values__.length,C=p?n:this.__values__[this.__index__++];return{done:p,value:C}}function AY(){return this}function MY(p){for(var C,T=this;T instanceof Lg;){var U=LE(T);U.__index__=0,U.__values__=n,C?Q.__wrapped__=U:C=U;var Q=U;T=T.__wrapped__}return Q.__wrapped__=p,C}function RY(){var p=this.__wrapped__;if(p instanceof rn){var C=p;return this.__actions__.length&&(C=new rn(this)),C=C.reverse(),C.__actions__.push({func:qg,args:[pS],thisArg:n}),new bi(C,this.__chain__)}return this.thru(pS)}function DY(){return oE(this.__wrapped__,this.__actions__)}var LY=jg(function(p,C,T){vn.call(p,T)?++p[T]:Ka(p,T,1)});function NY(p,C,T){var U=Kt(p)?mT:OU;return T&&go(p,C,T)&&(C=n),U(p,Tt(C,3))}function kY(p,C){var T=Kt(p)?kl:zT;return T(p,Tt(C,3))}var BY=gE(NE),FY=gE(kE);function HY(p,C){return zr(Zg(p,C),1)}function zY(p,C){return zr(Zg(p,C),k)}function jY(p,C,T){return T=T===n?1:Xt(T),zr(Zg(p,C),T)}function WE(p,C){var T=Kt(p)?vi:zl;return T(p,Tt(C,3))}function VE(p,C){var T=Kt(p)?lK:HT;return T(p,Tt(C,3))}var WY=jg(function(p,C,T){vn.call(p,T)?p[T].push(C):Ka(p,T,[C])});function VY(p,C,T,U){p=Po(p)?p:Ou(p),T=T&&!U?Xt(T):0;var Q=p.length;return T<0&&(T=Cr(Q+T,0)),nv(p)?T<=Q&&p.indexOf(C,T)>-1:!!Q&&hu(p,C,T)>-1}var KY=Jt(function(p,C,T){var U=-1,Q=typeof C=="function",de=Po(p)?ke(p.length):[];return zl(p,function(Ce){de[++U]=Q?Yo(C,Ce,T):Mf(Ce,C,T)}),de}),UY=jg(function(p,C,T){Ka(p,T,C)});function Zg(p,C){var T=Kt(p)?Fn:GT;return T(p,Tt(C,3))}function GY(p,C,T,U){return p==null?[]:(Kt(C)||(C=C==null?[]:[C]),T=U?n:T,Kt(T)||(T=T==null?[]:[T]),ZT(p,C,T))}var YY=jg(function(p,C,T){p[T?0:1].push(C)},function(){return[[],[]]});function XY(p,C,T){var U=Kt(p)?O1:CT,Q=arguments.length<3;return U(p,Tt(C,4),T,Q,zl)}function qY(p,C,T){var U=Kt(p)?sK:CT,Q=arguments.length<3;return U(p,Tt(C,4),T,Q,HT)}function ZY(p,C){var T=Kt(p)?kl:zT;return T(p,ev(Tt(C,3)))}function QY(p){var C=Kt(p)?NT:VU;return C(p)}function JY(p,C,T){(T?go(p,C,T):C===n)?C=1:C=Xt(C);var U=Kt(p)?CU:KU;return U(p,C)}function eX(p){var C=Kt(p)?$U:GU;return C(p)}function tX(p){if(p==null)return 0;if(Po(p))return nv(p)?vu(p):p.length;var C=eo(p);return C==j||C==_e?p.size:K1(p).length}function nX(p,C,T){var U=Kt(p)?I1:YU;return T&&go(p,C,T)&&(C=n),U(p,Tt(C,3))}var rX=Jt(function(p,C){if(p==null)return[];var T=C.length;return T>1&&go(p,C[0],C[1])?C=[]:T>2&&go(C[0],C[1],C[2])&&(C=[C[0]]),ZT(p,zr(C,1),[])}),Qg=kK||function(){return Hr.Date.now()};function oX(p,C){if(typeof C!="function")throw new mi(a);return p=Xt(p),function(){if(--p<1)return C.apply(this,arguments)}}function KE(p,C,T){return C=T?n:C,C=p&&C==null?p.length:C,Ua(p,O,n,n,n,n,C)}function UE(p,C){var T;if(typeof C!="function")throw new mi(a);return p=Xt(p),function(){return--p>0&&(T=C.apply(this,arguments)),p<=1&&(C=n),T}}var gS=Jt(function(p,C,T){var U=y;if(T.length){var Q=Fl(T,wu(gS));U|=w}return Ua(p,U,C,T,Q)}),GE=Jt(function(p,C,T){var U=y|b;if(T.length){var Q=Fl(T,wu(GE));U|=w}return Ua(C,U,p,T,Q)});function YE(p,C,T){C=T?n:C;var U=Ua(p,x,n,n,n,n,n,C);return U.placeholder=YE.placeholder,U}function XE(p,C,T){C=T?n:C;var U=Ua(p,_,n,n,n,n,n,C);return U.placeholder=XE.placeholder,U}function qE(p,C,T){var U,Q,de,Ce,we,Me,ze=0,je=!1,Ge=!1,rt=!0;if(typeof p!="function")throw new mi(a);C=$i(C)||0,Kn(T)&&(je=!!T.leading,Ge="maxWait"in T,de=Ge?Cr($i(T.maxWait)||0,C):de,rt="trailing"in T?!!T.trailing:rt);function yt(ir){var Xi=U,Za=Q;return U=Q=n,ze=ir,Ce=p.apply(Za,Xi),Ce}function Et(ir){return ze=ir,we=kf(tn,C),je?yt(ir):Ce}function Qt(ir){var Xi=ir-Me,Za=ir-ze,g4=C-Xi;return Ge?Jr(g4,de-Za):g4}function At(ir){var Xi=ir-Me,Za=ir-ze;return Me===n||Xi>=C||Xi<0||Ge&&Za>=de}function tn(){var ir=Qg();if(At(ir))return sn(ir);we=kf(tn,Qt(ir))}function sn(ir){return we=n,rt&&U?yt(ir):(U=Q=n,Ce)}function Qo(){we!==n&&aE(we),ze=0,U=Me=Q=we=n}function vo(){return we===n?Ce:sn(Qg())}function Jo(){var ir=Qg(),Xi=At(ir);if(U=arguments,Q=this,Me=ir,Xi){if(we===n)return Et(Me);if(Ge)return aE(we),we=kf(tn,C),yt(Me)}return we===n&&(we=kf(tn,C)),Ce}return Jo.cancel=Qo,Jo.flush=vo,Jo}var iX=Jt(function(p,C){return FT(p,1,C)}),aX=Jt(function(p,C,T){return FT(p,$i(C)||0,T)});function lX(p){return Ua(p,E)}function Jg(p,C){if(typeof p!="function"||C!=null&&typeof C!="function")throw new mi(a);var T=function(){var U=arguments,Q=C?C.apply(this,U):U[0],de=T.cache;if(de.has(Q))return de.get(Q);var Ce=p.apply(this,U);return T.cache=de.set(Q,Ce)||de,Ce};return T.cache=new(Jg.Cache||Va),T}Jg.Cache=Va;function ev(p){if(typeof p!="function")throw new mi(a);return function(){var C=arguments;switch(C.length){case 0:return!p.call(this);case 1:return!p.call(this,C[0]);case 2:return!p.call(this,C[0],C[1]);case 3:return!p.call(this,C[0],C[1],C[2])}return!p.apply(this,C)}}function sX(p){return UE(2,p)}var cX=XU(function(p,C){C=C.length==1&&Kt(C[0])?Fn(C[0],Xo(Tt())):Fn(zr(C,1),Xo(Tt()));var T=C.length;return Jt(function(U){for(var Q=-1,de=Jr(U.length,T);++Q=C}),Us=VT(function(){return arguments}())?VT:function(p){return Xn(p)&&vn.call(p,"callee")&&!ET.call(p,"callee")},Kt=ke.isArray,wX=dT?Xo(dT):MU;function Po(p){return p!=null&&tv(p.length)&&!Xa(p)}function or(p){return Xn(p)&&Po(p)}function _X(p){return p===!0||p===!1||Xn(p)&&ho(p)==fe}var Kl=FK||IS,OX=fT?Xo(fT):RU;function IX(p){return Xn(p)&&p.nodeType===1&&!Bf(p)}function PX(p){if(p==null)return!0;if(Po(p)&&(Kt(p)||typeof p=="string"||typeof p.splice=="function"||Kl(p)||_u(p)||Us(p)))return!p.length;var C=eo(p);if(C==j||C==_e)return!p.size;if(Nf(p))return!K1(p).length;for(var T in p)if(vn.call(p,T))return!1;return!0}function TX(p,C){return Rf(p,C)}function EX(p,C,T){T=typeof T=="function"?T:n;var U=T?T(p,C):n;return U===n?Rf(p,C,n,T):!!U}function mS(p){if(!Xn(p))return!1;var C=ho(p);return C==ue||C==X||typeof p.message=="string"&&typeof p.name=="string"&&!Bf(p)}function AX(p){return typeof p=="number"&&MT(p)}function Xa(p){if(!Kn(p))return!1;var C=ho(p);return C==ye||C==H||C==ee||C==Se}function QE(p){return typeof p=="number"&&p==Xt(p)}function tv(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=L}function Kn(p){var C=typeof p;return p!=null&&(C=="object"||C=="function")}function Xn(p){return p!=null&&typeof p=="object"}var JE=pT?Xo(pT):LU;function MX(p,C){return p===C||V1(p,C,lS(C))}function RX(p,C,T){return T=typeof T=="function"?T:n,V1(p,C,lS(C),T)}function DX(p){return e4(p)&&p!=+p}function LX(p){if(bG(p))throw new Wt(i);return KT(p)}function NX(p){return p===null}function kX(p){return p==null}function e4(p){return typeof p=="number"||Xn(p)&&ho(p)==q}function Bf(p){if(!Xn(p)||ho(p)!=ae)return!1;var C=Pg(p);if(C===null)return!0;var T=vn.call(C,"constructor")&&C.constructor;return typeof T=="function"&&T instanceof T&&wg.call(T)==RK}var bS=hT?Xo(hT):NU;function BX(p){return QE(p)&&p>=-L&&p<=L}var t4=gT?Xo(gT):kU;function nv(p){return typeof p=="string"||!Kt(p)&&Xn(p)&&ho(p)==be}function Zo(p){return typeof p=="symbol"||Xn(p)&&ho(p)==Te}var _u=vT?Xo(vT):BU;function FX(p){return p===n}function HX(p){return Xn(p)&&eo(p)==re}function zX(p){return Xn(p)&&ho(p)==le}var jX=Ug(U1),WX=Ug(function(p,C){return p<=C});function n4(p){if(!p)return[];if(Po(p))return nv(p)?Ui(p):Io(p);if(_f&&p[_f])return CK(p[_f]());var C=eo(p),T=C==j?R1:C==_e?Cg:Ou;return T(p)}function qa(p){if(!p)return p===0?p:0;if(p=$i(p),p===k||p===-k){var C=p<0?-1:1;return C*z}return p===p?p:0}function Xt(p){var C=qa(p),T=C%1;return C===C?T?C-T:C:0}function r4(p){return p?js(Xt(p),0,G):0}function $i(p){if(typeof p=="number")return p;if(Zo(p))return K;if(Kn(p)){var C=typeof p.valueOf=="function"?p.valueOf():p;p=Kn(C)?C+"":C}if(typeof p!="string")return p===0?p:+p;p=$T(p);var T=Cn.test(p);return T||Oo.test(p)?oK(p.slice(2),T?2:8):_o.test(p)?K:+p}function o4(p){return ma(p,To(p))}function VX(p){return p?js(Xt(p),-L,L):p===0?p:0}function hn(p){return p==null?"":qo(p)}var KX=$u(function(p,C){if(Nf(C)||Po(C)){ma(C,Mr(C),p);return}for(var T in C)vn.call(C,T)&&Ef(p,T,C[T])}),i4=$u(function(p,C){ma(C,To(C),p)}),rv=$u(function(p,C,T,U){ma(C,To(C),p,U)}),UX=$u(function(p,C,T,U){ma(C,Mr(C),p,U)}),GX=Ga(F1);function YX(p,C){var T=Cu(p);return C==null?T:kT(T,C)}var XX=Jt(function(p,C){p=xn(p);var T=-1,U=C.length,Q=U>2?C[2]:n;for(Q&&go(C[0],C[1],Q)&&(U=1);++T1),de}),ma(p,iS(p),T),U&&(T=yi(T,d|f|h,aG));for(var Q=C.length;Q--;)Z1(T,C[Q]);return T});function pq(p,C){return l4(p,ev(Tt(C)))}var hq=Ga(function(p,C){return p==null?{}:zU(p,C)});function l4(p,C){if(p==null)return{};var T=Fn(iS(p),function(U){return[U]});return C=Tt(C),QT(p,T,function(U,Q){return C(U,Q[0])})}function gq(p,C,T){C=Wl(C,p);var U=-1,Q=C.length;for(Q||(Q=1,p=n);++UC){var U=p;p=C,C=U}if(T||p%1||C%1){var Q=RT();return Jr(p+Q*(C-p+rK("1e-"+((Q+"").length-1))),C)}return Y1(p,C)}var Oq=xu(function(p,C,T){return C=C.toLowerCase(),p+(T?u4(C):C)});function u4(p){return CS(hn(p).toLowerCase())}function d4(p){return p=hn(p),p&&p.replace(ha,vK).replace(GV,"")}function Iq(p,C,T){p=hn(p),C=qo(C);var U=p.length;T=T===n?U:js(Xt(T),0,U);var Q=T;return T-=C.length,T>=0&&p.slice(T,Q)==C}function Pq(p){return p=hn(p),p&&Gn.test(p)?p.replace(Yt,mK):p}function Tq(p){return p=hn(p),p&&za.test(p)?p.replace(Ar,"\\$&"):p}var Eq=xu(function(p,C,T){return p+(T?"-":"")+C.toLowerCase()}),Aq=xu(function(p,C,T){return p+(T?" ":"")+C.toLowerCase()}),Mq=hE("toLowerCase");function Rq(p,C,T){p=hn(p),C=Xt(C);var U=C?vu(p):0;if(!C||U>=C)return p;var Q=(C-U)/2;return Kg(Mg(Q),T)+p+Kg(Ag(Q),T)}function Dq(p,C,T){p=hn(p),C=Xt(C);var U=C?vu(p):0;return C&&U>>0,T?(p=hn(p),p&&(typeof C=="string"||C!=null&&!bS(C))&&(C=qo(C),!C&&gu(p))?Vl(Ui(p),0,T):p.split(C,T)):[]}var zq=xu(function(p,C,T){return p+(T?" ":"")+CS(C)});function jq(p,C,T){return p=hn(p),T=T==null?0:js(Xt(T),0,p.length),C=qo(C),p.slice(T,T+C.length)==C}function Wq(p,C,T){var U=ce.templateSettings;T&&go(p,C,T)&&(C=n),p=hn(p),C=rv({},C,U,CE);var Q=rv({},C.imports,U.imports,CE),de=Mr(Q),Ce=M1(Q,de),we,Me,ze=0,je=C.interpolate||qr,Ge="__p += '",rt=D1((C.escape||qr).source+"|"+je.source+"|"+(je===br?hi:qr).source+"|"+(C.evaluate||qr).source+"|$","g"),yt="//# sourceURL="+(vn.call(C,"sourceURL")?(C.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++QV+"]")+` -`;p.replace(rt,function(At,tn,sn,Qo,vo,Jo){return sn||(sn=Qo),Ge+=p.slice(ze,Jo).replace(Ll,bK),tn&&(we=!0,Ge+=`' + -__e(`+tn+`) + -'`),vo&&(Me=!0,Ge+=`'; -`+vo+`; -__p += '`),sn&&(Ge+=`' + -((__t = (`+sn+`)) == null ? '' : __t) + -'`),ze=Jo+At.length,At}),Ge+=`'; -`;var Et=vn.call(C,"variable")&&C.variable;if(!Et)Ge=`with (obj) { -`+Ge+` -} -`;else if(Yr.test(Et))throw new Wt(l);Ge=(Me?Ge.replace(xt,""):Ge).replace(Mt,"$1").replace(Ft,"$1;"),Ge="function("+(Et||"obj")+`) { -`+(Et?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(we?", __e = _.escape":"")+(Me?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Ge+`return __p -<<<<<<<< HEAD:app/dubbo-ui/dist/admin/assets/index-rt1yTeew.js -}`;var Qt=p4(function(){return fn(de,yt+"return "+Ge).apply(n,Ce)});if(Qt.source=Ge,mS(Qt))throw Qt;return Qt}function Vq(p){return hn(p).toLowerCase()}function Kq(p){return hn(p).toUpperCase()}function Uq(p,C,T){if(p=hn(p),p&&(T||C===n))return $T(p);if(!p||!(C=qo(C)))return p;var U=Ui(p),Q=Ui(C),de=xT(U,Q),Ce=wT(U,Q)+1;return Vl(U,de,Ce).join("")}function Gq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.slice(0,OT(p)+1);if(!p||!(C=qo(C)))return p;var U=Ui(p),Q=wT(U,Ui(C))+1;return Vl(U,0,Q).join("")}function Yq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.replace(We,"");if(!p||!(C=qo(C)))return p;var U=Ui(p),Q=xT(U,Ui(C));return Vl(U,Q).join("")}function Xq(p,C){var T=R,U=A;if(Kn(C)){var Q="separator"in C?C.separator:Q;T="length"in C?Xt(C.length):T,U="omission"in C?qo(C.omission):U}p=hn(p);var de=p.length;if(gu(p)){var Ce=Ui(p);de=Ce.length}if(T>=de)return p;var we=T-vu(U);if(we<1)return U;var Me=Ce?Vl(Ce,0,we).join(""):p.slice(0,we);if(Q===n)return Me+U;if(Ce&&(we+=Me.length-we),bS(Q)){if(p.slice(we).search(Q)){var ze,je=Me;for(Q.global||(Q=D1(Q.source,hn(Xr.exec(Q))+"g")),Q.lastIndex=0;ze=Q.exec(je);)var Ge=ze.index;Me=Me.slice(0,Ge===n?we:Ge)}}else if(p.indexOf(qo(Q),we)!=we){var rt=Me.lastIndexOf(Q);rt>-1&&(Me=Me.slice(0,rt))}return Me+U}function qq(p){return p=hn(p),p&&Vn.test(p)?p.replace(jt,_K):p}var Zq=xu(function(p,C,T){return p+(T?" ":"")+C.toUpperCase()}),CS=hE("toUpperCase");function f4(p,C,T){return p=hn(p),C=T?n:C,C===n?SK(p)?PK(p):dK(p):p.match(C)||[]}var p4=Jt(function(p,C){try{return Yo(p,n,C)}catch(T){return mS(T)?T:new Wt(T)}}),Qq=Ga(function(p,C){return vi(C,function(T){T=ba(T),Ka(p,T,gS(p[T],p))}),p});function Jq(p){var C=p==null?0:p.length,T=Tt();return p=C?Fn(p,function(U){if(typeof U[1]!="function")throw new mi(a);return[T(U[0]),U[1]]}):[],Jt(function(U){for(var Q=-1;++QL)return[];var T=G,U=Jr(p,G);C=Tt(C),p-=G;for(var Q=A1(U,C);++T0||C<0)?new rn(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),C!==n&&(C=Xt(C),T=C<0?T.dropRight(-C):T.take(C-p)),T)},rn.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},rn.prototype.toArray=function(){return this.take(G)},va(rn.prototype,function(p,C){var T=/^(?:filter|find|map|reject)|While$/.test(C),U=/^(?:head|last)$/.test(C),Q=ce[U?"take"+(C=="last"?"Right":""):C],de=U||/^find/.test(C);Q&&(ce.prototype[C]=function(){var Ce=this.__wrapped__,we=U?[1]:arguments,Me=Ce instanceof rn,ze=we[0],je=Me||Kt(Ce),Ge=function(tn){var sn=Q.apply(ce,Bl([tn],we));return U&&rt?sn[0]:sn};je&&T&&typeof ze=="function"&&ze.length!=1&&(Me=je=!1);var rt=this.__chain__,yt=!!this.__actions__.length,Et=de&&!rt,Qt=Me&&!yt;if(!de&&je){Ce=Qt?Ce:new rn(this);var At=p.apply(Ce,we);return At.__actions__.push({func:qg,args:[Ge],thisArg:n}),new bi(At,rt)}return Et&&Qt?p.apply(this,we):(At=this.thru(Ge),Et?U?At.value()[0]:At.value():At)})}),vi(["pop","push","shift","sort","splice","unshift"],function(p){var C=$g[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",U=/^(?:pop|shift)$/.test(p);ce.prototype[p]=function(){var Q=arguments;if(U&&!this.__chain__){var de=this.value();return C.apply(Kt(de)?de:[],Q)}return this[T](function(Ce){return C.apply(Kt(Ce)?Ce:[],Q)})}}),va(rn.prototype,function(p,C){var T=ce[C];if(T){var U=T.name+"";vn.call(Su,U)||(Su[U]=[]),Su[U].push({name:C,func:T})}}),Su[Wg(n,b).name]=[{name:"wrapper",func:n}],rn.prototype.clone=qK,rn.prototype.reverse=ZK,rn.prototype.value=QK,ce.prototype.at=IY,ce.prototype.chain=PY,ce.prototype.commit=TY,ce.prototype.next=EY,ce.prototype.plant=MY,ce.prototype.reverse=RY,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=DY,ce.prototype.first=ce.prototype.head,_f&&(ce.prototype[_f]=AY),ce},mu=TK();Bs?((Bs.exports=mu)._=mu,x1._=mu):Hr._=mu}).call(Lo)})(tb,tb.exports);var HRe=tb.exports;const Fp=Ba(HRe),zRe="#17b392",Jj="LOCAL_STORAGE_LOCALE",jRe="LOCAL_STORAGE_THEME",WRe=localStorage.getItem(jRe);function VRe(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),r=parseInt(e.substring(4,6),16),[o,i,a]=[t,n,r].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*o+.7152*i+.0722*a>.5?"#131313":"#e3e1e1"}const Oh=he(WRe||zRe),xHe=e=>M(()=>Oh.value+e),wHe=M(()=>VRe(Oh.value)),_He={HEALTHY:"green",REGISTED:"green"},KRe={functional:!0,props:["route"],render:(e,t,n)=>{var a,l,s,c;const r=n.route,o=(l=(a=r.meta)==null?void 0:a.slots)==null?void 0:l.header,i=((s=r.meta)==null?void 0:s.headerParamKey)||"pathId";return Ni(o)||Ni("div",(c=r.params)==null?void 0:c[i])}},OHe={RUNNING:"green",PENDING:"yellow",TERMINATING:"red",CRASHING:"darkRed"},Lu="__PROVIDE_INJECT_KEY_",eW={LAYOUT_ROUTE_KEY:Lu+"LAYOUT_ROUTE_KEY",LOCALE:Lu+"LOCALE",GRAFANA:Lu+"GRAFANA",SEARCH_DOMAIN:Lu+"SEARCH_DOMAIN",COLLAPSED:Lu+"COLLAPSED",TAB_LAYOUT_STATE:Lu+"TAB_LAYOUT_STATE"},URe={class:"__container_router_tab_index"},GRe={key:0,class:"header"},YRe={id:"layout-tab-body",style:{transition:"scroll-top 0.5s ease",overflow:"auto",height:"calc(100vh - 300px)","padding-bottom":"20px"}},XRe=pe({__name:"layout_tab",setup(e){ON(u=>({"7e5c7278":wt(Oh)}));const t=St({});ft(eW.TAB_LAYOUT_STATE,t);const n=kj(),r=Ml();r.meta;const o=M(()=>{var d,f;let u=r.meta;return(f=(d=u==null?void 0:u.parent)==null?void 0:d.children)==null?void 0:f.filter(h=>h.meta.tab)}),i=M(()=>String(r.name||"")+"_"+Fp.uniqueId());let a=he(String(r.name||"")),l=he(!1),s=Fp.uniqueId("__tab_page");function c(u){n.push({name:u,params:r.params,query:r.query})}return n.beforeEach((u,d,f)=>{s=Fp.uniqueId("__tab_page"),l.value=!0,a.value=u.name,f(),setTimeout(()=>{l.value=!1},500)}),(u,d)=>{const f=Nt("a-col"),h=Nt("a-row"),m=Nt("a-tab-pane"),v=Nt("a-tabs"),y=Nt("router-view"),b=Nt("a-spin");return ht(),qt("div",URe,[(ht(),qt("div",{key:wt(s)},[wt(r).meta.tab?(ht(),qt("div",GRe,[g(h,null,{default:bn(()=>[g(f,{span:1},{default:bn(()=>[tt("span",{onClick:d[0]||(d[0]=$=>wt(n).replace(wt(r).meta.back||"../")),style:{float:"left"}},[g(wt(S5),{icon:"material-symbols:keyboard-backspace-rounded",class:"back"})])]),_:1}),g(f,{span:18},{default:bn(()=>[g(wt(KRe),{route:wt(r)},null,8,["route"])]),_:1})]),_:1}),g(v,{onChange:d[1]||(d[1]=$=>c(wt(a))),activeKey:wt(a),"onUpdate:activeKey":d[2]||(d[2]=$=>Wn(a)?a.value=$:a=$)},{default:bn(()=>[(ht(!0),qt(Je,null,Cd(o.value.filter($=>!$.meta.hidden),$=>(ht(),jn(m,{key:$.name},{tab:bn(()=>[tt("span",null,[g(wt(S5),{style:{"margin-bottom":"-2px"},icon:$.meta.icon},null,8,["icon"]),Dr(" "+Pr(u.$t($.name)),1)])]),_:2},1024))),128))]),_:1},8,["activeKey"])])):zn("",!0),g(b,{class:"tab-spin",spinning:wt(l)},{default:bn(()=>[tt("div",YRe,[wt(l)?zn("",!0):(ht(),jn(y,{key:i.value}))])]),_:1},8,["spinning"])]))])}}}),fa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},qi=fa(XRe,[["__scopeId","data-v-a080a530"]]),qRe={class:"__container_AppTabHeaderSlot"},ZRe={class:"header-desc"},QRe=pe({__name:"AppTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",qRe,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",ZRe,Pr(n.$t("applicationDomain.name"))+": "+Pr((a=wt(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),JRe=fa(QRe,[["__scopeId","data-v-d9202124"]]),e5e={class:"__container_ServiceTabHeaderSlot"},t5e={class:"header-desc"},n5e=pe({__name:"ServiceTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{var o;return ht(),qt("div",e5e,[tt("span",t5e,Pr(n.$t("serviceDomain.name"))+": "+Pr((o=wt(t).params)==null?void 0:o.pathId),1)])}}}),r5e=fa(n5e,[["__scopeId","data-v-3de51f62"]]),o5e={class:"__container_AppTabHeaderSlot"},i5e={class:"header-desc"},a5e=pe({__name:"InstanceTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",o5e,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",i5e,Pr(n.$t("instanceDomain.name"))+": "+Pr((a=wt(t).params)==null?void 0:a.name),1)]}),_:1})]),_:1})])}}}),l5e=fa(a5e,[["__scopeId","data-v-0332e378"]]);/*! -======== -}`;var Qt=p4(function(){return fn(de,yt+"return "+Ge).apply(n,Ce)});if(Qt.source=Ge,vS(Qt))throw Qt;return Qt}function Vq(p){return hn(p).toLowerCase()}function Kq(p){return hn(p).toUpperCase()}function Uq(p,C,T){if(p=hn(p),p&&(T||C===n))return $T(p);if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=Ui(C),de=xT(U,Q),Ce=wT(U,Q)+1;return Vl(U,de,Ce).join("")}function Gq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.slice(0,OT(p)+1);if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=wT(U,Ui(C))+1;return Vl(U,0,Q).join("")}function Yq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.replace(We,"");if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=xT(U,Ui(C));return Vl(U,Q).join("")}function Xq(p,C){var T=R,U=A;if(Kn(C)){var Q="separator"in C?C.separator:Q;T="length"in C?Xt(C.length):T,U="omission"in C?qr(C.omission):U}p=hn(p);var de=p.length;if(gu(p)){var Ce=Ui(p);de=Ce.length}if(T>=de)return p;var we=T-vu(U);if(we<1)return U;var Me=Ce?Vl(Ce,0,we).join(""):p.slice(0,we);if(Q===n)return Me+U;if(Ce&&(we+=Me.length-we),mS(Q)){if(p.slice(we).search(Q)){var ze,je=Me;for(Q.global||(Q=R1(Q.source,hn(qo.exec(Q))+"g")),Q.lastIndex=0;ze=Q.exec(je);)var Ge=ze.index;Me=Me.slice(0,Ge===n?we:Ge)}}else if(p.indexOf(qr(Q),we)!=we){var ot=Me.lastIndexOf(Q);ot>-1&&(Me=Me.slice(0,ot))}return Me+U}function qq(p){return p=hn(p),p&&Vn.test(p)?p.replace(jt,_K):p}var Zq=xu(function(p,C,T){return p+(T?" ":"")+C.toUpperCase()}),SS=hE("toUpperCase");function f4(p,C,T){return p=hn(p),C=T?n:C,C===n?SK(p)?PK(p):dK(p):p.match(C)||[]}var p4=Jt(function(p,C){try{return Yr(p,n,C)}catch(T){return vS(T)?T:new Wt(T)}}),Qq=Ga(function(p,C){return vi(C,function(T){T=ba(T),Ka(p,T,hS(p[T],p))}),p});function Jq(p){var C=p==null?0:p.length,T=Tt();return p=C?Fn(p,function(U){if(typeof U[1]!="function")throw new mi(a);return[T(U[0]),U[1]]}):[],Jt(function(U){for(var Q=-1;++QL)return[];var T=G,U=er(p,G);C=Tt(C),p-=G;for(var Q=E1(U,C);++T0||C<0)?new on(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),C!==n&&(C=Xt(C),T=C<0?T.dropRight(-C):T.take(C-p)),T)},on.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},on.prototype.toArray=function(){return this.take(G)},va(on.prototype,function(p,C){var T=/^(?:filter|find|map|reject)|While$/.test(C),U=/^(?:head|last)$/.test(C),Q=ce[U?"take"+(C=="last"?"Right":""):C],de=U||/^find/.test(C);Q&&(ce.prototype[C]=function(){var Ce=this.__wrapped__,we=U?[1]:arguments,Me=Ce instanceof on,ze=we[0],je=Me||Kt(Ce),Ge=function(tn){var sn=Q.apply(ce,Bl([tn],we));return U&&ot?sn[0]:sn};je&&T&&typeof ze=="function"&&ze.length!=1&&(Me=je=!1);var ot=this.__chain__,yt=!!this.__actions__.length,Et=de&&!ot,Qt=Me&&!yt;if(!de&&je){Ce=Qt?Ce:new on(this);var At=p.apply(Ce,we);return At.__actions__.push({func:Xg,args:[Ge],thisArg:n}),new bi(At,ot)}return Et&&Qt?p.apply(this,we):(At=this.thru(Ge),Et?U?At.value()[0]:At.value():At)})}),vi(["pop","push","shift","sort","splice","unshift"],function(p){var C=Cg[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",U=/^(?:pop|shift)$/.test(p);ce.prototype[p]=function(){var Q=arguments;if(U&&!this.__chain__){var de=this.value();return C.apply(Kt(de)?de:[],Q)}return this[T](function(Ce){return C.apply(Kt(Ce)?Ce:[],Q)})}}),va(on.prototype,function(p,C){var T=ce[C];if(T){var U=T.name+"";vn.call(Su,U)||(Su[U]=[]),Su[U].push({name:C,func:T})}}),Su[jg(n,b).name]=[{name:"wrapper",func:n}],on.prototype.clone=qK,on.prototype.reverse=ZK,on.prototype.value=QK,ce.prototype.at=IY,ce.prototype.chain=PY,ce.prototype.commit=TY,ce.prototype.next=EY,ce.prototype.plant=MY,ce.prototype.reverse=RY,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=DY,ce.prototype.first=ce.prototype.head,_f&&(ce.prototype[_f]=AY),ce},mu=TK();Hs?((Hs.exports=mu)._=mu,$1._=mu):Ho._=mu}).call(Lr)})(eb,eb.exports);var HRe=eb.exports;const Fp=Ba(HRe),zRe="#17b392",Jj="LOCAL_STORAGE_LOCALE",jRe="LOCAL_STORAGE_THEME",WRe=localStorage.getItem(jRe);function VRe(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),[r,i,a]=[t,n,o].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*r+.7152*i+.0722*a>.5?"#131313":"#e3e1e1"}const Oh=he(WRe||zRe),_He=e=>M(()=>Oh.value+e),OHe=M(()=>VRe(Oh.value)),IHe={HEALTHY:"green",REGISTED:"green"},KRe={functional:!0,props:["route"],render:(e,t,n)=>{var a,l,s,c;const o=n.route,r=(l=(a=o.meta)==null?void 0:a.slots)==null?void 0:l.header,i=((s=o.meta)==null?void 0:s.headerParamKey)||"pathId";return Ni(r)||Ni("div",(c=o.params)==null?void 0:c[i])}},PHe={RUNNING:"green",PENDING:"yellow",TERMINATING:"red",CRASHING:"darkRed"},Lu="__PROVIDE_INJECT_KEY_",eW={LAYOUT_ROUTE_KEY:Lu+"LAYOUT_ROUTE_KEY",LOCALE:Lu+"LOCALE",GRAFANA:Lu+"GRAFANA",SEARCH_DOMAIN:Lu+"SEARCH_DOMAIN",COLLAPSED:Lu+"COLLAPSED",TAB_LAYOUT_STATE:Lu+"TAB_LAYOUT_STATE"},URe={class:"__container_router_tab_index"},GRe={key:0,class:"header"},YRe={id:"layout-tab-body",style:{transition:"scroll-top 0.5s ease",overflow:"auto",height:"calc(100vh - 300px)","padding-bottom":"20px"}},XRe=pe({__name:"layout_tab",setup(e){ON(c=>({"6b871b3a":It(Oh)}));const t=St({});ft(eW.PROVIDE_INJECT_KEY,t);const n=kj(),o=Ml();o.meta;const r=M(()=>{var u,d;let c=o.meta;return(d=(u=c==null?void 0:c.parent)==null?void 0:u.children)==null?void 0:d.filter(f=>f.meta.tab)}),i=M(()=>o.name+"_"+Fp.uniqueId());let a=he(o.name),l=he(!1),s=Fp.uniqueId("__tab_page");return n.beforeEach((c,u,d)=>{s=Fp.uniqueId("__tab_page"),l.value=!0,a.value=c.name,d(),setTimeout(()=>{l.value=!1},500)}),(c,u)=>{const d=Nt("a-col"),f=Nt("a-row"),h=Nt("a-tab-pane"),m=Nt("a-tabs"),v=Nt("router-view"),y=Nt("a-spin");return ht(),qt("div",URe,[(ht(),qt("div",{key:It(s)},[It(o).meta.tab?(ht(),qt("div",GRe,[g(f,null,{default:bn(()=>[g(d,{span:1},{default:bn(()=>[tt("span",{onClick:u[0]||(u[0]=b=>It(n).replace(It(o).meta.back||"../")),style:{float:"left"}},[g(It(S5),{icon:"material-symbols:keyboard-backspace-rounded",class:"back"})])]),_:1}),g(d,{span:18},{default:bn(()=>[g(It(KRe),{route:It(o)},null,8,["route"])]),_:1})]),_:1}),g(m,{onChange:u[1]||(u[1]=b=>It(n).push({name:It(a)||""})),activeKey:It(a),"onUpdate:activeKey":u[2]||(u[2]=b=>Wn(a)?a.value=b:a=b)},{default:bn(()=>[(ht(!0),qt(Je,null,Cd(r.value.filter(b=>!b.meta.hidden),b=>(ht(),jn(h,{key:b.name},{tab:bn(()=>[tt("span",null,[g(It(S5),{style:{"margin-bottom":"-2px"},icon:b.meta.icon},null,8,["icon"]),Do(" "+Uo(c.$t(b.name)),1)])]),_:2},1024))),128))]),_:1},8,["activeKey"])])):zn("",!0),g(y,{class:"tab-spin",spinning:It(l)},{default:bn(()=>[tt("div",YRe,[It(l)?zn("",!0):(ht(),jn(v,{key:i.value}))])]),_:1},8,["spinning"])]))])}}}),fa=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},qi=fa(XRe,[["__scopeId","data-v-e3c1cda1"]]),qRe={class:"__container_AppTabHeaderSlot"},ZRe={class:"header-desc"},QRe=pe({__name:"AppTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",qRe,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",ZRe,Uo(n.$t("applicationDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),JRe=fa(QRe,[["__scopeId","data-v-d9202124"]]),e5e={class:"__container_ServiceTabHeaderSlot"},t5e={class:"header-desc"},n5e=pe({__name:"ServiceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{var r;return ht(),qt("div",e5e,[tt("span",t5e,Uo(n.$t("serviceDomain.name"))+": "+Uo((r=It(t).params)==null?void 0:r.pathId),1)])}}}),o5e=fa(n5e,[["__scopeId","data-v-3de51f62"]]),r5e={class:"__container_AppTabHeaderSlot"},i5e={class:"header-desc"},a5e=pe({__name:"InstanceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",r5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",i5e,Uo(n.$t("instanceDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.appName),1)]}),_:1})]),_:1})])}}}),l5e=fa(a5e,[["__scopeId","data-v-8402fa49"]]),s5e={},c5e=e=>(Ps("data-v-0f2e35af"),e=e(),Ts(),e),u5e={class:"__container_AppTabHeaderSlot"},d5e=c5e(()=>tt("span",{class:"header-desc"}," 新增条件路由 ",-1));function f5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",u5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[d5e]),_:1})]),_:1})])}const p5e=fa(s5e,[["render",f5e],["__scopeId","data-v-0f2e35af"]]),h5e={class:"__container_AppTabHeaderSlot"},g5e={class:"header-desc"},v5e=pe({__name:"conditionRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",h5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",g5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),m5e=fa(v5e,[["__scopeId","data-v-8b847dc2"]]),b5e={class:"__container_AppTabHeaderSlot"},y5e={class:"header-desc"},S5e=pe({__name:"updateConditionRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",b5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",y5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),C5e=fa(S5e,[["__scopeId","data-v-9e571c17"]]),$5e={},x5e=e=>(Ps("data-v-0f780945"),e=e(),Ts(),e),w5e={class:"__container_AppTabHeaderSlot"},_5e=x5e(()=>tt("span",{class:"header-desc"}," 新增标签路由 ",-1));function O5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",w5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[_5e]),_:1})]),_:1})])}const I5e=fa($5e,[["render",O5e],["__scopeId","data-v-0f780945"]]),P5e={class:"__container_AppTabHeaderSlot"},T5e={class:"header-desc"},E5e=pe({__name:"tagRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",P5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",T5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),A5e=fa(E5e,[["__scopeId","data-v-49f86476"]]),M5e={class:"__container_AppTabHeaderSlot"},R5e={class:"header-desc"},D5e=pe({__name:"updateTagRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",M5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",R5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),L5e=fa(D5e,[["__scopeId","data-v-91777569"]]),N5e={class:"__container_AppTabHeaderSlot"},k5e={class:"header-desc"},B5e=pe({__name:"updateDCTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",N5e,[g(i,null,{default:bn(()=>[g(r,{span:20},{default:bn(()=>{var a,l;return[tt("span",k5e,Uo(((a=It(t).params)==null?void 0:a.isEdit)==="1"?n.$t("dynamicConfigDomain.updateByFormView"):n.$t("dynamicConfigDomain.detailByFormView"))+" "+Uo((l=It(t).params)==null?void 0:l.pathId),1)]}),_:1})]),_:1})])}}}),C5=fa(B5e,[["__scopeId","data-v-4d4ee463"]]),tW=[{path:"/login",name:"Login",component:()=>Ht(()=>import("./Login-y1uh0mPf.js"),__vite__mapDeps([0,1,2,3])),meta:{skip:!0},children:[]},{path:"/",name:"Root",redirect:"/home",component:()=>Ht(()=>import("./index-gIa2WffK.js"),__vite__mapDeps([4,5,2,6,7,1,8])),meta:{skip:!0},children:[{path:"/home",name:"homePage",component:()=>Ht(()=>import("./index-ipGgnE5Q.js"),__vite__mapDeps([9,10,2,11])),meta:{icon:"carbon:web-services-cluster"}},{path:"/resources",name:"resources",meta:{icon:"carbon:web-services-cluster"},children:[{path:"/applications",name:"applications",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:JRe}},children:[{path:"/list",name:"router.resource.app.list",component:()=>Ht(()=>import("./index-97iE2q1l.js"),__vite__mapDeps([12,5,2,13,14,15])),meta:{hidden:!0}},{path:"/detail/:pathId",name:"applicationDomain.detail",component:()=>Ht(()=>import("./detail-Sj1Uzu8p.js"),__vite__mapDeps([16,5,2,17])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/applications/list"}},{path:"/instance/:pathId",name:"applicationDomain.instance",component:()=>Ht(()=>import("./instance-MbyoVFFM.js"),__vite__mapDeps([18,13,14,5,2,19,20,21,22])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/applications/list"}},{path:"/service/:pathId",name:"applicationDomain.service",component:()=>Ht(()=>import("./service--7SgXxRn.js"),__vite__mapDeps([23,10,2,13,14,5,20,24])),meta:{tab:!0,icon:"carbon:web-services-definition",back:"/resources/applications/list"}},{path:"/monitor/:pathId",name:"applicationDomain.monitor",component:()=>Ht(()=>import("./monitor-4MZElxdr.js"),__vite__mapDeps([25,26,27,5,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/applications/list"}},{path:"/tracing/:pathId",name:"applicationDomain.tracing",component:()=>Ht(()=>import("./tracing-0saJ0bye.js"),__vite__mapDeps([28,26,27,5,2])),meta:{tab:!0,icon:"game-icons:digital-trace",back:"/resources/applications/list"}},{path:"/config/:pathId",name:"applicationDomain.config",component:()=>Ht(()=>import("./config-IKkzv5Nb.js"),__vite__mapDeps([29,30,31,5,2,32])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/applications/list"}},{path:"/event/:pathId",name:"applicationDomain.event",component:()=>Ht(()=>import("./event-d_wQc3g_.js"),__vite__mapDeps([33,5,2,34])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/applications/list"}}]},{path:"/instances",name:"instances",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:l5e}},children:[{path:"/list",name:"router.resource.ins.list",component:()=>Ht(()=>import("./index-fwxuMidi.js"),__vite__mapDeps([35,6,2,13,14,20,21,36])),meta:{hidden:!0}},{path:"/detail/:appName/:pathId?",name:"instanceDomain.details",component:()=>Ht(()=>import("./detail-xChLxl9Z.js"),__vite__mapDeps([37,17,6,2,19])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/instances/list",headerParamKey:"appName"}},{path:"/monitor/:pathId/:appName",name:"instanceDomain.monitor",component:()=>Ht(()=>import("./monitor-fKqC9Q7u.js"),__vite__mapDeps([38,26,27,6,2])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/instances/list"}},{path:"/linktracking/:pathId/:appName",name:"instanceDomain.linkTracking",component:()=>Ht(()=>import("./linkTracking-wjZ-ycSv.js"),__vite__mapDeps([39,26,27,6,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/instances/list"}},{path:"/configuration/:pathId/:appName",name:"instanceDomain.configuration",component:()=>Ht(()=>import("./configuration-0U4sObwn.js"),__vite__mapDeps([40,30,31,6,2])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/instances/list"}},{path:"/event/:pathId/:appName",name:"instanceDomain.event",component:()=>Ht(()=>import("./event-hTbHcw_b.js"),__vite__mapDeps([])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/instances/list"}}]},{path:"/services",name:"services",redirect:"list",component:qi,meta:{tab_parent:!0,slots:{header:o5e}},children:[{path:"/list",name:"router.resource.svc.list",component:()=>Ht(()=>import("./search-GCTQci_4.js"),__vite__mapDeps([41,7,2,13,14,20])),meta:{hidden:!0}},{path:"/distribution/:pathId/:group?/:version?",name:"distribution",component:()=>Ht(()=>import("./distribution-iEzIExlH.js"),__vite__mapDeps([42,7,2,13,14,43])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/monitor/:pathId/:group?/:version?",name:"monitor",component:()=>Ht(()=>import("./monitor-LGJ7b0-x.js"),__vite__mapDeps([44,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/tracing/:pathId/:group?/:version?",name:"tracing",component:()=>Ht(()=>import("./tracing-cZerXPwx.js"),__vite__mapDeps([45,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/sceneConfig/:pathId/:group?/:version?",name:"sceneConfig",component:()=>Ht(()=>import("./sceneConfig-Y58Csalf.js"),__vite__mapDeps([46,30,31,7,2,47])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/event/:pathId/:group?/:version?",name:"event",component:()=>Ht(()=>import("./event-LYJunMDL.js"),__vite__mapDeps([48,49])),meta:{tab:!0,hidden:!0,back:"/resources/services/list"}}]}]},{path:"/traffic",name:"trafficManagement",meta:{icon:"eos-icons:cluster-management"},children:[{path:"/routingRule",name:"routingRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:m5e}},children:[{path:"/index",name:"routingRuleIndex",component:()=>Ht(()=>import("./index-u57ZDlZX.js"),__vite__mapDeps([50,51,2,13,14,19,52])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"routingRuleDomain.formView",component:()=>Ht(()=>import("./formView-ULhh7EIP.js"),__vite__mapDeps([53,17,51,2,54])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/yamlview/:ruleName",name:"routingRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-Eh-9j974.js"),__vite__mapDeps([55,56,57,51,2,58])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addRoutingRule",name:"addRoutingRule",component:qi,redirect:"addByFormView",meta:{tab_parent:!0,hidden:!0,slots:{header:p5e}},children:[{path:"/addByFormView",name:"addRoutingRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-Sygk6tZo.js"),__vite__mapDeps([59,17,51,2,60])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYamlView",name:"addRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-dNFM9Bbo.js"),__vite__mapDeps([61,56,57,51,2,62])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateRoutingRule",name:"updateRoutingRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:C5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateRoutingRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-TnmABeBc.js"),__vite__mapDeps([63,17,51,2,64])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-m-m8wK4x.js"),__vite__mapDeps([65,56,57,51,2,66])),meta:{tab:!0}}]},{path:"/tagRule",name:"tagRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:A5e}},children:[{path:"/index",name:"tagRuleIndex",component:()=>Ht(()=>import("./index-ecPHe_YS.js"),__vite__mapDeps([67,51,2,13,14,19,68])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"tagRuleDomain.formView",component:()=>Ht(()=>import("./formView-lbEY3Kt0.js"),__vite__mapDeps([69,17,51,2,70])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/tagRule"}},{path:"/yamlview/:ruleName",name:"tagRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-ket2Aor6.js"),__vite__mapDeps([71,56,57,51,2,72])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addTagRule",name:"addTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:I5e}},children:[{path:"/addByFormView",name:"addTagRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-gV28VMNn.js"),__vite__mapDeps([73,17,51,2,74])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYAMLView",name:"addTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-nV9s5qhd.js"),__vite__mapDeps([75,56,57,51,2,76])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateTagRule",name:"updateTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:L5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateTagRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-fQCTRCAj.js"),__vite__mapDeps([77,17,51,2,78])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-ywfb5iZ3.js"),__vite__mapDeps([79,56,57,51,2,80])),meta:{tab:!0}}]},{path:"/dynamicConfig",name:"dynamicConfig",redirect:"index",component:qi,meta:{tab_parent:!0},children:[{path:"/index",name:"dynamicConfigIndex",component:()=>Ht(()=>import("./index-KY4IGAgX.js"),__vite__mapDeps([81,51,2,13,14,82])),meta:{hidden:!0}},{path:"/formview/:pathId/:isEdit",name:"dynamicConfigDomain.formView",component:()=>Ht(()=>import("./formView-IcrDVJjl.js"),__vite__mapDeps([83,17,51,2,84,85])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/dynamicConfig",slots:{header:C5}}},{path:"/yamlview/:pathId/:isEdit",name:"dynamicConfigDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-RC29bqZr.js"),__vite__mapDeps([86,56,57,51,2,84,87])),meta:{tab:!0,icon:"oui:app-console",back:"/traffic/dynamicConfig",slots:{header:C5}}}]}]},{path:"/common",name:"commonDemo",redirect:"tab",meta:{hidden:!0,icon:"tdesign:play-demo"},children:[{path:"/tab",name:"tabDemo",component:qi,redirect:"index",meta:{tab_parent:!0},children:[{path:"/index",name:"tab_demo_index",component:()=>Ht(()=>import("./index-1IoRy9d1.js"),__vite__mapDeps([])),meta:{hidden:!0}},{path:"/tab1/:pathId",name:"tab1",component:()=>Ht(()=>import("./tab1-nSfouRTr.js"),__vite__mapDeps([])),meta:{icon:"simple-icons:podman",tab:!0}},{path:"/tab2/:pathId",name:"tab2",component:()=>Ht(()=>import("./tab2-18LtHGi3.js"),__vite__mapDeps([])),meta:{icon:"fontisto:docker",tab:!0}}]},{path:"/placeholder",name:"placeholder_demo",component:()=>Ht(()=>import("./index-nYQ6FtL1.js"),__vite__mapDeps([])),meta:{}}]}]},{path:"/:catchAll(.*)",name:"notFound",component:()=>Ht(()=>import("./notFound-mUOXRXmj.js"),__vite__mapDeps([88,89])),meta:{skip:!0}}];function $5(...e){return e.join("/").replace(/\/+/g,"/")}function nW(e,t){if(e)for(const n of e)t&&(n.path=$5(t==null?void 0:t.path,n.path)),n.redirect&&(n.redirect=$5(n.path,n.redirect||"")),n.meta?(n.meta._router_key=Fp.uniqueId("__router_key"),n.meta.parent=t,n.meta.skip=n.meta.skip===!0):n.meta={_router_key:Fp.uniqueId("__router_key"),skip:!1},nW(n.children,n)}nW(tW,void 0);const F5e={history:e8e("/admin"),routes:tW},oW=k8e(F5e),H5e={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},z5e=H5e,j5e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},rW=j5e,iW={lang:S({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},z5e),timePickerLocale:S({},rW)};iW.lang.ok="确定";const x5=iW,oi="${label}不是一个有效的${type}",W5e={locale:"zh-cn",Pagination:zH,DatePicker:x5,TimePicker:rW,Calendar:x5,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:oi,method:oi,array:oi,object:oi,number:oi,date:oi,boolean:oi,integer:oi,float:oi,regexp:oi,email:oi,url:oi,hex:oi},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},V5e=W5e;var aW={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Lr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var D=["th","st","nd","rd"],B=W%100;return"["+W+(D[(B-20)%10]||D[B]||D[0])+"]"}},x=function(W,D,B){var k=String(W);return!k||k.length>=D?W:""+Array(D+1-k.length).join(B)+W},_={s:x,z:function(W){var D=-W.utcOffset(),B=Math.abs(D),k=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function W(D,B){if(D.date()1)return W(K[0])}else{var G=D.name;I[G]=D,L=G}return!k&&L&&(w=L),L||!k&&w},R=function(W,D){if(P(W))return W.clone();var B=typeof D=="object"?D:{};return B.date=W,B.args=arguments,new N(B)},A=_;A.l=E,A.i=P,A.w=function(W,D){return R(W,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=function(){function W(B){this.$L=E(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[O]=!0}var D=W.prototype;return D.parse=function(B){this.$d=function(k){var L=k.date,z=k.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(y);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return z?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==v},D.isSame=function(B,k){var L=R(B);return this.startOf(k)<=L&&L<=this.endOf(k)},D.isAfter=function(B,k){return R(B)>>>>>>> 6e7aa5e (refactor: config refactor; fix: fix console bugs):app/dubbo-ui/dist/admin/assets/index-JtaswhjV.js - * shared v9.9.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const nb=typeof window<"u",Ms=(e,t=!1)=>t?Symbol.for(e):Symbol(e),s5e=(e,t,n)=>c5e({l:e,k:t,s:n}),c5e=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wr=e=>typeof e=="number"&&isFinite(e),u5e=e=>nW(e)==="[object Date]",ws=e=>nW(e)==="[object RegExp]",a1=e=>zt(e)&&Object.keys(e).length===0,Kr=Object.assign;let C5;const fl=()=>C5||(C5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $5(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const d5e=Object.prototype.hasOwnProperty;function rb(e,t){return d5e.call(e,t)}const Rn=Array.isArray,Pn=e=>typeof e=="function",at=e=>typeof e=="string",en=e=>typeof e=="boolean",gn=e=>e!==null&&typeof e=="object",f5e=e=>gn(e)&&Pn(e.then)&&Pn(e.catch),tW=Object.prototype.toString,nW=e=>tW.call(e),zt=e=>{if(!gn(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},p5e=e=>e==null?"":Rn(e)||zt(e)&&e.toString===tW?JSON.stringify(e,null,2):String(e);function h5e(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}function mP(e){let t=e;return()=>++t}function g5e(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Yv=e=>!gn(e)||Rn(e);function Xm(e,t){if(Yv(e)||Yv(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{Yv(r[i])||Yv(o[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]})})}}/*! - * message-compiler v9.9.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function v5e(e,t,n){return{line:e,column:t,offset:n}}function Ew(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const m5e=/\{([0-9a-zA-Z]+)\}/g;function b5e(e,...t){return t.length===1&&y5e(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(m5e,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const rW=Object.assign,x5=e=>typeof e=="string",y5e=e=>e!==null&&typeof e=="object";function oW(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const Dt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},S5e={[Dt.EXPECTED_TOKEN]:"Expected token: '{0}'",[Dt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Dt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Dt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Dt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Dt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Dt.EMPTY_PLACEHOLDER]:"Empty placeholder",[Dt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Dt.INVALID_LINKED_FORMAT]:"Invalid linked format",[Dt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Dt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Dt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Dt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Dt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Dt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function gf(e,t,n={}){const{domain:r,messages:o,args:i}=n,a=b5e((o||S5e)[e]||"",...i||[]),l=new SyntaxError(String(a));return l.code=e,t&&(l.location=t),l.domain=r,l}function C5e(e){throw e}const nl=" ",$5e="\r",bo=` -`,x5e="\u2028",w5e="\u2029";function _5e(e){const t=e;let n=0,r=1,o=1,i=0;const a=O=>t[O]===$5e&&t[O+1]===bo,l=O=>t[O]===bo,s=O=>t[O]===w5e,c=O=>t[O]===x5e,u=O=>a(O)||l(O)||s(O)||c(O),d=()=>n,f=()=>r,h=()=>o,m=()=>i,v=O=>a(O)||s(O)||c(O)?bo:t[O],y=()=>v(n),b=()=>v(n+i);function $(){return i=0,u(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}function x(){return a(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,o=1,i=0}function w(O=0){i=O}function I(){const O=n+i;for(;O!==n;)$();i=0}return{index:d,line:f,column:h,peekOffset:m,charAt:v,currentChar:y,currentPeek:b,next:$,peek:x,reset:_,resetPeek:w,skipToPeek:I}}const ql=void 0,O5e=".",w5="'",I5e="tokenizer";function P5e(e,t={}){const n=t.location!==!1,r=_5e(e),o=()=>r.index(),i=()=>v5e(r.line(),r.column(),r.index()),a=i(),l=o(),s={currentType:14,offset:l,startLoc:a,endLoc:a,lastType:14,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>s,{onError:u}=t;function d(H,j,q,...se){const ae=c();if(j.column+=q,j.offset+=q,u){const ge=n?Ew(ae.startLoc,j):null,Se=gf(H,ge,{domain:I5e,args:se});u(Se)}}function f(H,j,q){H.endLoc=i(),H.currentType=j;const se={type:j};return n&&(se.loc=Ew(H.startLoc,H.endLoc)),q!=null&&(se.value=q),se}const h=H=>f(H,14);function m(H,j){return H.currentChar()===j?(H.next(),j):(d(Dt.EXPECTED_TOKEN,i(),0,j),"")}function v(H){let j="";for(;H.currentPeek()===nl||H.currentPeek()===bo;)j+=H.currentPeek(),H.peek();return j}function y(H){const j=v(H);return H.skipToPeek(),j}function b(H){if(H===ql)return!1;const j=H.charCodeAt(0);return j>=97&&j<=122||j>=65&&j<=90||j===95}function $(H){if(H===ql)return!1;const j=H.charCodeAt(0);return j>=48&&j<=57}function x(H,j){const{currentType:q}=j;if(q!==2)return!1;v(H);const se=b(H.currentPeek());return H.resetPeek(),se}function _(H,j){const{currentType:q}=j;if(q!==2)return!1;v(H);const se=H.currentPeek()==="-"?H.peek():H.currentPeek(),ae=$(se);return H.resetPeek(),ae}function w(H,j){const{currentType:q}=j;if(q!==2)return!1;v(H);const se=H.currentPeek()===w5;return H.resetPeek(),se}function I(H,j){const{currentType:q}=j;if(q!==8)return!1;v(H);const se=H.currentPeek()===".";return H.resetPeek(),se}function O(H,j){const{currentType:q}=j;if(q!==9)return!1;v(H);const se=b(H.currentPeek());return H.resetPeek(),se}function P(H,j){const{currentType:q}=j;if(!(q===8||q===12))return!1;v(H);const se=H.currentPeek()===":";return H.resetPeek(),se}function E(H,j){const{currentType:q}=j;if(q!==10)return!1;const se=()=>{const ge=H.currentPeek();return ge==="{"?b(H.peek()):ge==="@"||ge==="%"||ge==="|"||ge===":"||ge==="."||ge===nl||!ge?!1:ge===bo?(H.peek(),se()):b(ge)},ae=se();return H.resetPeek(),ae}function R(H){v(H);const j=H.currentPeek()==="|";return H.resetPeek(),j}function A(H){const j=v(H),q=H.currentPeek()==="%"&&H.peek()==="{";return H.resetPeek(),{isModulo:q,hasSpace:j.length>0}}function N(H,j=!0){const q=(ae=!1,ge="",Se=!1)=>{const $e=H.currentPeek();return $e==="{"?ge==="%"?!1:ae:$e==="@"||!$e?ge==="%"?!0:ae:$e==="%"?(H.peek(),q(ae,"%",!0)):$e==="|"?ge==="%"||Se?!0:!(ge===nl||ge===bo):$e===nl?(H.peek(),q(!0,nl,Se)):$e===bo?(H.peek(),q(!0,bo,Se)):!0},se=q();return j&&H.resetPeek(),se}function F(H,j){const q=H.currentChar();return q===ql?ql:j(q)?(H.next(),q):null}function W(H){return F(H,q=>{const se=q.charCodeAt(0);return se>=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===95||se===36})}function D(H){return F(H,q=>{const se=q.charCodeAt(0);return se>=48&&se<=57})}function B(H){return F(H,q=>{const se=q.charCodeAt(0);return se>=48&&se<=57||se>=65&&se<=70||se>=97&&se<=102})}function k(H){let j="",q="";for(;j=D(H);)q+=j;return q}function L(H){y(H);const j=H.currentChar();return j!=="%"&&d(Dt.EXPECTED_TOKEN,i(),0,j),H.next(),"%"}function z(H){let j="";for(;;){const q=H.currentChar();if(q==="{"||q==="}"||q==="@"||q==="|"||!q)break;if(q==="%")if(N(H))j+=q,H.next();else break;else if(q===nl||q===bo)if(N(H))j+=q,H.next();else{if(R(H))break;j+=q,H.next()}else j+=q,H.next()}return j}function K(H){y(H);let j="",q="";for(;j=W(H);)q+=j;return H.currentChar()===ql&&d(Dt.UNTERMINATED_CLOSING_BRACE,i(),0),q}function G(H){y(H);let j="";return H.currentChar()==="-"?(H.next(),j+=`-${k(H)}`):j+=k(H),H.currentChar()===ql&&d(Dt.UNTERMINATED_CLOSING_BRACE,i(),0),j}function Y(H){y(H),m(H,"'");let j="",q="";const se=ge=>ge!==w5&&ge!==bo;for(;j=F(H,se);)j==="\\"?q+=ne(H):q+=j;const ae=H.currentChar();return ae===bo||ae===ql?(d(Dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ae===bo&&(H.next(),m(H,"'")),q):(m(H,"'"),q)}function ne(H){const j=H.currentChar();switch(j){case"\\":case"'":return H.next(),`\\${j}`;case"u":return oe(H,j,4);case"U":return oe(H,j,6);default:return d(Dt.UNKNOWN_ESCAPE_SEQUENCE,i(),0,j),""}}function oe(H,j,q){m(H,j);let se="";for(let ae=0;aeae!=="{"&&ae!=="}"&&ae!==nl&&ae!==bo;for(;j=F(H,se);)q+=j;return q}function te(H){let j="",q="";for(;j=W(H);)q+=j;return q}function ee(H){const j=(q=!1,se)=>{const ae=H.currentChar();return ae==="{"||ae==="%"||ae==="@"||ae==="|"||ae==="("||ae===")"||!ae||ae===nl?se:ae===bo||ae===O5e?(se+=ae,H.next(),j(q,se)):(se+=ae,H.next(),j(!0,se))};return j(!1,"")}function fe(H){y(H);const j=m(H,"|");return y(H),j}function ie(H,j){let q=null;switch(H.currentChar()){case"{":return j.braceNest>=1&&d(Dt.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),H.next(),q=f(j,2,"{"),y(H),j.braceNest++,q;case"}":return j.braceNest>0&&j.currentType===2&&d(Dt.EMPTY_PLACEHOLDER,i(),0),H.next(),q=f(j,3,"}"),j.braceNest--,j.braceNest>0&&y(H),j.inLinked&&j.braceNest===0&&(j.inLinked=!1),q;case"@":return j.braceNest>0&&d(Dt.UNTERMINATED_CLOSING_BRACE,i(),0),q=X(H,j)||h(j),j.braceNest=0,q;default:let ae=!0,ge=!0,Se=!0;if(R(H))return j.braceNest>0&&d(Dt.UNTERMINATED_CLOSING_BRACE,i(),0),q=f(j,1,fe(H)),j.braceNest=0,j.inLinked=!1,q;if(j.braceNest>0&&(j.currentType===5||j.currentType===6||j.currentType===7))return d(Dt.UNTERMINATED_CLOSING_BRACE,i(),0),j.braceNest=0,ue(H,j);if(ae=x(H,j))return q=f(j,5,K(H)),y(H),q;if(ge=_(H,j))return q=f(j,6,G(H)),y(H),q;if(Se=w(H,j))return q=f(j,7,Y(H)),y(H),q;if(!ae&&!ge&&!Se)return q=f(j,13,J(H)),d(Dt.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,q.value),y(H),q;break}return q}function X(H,j){const{currentType:q}=j;let se=null;const ae=H.currentChar();switch((q===8||q===9||q===12||q===10)&&(ae===bo||ae===nl)&&d(Dt.INVALID_LINKED_FORMAT,i(),0),ae){case"@":return H.next(),se=f(j,8,"@"),j.inLinked=!0,se;case".":return y(H),H.next(),f(j,9,".");case":":return y(H),H.next(),f(j,10,":");default:return R(H)?(se=f(j,1,fe(H)),j.braceNest=0,j.inLinked=!1,se):I(H,j)||P(H,j)?(y(H),X(H,j)):O(H,j)?(y(H),f(j,12,te(H))):E(H,j)?(y(H),ae==="{"?ie(H,j)||se:f(j,11,ee(H))):(q===8&&d(Dt.INVALID_LINKED_FORMAT,i(),0),j.braceNest=0,j.inLinked=!1,ue(H,j))}}function ue(H,j){let q={type:14};if(j.braceNest>0)return ie(H,j)||h(j);if(j.inLinked)return X(H,j)||h(j);switch(H.currentChar()){case"{":return ie(H,j)||h(j);case"}":return d(Dt.UNBALANCED_CLOSING_BRACE,i(),0),H.next(),f(j,3,"}");case"@":return X(H,j)||h(j);default:if(R(H))return q=f(j,1,fe(H)),j.braceNest=0,j.inLinked=!1,q;const{isModulo:ae,hasSpace:ge}=A(H);if(ae)return ge?f(j,0,z(H)):f(j,4,L(H));if(N(H))return f(j,0,z(H));break}return q}function ye(){const{currentType:H,offset:j,startLoc:q,endLoc:se}=s;return s.lastType=H,s.lastOffset=j,s.lastStartLoc=q,s.lastEndLoc=se,s.offset=o(),s.startLoc=i(),r.currentChar()===ql?f(s,14):ue(r,s)}return{nextToken:ye,currentOffset:o,currentPosition:i,context:c}}const T5e="parser",E5e=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function A5e(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function M5e(e={}){const t=e.location!==!1,{onError:n}=e;function r(b,$,x,_,...w){const I=b.currentPosition();if(I.offset+=_,I.column+=_,n){const O=t?Ew(x,I):null,P=gf($,O,{domain:T5e,args:w});n(P)}}function o(b,$,x){const _={type:b};return t&&(_.start=$,_.end=$,_.loc={start:x,end:x}),_}function i(b,$,x,_){_&&(b.type=_),t&&(b.end=$,b.loc&&(b.loc.end=x))}function a(b,$){const x=b.context(),_=o(3,x.offset,x.startLoc);return _.value=$,i(_,b.currentOffset(),b.currentPosition()),_}function l(b,$){const x=b.context(),{lastOffset:_,lastStartLoc:w}=x,I=o(5,_,w);return I.index=parseInt($,10),b.nextToken(),i(I,b.currentOffset(),b.currentPosition()),I}function s(b,$){const x=b.context(),{lastOffset:_,lastStartLoc:w}=x,I=o(4,_,w);return I.key=$,b.nextToken(),i(I,b.currentOffset(),b.currentPosition()),I}function c(b,$){const x=b.context(),{lastOffset:_,lastStartLoc:w}=x,I=o(9,_,w);return I.value=$.replace(E5e,A5e),b.nextToken(),i(I,b.currentOffset(),b.currentPosition()),I}function u(b){const $=b.nextToken(),x=b.context(),{lastOffset:_,lastStartLoc:w}=x,I=o(8,_,w);return $.type!==12?(r(b,Dt.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),I.value="",i(I,_,w),{nextConsumeToken:$,node:I}):($.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Sa($)),I.value=$.value||"",i(I,b.currentOffset(),b.currentPosition()),{node:I})}function d(b,$){const x=b.context(),_=o(7,x.offset,x.startLoc);return _.value=$,i(_,b.currentOffset(),b.currentPosition()),_}function f(b){const $=b.context(),x=o(6,$.offset,$.startLoc);let _=b.nextToken();if(_.type===9){const w=u(b);x.modifier=w.node,_=w.nextConsumeToken||b.nextToken()}switch(_.type!==10&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(_)),_=b.nextToken(),_.type===2&&(_=b.nextToken()),_.type){case 11:_.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(_)),x.key=d(b,_.value||"");break;case 5:_.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(_)),x.key=s(b,_.value||"");break;case 6:_.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(_)),x.key=l(b,_.value||"");break;case 7:_.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(_)),x.key=c(b,_.value||"");break;default:r(b,Dt.UNEXPECTED_EMPTY_LINKED_KEY,$.lastStartLoc,0);const w=b.context(),I=o(7,w.offset,w.startLoc);return I.value="",i(I,w.offset,w.startLoc),x.key=I,i(x,w.offset,w.startLoc),{nextConsumeToken:_,node:x}}return i(x,b.currentOffset(),b.currentPosition()),{node:x}}function h(b){const $=b.context(),x=$.currentType===1?b.currentOffset():$.offset,_=$.currentType===1?$.endLoc:$.startLoc,w=o(2,x,_);w.items=[];let I=null;do{const E=I||b.nextToken();switch(I=null,E.type){case 0:E.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(E)),w.items.push(a(b,E.value||""));break;case 6:E.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(E)),w.items.push(l(b,E.value||""));break;case 5:E.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(E)),w.items.push(s(b,E.value||""));break;case 7:E.value==null&&r(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Sa(E)),w.items.push(c(b,E.value||""));break;case 8:const R=f(b);w.items.push(R.node),I=R.nextConsumeToken||null;break}}while($.currentType!==14&&$.currentType!==1);const O=$.currentType===1?$.lastOffset:b.currentOffset(),P=$.currentType===1?$.lastEndLoc:b.currentPosition();return i(w,O,P),w}function m(b,$,x,_){const w=b.context();let I=_.items.length===0;const O=o(1,$,x);O.cases=[],O.cases.push(_);do{const P=h(b);I||(I=P.items.length===0),O.cases.push(P)}while(w.currentType!==14);return I&&r(b,Dt.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),i(O,b.currentOffset(),b.currentPosition()),O}function v(b){const $=b.context(),{offset:x,startLoc:_}=$,w=h(b);return $.currentType===14?w:m(b,x,_,w)}function y(b){const $=P5e(b,rW({},e)),x=$.context(),_=o(0,x.offset,x.startLoc);return t&&_.loc&&(_.loc.source=b),_.body=v($),e.onCacheKey&&(_.cacheKey=e.onCacheKey(b)),x.currentType!==14&&r($,Dt.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,b[x.offset]||""),i(_,$.currentOffset(),$.currentPosition()),_}return{parse:y}}function Sa(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function R5e(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function _5(e,t){for(let n=0;nO5(n)),e}function O5(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;nl;function c(y,b){l.code+=y}function u(y,b=!0){const $=b?o:"";c(i?$+" ".repeat(y):$)}function d(y=!0){const b=++l.indentLevel;y&&u(b)}function f(y=!0){const b=--l.indentLevel;y&&u(b)}function h(){u(l.indentLevel)}return{context:s,push:c,indent:d,deindent:f,newline:h,helper:y=>`_${y}`,needIndent:()=>l.needIndent}}function F5e(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Fd(e,t.key),t.modifier?(e.push(", "),Fd(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function H5e(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let i=0;i{const n=x5(t.mode)?t.mode:"normal",r=x5(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,a=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],s=B5e(e,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:a});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(a),l.length>0&&(s.push(`const { ${oW(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),Fd(s,e),s.deindent(a),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function V5e(e,t={}){const n=rW({},t),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,l=M5e(n).parse(e);return r?(i&&L5e(l),o&&Yu(l),{ast:l,code:""}):(D5e(l,n),W5e(l,n))}/*! - * core-base v9.9.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function K5e(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(fl().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(fl().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(fl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Rs=[];Rs[0]={w:[0],i:[3,0],"[":[4],o:[7]};Rs[1]={w:[1],".":[2],"[":[4],o:[7]};Rs[2]={w:[2],i:[3,0],0:[3,0]};Rs[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Rs[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Rs[5]={"'":[4,0],o:8,l:[5,0]};Rs[6]={'"':[4,0],o:8,l:[6,0]};const U5e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function G5e(e){return U5e.test(e)}function Y5e(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function X5e(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function q5e(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:G5e(t)?Y5e(t):"*"+t}function Z5e(e){const t=[];let n=-1,r=0,o=0,i,a,l,s,c,u,d;const f=[];f[0]=()=>{a===void 0?a=l:a+=l},f[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,r=4,f[0]();else{if(o=0,a===void 0||(a=q5e(a),a===!1))return!1;f[1]()}};function h(){const m=e[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,l="\\"+m,f[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(s=X5e(i),d=Rs[r],c=d[s]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(l=i,u()===!1))))return;if(r===7)return t}}const I5=new Map;function Q5e(e,t){return gn(e)?e[t]:null}function J5e(e,t){if(!gn(e))return null;let n=I5.get(t);if(n||(n=Z5e(t),n&&I5.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;ie,tDe=e=>"",nDe="text",rDe=e=>e.length===0?"":h5e(e),oDe=p5e;function P5(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function iDe(e){const t=wr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wr(e.named.count)||wr(e.named.n))?wr(e.named.count)?e.named.count:wr(e.named.n)?e.named.n:t:t}function aDe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function lDe(e={}){const t=e.locale,n=iDe(e),r=gn(e.pluralRules)&&at(t)&&Pn(e.pluralRules[t])?e.pluralRules[t]:P5,o=gn(e.pluralRules)&&at(t)&&Pn(e.pluralRules[t])?P5:void 0,i=b=>b[r(n,b.length,o)],a=e.list||[],l=b=>a[b],s=e.named||{};wr(e.pluralIndex)&&aDe(n,s);const c=b=>s[b];function u(b){const $=Pn(e.messages)?e.messages(b):gn(e.messages)?e.messages[b]:!1;return $||(e.parent?e.parent.message(b):tDe)}const d=b=>e.modifiers?e.modifiers[b]:eDe,f=zt(e.processor)&&Pn(e.processor.normalize)?e.processor.normalize:rDe,h=zt(e.processor)&&Pn(e.processor.interpolate)?e.processor.interpolate:oDe,m=zt(e.processor)&&at(e.processor.type)?e.processor.type:nDe,y={list:l,named:c,plural:i,linked:(b,...$)=>{const[x,_]=$;let w="text",I="";$.length===1?gn(x)?(I=x.modifier||I,w=x.type||w):at(x)&&(I=x||I):$.length===2&&(at(x)&&(I=x||I),at(_)&&(w=_||w));const O=u(b)(y),P=w==="vnode"&&Rn(O)&&I?O[0]:O;return I?d(I)(P,w):P},message:u,type:m,interpolate:h,normalize:f,values:Kr({},a,s)};return y}let Ih=null;function sDe(e){Ih=e}function cDe(e,t,n){Ih&&Ih.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const uDe=dDe("function:translate");function dDe(e){return t=>Ih&&Ih.emit(e,t)}const fDe={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},iW=Dt.__EXTEND_POINT__,nc=mP(iW),ta={INVALID_ARGUMENT:iW,INVALID_DATE_ARGUMENT:nc(),INVALID_ISO_DATE_ARGUMENT:nc(),NOT_SUPPORT_NON_STRING_MESSAGE:nc(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:nc(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:nc(),NOT_SUPPORT_LOCALE_TYPE:nc(),__EXTEND_POINT__:nc()};function Pa(e){return gf(e,null,void 0)}function yP(e,t){return t.locale!=null?T5(t.locale):T5(e.locale)}let l$;function T5(e){if(at(e))return e;if(Pn(e)){if(e.resolvedOnce&&l$!=null)return l$;if(e.constructor.name==="Function"){const t=e();if(f5e(t))throw Pa(ta.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return l$=t}else throw Pa(ta.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Pa(ta.NOT_SUPPORT_LOCALE_TYPE)}function pDe(e,t,n){return[...new Set([n,...Rn(t)?t:gn(t)?Object.keys(t):at(t)?[t]:[n]])]}function aW(e,t,n){const r=at(n)?n:Hd,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let a=[n];for(;Rn(a);)a=E5(i,a,t);const l=Rn(t)||!zt(t)?t:t.default?t.default:null;a=at(l)?[l]:l,Rn(a)&&E5(i,a,!1),o.__localeChainCache.set(r,i)}return i}function E5(e,t,n){let r=!0;for(let o=0;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function mDe(){return{upper:(e,t)=>t==="text"&&at(e)?e.toUpperCase():t==="vnode"&&gn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&at(e)?e.toLowerCase():t==="vnode"&&gn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&at(e)?M5(e):t==="vnode"&&gn(e)&&"__v_isVNode"in e?M5(e.children):e}}let lW;function R5(e){lW=e}let sW;function bDe(e){sW=e}let cW;function yDe(e){cW=e}let uW=null;const SDe=e=>{uW=e},CDe=()=>uW;let dW=null;const D5=e=>{dW=e},$De=()=>dW;let L5=0;function xDe(e={}){const t=Pn(e.onWarn)?e.onWarn:g5e,n=at(e.version)?e.version:vDe,r=at(e.locale)||Pn(e.locale)?e.locale:Hd,o=Pn(r)?Hd:r,i=Rn(e.fallbackLocale)||zt(e.fallbackLocale)||at(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,a=zt(e.messages)?e.messages:{[o]:{}},l=zt(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},s=zt(e.numberFormats)?e.numberFormats:{[o]:{}},c=Kr({},e.modifiers||{},mDe()),u=e.pluralRules||{},d=Pn(e.missing)?e.missing:null,f=en(e.missingWarn)||ws(e.missingWarn)?e.missingWarn:!0,h=en(e.fallbackWarn)||ws(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,v=!!e.unresolving,y=Pn(e.postTranslation)?e.postTranslation:null,b=zt(e.processor)?e.processor:null,$=en(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter,_=Pn(e.messageCompiler)?e.messageCompiler:lW,w=Pn(e.messageResolver)?e.messageResolver:sW||Q5e,I=Pn(e.localeFallbacker)?e.localeFallbacker:cW||pDe,O=gn(e.fallbackContext)?e.fallbackContext:void 0,P=e,E=gn(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,R=gn(P.__numberFormatters)?P.__numberFormatters:new Map,A=gn(P.__meta)?P.__meta:{};L5++;const N={version:n,cid:L5,locale:r,fallbackLocale:i,messages:a,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:m,unresolving:v,postTranslation:y,processor:b,warnHtmlMessage:$,escapeParameter:x,messageCompiler:_,messageResolver:w,localeFallbacker:I,fallbackContext:O,onWarn:t,__meta:A};return N.datetimeFormats=l,N.numberFormats=s,N.__datetimeFormatters=E,N.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&cDe(N,n,A),N}function SP(e,t,n,r,o){const{missing:i,onWarn:a}=e;if(i!==null){const l=i(e,n,t,o);return at(l)?l:t}else return t}function qf(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function s$(e){return n=>wDe(n,e)}function wDe(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,o=r.c||r.cases;return e.plural(o.reduce((i,a)=>[...i,N5(e,a)],[]))}else return N5(e,n)}function N5(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((o,i)=>[...o,Aw(e,i)],[]);return e.normalize(r)}}function Aw(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const o=t;return o.v||o.value;case 4:const i=t;return e.interpolate(e.named(i.k||i.key));case 5:const a=t;return e.interpolate(e.list(a.i!=null?a.i:a.index));case 6:const l=t,s=l.m||l.modifier;return e.linked(Aw(e,l.k||l.key),s?Aw(e,s):void 0,e.type);case 7:const c=t;return c.v||c.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const fW=e=>e;let rd=Object.create(null);const zd=e=>gn(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function pW(e,t={}){let n=!1;const r=t.onError||C5e;return t.onError=o=>{n=!0,r(o)},{...V5e(e,t),detectError:n}}const _De=(e,t)=>{if(!at(e))throw Pa(ta.NOT_SUPPORT_NON_STRING_MESSAGE);{en(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||fW)(e),o=rd[r];if(o)return o;const{code:i,detectError:a}=pW(e,t),l=new Function(`return ${i}`)();return a?l:rd[r]=l}};function ODe(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&at(e)){en(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||fW)(e),o=rd[r];if(o)return o;const{ast:i,detectError:a}=pW(e,{...t,location:!1,jit:!0}),l=s$(i);return a?l:rd[r]=l}else{const n=e.cacheKey;if(n){const r=rd[n];return r||(rd[n]=s$(e))}else return s$(e)}}const k5=()=>"",Pi=e=>Pn(e);function B5(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:l}=e,[s,c]=Mw(...t),u=en(c.missingWarn)?c.missingWarn:e.missingWarn,d=en(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=en(c.escapeParameter)?c.escapeParameter:e.escapeParameter,h=!!c.resolvedMessage,m=at(c.default)||en(c.default)?en(c.default)?i?s:()=>s:c.default:n?i?s:()=>s:"",v=n||m!=="",y=yP(e,c);f&&IDe(c);let[b,$,x]=h?[s,y,l[y]||{}]:hW(e,s,y,a,d,u),_=b,w=s;if(!h&&!(at(_)||zd(_)||Pi(_))&&v&&(_=m,w=_),!h&&(!(at(_)||zd(_)||Pi(_))||!at($)))return o?l1:s;let I=!1;const O=()=>{I=!0},P=Pi(_)?_:gW(e,s,$,_,w,O);if(I)return _;const E=EDe(e,$,x,c),R=lDe(E),A=PDe(e,P,R),N=r?r(A,s):A;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:at(s)?s:Pi(_)?_.key:"",locale:$||(Pi(_)?_.locale:""),format:at(_)?_:Pi(_)?_.source:"",message:N};F.meta=Kr({},e.__meta,CDe()||{}),uDe(F)}return N}function IDe(e){Rn(e.list)?e.list=e.list.map(t=>at(t)?$5(t):t):gn(e.named)&&Object.keys(e.named).forEach(t=>{at(e.named[t])&&(e.named[t]=$5(e.named[t]))})}function hW(e,t,n,r,o,i){const{messages:a,onWarn:l,messageResolver:s,localeFallbacker:c}=e,u=c(e,r,n);let d={},f,h=null;const m="translate";for(let v=0;vr;return c.locale=n,c.key=t,c}const s=a(r,TDe(e,n,o,r,l,i));return s.locale=n,s.key=t,s.source=r,s}function PDe(e,t,n){return t(n)}function Mw(...e){const[t,n,r]=e,o={};if(!at(t)&&!wr(t)&&!Pi(t)&&!zd(t))throw Pa(ta.INVALID_ARGUMENT);const i=wr(t)?String(t):(Pi(t),t);return wr(n)?o.plural=n:at(n)?o.default=n:zt(n)&&!a1(n)?o.named=n:Rn(n)&&(o.list=n),wr(r)?o.plural=r:at(r)?o.default=r:zt(r)&&Kr(o,r),[i,o]}function TDe(e,t,n,r,o,i){return{locale:t,key:n,warnHtmlMessage:o,onError:a=>{throw i&&i(a),a},onCacheKey:a=>s5e(t,n,a)}}function EDe(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:l,fallbackWarn:s,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:o,pluralRules:i,messages:h=>{let m=a(n,h);if(m==null&&u){const[,,v]=hW(u,h,t,l,s,c);m=a(v,h)}if(at(m)||zd(m)){let v=!1;const b=gW(e,h,t,m,h,()=>{v=!0});return v?k5:b}else return Pi(m)?m:k5}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),wr(r.plural)&&(f.pluralIndex=r.plural),f}function F5(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:l}=e,[s,c,u,d]=Rw(...t),f=en(u.missingWarn)?u.missingWarn:e.missingWarn;en(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,m=yP(e,u),v=a(e,o,m);if(!at(s)||s==="")return new Intl.DateTimeFormat(m,d).format(c);let y={},b,$=null;const x="datetime format";for(let I=0;I{vW.includes(s)?a[s]=n[s]:i[s]=n[s]}),at(r)?i.locale=r:zt(r)&&(a=r),zt(o)&&(a=o),[i.key||"",l,i,a]}function H5(e,t,n){const r=e;for(const o in n){const i=`${t}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function z5(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:l}=e,[s,c,u,d]=Dw(...t),f=en(u.missingWarn)?u.missingWarn:e.missingWarn;en(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const h=!!u.part,m=yP(e,u),v=a(e,o,m);if(!at(s)||s==="")return new Intl.NumberFormat(m,d).format(c);let y={},b,$=null;const x="number format";for(let I=0;I{mW.includes(s)?a[s]=n[s]:i[s]=n[s]}),at(r)?i.locale=r:zt(r)&&(a=r),zt(o)&&(a=o),[i.key||"",l,i,a]}function j5(e,t,n){const r=e;for(const o in n){const i=`${t}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}K5e();/*! - * vue-i18n v9.9.1 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const ADe="9.9.1";function MDe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(fl().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(fl().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(fl().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(fl().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(fl().__INTLIFY_PROD_DEVTOOLS__=!1)}const bW=fDe.__EXTEND_POINT__,Zl=mP(bW);Zl(),Zl(),Zl(),Zl(),Zl(),Zl(),Zl(),Zl();const yW=ta.__EXTEND_POINT__,Mo=mP(yW),Or={UNEXPECTED_RETURN_TYPE:yW,INVALID_ARGUMENT:Mo(),MUST_BE_CALL_SETUP_TOP:Mo(),NOT_INSTALLED:Mo(),NOT_AVAILABLE_IN_LEGACY_MODE:Mo(),REQUIRED_VALUE:Mo(),INVALID_VALUE:Mo(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Mo(),NOT_INSTALLED_WITH_PROVIDE:Mo(),UNEXPECTED_ERROR:Mo(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Mo(),BRIDGE_SUPPORT_VUE_2_ONLY:Mo(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Mo(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Mo(),__EXTEND_POINT__:Mo()};function Nr(e,...t){return gf(e,null,void 0)}const Lw=Ms("__translateVNode"),Nw=Ms("__datetimeParts"),kw=Ms("__numberParts"),SW=Ms("__setPluralRules"),CW=Ms("__injectWithOption"),Bw=Ms("__dispose");function Ph(e){if(!gn(e))return e;for(const t in e)if(rb(e,t))if(!t.includes("."))gn(e[t])&&Ph(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,i=!1;for(let a=0;a{if("locale"in l&&"resource"in l){const{locale:s,resource:c}=l;s?(a[s]=a[s]||{},Xm(c,a[s])):Xm(c,a)}else at(l)&&Xm(JSON.parse(l),a)}),o==null&&i)for(const l in a)rb(a,l)&&Ph(a[l]);return a}function $W(e){return e.type}function xW(e,t,n){let r=gn(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=s1(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(gn(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(gn(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function W5(e){return g(_l,null,e,0)}const V5="__INTLIFY_META__",K5=()=>[],RDe=()=>!1;let U5=0;function G5(e){return(t,n,r,o)=>e(n,r,Nn()||void 0,o)}const DDe=()=>{const e=Nn();let t=null;return e&&(t=$W(e)[V5])?{[V5]:t}:null};function CP(e={},t){const{__root:n,__injectWithOption:r}=e,o=n===void 0,i=e.flatJson,a=nb?he:ve;let l=en(e.inheritLocale)?e.inheritLocale:!0;const s=a(n&&l?n.locale.value:at(e.locale)?e.locale:Hd),c=a(n&&l?n.fallbackLocale.value:at(e.fallbackLocale)||Rn(e.fallbackLocale)||zt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(s1(s.value,e)),d=a(zt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(zt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=n?n.missingWarn:en(e.missingWarn)||ws(e.missingWarn)?e.missingWarn:!0,m=n?n.fallbackWarn:en(e.fallbackWarn)||ws(e.fallbackWarn)?e.fallbackWarn:!0,v=n?n.fallbackRoot:en(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,b=Pn(e.missing)?e.missing:null,$=Pn(e.missing)?G5(e.missing):null,x=Pn(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:en(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const I=n?n.modifiers:zt(e.modifiers)?e.modifiers:{};let O=e.pluralRules||n&&n.pluralRules,P;P=(()=>{o&&D5(null);const re={version:ADe,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:I,pluralRules:O,missing:$===null?void 0:$,missingWarn:h,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:_,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};re.datetimeFormats=d.value,re.numberFormats=f.value,re.__datetimeFormatters=zt(P)?P.__datetimeFormatters:void 0,re.__numberFormatters=zt(P)?P.__numberFormatters:void 0;const le=xDe(re);return o&&D5(le),le})(),qf(P,s.value,c.value);function R(){return[s.value,c.value,u.value,d.value,f.value]}const A=M({get:()=>s.value,set:re=>{s.value=re,P.locale=s.value}}),N=M({get:()=>c.value,set:re=>{c.value=re,P.fallbackLocale=c.value,qf(P,s.value,re)}}),F=M(()=>u.value),W=M(()=>d.value),D=M(()=>f.value);function B(){return Pn(x)?x:null}function k(re){x=re,P.postTranslation=re}function L(){return b}function z(re){re!==null&&($=G5(re)),b=re,P.missing=$}const K=(re,le,xe,Ae,Be,Ye)=>{R();let Re;try{__INTLIFY_PROD_DEVTOOLS__,o||(P.fallbackContext=n?$De():void 0),Re=re(P)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(P.fallbackContext=void 0)}if(xe!=="translate exists"&&wr(Re)&&Re===l1||xe==="translate exists"&&!Re){const[Le,Ne]=le();return n&&v?Ae(n):Be(Le)}else{if(Ye(Re))return Re;throw Nr(Or.UNEXPECTED_RETURN_TYPE)}};function G(...re){return K(le=>Reflect.apply(B5,null,[le,...re]),()=>Mw(...re),"translate",le=>Reflect.apply(le.t,le,[...re]),le=>le,le=>at(le))}function Y(...re){const[le,xe,Ae]=re;if(Ae&&!gn(Ae))throw Nr(Or.INVALID_ARGUMENT);return G(le,xe,Kr({resolvedMessage:!0},Ae||{}))}function ne(...re){return K(le=>Reflect.apply(F5,null,[le,...re]),()=>Rw(...re),"datetime format",le=>Reflect.apply(le.d,le,[...re]),()=>A5,le=>at(le))}function oe(...re){return K(le=>Reflect.apply(z5,null,[le,...re]),()=>Dw(...re),"number format",le=>Reflect.apply(le.n,le,[...re]),()=>A5,le=>at(le))}function J(re){return re.map(le=>at(le)||wr(le)||en(le)?W5(String(le)):le)}const ee={normalize:J,interpolate:re=>re,type:"vnode"};function fe(...re){return K(le=>{let xe;const Ae=le;try{Ae.processor=ee,xe=Reflect.apply(B5,null,[Ae,...re])}finally{Ae.processor=null}return xe},()=>Mw(...re),"translate",le=>le[Lw](...re),le=>[W5(le)],le=>Rn(le))}function ie(...re){return K(le=>Reflect.apply(z5,null,[le,...re]),()=>Dw(...re),"number format",le=>le[kw](...re),K5,le=>at(le)||Rn(le))}function X(...re){return K(le=>Reflect.apply(F5,null,[le,...re]),()=>Rw(...re),"datetime format",le=>le[Nw](...re),K5,le=>at(le)||Rn(le))}function ue(re){O=re,P.pluralRules=O}function ye(re,le){return K(()=>{if(!re)return!1;const xe=at(le)?le:s.value,Ae=q(xe),Be=P.messageResolver(Ae,re);return zd(Be)||Pi(Be)||at(Be)},()=>[re],"translate exists",xe=>Reflect.apply(xe.te,xe,[re,le]),RDe,xe=>en(xe))}function H(re){let le=null;const xe=aW(P,c.value,s.value);for(let Ae=0;Ae{l&&(s.value=re,P.locale=re,qf(P,s.value,c.value))}),Ie(n.fallbackLocale,re=>{l&&(c.value=re,P.fallbackLocale=re,qf(P,s.value,c.value))}));const Pe={id:U5,locale:A,fallbackLocale:N,get inheritLocale(){return l},set inheritLocale(re){l=re,re&&n&&(s.value=n.locale.value,c.value=n.fallbackLocale.value,qf(P,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:F,get modifiers(){return I},get pluralRules(){return O||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(re){h=re,P.missingWarn=h},get fallbackWarn(){return m},set fallbackWarn(re){m=re,P.fallbackWarn=m},get fallbackRoot(){return v},set fallbackRoot(re){v=re},get fallbackFormat(){return y},set fallbackFormat(re){y=re,P.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(re){_=re,P.warnHtmlMessage=re},get escapeParameter(){return w},set escapeParameter(re){w=re,P.escapeParameter=re},t:G,getLocaleMessage:q,setLocaleMessage:se,mergeLocaleMessage:ae,getPostTranslationHandler:B,setPostTranslationHandler:k,getMissingHandler:L,setMissingHandler:z,[SW]:ue};return Pe.datetimeFormats=W,Pe.numberFormats=D,Pe.rt=Y,Pe.te=ye,Pe.tm=j,Pe.d=ne,Pe.n=oe,Pe.getDateTimeFormat=ge,Pe.setDateTimeFormat=Se,Pe.mergeDateTimeFormat=$e,Pe.getNumberFormat=_e,Pe.setNumberFormat=be,Pe.mergeNumberFormat=Te,Pe[CW]=r,Pe[Lw]=fe,Pe[Nw]=X,Pe[kw]=ie,Pe}function LDe(e){const t=at(e.locale)?e.locale:Hd,n=at(e.fallbackLocale)||Rn(e.fallbackLocale)||zt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Pn(e.missing)?e.missing:void 0,o=en(e.silentTranslationWarn)||ws(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=en(e.silentFallbackWarn)||ws(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=en(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,s=zt(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Pn(e.postTranslation)?e.postTranslation:void 0,d=at(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,f=!!e.escapeParameterHtml,h=en(e.sync)?e.sync:!0;let m=e.messages;if(zt(e.sharedMessages)){const w=e.sharedMessages;m=Object.keys(w).reduce((O,P)=>{const E=O[P]||(O[P]={});return Kr(E,w[P]),O},m||{})}const{__i18n:v,__root:y,__injectWithOption:b}=e,$=e.datetimeFormats,x=e.numberFormats,_=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:_,datetimeFormats:$,numberFormats:x,missing:r,missingWarn:o,fallbackWarn:i,fallbackRoot:a,fallbackFormat:l,modifiers:s,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:h,__i18n:v,__root:y,__injectWithOption:b}}function Fw(e={},t){{const n=CP(LDe(e)),{__extender:r}=e,o={id:n.id,get locale(){return n.locale.value},set locale(i){n.locale.value=i},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(i){n.fallbackLocale.value=i},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return n.getMissingHandler()},set missing(i){n.setMissingHandler(i)},get silentTranslationWarn(){return en(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(i){n.missingWarn=en(i)?!i:i},get silentFallbackWarn(){return en(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(i){n.fallbackWarn=en(i)?!i:i},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(i){n.fallbackFormat=i},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(i){n.setPostTranslationHandler(i)},get sync(){return n.inheritLocale},set sync(i){n.inheritLocale=i},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){n.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(i){n.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...i){const[a,l,s]=i,c={};let u=null,d=null;if(!at(a))throw Nr(Or.INVALID_ARGUMENT);const f=a;return at(l)?c.locale=l:Rn(l)?u=l:zt(l)&&(d=l),Rn(s)?u=s:zt(s)&&(d=s),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...i){return Reflect.apply(n.rt,n,[...i])},tc(...i){const[a,l,s]=i,c={plural:1};let u=null,d=null;if(!at(a))throw Nr(Or.INVALID_ARGUMENT);const f=a;return at(l)?c.locale=l:wr(l)?c.plural=l:Rn(l)?u=l:zt(l)&&(d=l),at(s)?c.locale=s:Rn(s)?u=s:zt(s)&&(d=s),Reflect.apply(n.t,n,[f,u||d||{},c])},te(i,a){return n.te(i,a)},tm(i){return n.tm(i)},getLocaleMessage(i){return n.getLocaleMessage(i)},setLocaleMessage(i,a){n.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){n.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(n.d,n,[...i])},getDateTimeFormat(i){return n.getDateTimeFormat(i)},setDateTimeFormat(i,a){n.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){n.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(n.n,n,[...i])},getNumberFormat(i){return n.getNumberFormat(i)},setNumberFormat(i,a){n.setNumberFormat(i,a)},mergeNumberFormat(i,a){n.mergeNumberFormat(i,a)},getChoiceIndex(i,a){return-1}};return o.__extender=r,o}}const $P={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function NDe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===Je?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},{})}function wW(e){return Je}const kDe=pe({name:"i18n-t",props:Kr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wr(e)||!isNaN(e)}},$P),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||ig({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=at(e.plural)?+e.plural:e.plural);const l=NDe(t,i),s=o[Lw](e.keypath,l,a),c=Kr({},r),u=at(e.tag)||gn(e.tag)?e.tag:wW();return Ni(u,c,s)}}}),Y5=kDe;function BDe(e){return Rn(e)&&!at(e[0])}function _W(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const a={part:!0};let l={};e.locale&&(a.locale=e.locale),at(e.format)?a.key=e.format:gn(e.format)&&(at(e.format.key)&&(a.key=e.format.key),l=Object.keys(e.format).reduce((f,h)=>n.includes(h)?Kr({},f,{[h]:e.format[h]}):f,{}));const s=r(e.value,a,l);let c=[a.key];Rn(s)?c=s.map((f,h)=>{const m=o[f.type],v=m?m({[f.type]:f.value,index:h,parts:s}):[f.value];return BDe(v)&&(v[0].key=`${f.type}-${h}`),v}):at(s)&&(c=[s]);const u=Kr({},i),d=at(e.tag)||gn(e.tag)?e.tag:wW();return Ni(d,u,c)}}const FDe=pe({name:"i18n-n",props:Kr({value:{type:Number,required:!0},format:{type:[String,Object]}},$P),setup(e,t){const n=e.i18n||ig({useScope:"parent",__useComponent:!0});return _W(e,t,mW,(...r)=>n[kw](...r))}}),X5=FDe,HDe=pe({name:"i18n-d",props:Kr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$P),setup(e,t){const n=e.i18n||ig({useScope:"parent",__useComponent:!0});return _W(e,t,vW,(...r)=>n[Nw](...r))}}),q5=HDe;function zDe(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function jDe(e){const t=a=>{const{instance:l,modifiers:s,value:c}=a;if(!l||!l.$)throw Nr(Or.UNEXPECTED_ERROR);const u=zDe(e,l.$),d=Z5(c);return[Reflect.apply(u.t,u,[...Q5(d)]),u]};return{created:(a,l)=>{const[s,c]=t(l);nb&&e.global===c&&(a.__i18nWatcher=Ie(c.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=c,a.textContent=s},unmounted:a=>{nb&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const s=a.__composer,c=Z5(l);a.textContent=Reflect.apply(s.t,s,[...Q5(c)])}},getSSRProps:a=>{const[l]=t(a);return{textContent:l}}}}function Z5(e){if(at(e))return{path:e};if(zt(e)){if(!("path"in e))throw Nr(Or.REQUIRED_VALUE,"path");return e}else throw Nr(Or.INVALID_VALUE)}function Q5(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,a={},l=r||{};return at(n)&&(a.locale=n),wr(o)&&(a.plural=o),wr(i)&&(a.plural=i),[t,l,a]}function WDe(e,t,...n){const r=zt(n[0])?n[0]:{},o=!!r.useI18nComponentName;(en(r.globalInstall)?r.globalInstall:!0)&&([o?"i18n":Y5.name,"I18nT"].forEach(a=>e.component(a,Y5)),[X5.name,"I18nN"].forEach(a=>e.component(a,X5)),[q5.name,"I18nD"].forEach(a=>e.component(a,q5))),e.directive("t",jDe(t))}function VDe(e,t,n){return{beforeCreate(){const r=Nn();if(!r)throw Nr(Or.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const i=o.i18n;if(o.__i18n&&(i.__i18n=o.__i18n),i.__root=t,this===this.$root)this.$i18n=J5(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Fw(i);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=J5(e,o);else{this.$i18n=Fw({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&xW(t,o,o),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,a)=>this.$i18n.te(i,a),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=Nn();if(!r)throw Nr(Or.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r),delete this.$i18n}}}function J5(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[SW](t.pluralizationRules||e.pluralizationRules);const n=s1(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const KDe=Ms("global-vue-i18n");function UDe(e={},t){const n=__VUE_I18N_LEGACY_API__&&en(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=en(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[a,l]=GDe(e,n),s=Ms("");function c(f){return i.get(f)||null}function u(f,h){i.set(f,h)}function d(f){i.delete(f)}{const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(h,...m){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),zt(m[0])){const b=m[0];f.__composerExtend=b.__composerExtend,f.__vueI18nExtend=b.__vueI18nExtend}let v=null;!n&&r&&(v=nLe(h,f.global)),__VUE_I18N_FULL_INSTALL__&&WDe(h,f,...m),__VUE_I18N_LEGACY_API__&&n&&h.mixin(VDe(l,l.__composer,f));const y=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),y()}},get global(){return l},dispose(){a.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:d};return f}}function ig(e={}){const t=Nn();if(t==null)throw Nr(Or.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Nr(Or.NOT_INSTALLED);const n=YDe(t),r=qDe(n),o=$W(t),i=XDe(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Nr(Or.NOT_AVAILABLE_IN_LEGACY_MODE);return eLe(t,i,r,e)}if(i==="global")return xW(r,e,o),r;if(i==="parent"){let s=ZDe(n,t,e.__useComponent);return s==null&&(s=r),s}const a=n;let l=a.__getInstance(t);if(l==null){const s=Kr({},e);"__i18n"in o&&(s.__i18n=o.__i18n),r&&(s.__root=r),l=CP(s),a.__composerExtend&&(l[Bw]=a.__composerExtend(l)),JDe(a,t,l),a.__setInstance(t,l)}return l}function GDe(e,t,n){const r=o2();{const o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Fw(e)):r.run(()=>CP(e));if(o==null)throw Nr(Or.UNEXPECTED_ERROR);return[r,o]}}function YDe(e){{const t=it(e.isCE?KDe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Nr(e.isCE?Or.NOT_INSTALLED_WITH_PROVIDE:Or.UNEXPECTED_ERROR);return t}}function XDe(e,t){return a1(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function qDe(e){return e.mode==="composition"?e.global:e.global.__composer}function ZDe(e,t,n=!1){let r=null;const o=t.root;let i=QDe(t,n);for(;i!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=a.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[CW]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function QDe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function JDe(e,t,n){lt(()=>{},t),Fr(()=>{const r=n;e.__deleteInstance(t);const o=r[Bw];o&&(o(),delete r[Bw])},t)}function eLe(e,t,n,r={}){const o=t==="local",i=ve(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Nr(Or.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=en(r.inheritLocale)?r.inheritLocale:!at(r.locale),l=he(!o||a?n.locale.value:at(r.locale)?r.locale:Hd),s=he(!o||a?n.fallbackLocale.value:at(r.fallbackLocale)||Rn(r.fallbackLocale)||zt(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),c=he(s1(l.value,r)),u=he(zt(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),d=he(zt(r.numberFormats)?r.numberFormats:{[l.value]:{}}),f=o?n.missingWarn:en(r.missingWarn)||ws(r.missingWarn)?r.missingWarn:!0,h=o?n.fallbackWarn:en(r.fallbackWarn)||ws(r.fallbackWarn)?r.fallbackWarn:!0,m=o?n.fallbackRoot:en(r.fallbackRoot)?r.fallbackRoot:!0,v=!!r.fallbackFormat,y=Pn(r.missing)?r.missing:null,b=Pn(r.postTranslation)?r.postTranslation:null,$=o?n.warnHtmlMessage:en(r.warnHtmlMessage)?r.warnHtmlMessage:!0,x=!!r.escapeParameter,_=o?n.modifiers:zt(r.modifiers)?r.modifiers:{},w=r.pluralRules||o&&n.pluralRules;function I(){return[l.value,s.value,c.value,u.value,d.value]}const O=M({get:()=>i.value?i.value.locale.value:l.value,set:j=>{i.value&&(i.value.locale.value=j),l.value=j}}),P=M({get:()=>i.value?i.value.fallbackLocale.value:s.value,set:j=>{i.value&&(i.value.fallbackLocale.value=j),s.value=j}}),E=M(()=>i.value?i.value.messages.value:c.value),R=M(()=>u.value),A=M(()=>d.value);function N(){return i.value?i.value.getPostTranslationHandler():b}function F(j){i.value&&i.value.setPostTranslationHandler(j)}function W(){return i.value?i.value.getMissingHandler():y}function D(j){i.value&&i.value.setMissingHandler(j)}function B(j){return I(),j()}function k(...j){return i.value?B(()=>Reflect.apply(i.value.t,null,[...j])):B(()=>"")}function L(...j){return i.value?Reflect.apply(i.value.rt,null,[...j]):""}function z(...j){return i.value?B(()=>Reflect.apply(i.value.d,null,[...j])):B(()=>"")}function K(...j){return i.value?B(()=>Reflect.apply(i.value.n,null,[...j])):B(()=>"")}function G(j){return i.value?i.value.tm(j):{}}function Y(j,q){return i.value?i.value.te(j,q):!1}function ne(j){return i.value?i.value.getLocaleMessage(j):{}}function oe(j,q){i.value&&(i.value.setLocaleMessage(j,q),c.value[j]=q)}function J(j,q){i.value&&i.value.mergeLocaleMessage(j,q)}function te(j){return i.value?i.value.getDateTimeFormat(j):{}}function ee(j,q){i.value&&(i.value.setDateTimeFormat(j,q),u.value[j]=q)}function fe(j,q){i.value&&i.value.mergeDateTimeFormat(j,q)}function ie(j){return i.value?i.value.getNumberFormat(j):{}}function X(j,q){i.value&&(i.value.setNumberFormat(j,q),d.value[j]=q)}function ue(j,q){i.value&&i.value.mergeNumberFormat(j,q)}const ye={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:P,messages:E,datetimeFormats:R,numberFormats:A,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(j){i.value&&(i.value.inheritLocale=j)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:_},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:f},set missingWarn(j){i.value&&(i.value.missingWarn=j)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(j){i.value&&(i.value.missingWarn=j)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(j){i.value&&(i.value.fallbackRoot=j)},get fallbackFormat(){return i.value?i.value.fallbackFormat:v},set fallbackFormat(j){i.value&&(i.value.fallbackFormat=j)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:$},set warnHtmlMessage(j){i.value&&(i.value.warnHtmlMessage=j)},get escapeParameter(){return i.value?i.value.escapeParameter:x},set escapeParameter(j){i.value&&(i.value.escapeParameter=j)},t:k,getPostTranslationHandler:N,setPostTranslationHandler:F,getMissingHandler:W,setMissingHandler:D,rt:L,d:z,n:K,tm:G,te:Y,getLocaleMessage:ne,setLocaleMessage:oe,mergeLocaleMessage:J,getDateTimeFormat:te,setDateTimeFormat:ee,mergeDateTimeFormat:fe,getNumberFormat:ie,setNumberFormat:X,mergeNumberFormat:ue};function H(j){j.locale.value=l.value,j.fallbackLocale.value=s.value,Object.keys(c.value).forEach(q=>{j.mergeLocaleMessage(q,c.value[q])}),Object.keys(u.value).forEach(q=>{j.mergeDateTimeFormat(q,u.value[q])}),Object.keys(d.value).forEach(q=>{j.mergeNumberFormat(q,d.value[q])}),j.escapeParameter=x,j.fallbackFormat=v,j.fallbackRoot=m,j.fallbackWarn=h,j.missingWarn=f,j.warnHtmlMessage=$}return Dh(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Nr(Or.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const j=i.value=e.proxy.$i18n.__composer;t==="global"?(l.value=j.locale.value,s.value=j.fallbackLocale.value,c.value=j.messages.value,u.value=j.datetimeFormats.value,d.value=j.numberFormats.value):o&&H(j)}),ye}const tLe=["locale","fallbackLocale","availableLocales"],eD=["t","rt","d","n","tm","te"];function nLe(e,t){const n=Object.create(null);return tLe.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i)throw Nr(Or.UNEXPECTED_ERROR);const a=Wn(i.value)?{get(){return i.value.value},set(l){i.value.value=l}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,o,a)}),e.config.globalProperties.$i18n=n,eD.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i||!i.value)throw Nr(Or.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,i)}),()=>{delete e.config.globalProperties.$i18n,eD.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}MDe();__INTLIFY_JIT_COMPILATION__?R5(ODe):R5(_De);bDe(J5e);yDe(aW);if(__INTLIFY_PROD_DEVTOOLS__){const e=fl();e.__INTLIFY__=!0,sDe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const rLe={class:"__container_AppTabHeaderSlot"},oLe={class:"header-desc"},iLe=pe({__name:"addConditionRuleTabHeaderSlot",setup(e){const{t}=ig();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",rLe,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>[tt("span",oLe,Pr(wt(t)("routingRuleDomain.createNewRoutingRule")),1)]),_:1})]),_:1})])}}}),aLe=fa(iLe,[["__scopeId","data-v-c4649548"]]),lLe={class:"__container_AppTabHeaderSlot"},sLe={class:"header-desc"},cLe=pe({__name:"conditionRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",lLe,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",sLe,Pr((a=wt(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),uLe=fa(cLe,[["__scopeId","data-v-8b847dc2"]]),dLe={class:"__container_AppTabHeaderSlot"},fLe={class:"header-desc"},pLe=pe({__name:"updateConditionRuleTabHeaderSlot",setup(e){const{t}=ig(),n=Ml();return(r,o)=>{const i=Nt("a-col"),a=Nt("a-row");return ht(),qt("div",dLe,[g(a,null,{default:bn(()=>[g(i,{span:12},{default:bn(()=>{var l;return[tt("span",fLe,Pr(wt(t)("edit"))+" "+Pr((l=wt(n).params)==null?void 0:l.ruleName),1)]}),_:1})]),_:1})])}}}),hLe=fa(pLe,[["__scopeId","data-v-0fc7d06d"]]),gLe={},vLe=e=>(Kc("data-v-0f780945"),e=e(),Uc(),e),mLe={class:"__container_AppTabHeaderSlot"},bLe=vLe(()=>tt("span",{class:"header-desc"}," 新增标签路由 ",-1));function yLe(e,t){const n=Nt("a-col"),r=Nt("a-row");return ht(),qt("div",mLe,[g(r,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[bLe]),_:1})]),_:1})])}const SLe=fa(gLe,[["render",yLe],["__scopeId","data-v-0f780945"]]),CLe={class:"__container_AppTabHeaderSlot"},$Le={class:"header-desc"},xLe=pe({__name:"tagRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",CLe,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",$Le,Pr((a=wt(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),wLe=fa(xLe,[["__scopeId","data-v-49f86476"]]),_Le={class:"__container_AppTabHeaderSlot"},OLe={class:"header-desc"},ILe=pe({__name:"updateTagRuleTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",_Le,[g(i,null,{default:bn(()=>[g(o,{span:12},{default:bn(()=>{var a;return[tt("span",OLe," 修改 "+Pr((a=wt(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),PLe=fa(ILe,[["__scopeId","data-v-91777569"]]),TLe={class:"__container_AppTabHeaderSlot"},ELe={class:"header-desc"},ALe=pe({__name:"updateDCTabHeaderSlot",setup(e){const t=Ml();return(n,r)=>{const o=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",TLe,[g(i,null,{default:bn(()=>[g(o,{span:20},{default:bn(()=>{var a,l;return[tt("span",ELe,Pr(((a=wt(t).params)==null?void 0:a.isEdit)==="1"?n.$t("dynamicConfigDomain.updateByFormView"):n.$t("dynamicConfigDomain.detailByFormView"))+" "+Pr((l=wt(t).params)==null?void 0:l.pathId),1)]}),_:1})]),_:1})])}}}),tD=fa(ALe,[["__scopeId","data-v-4d4ee463"]]),OW=[{path:"/login",name:"Login",component:()=>Ht(()=>import("./Login-WDB2yLVB.js"),__vite__mapDeps([0,1,2,3])),meta:{skip:!0},children:[]},{path:"/",name:"Root",redirect:"/home",component:()=>Ht(()=>import("./index-iEpzgnm5.js"),__vite__mapDeps([4,5,2,6,7,1,8])),meta:{skip:!0},children:[{path:"/home",name:"homePage",component:()=>Ht(()=>import("./index-rD-ZU8dN.js"),__vite__mapDeps([9,10,2,11])),meta:{icon:"carbon:web-services-cluster"}},{path:"/resources",name:"resources",meta:{icon:"carbon:web-services-cluster"},children:[{path:"/applications",name:"applications",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:JRe}},children:[{path:"/list",name:"router.resource.app.list",component:()=>Ht(()=>import("./index-f3klQpXz.js"),__vite__mapDeps([12,5,2,13,14,15])),meta:{hidden:!0}},{path:"/detail/:pathId",name:"applicationDomain.detail",component:()=>Ht(()=>import("./detail-tPSvFGFf.js"),__vite__mapDeps([16,5,2,17])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/applications/list"}},{path:"/instance/:pathId",name:"applicationDomain.instance",component:()=>Ht(()=>import("./instance-jbHVDGq-.js"),__vite__mapDeps([18,13,14,5,2,19,20,21,22])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/applications/list"}},{path:"/service/:pathId",name:"applicationDomain.service",component:()=>Ht(()=>import("./service-yecgep27.js"),__vite__mapDeps([23,10,2,13,14,5,20,24])),meta:{tab:!0,icon:"carbon:web-services-definition",back:"/resources/applications/list"}},{path:"/monitor/:pathId",name:"applicationDomain.monitor",component:()=>Ht(()=>import("./monitor-ydtLS9P6.js"),__vite__mapDeps([25,26,27,5,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/applications/list"}},{path:"/tracing/:pathId",name:"applicationDomain.tracing",component:()=>Ht(()=>import("./tracing-qOOaUDUW.js"),__vite__mapDeps([28,26,27,5,2])),meta:{tab:!0,icon:"game-icons:digital-trace",back:"/resources/applications/list"}},{path:"/config/:pathId",name:"applicationDomain.config",component:()=>Ht(()=>import("./config-L4QhBo2Y.js"),__vite__mapDeps([29,30,31,5,2,32])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/applications/list"}},{path:"/event/:pathId",name:"applicationDomain.event",component:()=>Ht(()=>import("./event-U8rWPJ_o.js"),__vite__mapDeps([33,5,2,34])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/applications/list"}}]},{path:"/instances",name:"instances",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:l5e}},children:[{path:"/list",name:"router.resource.ins.list",component:()=>Ht(()=>import("./index-vfibNA7v.js"),__vite__mapDeps([35,6,2,13,14,20,21,36])),meta:{hidden:!0}},{path:"/detail/:name/:pathId?/:appName?",name:"instanceDomain.details",component:()=>Ht(()=>import("./detail-DO2x71pm.js"),__vite__mapDeps([37,17,6,2,19])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/instances/list",headerParamKey:"appName"}},{path:"/monitor/:name/:pathId?/:appName?",name:"instanceDomain.monitor",component:()=>Ht(()=>import("./monitor-0ZbTVcPs.js"),__vite__mapDeps([38,26,27,6,2])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/instances/list"}},{path:"/linktracking/:name/:pathId?/:appName?",name:"instanceDomain.linkTracking",component:()=>Ht(()=>import("./linkTracking-CDmTO6CN.js"),__vite__mapDeps([39,26,27,6,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/instances/list"}},{path:"/configuration/:name/:pathId?/:appName?",name:"instanceDomain.configuration",component:()=>Ht(()=>import("./configuration-mnhVbFFZ.js"),__vite__mapDeps([40,30,31,6,2])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/instances/list"}},{path:"/event/:name/:pathId?/:appName?",name:"instanceDomain.event",component:()=>Ht(()=>import("./event-7tgH6sxi.js"),__vite__mapDeps([])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/instances/list"}}]},{path:"/services",name:"services",redirect:"list",component:qi,meta:{tab_parent:!0,slots:{header:r5e}},children:[{path:"/list",name:"router.resource.svc.list",component:()=>Ht(()=>import("./search-HhXTRztG.js"),__vite__mapDeps([41,7,2,13,14,20])),meta:{hidden:!0}},{path:"/distribution/:pathId/:group?/:version?",name:"distribution",component:()=>Ht(()=>import("./distribution-UiS_TbBu.js"),__vite__mapDeps([42,7,2,13,14,43])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/monitor/:pathId/:group?/:version?",name:"monitor",component:()=>Ht(()=>import("./monitor-Bile44jq.js"),__vite__mapDeps([44,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/tracing/:pathId/:group?/:version?",name:"tracing",component:()=>Ht(()=>import("./tracing-l8cxfZrK.js"),__vite__mapDeps([45,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/sceneConfig/:pathId/:group?/:version?",name:"sceneConfig",component:()=>Ht(()=>import("./sceneConfig-5xoznbCR.js"),__vite__mapDeps([46,30,31,7,2,47])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/event/:pathId/:group?/:version?",name:"event",component:()=>Ht(()=>import("./event-H3QxA0ip.js"),__vite__mapDeps([48,49])),meta:{tab:!0,hidden:!0,back:"/resources/services/list"}}]}]},{path:"/traffic",name:"trafficManagement",meta:{icon:"eos-icons:cluster-management"},children:[{path:"/routingRule",name:"routingRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:uLe}},children:[{path:"/index",name:"routingRuleIndex",component:()=>Ht(()=>import("./index-D32qWHNQ.js"),__vite__mapDeps([50,51,2,13,14,19,52])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"routingRuleDomain.formView",component:()=>Ht(()=>import("./formView-6c6ubrMh.js"),__vite__mapDeps([53,17,51,2,54])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/yamlview/:ruleName",name:"routingRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-qj8iQria.js"),__vite__mapDeps([55,56,57,51,2,58])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addRoutingRule",name:"addRoutingRule",component:qi,redirect:"addByFormView",meta:{tab_parent:!0,hidden:!0,slots:{header:aLe}},children:[{path:"/addByFormView",name:"addRoutingRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-n4jb5xo4.js"),__vite__mapDeps([59,17,51,2,60,61,62])),meta:{back:"/traffic/routingRule",tab:!0,icon:"oui:apm-trace"}},{path:"/addByYamlView",name:"addRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-BmRR26Fc.js"),__vite__mapDeps([63,56,57,51,2,64])),meta:{back:"/traffic/routingRule",tab:!0,icon:"oui:app-console"}}]},{path:"/updateRoutingRule",name:"updateRoutingRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:hLe}},children:[{path:"/updateByFormView/:ruleName",name:"updateRoutingRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-x4LVel5f.js"),__vite__mapDeps([65,17,51,2,60,61,66])),meta:{tab:!0,back:"/traffic/routingRule"}},{path:"/updateByYAMLView/:ruleName",name:"updateRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-zslWiAmQ.js"),__vite__mapDeps([67,56,57,51,2,68])),meta:{tab:!0,back:"/traffic/routingRule"}}]},{path:"/tagRule",name:"tagRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:wLe}},children:[{path:"/index",name:"tagRuleIndex",component:()=>Ht(()=>import("./index-HJqg-GcZ.js"),__vite__mapDeps([69,51,2,13,14,19,70])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"tagRuleDomain.formView",component:()=>Ht(()=>import("./formView-e13inb3H.js"),__vite__mapDeps([71,17,51,2,72])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/tagRule"}},{path:"/yamlview/:ruleName",name:"tagRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-l1kqynjo.js"),__vite__mapDeps([73,56,57,51,2,74])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addTagRule",name:"addTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:SLe}},children:[{path:"/addByFormView",name:"addTagRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-rbd9XAeQ.js"),__vite__mapDeps([75,17,51,2,76])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/tagRule"}},{path:"/addByYAMLView",name:"addTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-UzLeu456.js"),__vite__mapDeps([77,56,57,51,2,78])),meta:{tab:!0,icon:"oui:app-console",back:"/traffic/tagRule"}}]},{path:"/updateTagRule",name:"updateTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:PLe}},children:[{path:"/updateByFormView/:ruleName",name:"updateTagRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-n4N0yfp8.js"),__vite__mapDeps([79,17,51,2,80])),meta:{tab:!0,back:"/traffic/tagRule"}},{path:"/updateByYAMLView/:ruleName",name:"updateTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-ewo550Av.js"),__vite__mapDeps([81,56,57,51,2,82])),meta:{tab:!0,back:"/traffic/tagRule"}}]},{path:"/dynamicConfig",name:"dynamicConfig",redirect:"index",component:qi,meta:{tab_parent:!0},children:[{path:"/index",name:"dynamicConfigIndex",component:()=>Ht(()=>import("./index-75IgToXr.js"),__vite__mapDeps([83,51,2,13,14,84])),meta:{hidden:!0}},{path:"/formview/:pathId/:isEdit",name:"dynamicConfigDomain.formView",component:()=>Ht(()=>import("./formView-vI7S-3Yw.js"),__vite__mapDeps([85,17,51,2,86,87])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/dynamicConfig",slots:{header:tD}}},{path:"/yamlview/:pathId/:isEdit",name:"dynamicConfigDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-nAITJpmO.js"),__vite__mapDeps([88,56,57,51,2,86,89])),meta:{tab:!0,icon:"oui:app-console",back:"/traffic/dynamicConfig",slots:{header:tD}}}]}]},{path:"/common",name:"commonDemo",redirect:"tab",meta:{hidden:!0,icon:"tdesign:play-demo"},children:[{path:"/tab",name:"tabDemo",component:qi,redirect:"index",meta:{tab_parent:!0},children:[{path:"/index",name:"tab_demo_index",component:()=>Ht(()=>import("./index-3XSU6ywD.js"),__vite__mapDeps([])),meta:{hidden:!0}},{path:"/tab1/:pathId",name:"tab1",component:()=>Ht(()=>import("./tab1-krCLsB5L.js"),__vite__mapDeps([])),meta:{icon:"simple-icons:podman",tab:!0}},{path:"/tab2/:pathId",name:"tab2",component:()=>Ht(()=>import("./tab2-pkEoLefQ.js"),__vite__mapDeps([])),meta:{icon:"fontisto:docker",tab:!0}}]},{path:"/placeholder",name:"placeholder_demo",component:()=>Ht(()=>import("./index-vRAqZ0qU.js"),__vite__mapDeps([])),meta:{}}]}]},{path:"/:catchAll(.*)",name:"notFound",component:()=>Ht(()=>import("./notFound-U6T768yw.js"),__vite__mapDeps([90,91])),meta:{skip:!0}}];function nD(...e){return e.join("/").replace(/\/+/g,"/")}function IW(e,t){if(e)for(const n of e)t&&(n.path=nD(t==null?void 0:t.path,n.path)),n.redirect&&(n.redirect=nD(n.path,n.redirect||"")),n.meta?(n.meta._router_key=Fp.uniqueId("__router_key"),n.meta.parent=t,n.meta.skip=n.meta.skip===!0):n.meta={_router_key:Fp.uniqueId("__router_key"),skip:!1},IW(n.children,n)}IW(OW,void 0);const MLe={history:e8e("/admin"),routes:OW},PW=k8e(MLe),RLe={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},DLe=RLe,LLe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},TW=LLe,EW={lang:S({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},DLe),timePickerLocale:S({},TW)};EW.lang.ok="确定";const rD=EW,ri="${label}不是一个有效的${type}",NLe={locale:"zh-cn",Pagination:zH,DatePicker:rD,TimePicker:TW,Calendar:rD,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:ri,method:ri,array:ri,object:ri,number:ri,date:ri,boolean:ri,integer:ri,float:ri,regexp:ri,email:ri,url:ri,hex:ri},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},kLe=NLe;var AW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Lo,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var D=["th","st","nd","rd"],B=W%100;return"["+W+(D[(B-20)%10]||D[B]||D[0])+"]"}},x=function(W,D,B){var k=String(W);return!k||k.length>=D?W:""+Array(D+1-k.length).join(B)+W},_={s:x,z:function(W){var D=-W.utcOffset(),B=Math.abs(D),k=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function W(D,B){if(D.date()1)return W(K[0])}else{var G=D.name;I[G]=D,L=G}return!k&&L&&(w=L),L||!k&&w},R=function(W,D){if(P(W))return W.clone();var B=typeof D=="object"?D:{};return B.date=W,B.args=arguments,new N(B)},A=_;A.l=E,A.i=P,A.w=function(W,D){return R(W,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=function(){function W(B){this.$L=E(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[O]=!0}var D=W.prototype;return D.parse=function(B){this.$d=function(k){var L=k.date,z=k.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(y);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return z?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==v},D.isSame=function(B,k){var L=R(B);return this.startOf(k)<=L&&L<=this.endOf(k)},D.isAfter=function(B,k){return R(B)可能的值:Dubbo应用名或者服务名",ruleGranularity:"规则粒度
    可能的值:application, service",force:"容错保护
    可能的值:true, false
    描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用",runtime:"运行时生效
    可能的值:true, false
    描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效"},service:"服务",application:"应用",anyRequest:"任意请求",baseDesc:"对于{type}【{value}】",matchDesc:"满足【{condition}】的请求",distributeDesc:"转发至【{condition}】",host:"IP",method:"方法",arguments:"参数",attachments:"附件",other:"其他",createNewRoutingRule:"新增条件路由规则",warnDeleteRouteRule:"确认删除该条件路由规则?"},updateRoutingRuleDomain:{YAMLView:"YAML视图",formView:"表单视图"},addRoutingRuleDomain:{YAMLView:"YAML视图",formView:"表单视图"},tagRuleDomain:{YAMLView:"YAML视图",formView:"表单视图"},updateTagRuleDomain:{YAMLView:"YAML视图",formView:"表单视图"},addTagRuleDomain:{YAMLView:"YAML视图",formView:"表单视图"},flowControlDomain:{notSet:"未设置",versionRecords:"版本记录",YAMLView:"YAML视图",addConfiguration:"增加配置",addConfigurationItem:"增加配置项",addFilter:"增加筛选",configurationItem:"配置项",actuatingRange:"作用范围",matches:"作用范围",scopeScreening:"作用范围筛选",endOfAction:"作用端",side:"作用端",actions:"操作",filterType:"筛选类型",labelName:"标签名",formView:"表单视图",addMatch:"增加匹配",addRouter:"增加路由",addLabel:"增加标签",addressSubsetMatching:"地址子集匹配",value:"值",relation:"关系",requestParameterMatching:"请求参数匹配",matchingDimension:"匹配维度",parameter:"参数",ruleName:"规则名",actionObject:"作用对象",key:"作用对象",faultTolerantProtection:"容错保护",runTimeEffective:"运行时生效",ruleGranularity:"规则粒度",scope:"规则粒度",effectTime:"生效时间",enabledState:"启用状态",priority:"优先级",off:"关",on:"开",opened:"开启",closed:"关闭",enabled:"启用",disabled:"禁用"},instanceDomain:{flowDisabled:"流量禁用",operatorLog:"执行日志",CPU:"CPU",enableAppInstanceLogs:"开启该应用所有实例的访问日志",appServiceLoadBalance:"调整应用提供服务的负载均衡策略",appServiceNegativeClusteringMethod:"调整应用提供服务的的集群方式",appServiceRetries:"调整该应用提供服务的重试次数",appServiceTimeout:"调整应用提供服务的超时时间",close:"关闭",enable:"开启",executionLog:"执行日志",retryCount:"重试次数",clusterApproach:"集群方式",timeout_ms:"超时时间(ms)",details:"详情",loadBalance:"负载均衡",monitor:"监控",linkTracking:"链路追踪",configuration:"场景配置",event:"事件",healthExamination_k8s:"健康检查(k8s)",instanceLabel:"实例标签",instanceImage_k8s:"镜像(k8s)",owningWorkload_k8s:"所属工作负载(k8s)",node:"节点",whichApplication:"所属应用",registerCluster:"注册集群",dubboPort:"Dubbo端口",instanceIP:"实例IP",ip:"IP",name:"实例名称",deployState:"部署状态",deployCluster:"部署集群",deployClusters:"部署集群",registerState:"注册状态",registerClusters:"注册集群",registryClusters:"注册集群",cpu:"CPU",memory:"内存",startTime:"启动时间",registerTime:"注册时间",labels:"标签",instanceCount:"实例数量",instanceName:"实例名称",creationTime_k8s:"创建时间(k8s)",startTime_k8s:"启动时间(k8s)",readyTime_k8s:"就绪时间(k8s)"},serviceDomain:{name:"服务名",notSpecified:"不指定",timeout:"超时时间",retryNum:"重试次数",sameAreaFirst:"同区域优先",closed:"关闭",opened:"开启",paramRoute:"参数路由"},servicesDomain:{appName:"应用名",consumerAppName:"消费者应用名",instanceCount:"实例数量",deployClusters:"部署集群",registryClusters:"注册集群"},service:"服务",versionGroup:"版本&分组",avgQPS:"QPS",provider:"提供者",subset:"分组",avgRT:"RT",requestTotal:"近1min请求总量",serviceSearch:"服务查询",serviceGovernance:"路由规则",trafficManagement:"流量管控",serviceMetrics:"服务统计",serviceRelation:"服务关系",routingRule:"条件路由",tagRule:"标签路由",meshRule:"Mesh路由",dynamicConfig:"动态配置",accessControl:"黑白名单",weightAdjust:"权重调整",loadBalance:"负载均衡",serviceTest:"服务测试",serviceMock:"服务Mock",services:"服务",providers:"提供者",consumers:"消费者",application:"应用",instance:"实例",all:"全部",common:"通用",metrics:"可观测",relation:"关系",group:"组",version:"版本",app:"应用",ip:"IP地址",qps:"qps",rt:"rt",successRate:"成功率",serviceInfo:"服务信息",port:"端口",timeout:"超时(毫秒)",serialization:"序列化",appName:"应用名",instanceNum:"实例数量",deployCluster:"部署集群",registerClusters:"注册集群列表",serviceName:"服务名",provideServiceName:"提供服务",registrySource:"注册来源",instanceRegistry:"应用级",interfaceRegistry:"接口级",allRegistry:"应用级/接口级",operation:"操作",searchResult:"查询结果",search:"搜索",methodName:"方法名",enabled:"开启",disabled:"禁用",method:"方法",weight:"权重",create:"创建",save:"保存",cancel:"取消",close:"关闭",confirm:"确认",ruleContent:"规则内容",createNewTagRule:"创建新标签规则",createMeshTagRule:"创建新mesh规则",createNewDynamicConfigRule:"创建新动态配置规则",createNewWeightRule:"新建权重规则",createNewLoadBalanceRule:"新建负载均衡规则",createTimeoutRule:"创建超时时间规则",createRetryRule:"创建重试规则",createRegionRule:"创建同区域优先规则",createArgumentRule:"创建参数路由规则",createMockCircuitRule:"创建调用降级规则",createAccesslogRule:"创建访问日志规则",createGrayRule:"创建灰度隔离规则",createWeightRule:"创建权重比例规则",serviceIdHint:"服务名",view:"查看",edit:"编辑",delete:"删除",searchRoutingRule:"搜索路由规则",searchAccessRule:"搜索黑白名单",searchWeightRule:"搜索权重调整规则",dataIdClassHint:"服务接口的类完整包路径",dataIdVersionHint:"服务接口的Version,根据接口实际情况选填",dataIdGroupHint:"服务接口的Group,根据接口实际情况选填",agree:"同意",disagree:"不同意",searchDynamicConfig:"搜索动态配置",appNameHint:"服务所属的应用名称",basicInfo:"基础信息",metaData:"元数据",methodMetrics:"服务方法统计",searchDubboService:"搜索Dubbo服务或应用",serviceSearchHint:"服务ID, org.apache.dubbo.demo.api.DemoService, * 代表所有服务",ipSearchHint:"在指定的IP地址上查找目标服务器提供的所有服务",appSearchHint:"输入应用名称以查找由一个特定应用提供的所有服务, * 代表所有",searchTagRule:"根据应用名搜索标签规则",searchMeshRule:"根据应用名搜索mesh规则",searchSingleMetrics:"输入IP搜索Metrics信息",searchBalanceRule:"搜索负载均衡规则",parameterList:"参数列表",returnType:"返回值",noMetadataHint:"无元数据信息,请升级至Dubbo2.7及以上版本,或者查看application.properties中关于config center的配置,详见",here:"这里",configAddress:"https://github.com/apache/incubator-dubbo-admin/wiki/Dubbo-Admin%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E",whiteList:"白名单",whiteListHint:"白名单IP列表, 多个地址用逗号分隔: 1.1.1.1,2.2.2.2",blackList:"黑名单",blackListHint:"黑名单IP列表, 多个地址用逗号分隔: 3.3.3.3,4.4.4.4",address:"地址列表",weightAddressHint:"此权重设置的IP地址,用逗号分隔: 1.1.1.1,2.2.2.2",weightHint:"权重值,默认100",methodHint:"负载均衡生效的方法,*代表所有方法",strategy:"策略",balanceStrategyHint:"负载均衡策略",goIndex:"返回首页",releaseLater:"在后续版本中发布,敬请期待",later:{metrics:"Metrics会在后续版本中发布,敬请期待",serviceTest:"服务测试会在后续版本中发布,敬请期待",serviceMock:"服务Mock会在后续版本中发布,敬请期待"},by:"按",$vuetify:{dataIterator:{rowsPerPageText:"每页记录数:",rowsPerPageAll:"全部",pageText:"{0}-{1} 共 {2} 条",noResultsText:"没有找到匹配记录",nextPage:"下一页",prevPage:"上一页"},dataTable:{rowsPerPageText:"每页行数:"},noDataText:"无可用数据"},configManage:"配置管理",configCenterAddress:"配置中心地址",searchDubboConfig:"搜索Dubbo配置",createNewDubboConfig:"新建Dubbo配置",scope:"范围",name:"名称",warnDeleteConfig:" 是否要删除Dubbo配置: ",warnDeleteDynamicConfig:"是否要删除动态配置",warnDeleteBalancing:"是否要删除负载均衡规则",warnDeleteAccessControl:"是否要删除黑白名单",warnDeleteTagRule:"是否要删除标签路由",warnDeleteMeshRule:"是否要删除mesh路由",warnDeleteWeightAdjust:"是否要删除权重规则",configNameHint:"配置所属的应用名, global 表示全局配置",configContent:"配置内容",testMethod:"测试方法",execute:"执行",result:"结果: ",success:" 成功",fail:"失败",detail:"详情",more:"更多",copyUrl:"复制 URL",copy:"复制",url:"URL",copySuccessfully:"已复制",test:"测试",placeholders:{searchService:"通过服务名搜索服务"},methods:"方法列表",testModule:{searchServiceHint:"完整服务ID, org.apache.dubbo.demo.api.DemoService, 按回车键查询"},userName:"用户名",password:"密码",login:"登录",apiDocs:"接口文档",apiDocsRes:{dubboProviderIP:"Dubbo 提供者Ip",dubboProviderPort:"Dubbo 提供者端口",loadApiList:"加载接口列表",apiListText:"接口列表",apiForm:{missingInterfaceInfo:"缺少接口信息",getApiInfoErr:"获取接口信息异常",api404Err:"接口名称不正确,没有查找到接口参数和响应信息",apiRespDecShowLabel:"响应说明",apiNameShowLabel:"接口名称",apiPathShowLabel:"接口位置",apiMethodParamInfoLabel:"接口参数",apiVersionShowLabel:"接口版本",apiGroupShowLabel:"接口分组",apiDescriptionShowLabel:"接口说明",isAsyncFormLabel:"是否异步调用(此参数不可修改,根据接口定义的是否异步显示)",apiModuleFormLabel:"接口模块(此参数不可修改)",apiFunctionNameFormLabel:"接口方法名(此参数不可修改)",registryCenterUrlFormLabel:"注册中心地址, 如果为空将使用Dubbo 提供者Ip和端口进行直连",paramNameLabel:"参数名",paramPathLabel:"参数位置",paramDescriptionLabel:"说明",paramRequiredLabel:"该参数为必填",doTestBtn:"测试",responseLabel:"响应",responseExampleLabel:"响应示例",apiResponseLabel:"接口响应",LoadingLabel:"加载中...",requireTip:"有未填写的必填项",requireItemTip:"该项为必填!",requestApiErrorTip:"请求接口发生异常,请检查提交的数据,特别是JSON类数据和其中的枚举部分",unsupportedHtmlTypeTip:"暂不支持的表单类型",none:"无"}},authFailed:"权限验证失败",ruleList:"规则列表",registryCenter:"注册中心",mockRule:"规则配置",mockData:"模拟数据",globalDisable:"全局禁用",globalEnable:"全局启用",saveRuleSuccess:"保存规则成功",deleteRuleSuccess:"删除成功",disableRuleSuccess:"禁用成功",enableRuleSuccess:"启用成功",methodNameHint:"服务方法名",createMockRule:"创建规则",editMockRule:"修改规则",deleteRuleTitle:"确定要删除此服务Mock规则吗?",ruleName:"规则名",ruleGranularity:"规则粒度",createTime:"创建时间",lastModifiedTime:"最后修改时间",enable:"是否启用",protection:"容错保护",trafficTimeout:"超时时间",trafficRetry:"调用重试",trafficRegion:"同区域优先",trafficIsolation:"环境隔离",trafficWeight:"权重比例",trafficArguments:"参数路由",trafficMock:"调用降级",trafficAccesslog:"访问日志",trafficHost:"固定机器导流",trafficGray:"流量灰度",homePage:"集群概览",serviceManagement:"开发测试",groupInputPrompt:"请输入服务group(可选)",versionInputPrompt:"请输入服务version(可选)",resources:"资源详情",applications:"应用",instances:"实例",applicationDomain:{instanceCount:"实例数量",deployClusters:"部署集群",registryClusters:"注册集群",registerClusters:"注册集群",registerModes:"注册模式",operatorLog:"执行日志",flowWeight:"流量权重",gray:"灰度隔离",name:"应用名",detail:"详情",instance:"实例",service:"服务",monitor:"监控",tracing:"链路追踪",config:"配置",event:"事件",appName:"应用名",rpcProtocols:"RPC 协议",dubboVersions:"Dubbo 版本",dubboPorts:"Dubbo 端口",serialProtocols:"序列化协议",appTypes:"应用类型",images:"应用镜像",workloads:"工作负载",deployCluster:"部署集群",registerCluster:"注册集群",registerMode:"注册模式"},searchDomain:{total:"共计",unit:"条"},messageDomain:{success:{copy:"您已经成功复制一条信息"}},backHome:"回到首页",noPageTip:"抱歉,你访问的页面不存在",globalSearchTip:"搜索ip,应用,实例,服务",placeholder:{typeAppName:"请输入应用名",typeInstanceIP:"请输入实例IP",consumerAppName:"请输入消费者应用名",typeDefault:"请输入",typeRoutingRules:"搜索路由规则",searchAppNameOrIP:"搜索应用,ip"},none:"无",details:"详情",debug:"调试",distribution:"分布",monitor:"监控",tracing:"链路追踪",sceneConfig:"场景配置",event:"事件",provideService:"提供服务",dependentService:"依赖服务",idx:"序号",submit:"提交",reset:"重置",router:{resource:{app:{list:"列表"},ins:{list:"列表"},svc:{list:"列表"}}},form:{save:"保存"}},HLe={loginDomain:{username:"Username",password:"Password",login:"Login",authFail:"Auth Fail"},destinationRuleDomain:{YAMLView:"YAML view",formView:"Form view"},virtualServiceDomain:{YAMLView:"YAML view",formView:"Form view"},dynamicConfigDomain:{YAMLView:"YAML view",formView:"Form view",event:"Event"},updateRoutingRuleDomain:{YAMLView:"YAML view",formView:"Form view"},routingRuleDomain:{YAMLView:"YAML view",formView:"Form view",ruleGranularity:"Rule Granularity",objectOfAction:"Action Object",version:"Version",group:"Group",force:"Fault Tolerant",runtime:"Runtime Effective",enabled:"Enable Now",priority:"Priority",routeList:"Route List",route:"Route",matchRequest:"Request Match",matchConditionType:"Match Condition Type",addMatchRequest:"Add Request Match",routeDistribution:"Route Distribution",addRoute:"Add Route",addArgument:"Add Argument",addAttachment:"Add Attachment",addOther:"Add Other",paramIndex:"Parameter Index",relation:"Relation",value:"Value",operation:"Operation",key:"Key",fieldDesc:"Field Description",desc:{objectOfAction:"Action Object
    Possible values: Dubbo application name or service name",ruleGranularity:"Rule Granularity
    Possible values: application, service",force:"Fault Tolerant
    Possible values: true, false
    Description: If true, an exception will be reported directly if no available address is found after routing filtering; if false, it will choose from available addresses to complete the RPC call",runtime:"Runtime Effective
    Possible values: true, false
    Description: If true, all routes under this rule will take effect in real time; if false, they will only take effect at startup"},service:"Service",application:"Application",anyRequest:"Any Request",baseDesc:"For {type} [{value}]",matchDesc:"Match request [{condition}]",distributeDesc:"Forward to [{condition}]",host:"IP",method:"Method",arguments:"Arguments",attachments:"Attachments",other:"Other",createNewRoutingRule:"Create New Conditional Routing Rule",warnDeleteRouteRule:"Are you sure to delete this conditional routing rule?"},addRoutingRuleDomain:{YAMLView:"YAML view",formView:"Form view"},tagRuleDomain:{YAMLView:"YAML view",formView:"Form view"},updateTagRuleDomain:{YAMLView:"YAML view",formView:"Form view"},addTagRuleDomain:{YAMLView:"YAML view",formView:"Form view"},flowControlDomain:{actuatingRange:"Actuating range",notSet:"Not set",versionRecords:"Version records",YAMLView:"YAML View",addConfiguration:"Add configuration",addConfigurationItem:"Add configurationItem",addFilter:"Add filter",configurationItem:"Configuration item",scopeScreening:"Scope screening",endOfAction:"End of action",addLabel:"Add label",actions:"Actions",filterType:"Filter type",labelName:"Label name",formView:"Form view",addMatch:"Add match",addRouter:"Add router",addressSubsetMatching:"Address subset matching",value:"Value",relation:"Relation",parameter:"Parameter",matchingDimension:"Matching dimension",requestParameterMatching:"Request parameter matching",ruleName:"Rule name",actionObject:"Action object",faultTolerantProtection:"Fault-tolerant protection",runTimeEffective:"Run time effective",ruleGranularity:"Rule granularity",effectTime:"Time of taking effect",enabledState:"Enabled status",priority:"Priority",off:"off",on:"on",opened:"Opened",closed:"Closed",enabled:"Enabled",disabled:"Disabled"},instanceDomain:{flowDisabled:"Flow disabled",operatorLog:"Operator log",enableAppInstanceLogs:"Enable access logs for all instances of this application",appServiceRetries:"Adjust the number of retries for the service provided by this application",appServiceLoadBalance:"Adjusting the load balancing strategy for application service provision",appServiceNegativeClusteringMethod:"Adjusting the clustering approach for application service provision",appServiceTimeout:"Adjusting the timeout for application service provision",close:"Close",enable:"Enable",executionLog:"ExecutionLog",loadBalance:"LoadBalance",instanceIP:"InstanceIP",clusterApproach:"ClusterApproach",details:"Detail",retryCount:"RetryCount",timeout_ms:"Timeout(ms)",monitor:"Monitor",linkTracking:"LinkTracking",configuration:"Configuration",event:"Event",instanceName:"InstanceName",ip:"Ip",name:"Name",deployState:"Deploy State",deployCluster:"Deploy Cluster",deployClusters:"Deploy Clusters",registerState:"Register State",registerCluster:"Register Cluster",registryClusters:"Registry Clusters",CPU:"CPU",node:"Node",memory:"Memory",owningWorkload_k8s:"Owning Workload(k8s)",creationTime_k8s:"CreationTime(k8s)",startTime:"StartTime",dubboPort:"DubboPort",instanceImage_k8s:"Image(k8s)",instanceLabel:"Instance Label",whichApplication:"Owning Application",healthExamination_k8s:"Health Examination(k8s)",registerTime:"RegisterTime",labels:"Labels",startTime_k8s:"StartTime(k8s)",instanceCount:"Instance Count"},serviceDomain:{name:"Name",timeout:"Timeout",retryNum:"Retry Num",sameAreaFirst:"Same Area First",closed:"Closed",opened:"Opened",paramRoute:"Param Route"},servicesDomain:{appName:"Application Name",consumerAppName:"Consumer Application Name",instanceCount:"Instance Count",deployClusters:"Deploy Clusters",registryClusters:"Registry Clusters"},appServiceTimeout:"Adjusting the timeout for application service provision",enableAppInstanceLogs:"Enable access logs for all instances of this application",appServiceLoadBalance:"Adjusting the load balancing strategy for application service provision",appServiceRetries:"Adjusting the number of retries for application provided services",appServiceNegativeClusteringMethod:"Adjusting the negative clustering method for application service provision",executionLog:"Execution Log",clusterApproach:"Cluster Approach",retryCount:"Retry Count",event:"Event",configuration:"Configuration",linkTracking:"Link Tracking",monitor:"Monitor",details:"Details",creationTime_k8s:"creationTime(k8s)",dubboPort:"Dubbo Port",whichApplication:"application",registerTime:"Register Time",startTime_k8s:"Start Time(k8s)",readyTime_k8s:"Ready Time(k8s)",registerStates:"Register States",deployState:"Deployment Status",owningWorkload_k8s:"Owning Workload(k8s)",creationTime:"Creation Time",nodeIP:"Node IP",healthExamination:"Health Examination",instanceImage_k8s:"Image(k8s)",instanceLabel:"Instance Label",instanceDetail:"Instance Detail",state:"State",memory:"Memory",CPU:"CPU",node:"Node",labels:"Labels",instanceIP:"Instance IP",instanceName:"Instance Name",instance:"Instance",resourceDetails:"Resource Details",service:"Service",versionGroup:"Version & Group",avgQPS:"last 1min QPS",provider:"Provider",subset:"Group",avgRT:"last 1min RT",requestTotal:"last 1min request total",serviceSearch:"Search Service",serviceGovernance:"Routing Rule",trafficManagement:"Traffic Management",routingRule:"Condition Rule",tagRule:"Tag Rule",meshRule:"Mesh Rule",dynamicConfig:"Dynamic Config",accessControl:"Black White List",weightAdjust:"Weight Adjust",loadBalance:"Load Balance",serviceTest:"Service Test",serviceMock:"Service Mock",serviceMetrics:"Service Metrics",serviceRelation:"Service Relation",metrics:"Metrics",relation:"Relation",group:"Group",serviceInfo:"Service Info",providers:"Providers",consumers:"Consumers",common:"Common",version:"Version",app:"Application",services:"Services",application:"Application",all:"All",ip:"IP",qps:"qps",rt:"rt",successRate:"success rate",port:"PORT",timeout:"timeout(ms)",serialization:"serialization",appName:"Application Name",instanceNum:"Instance Number",deployCluster:"Deploy Cluster",registerCluster:"Register Cluster",serviceName:"Service Name",registrySource:"Registry Source",instanceRegistry:"Instance Registry",interfaceRegistry:"Interface Registry",allRegistry:"Instance / Interface Registry",operation:"Operation",searchResult:"Search Result",search:"Search",methodName:"Method Name",enabled:"Enabled",disabled:"Disabled",method:"Method",weight:"Weight",create:"CREATE",save:"SAVE",cancel:"CANCEL",close:"CLOSE",confirm:"CONFIRM",ruleContent:"RULE CONTENT",createNewTagRule:"Create New Tag Rule",createNewMeshRule:"Create New Mesh Rule",createNewDynamicConfigRule:"Create New Dynamic Config Rule",createNewWeightRule:"Create New Weight Rule",createNewLoadBalanceRule:"Create new load balancing rule",createTimeoutRule:"Create timeout rule",createRetryRule:"Create timeout rule",createRegionRule:"Create retry rule",createArgumentRule:"Create argument routing rule",createMockCircuitRule:"Create mock (circuit breaking) rule",createAccesslogRule:"Create accesslog rule",createGrayRule:"Create gray rule",createWeightRule:"Create weighting rule",serviceIdHint:"Service ID",view:"View",edit:"Edit",delete:"Delete",searchRoutingRule:"Search Routing Rule",searchAccess:"Search Access Rule",searchWeightRule:"Search Weight Adjust Rule",dataIdClassHint:"Complete package path of service interface class",dataIdVersionHint:"The version of the service interface, which can be filled in according to the actual situation of the interface",dataIdGroupHint:"The group of the service interface, which can be filled in according to the actual situation of the interface",agree:"Agree",disagree:"Disagree",searchDynamicConfig:"Search Dynamic Config",appNameHint:"Application name the service belongs to",basicInfo:"BasicInfo",metaData:"MetaData",methodMetrics:"Method Statistics",searchDubboService:"Search Dubbo Services or applications",serviceSearchHint:"Service ID, org.apache.dubbo.demo.api.DemoService, * for all services",ipSearchHint:"Find all services provided by the target server on the specified IP address",appSearchHint:"Input an application name to find all services provided by one particular application, * for all",searchTagRule:"Search Tag Rule by application name",searchMeshRule:"Search Mesh Rule by application name",searchSingleMetrics:"Search Metrics by IP",searchBalanceRule:"Search Balancing Rule",noMetadataHint:"There is no metadata available, please update to Dubbo2.7, or check your config center configuration in application.properties, please check ",parameterList:"parameterList",returnType:"returnType",here:"here",configAddress:"https://github.com/apache/incubator-dubbo-admin/wiki/Dubbo-Admin-configuration",whiteList:"White List",whiteListHint:"White list IP address, divided by comma: 1.1.1.1,2.2.2.2",blackList:"Black List",blackListHint:"Black list IP address, divided by comma: 3.3.3.3,4.4.4.4",address:"Address",weightAddressHint:"IP addresses to set this weight, divided by comma: 1.1.1.1,2.2.2.2",weightHint:"weight value, default is 100",methodHint:"choose method of load balancing, * for all methods",strategy:"Strategy",balanceStrategyHint:"load balancing strategy",goIndex:"Go To Index",releaseLater:"will release later",later:{metrics:"Metrics will release later",serviceTest:"Service Test will release later",serviceMock:"Service Mock will release later"},by:"by ",$vuetify:{dataIterator:{rowsPerPageText:"Items per page:",rowsPerPageAll:"All",pageText:"{0}-{1} of {2}",noResultsText:"No matching records found",nextPage:"Next page",prevPage:"Previous page"},dataTable:{rowsPerPageText:"Rows per page:"},noDataText:"No data available"},configManage:"Configuration Management",configCenterAddress:"ConfigCenter Address",searchDubboConfig:"Search Dubbo Config",createNewDubboConfig:"Create New Dubbo Config",scope:"Scope",name:"Name",warnDeleteConfig:" Are you sure to Delete Dubbo Config: ",warnDeleteDynamicConfig:"Are you sure to Delete dynamic config",warnDeleteBalancing:"Are you sure to Delete load balancing",warnDeleteAccessControl:"Are you sure to Delete access control",warnDeleteTagRule:"Are you sure to Delete tag rule",warnDeleteMeshRule:"Are you sure to Delete mesh rule",warnDeleteWeightAdjust:"Are you sure to Delete weight adjust",configNameHint:"Application name the config belongs to, use 'global'(without quotes) for global config",configContent:"Config Content",testMethod:"Test Method",execute:"EXECUTE",result:"Result: ",success:"SUCCESS",fail:"FAIL",detail:"Detail",more:"More",copyUrl:"Copy URL",copy:"Copy",url:"URL",copySuccessfully:"Copied",test:"Test",placeholders:{searchService:"Search by service name"},placeholder:{searchService:"Search by service name",typeAppName:"Enter application name",typeInstanceIP:"Enter instance IP",consumerAppName:"Enter consumer application name",typeDefault:"Please enter",typeRoutingRules:"Search routing rules",searchAppNameOrIP:"Search application, IP"},methods:"Methods",testModule:{searchServiceHint:"Entire service ID, org.apache.dubbo.demo.api.DemoService, press Enter to search"},userName:"User Name",password:"Password",login:"Login",apiDocs:"API Docs",apiDocsRes:{dubboProviderIP:"Dubbo Provider Ip",dubboProviderPort:"Dubbo Provider Port",loadApiList:"Load Api List",apiListText:"Api List",apiForm:{missingInterfaceInfo:"Missing interface information",getApiInfoErr:"Exception in obtaining interface information",api404Err:"Interface name is incorrect, interface parameters and response information are not found",apiRespDecShowLabel:"Response Description",apiNameShowLabel:"Api Name",apiPathShowLabel:"Api Path",apiMethodParamInfoLabel:"Api method parameters",apiVersionShowLabel:"Api Version",apiGroupShowLabel:"Api Group",apiDescriptionShowLabel:"Api Description",isAsyncFormLabel:"Whether to call asynchronously (this parameter cannot be modified, according to whether to display asynchronously defined by the interface)",apiModuleFormLabel:"Api module (this parameter cannot be modified)",apiFunctionNameFormLabel:"Api function name(this parameter cannot be modified)",registryCenterUrlFormLabel:"Registry address. If it is empty, Dubbo provider IP and port will be used for direct connection",paramNameLabel:"Parameter name",paramPathLabel:"Parameter path",paramDescriptionLabel:"Description",paramRequiredLabel:"This parameter is required",doTestBtn:"Do Test",responseLabel:"Response",responseExampleLabel:"Response Example",apiResponseLabel:"Api Response",LoadingLabel:"Loading...",requireTip:"There are required items not filled in",requireItemTip:"This field is required",requestApiErrorTip:"There is an exception in the request interface. Please check the submitted data, especially the JSON class data and the enumeration part",unsupportedHtmlTypeTip:"Temporarily unsupported form type",none:"none"}},authFailed:"Authorized failed,please login.",registryCenter:"Registry",ruleList:"Rule List",mockRule:"Mock Rule",mockData:"Mock Data",globalDisable:"Global Disable",globalEnable:"Global Enable",saveRuleSuccess:"Save Rule Successfully",deleteRuleSuccess:"Delete Rule Successfully",disableRuleSuccess:"Disable Rule Successfully",enableRuleSuccess:"Enable Rule Successfully",methodNameHint:"The method name of Service",createMockRule:"Create Mock Rule",editMockRule:"Edit Mock Rule",deleteRuleTitle:"Are you sure to delete this mock rule?",createTime:"Create Time",lastModifiedTime:"Last Modified Time",trafficTimeout:"Timeout",trafficRetry:"Retry",trafficRegion:"Region Aware",trafficIsolation:"Isolation",trafficWeight:"Weight Percentage",trafficArguments:"Arg Routing",trafficMock:"Mock",trafficAccesslog:"Accesslog",trafficHost:"Host",homePage:"Cluster Overview",serviceManagement:"Dev & Test",resources:"Resources",applications:"Applications",instances:"Instances",applicationDomain:{instanceCount:"Instance Count",deployClusters:"Deploy Clusters",registryClusters:"Registry Clusters",registerClusters:"Registry Clusters",registerModes:"Register Modes",operatorLog:"OperatorLog",flowWeight:"FlowWeight",gray:"Gray",detail:"Detail",instance:"Instance",service:"Service",monitor:"Monitor",tracing:"Tracing",config:"Config",event:"Event",appName:"Application Name",rpcProtocols:"Rpc Protocols",dubboVersions:"Dubbo Versions",dubboPorts:"Dubbo Ports",serialProtocols:"Serial Protocols",appTypes:"Application Types",images:"Images",workloads:"Workloads",deployCluster:"Deploy Cluster",registerCluster:"Register Cluster",registerMode:"Register Mode"},searchDomain:{total:"Total",unit:"items"},messageDomain:{success:{copy:"You have successfully copied a piece of information"}},backHome:"Back Home",noPageTip:"Sorry, the page you visited does not exist.",globalSearchTip:"Search ip, application, instance, service",none:"No Select",debug:"Debug",distribution:"Distribution",tracing:"Tracing",sceneConfig:"Scene Config",provideService:"Provide Service",dependentService:"Dependent Service",submit:"Submit",reset:"Reset",router:{resource:{app:{list:"List"},ins:{list:"List"},svc:{list:"List"}}},form:{save:"SAVE"}},zLe={cn:{content:"内容",Home:"主页",home:"主页",...FLe},en:{content:"content",Home:"Home",home:"home",...HLe}},MW=St({locale:localStorage.getItem(Jj)||"cn",opts:[{value:"en",title:"en"},{value:"cn",title:"中文"}]}),xP=UDe({locale:MW.locale,legacy:!1,globalInjection:!0,messages:zLe}),IHe=e=>{localStorage.setItem(Jj,e),xP.global.locale.value=e};/*! js-cookie v3.0.5 | MIT */function Xv(e){for(var t=1;t"u")){a=Xv({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in a)a[s]&&(l+="; "+s,a[s]!==!0&&(l+="="+a[s].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l({36551263:wt(Oh)})),oD.locale("en");const t=St(MW);Ie(t,o=>{oD.locale(o.locale)}),ft(eW.LOCALE,t);function n(){window.open("https://cn.dubbo.apache.org/zh-cn/overview/what/")}const r=St(xP.global.locale);return kj(),(o,i)=>{const a=Nt("a-float-button"),l=Nt("a-config-provider");return ht(),jn(l,{locale:wt(r==="en"?so:kLe),theme:{token:{colorPrimary:wt(Oh)}}},{default:bn(()=>[g(wt(Nj)),g(a,{type:"primary",class:"__global_float_button_question",onClick:n},{icon:bn(()=>[g(wt(PF))]),_:1})]),_:1},8,["locale","theme"])}}});var KLe=!1;function ULe(e){return Cb()?(i2(e),!0):!1}function Th(e){return typeof e=="function"?e():wt(e)}const RW=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const GLe=Object.prototype.toString,YLe=e=>GLe.call(e)==="[object Object]",bd=()=>{},XLe=qLe();function qLe(){var e,t;return RW&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function DW(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const LW=e=>e();function ZLe(e,t={}){let n,r,o=bd;const i=l=>{clearTimeout(l),o(),o=bd};return l=>{const s=Th(e),c=Th(t.maxWait);return n&&i(n),s<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((u,d)=>{o=t.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(l())},c)),n=setTimeout(()=>{r&&i(r),r=null,u(l())},s)})}}function QLe(e=LW){const t=he(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...i)=>{t.value&&e(...i)};return{isActive:d2(t),pause:n,resume:r,eventFilter:o}}function JLe(e){return e||Nn()}function Bc(e,t=200,n={}){return DW(ZLe(t,n),e)}function eNe(e,t,n={}){const{eventFilter:r=LW,...o}=n;return Ie(e,DW(r,t),o)}function tNe(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:i,pause:a,resume:l,isActive:s}=QLe(r);return{stop:eNe(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:s}}function au(e,t=!0,n){JLe()?lt(e,n):t?e():_t(e)}function io(e,t,n){return Ie(e,(r,o,i)=>{r&&t(r,o,i)},n)}function lp(e){var t;const n=Th(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Eh=RW?window:void 0;function Hp(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=Eh):[t,n,r,o]=e,!t)return bd;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(u=>u()),i.length=0},l=(u,d,f,h)=>(u.addEventListener(d,f,h),()=>u.removeEventListener(d,f,h)),s=Ie(()=>[lp(t),Th(o)],([u,d])=>{if(a(),!u)return;const f=YLe(d)?{...d}:d;i.push(...n.flatMap(h=>r.map(m=>l(u,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{s(),a()};return ULe(c),c}let iD=!1;function nNe(e,t,n={}){const{window:r=Eh,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return bd;XLe&&!iD&&(iD=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",bd)),r.document.documentElement.addEventListener("click",bd));let l=!0;const s=f=>o.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(m=>m===f.target||f.composedPath().includes(m));{const m=lp(h);return m&&(f.target===m||f.composedPath().includes(m))}}),u=[Hp(r,"click",f=>{const h=lp(e);if(!(!h||h===f.target||f.composedPath().includes(h))){if(f.detail===0&&(l=!s(f)),!l){l=!0;return}t(f)}},{passive:!0,capture:i}),Hp(r,"pointerdown",f=>{const h=lp(e);l=!s(f)&&!!(h&&!f.composedPath().includes(h))},{passive:!0}),a&&Hp(r,"blur",f=>{setTimeout(()=>{var h;const m=lp(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>u.forEach(f=>f())}const qv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zv="__vueuse_ssr_handlers__",rNe=oNe();function oNe(){return Zv in qv||(qv[Zv]=qv[Zv]||{}),qv[Zv]}function iNe(e,t){return rNe[e]||t}function aNe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const lNe={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},aD="vueuse-storage";function sNe(e,t,n,r={}){var o;const{flush:i="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:u,window:d=Eh,eventFilter:f,onError:h=E=>{console.error(E)},initOnMounted:m}=r,v=(u?ve:he)(typeof t=="function"?t():t);if(!n)try{n=iNe("getDefaultStorage",()=>{var E;return(E=Eh)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!n)return v;const y=Th(t),b=aNe(y),$=(o=r.serializer)!=null?o:lNe[b],{pause:x,resume:_}=tNe(v,()=>w(v.value),{flush:i,deep:a,eventFilter:f});return d&&l&&au(()=>{Hp(d,"storage",P),Hp(d,aD,O),m&&P()}),m||P(),v;function w(E){try{if(E==null)n.removeItem(e);else{const R=$.write(E),A=n.getItem(e);A!==R&&(n.setItem(e,R),d&&d.dispatchEvent(new CustomEvent(aD,{detail:{key:e,oldValue:A,newValue:R,storageArea:n}})))}}catch(R){h(R)}}function I(E){const R=E?E.newValue:n.getItem(e);if(R==null)return s&&y!=null&&n.setItem(e,$.write(y)),y;if(!E&&c){const A=$.read(R);return typeof c=="function"?c(A,y):b==="object"&&!Array.isArray(A)?{...y,...A}:A}else return typeof R!="string"?R:$.read(R)}function O(E){P(E.detail)}function P(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){v.value=y;return}if(!(E&&E.key!==e)){x();try{(E==null?void 0:E.newValue)!==$.write(v.value)&&(v.value=I(E))}catch(R){h(R)}finally{E?_t(_):_()}}}}}function _P(e,t,n={}){const{window:r=Eh}=n;return sNe(e,t,r==null?void 0:r.localStorage,n)}function ob(e){"@babel/helpers - typeof";return ob=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},ob(e)}var cNe=/^\s+/,uNe=/\s+$/;function et(e,t){if(e=e||"",t=t||{},e instanceof et)return e;if(!(this instanceof et))return new et(e,t);var n=dNe(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}et.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,o,i,a,l;return n=t.r/255,r=t.g/255,o=t.b/255,n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*l},setAlpha:function(t){return this._a=NW(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=sD(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=sD(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("+n+", "+r+"%, "+o+"%)":"hsva("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=lD(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=lD(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("+n+", "+r+"%, "+o+"%)":"hsla("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return cD(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return gNe(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Hn(this._r,255)*100)+"%",g:Math.round(Hn(this._g,255)*100)+"%",b:Math.round(Hn(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Hn(this._r,255)*100)+"%, "+Math.round(Hn(this._g,255)*100)+"%, "+Math.round(Hn(this._b,255)*100)+"%)":"rgba("+Math.round(Hn(this._r,255)*100)+"%, "+Math.round(Hn(this._g,255)*100)+"%, "+Math.round(Hn(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:INe[cD(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+uD(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=et(t);r="#"+uD(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||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())},clone:function(){return et(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(yNe,arguments)},brighten:function(){return this._applyModification(SNe,arguments)},darken:function(){return this._applyModification(CNe,arguments)},desaturate:function(){return this._applyModification(vNe,arguments)},saturate:function(){return this._applyModification(mNe,arguments)},greyscale:function(){return this._applyModification(bNe,arguments)},spin:function(){return this._applyModification($Ne,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(_Ne,arguments)},complement:function(){return this._applyCombination(xNe,arguments)},monochromatic:function(){return this._applyCombination(ONe,arguments)},splitcomplement:function(){return this._applyCombination(wNe,arguments)},triad:function(){return this._applyCombination(dD,[3])},tetrad:function(){return this._applyCombination(dD,[4])}};et.fromRatio=function(e,t){if(ob(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=sp(e[r]));e=n}return et(e,t)};function dNe(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=ANe(e)),ob(e)=="object"&&(rl(e.r)&&rl(e.g)&&rl(e.b)?(t=fNe(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rl(e.h)&&rl(e.s)&&rl(e.v)?(r=sp(e.s),o=sp(e.v),t=hNe(e.h,r,o),a=!0,l="hsv"):rl(e.h)&&rl(e.s)&&rl(e.l)&&(r=sp(e.s),i=sp(e.l),t=pNe(e.h,r,i),a=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=NW(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}}function fNe(e,t,n){return{r:Hn(e,255)*255,g:Hn(t,255)*255,b:Hn(n,255)*255}}function lD(e,t,n){e=Hn(e,255),t=Hn(t,255),n=Hn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,l=(r+o)/2;if(r==o)i=a=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&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=a(s,l,e+1/3),o=a(s,l,e),i=a(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function sD(e,t,n){e=Hn(e,255),t=Hn(t,255),n=Hn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,l=r,s=r-o;if(a=r===0?0:s/r,r==o)i=0;else{switch(r){case e:i=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(et(r));return i}function ONe(e,t){t=t||6;for(var n=et(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(et({h:r,s:o,v:i})),i=(i+l)%1;return a}et.mix=function(e,t,n){n=n===0?0:n||50;var r=et(e).toRgb(),o=et(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 et(a)};et.readability=function(e,t){var n=et(e),r=et(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};et.isReadable=function(e,t,n){var r=et.readability(e,t),o,i;switch(i=!1,o=MNe(n),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};et.mostReadable=function(e,t,n){var r=null,o=0,i,a,l,s;n=n||{},a=n.includeFallbackColors,l=n.level,s=n.size;for(var c=0;co&&(o=i,r=et(t[c]));return et.isReadable(e,r,{level:l,size:s})||!a?r:(n.includeFallbackColors=!1,et.mostReadable(e,["#fff","#000"],n))};var zw=et.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},INe=et.hexNames=PNe(zw);function PNe(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function NW(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Hn(e,t){TNe(e)&&(e="100%");var n=ENe(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function c1(e){return Math.min(1,Math.max(0,e))}function ii(e){return parseInt(e,16)}function TNe(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function ENe(e){return typeof e=="string"&&e.indexOf("%")!=-1}function na(e){return e.length==1?"0"+e:""+e}function sp(e){return e<=1&&(e=e*100+"%"),e}function kW(e){return Math.round(parseFloat(e)*255).toString(16)}function fD(e){return ii(e)/255}var Qi=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),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 rl(e){return!!Qi.CSS_UNIT.exec(e)}function ANe(e){e=e.replace(cNe,"").replace(uNe,"").toLowerCase();var t=!1;if(zw[e])e=zw[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Qi.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Qi.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qi.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Qi.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qi.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Qi.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qi.hex8.exec(e))?{r:ii(n[1]),g:ii(n[2]),b:ii(n[3]),a:fD(n[4]),format:t?"name":"hex8"}:(n=Qi.hex6.exec(e))?{r:ii(n[1]),g:ii(n[2]),b:ii(n[3]),format:t?"name":"hex"}:(n=Qi.hex4.exec(e))?{r:ii(n[1]+""+n[1]),g:ii(n[2]+""+n[2]),b:ii(n[3]+""+n[3]),a:fD(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Qi.hex3.exec(e))?{r:ii(n[1]+""+n[1]),g:ii(n[2]+""+n[2]),b:ii(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function MNe(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var lu=lu||{};lu.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var n=e.visit(t.orientation);return n&&(n+=", "),t.type+"("+n+e.visit(t.colorStops)+")"},visit_shape:function(t){var n=t.value,r=e.visit(t.at),o=e.visit(t.style);return o&&(n+=" "+o),r&&(n+=" at "+r),n},"visit_default-radial":function(t){var n="",r=e.visit(t.at);return r&&(n+=r),n},"visit_extent-keyword":function(t){var n=t.value,r=e.visit(t.at);return r&&(n+=" at "+r),n},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,n){var r=t,o=e.visit(n.length);return o&&(r+=" "+o),r},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var n="",r=t.length;return t.forEach(function(o,i){n+=e.visit(o),i0&&n("Invalid input not EOF"),k}function o(){return x(i)}function i(){return a("linear-gradient",e.linearGradient,s)||a("repeating-linear-gradient",e.repeatingLinearGradient,s)||a("radial-gradient",e.radialGradient,d)||a("repeating-radial-gradient",e.repeatingRadialGradient,d)}function a(k,L,z){return l(L,function(K){var G=z();return G&&(D(e.comma)||n("Missing comma before color stops")),{type:k,orientation:G,colorStops:x(_)}})}function l(k,L){var z=D(k);if(z){D(e.startCall)||n("Missing (");var K=L(z);return D(e.endCall)||n("Missing )"),K}}function s(){return c()||u()}function c(){return W("directional",e.sideOrCorner,1)}function u(){return W("angular",e.angleValue,1)}function d(){var k,L=f(),z;return L&&(k=[],k.push(L),z=t,D(e.comma)&&(L=f(),L?k.push(L):t=z)),k}function f(){var k=h()||m();if(k)k.at=y();else{var L=v();if(L){k=L;var z=y();z&&(k.at=z)}else{var K=b();K&&(k={type:"default-radial",at:K})}}return k}function h(){var k=W("shape",/^(circle)/i,0);return k&&(k.style=F()||v()),k}function m(){var k=W("shape",/^(ellipse)/i,0);return k&&(k.style=A()||v()),k}function v(){return W("extent-keyword",e.extentKeywords,1)}function y(){if(W("position",/^at/,0)){var k=b();return k||n("Missing positioning value"),k}}function b(){var k=$();if(k.x||k.y)return{type:"position",value:k}}function $(){return{x:A(),y:A()}}function x(k){var L=k(),z=[];if(L)for(z.push(L);D(e.comma);)L=k(),L?z.push(L):n("One extra comma");return z}function _(){var k=w();return k||n("Expected color definition"),k.length=A(),k}function w(){return O()||E()||P()||I()}function I(){return W("literal",e.literalColor,0)}function O(){return W("hex",e.hexColor,1)}function P(){return l(e.rgbColor,function(){return{type:"rgb",value:x(R)}})}function E(){return l(e.rgbaColor,function(){return{type:"rgba",value:x(R)}})}function R(){return D(e.number)[1]}function A(){return W("%",e.percentageValue,1)||N()||F()}function N(){return W("position-keyword",e.positionKeywords,1)}function F(){return W("px",e.pixelValue,1)||W("em",e.emValue,1)}function W(k,L,z){var K=D(L);if(K)return{type:k,value:K[z]}}function D(k){var L,z;return z=/^[\n\r\t\s]+/.exec(t),z&&B(z[0].length),L=k.exec(t),L&&B(L[0].length),L}function B(k){t=t.substr(k)}return function(k){return t=k.toString(),r()}}();var RNe=lu.parse,DNe=lu.stringify,Fo="top",zi="bottom",ji="right",Ho="left",OP="auto",ag=[Fo,zi,ji,Ho],jd="start",Ah="end",LNe="clippingParents",BW="viewport",Zf="popper",NNe="reference",pD=ag.reduce(function(e,t){return e.concat([t+"-"+jd,t+"-"+Ah])},[]),FW=[].concat(ag,[OP]).reduce(function(e,t){return e.concat([t,t+"-"+jd,t+"-"+Ah])},[]),kNe="beforeRead",BNe="read",FNe="afterRead",HNe="beforeMain",zNe="main",jNe="afterMain",WNe="beforeWrite",VNe="write",KNe="afterWrite",UNe=[kNe,BNe,FNe,HNe,zNe,jNe,WNe,VNe,KNe];function ka(e){return e?(e.nodeName||"").toLowerCase():null}function fi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fc(e){var t=fi(e).Element;return e instanceof t||e instanceof Element}function Di(e){var t=fi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IP(e){if(typeof ShadowRoot>"u")return!1;var t=fi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GNe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Di(i)||!ka(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function YNe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(s,c){return s[c]="",s},{});!Di(o)||!ka(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const XNe={name:"applyStyles",enabled:!0,phase:"write",fn:GNe,effect:YNe,requires:["computeStyles"]};function Ma(e){return e.split("-")[0]}var Ic=Math.max,ib=Math.min,Wd=Math.round;function jw(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function HW(){return!/^((?!chrome|android).)*safari/i.test(jw())}function Vd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Di(e)&&(o=e.offsetWidth>0&&Wd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Wd(r.height)/e.offsetHeight||1);var a=Fc(e)?fi(e):window,l=a.visualViewport,s=!HW()&&n,c=(r.left+(s&&l?l.offsetLeft:0))/o,u=(r.top+(s&&l?l.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function PP(e){var t=Vd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zW(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xl(e){return fi(e).getComputedStyle(e)}function qNe(e){return["table","td","th"].indexOf(ka(e))>=0}function Ds(e){return((Fc(e)?e.ownerDocument:e.document)||window.document).documentElement}function u1(e){return ka(e)==="html"?e:e.assignedSlot||e.parentNode||(IP(e)?e.host:null)||Ds(e)}function hD(e){return!Di(e)||xl(e).position==="fixed"?null:e.offsetParent}function ZNe(e){var t=/firefox/i.test(jw()),n=/Trident/i.test(jw());if(n&&Di(e)){var r=xl(e);if(r.position==="fixed")return null}var o=u1(e);for(IP(o)&&(o=o.host);Di(o)&&["html","body"].indexOf(ka(o))<0;){var i=xl(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function lg(e){for(var t=fi(e),n=hD(e);n&&qNe(n)&&xl(n).position==="static";)n=hD(n);return n&&(ka(n)==="html"||ka(n)==="body"&&xl(n).position==="static")?t:n||ZNe(e)||t}function TP(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zp(e,t,n){return Ic(e,ib(t,n))}function QNe(e,t,n){var r=zp(e,t,n);return r>n?n:r}function jW(){return{top:0,right:0,bottom:0,left:0}}function WW(e){return Object.assign({},jW(),e)}function VW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var JNe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,WW(typeof t!="number"?t:VW(t,ag))};function e7e(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Ma(n.placement),s=TP(l),c=[Ho,ji].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!a)){var d=JNe(o.padding,n),f=PP(i),h=s==="y"?Fo:Ho,m=s==="y"?zi:ji,v=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],y=a[s]-n.rects.reference[s],b=lg(i),$=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,x=v/2-y/2,_=d[h],w=$-f[u]-d[m],I=$/2-f[u]/2+x,O=zp(_,I,w),P=s;n.modifiersData[r]=(t={},t[P]=O,t.centerOffset=O-I,t)}}function t7e(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zW(t.elements.popper,o)&&(t.elements.arrow=o))}const n7e={name:"arrow",enabled:!0,phase:"main",fn:e7e,effect:t7e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kd(e){return e.split("-")[1]}var r7e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function o7e(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Wd(n*o)/o||0,y:Wd(r*o)/o||0}}function gD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,m=a.y,v=m===void 0?0:m,y=typeof u=="function"?u({x:h,y:v}):{x:h,y:v};h=y.x,v=y.y;var b=a.hasOwnProperty("x"),$=a.hasOwnProperty("y"),x=Ho,_=Fo,w=window;if(c){var I=lg(n),O="clientHeight",P="clientWidth";if(I===fi(n)&&(I=Ds(n),xl(I).position!=="static"&&l==="absolute"&&(O="scrollHeight",P="scrollWidth")),I=I,o===Fo||(o===Ho||o===ji)&&i===Ah){_=zi;var E=d&&I===w&&w.visualViewport?w.visualViewport.height:I[O];v-=E-r.height,v*=s?1:-1}if(o===Ho||(o===Fo||o===zi)&&i===Ah){x=ji;var R=d&&I===w&&w.visualViewport?w.visualViewport.width:I[P];h-=R-r.width,h*=s?1:-1}}var A=Object.assign({position:l},c&&r7e),N=u===!0?o7e({x:h,y:v},fi(n)):{x:h,y:v};if(h=N.x,v=N.y,s){var F;return Object.assign({},A,(F={},F[_]=$?"0":"",F[x]=b?"0":"",F.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",F))}return Object.assign({},A,(t={},t[_]=$?v+"px":"",t[x]=b?h+"px":"",t.transform="",t))}function i7e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,s=l===void 0?!0:l,c={placement:Ma(t.placement),variation:Kd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gD(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gD(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const a7e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:i7e,data:{}};var Qv={passive:!0};function l7e(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,s=fi(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Qv)}),l&&s.addEventListener("resize",n.update,Qv),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Qv)}),l&&s.removeEventListener("resize",n.update,Qv)}}const s7e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l7e,data:{}};var c7e={left:"right",right:"left",bottom:"top",top:"bottom"};function qm(e){return e.replace(/left|right|bottom|top/g,function(t){return c7e[t]})}var u7e={start:"end",end:"start"};function vD(e){return e.replace(/start|end/g,function(t){return u7e[t]})}function EP(e){var t=fi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function AP(e){return Vd(Ds(e)).left+EP(e).scrollLeft}function d7e(e,t){var n=fi(e),r=Ds(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=HW();(c||!c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+AP(e),y:s}}function f7e(e){var t,n=Ds(e),r=EP(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ic(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ic(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+AP(e),s=-r.scrollTop;return xl(o||n).direction==="rtl"&&(l+=Ic(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}function MP(e){var t=xl(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function KW(e){return["html","body","#document"].indexOf(ka(e))>=0?e.ownerDocument.body:Di(e)&&MP(e)?e:KW(u1(e))}function jp(e,t){var n;t===void 0&&(t=[]);var r=KW(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fi(r),a=o?[i].concat(i.visualViewport||[],MP(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(jp(u1(a)))}function Ww(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function p7e(e,t){var n=Vd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function mD(e,t,n){return t===BW?Ww(d7e(e,n)):Fc(t)?p7e(t,n):Ww(f7e(Ds(e)))}function h7e(e){var t=jp(u1(e)),n=["absolute","fixed"].indexOf(xl(e).position)>=0,r=n&&Di(e)?lg(e):e;return Fc(r)?t.filter(function(o){return Fc(o)&&zW(o,r)&&ka(o)!=="body"}):[]}function g7e(e,t,n,r){var o=t==="clippingParents"?h7e(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(s,c){var u=mD(e,c,r);return s.top=Ic(u.top,s.top),s.right=ib(u.right,s.right),s.bottom=ib(u.bottom,s.bottom),s.left=Ic(u.left,s.left),s},mD(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function UW(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ma(r):null,i=r?Kd(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(o){case Fo:s={x:a,y:t.y-n.height};break;case zi:s={x:a,y:t.y+t.height};break;case ji:s={x:t.x+t.width,y:l};break;case Ho:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var c=o?TP(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case jd:s[c]=s[c]-(t[u]/2-n[u]/2);break;case Ah:s[c]=s[c]+(t[u]/2-n[u]/2);break}}return s}function Mh(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,s=l===void 0?LNe:l,c=n.rootBoundary,u=c===void 0?BW:c,d=n.elementContext,f=d===void 0?Zf:d,h=n.altBoundary,m=h===void 0?!1:h,v=n.padding,y=v===void 0?0:v,b=WW(typeof y!="number"?y:VW(y,ag)),$=f===Zf?NNe:Zf,x=e.rects.popper,_=e.elements[m?$:f],w=g7e(Fc(_)?_:_.contextElement||Ds(e.elements.popper),s,u,a),I=Vd(e.elements.reference),O=UW({reference:I,element:x,strategy:"absolute",placement:o}),P=Ww(Object.assign({},x,O)),E=f===Zf?P:I,R={top:w.top-E.top+b.top,bottom:E.bottom-w.bottom+b.bottom,left:w.left-E.left+b.left,right:E.right-w.right+b.right},A=e.modifiersData.offset;if(f===Zf&&A){var N=A[o];Object.keys(R).forEach(function(F){var W=[ji,zi].indexOf(F)>=0?1:-1,D=[Fo,zi].indexOf(F)>=0?"y":"x";R[F]+=N[D]*W})}return R}function v7e(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=s===void 0?FW:s,u=Kd(r),d=u?l?pD:pD.filter(function(m){return Kd(m)===u}):ag,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var h=f.reduce(function(m,v){return m[v]=Mh(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[Ma(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function m7e(e){if(Ma(e)===OP)return[];var t=qm(e);return[vD(e),t,vD(t)]}function b7e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,y=t.options.placement,b=Ma(y),$=b===y,x=s||($||!m?[qm(y)]:m7e(y)),_=[y].concat(x).reduce(function(oe,J){return oe.concat(Ma(J)===OP?v7e(t,{placement:J,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):J)},[]),w=t.rects.reference,I=t.rects.popper,O=new Map,P=!0,E=_[0],R=0;R<_.length;R++){var A=_[R],N=Ma(A),F=Kd(A)===jd,W=[Fo,zi].indexOf(N)>=0,D=W?"width":"height",B=Mh(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),k=W?F?ji:Ho:F?zi:Fo;w[D]>I[D]&&(k=qm(k));var L=qm(k),z=[];if(i&&z.push(B[N]<=0),l&&z.push(B[k]<=0,B[L]<=0),z.every(function(oe){return oe})){E=A,P=!1;break}O.set(A,z)}if(P)for(var K=m?3:1,G=function(J){var te=_.find(function(ee){var fe=O.get(ee);if(fe)return fe.slice(0,J).every(function(ie){return ie})});if(te)return E=te,"break"},Y=K;Y>0;Y--){var ne=G(Y);if(ne==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const y7e={name:"flip",enabled:!0,phase:"main",fn:b7e,requiresIfExists:["offset"],data:{_skip:!1}};function bD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yD(e){return[Fo,ji,zi,Ho].some(function(t){return e[t]>=0})}function S7e(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Mh(t,{elementContext:"reference"}),l=Mh(t,{altBoundary:!0}),s=bD(a,r),c=bD(l,o,i),u=yD(s),d=yD(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const C7e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S7e};function $7e(e,t,n){var r=Ma(e),o=[Ho,Fo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ho,ji].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function x7e(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=FW.reduce(function(u,d){return u[d]=$7e(d,t.rects,i),u},{}),l=a[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const w7e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x7e};function _7e(e){var t=e.state,n=e.name;t.modifiersData[n]=UW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const O7e={name:"popperOffsets",enabled:!0,phase:"read",fn:_7e,data:{}};function I7e(e){return e==="x"?"y":"x"}function P7e(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,v=m===void 0?0:m,y=Mh(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=Ma(t.placement),$=Kd(t.placement),x=!$,_=TP(b),w=I7e(_),I=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(I){if(i){var F,W=_==="y"?Fo:Ho,D=_==="y"?zi:ji,B=_==="y"?"height":"width",k=I[_],L=k+y[W],z=k-y[D],K=h?-P[B]/2:0,G=$===jd?O[B]:P[B],Y=$===jd?-P[B]:-O[B],ne=t.elements.arrow,oe=h&&ne?PP(ne):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jW(),te=J[W],ee=J[D],fe=zp(0,O[B],oe[B]),ie=x?O[B]/2-K-fe-te-R.mainAxis:G-fe-te-R.mainAxis,X=x?-O[B]/2+K+fe+ee+R.mainAxis:Y+fe+ee+R.mainAxis,ue=t.elements.arrow&&lg(t.elements.arrow),ye=ue?_==="y"?ue.clientTop||0:ue.clientLeft||0:0,H=(F=A==null?void 0:A[_])!=null?F:0,j=k+ie-H-ye,q=k+X-H,se=zp(h?ib(L,j):L,k,h?Ic(z,q):z);I[_]=se,N[_]=se-k}if(l){var ae,ge=_==="x"?Fo:Ho,Se=_==="x"?zi:ji,$e=I[w],_e=w==="y"?"height":"width",be=$e+y[ge],Te=$e-y[Se],Pe=[Fo,Ho].indexOf(b)!==-1,re=(ae=A==null?void 0:A[w])!=null?ae:0,le=Pe?be:$e-O[_e]-P[_e]-re+R.altAxis,xe=Pe?$e+O[_e]+P[_e]-re-R.altAxis:Te,Ae=h&&Pe?QNe(le,$e,xe):zp(h?le:be,$e,h?xe:Te);I[w]=Ae,N[w]=Ae-$e}t.modifiersData[r]=N}}const T7e={name:"preventOverflow",enabled:!0,phase:"main",fn:P7e,requiresIfExists:["offset"]};function E7e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function A7e(e){return e===fi(e)||!Di(e)?EP(e):E7e(e)}function M7e(e){var t=e.getBoundingClientRect(),n=Wd(t.width)/e.offsetWidth||1,r=Wd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function R7e(e,t,n){n===void 0&&(n=!1);var r=Di(t),o=Di(t)&&M7e(t),i=Ds(t),a=Vd(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((ka(t)!=="body"||MP(i))&&(l=A7e(t)),Di(t)?(s=Vd(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=AP(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function D7e(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&o(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function L7e(e){var t=D7e(e);return UNe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function N7e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function k7e(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var SD={placement:"bottom",modifiers:[],strategy:"absolute"};function CD(){for(var e=arguments.length,t=new Array(e),n=0;n - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function $D(e){return Object.prototype.toString.call(e)==="[object Object]"}function z7e(e){var t,n;return $D(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!($D(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Wp(){return Wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}const j7e={silent:!1,logLevel:"warn"},W7e=["validator"],YW=Object.prototype,XW=YW.toString,V7e=YW.hasOwnProperty,qW=/^\s*function (\w+)/;function xD(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const r=n.toString().match(qW);return r?r[1]:""}return""}const Hc=z7e,K7e=e=>e;let ao=K7e;const Ud=(e,t)=>V7e.call(e,t),U7e=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Gd=Array.isArray||function(e){return XW.call(e)==="[object Array]"},Yd=e=>XW.call(e)==="[object Function]",ab=e=>Hc(e)&&Ud(e,"_vueTypes_name"),ZW=e=>Hc(e)&&(Ud(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>Ud(e,t)));function RP(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function su(e,t,n=!1){let r,o=!0,i="";r=Hc(e)?e:{type:e};const a=ab(r)?r._vueTypes_name+" - ":"";if(ZW(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;Gd(r.type)?(o=r.type.some(l=>su(l,t,!0)===!0),i=r.type.map(l=>xD(l)).join(" or ")):(i=xD(r),o=i==="Array"?Gd(t):i==="Object"?Hc(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(l){if(l==null)return"";const s=l.constructor.toString().match(qW);return s?s[1]:""}(t)===i:t instanceof r.type)}if(!o){const l=`${a}value "${t}" should be of type "${i}"`;return n===!1?(ao(l),!1):l}if(Ud(r,"validator")&&Yd(r.validator)){const l=ao,s=[];if(ao=c=>{s.push(c)},o=r.validator(t),ao=l,!o){const c=(s.length>1?"* ":"")+s.join(` -* `);return s.length=0,n===!1?(ao(c),o):c}}return o}function ci(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(o){return o===void 0?(Ud(this,"default")&&delete this.default,this):Yd(o)||su(this,o,!0)===!0?(this.default=Gd(o)?()=>[...o]:Hc(o)?()=>Object.assign({},o):o,this):(ao(`${this._vueTypes_name} - invalid default value: "${o}"`),this)}}}),{validator:r}=n;return Yd(r)&&(n.validator=RP(r,n)),n}function Ra(e,t){const n=ci(e,t);return Object.defineProperty(n,"validate",{value(r){return Yd(this.validator)&&ao(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info: -${JSON.stringify(this)}`),this.validator=RP(r,this),this}})}function wD(e,t,n){const r=function(s){const c={};return Object.getOwnPropertyNames(s).forEach(u=>{c[u]=Object.getOwnPropertyDescriptor(s,u)}),Object.defineProperties({},c)}(t);if(r._vueTypes_name=e,!Hc(n))return r;const{validator:o}=n,i=GW(n,W7e);if(Yd(o)){let{validator:s}=r;s&&(s=(l=(a=s).__original)!==null&&l!==void 0?l:a),r.validator=RP(s?function(c){return s.call(this,c)&&o.call(this,c)}:o,r)}var a,l;return Object.assign(r,i)}function d1(e){return e.replace(/^(?!\s*$)/gm," ")}const G7e=()=>Ra("any",{}),Y7e=()=>Ra("function",{type:Function}),X7e=()=>Ra("boolean",{type:Boolean}),q7e=()=>Ra("string",{type:String}),Z7e=()=>Ra("number",{type:Number}),Q7e=()=>Ra("array",{type:Array}),J7e=()=>Ra("object",{type:Object}),eke=()=>ci("integer",{type:Number,validator:e=>U7e(e)}),tke=()=>ci("symbol",{validator:e=>typeof e=="symbol"});function nke(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ci(e.name||"<>",{type:null,validator(n){const r=e(n);return r||ao(`${this._vueTypes_name} - ${t}`),r}})}function rke(e){if(!Gd(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,n=e.reduce((r,o)=>{if(o!=null){const i=o.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return ci("oneOf",{type:n.length>0?n:void 0,validator(r){const o=e.indexOf(r)!==-1;return o||ao(t),o}})}function oke(e){if(!Gd(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=[];for(let o=0;on.indexOf(o)===i);const r=n.length>0?n:null;return ci("oneOfType",t?{type:r,validator(o){const i=[],a=e.some(l=>{const s=su(ab(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,o,!0);return typeof s=="string"&&i.push(s),s===!0});return a||ao(`oneOfType - provided value does not match any of the ${i.length} passed-in validators: -${d1(i.join(` -`))}`),a}}:{type:r})}function ike(e){return ci("arrayOf",{type:Array,validator(t){let n="";const r=t.every(o=>(n=su(e,o,!0),n===!0));return r||ao(`arrayOf - value validation error: -${d1(n)}`),r}})}function ake(e){return ci("instanceOf",{type:e})}function lke(e){return ci("objectOf",{type:Object,validator(t){let n="";const r=Object.keys(t).every(o=>(n=su(e,t[o],!0),n===!0));return r||ao(`objectOf - value validation error: -${d1(n)}`),r}})}function ske(e){const t=Object.keys(e),n=t.filter(o=>{var i;return!((i=e[o])===null||i===void 0||!i.required)}),r=ci("shape",{type:Object,validator(o){if(!Hc(o))return!1;const i=Object.keys(o);if(n.length>0&&n.some(a=>i.indexOf(a)===-1)){const a=n.filter(l=>i.indexOf(l)===-1);return ao(a.length===1?`shape - required property "${a[0]}" is not defined.`:`shape - required properties "${a.join('", "')}" are not defined.`),!1}return i.every(a=>{if(t.indexOf(a)===-1)return this._vueTypes_isLoose===!0||(ao(`shape - shape definition does not include a "${a}" property. Allowed keys: "${t.join('", "')}".`),!1);const l=su(e[a],o[a],!0);return typeof l=="string"&&ao(`shape - "${a}" property validation error: - ${d1(l)}`),l===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const cke=["name","validate","getter"],uke=(()=>{var e;return(e=class{static get any(){return G7e()}static get func(){return Y7e().def(this.defaults.func)}static get bool(){return X7e().def(this.defaults.bool)}static get string(){return q7e().def(this.defaults.string)}static get number(){return Z7e().def(this.defaults.number)}static get array(){return Q7e().def(this.defaults.array)}static get object(){return J7e().def(this.defaults.object)}static get integer(){return eke().def(this.defaults.integer)}static get symbol(){return tke()}static get nullable(){return{type:null}}static extend(t){if(Gd(t))return t.forEach(s=>this.extend(s)),this;const{name:n,validate:r=!1,getter:o=!1}=t,i=GW(t,cke);if(Ud(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:a}=i;if(ab(a))return delete i.type,Object.defineProperty(this,n,o?{get:()=>wD(n,a,i)}:{value(...s){const c=wD(n,a,i);return c.validator&&(c.validator=c.validator.bind(c,...s)),c}});let l;return l=o?{get(){const s=Object.assign({},i);return r?Ra(n,s):ci(n,s)},enumerable:!0}:{value(...s){const c=Object.assign({},i);let u;return u=r?Ra(n,c):ci(n,c),c.validator&&(u.validator=c.validator.bind(u,...s)),u},enumerable:!0},Object.defineProperty(this,n,l)}}).defaults={},e.sensibleDefaults=void 0,e.config=j7e,e.custom=nke,e.oneOf=rke,e.instanceOf=ake,e.oneOfType=oke,e.arrayOf=ike,e.objectOf=lke,e.shape=ske,e.utils={validate:(t,n)=>su(n,t,!0)===!0,toType:(t,n,r=!1)=>r?Ra(t,n):ci(t,n)},e})();function dke(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends uke{static get sensibleDefaults(){return Wp({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?Wp({},n!==!0?n:e):{}}}).defaults=Wp({},e),t}let Bt=class extends dke(){};var _D=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DP(e){var t={exports:{}};return e(t,t.exports),t.exports}var Jv=function(e){return e&&e.Math==Math&&e},Ir=Jv(typeof globalThis=="object"&&globalThis)||Jv(typeof window=="object"&&window)||Jv(typeof self=="object"&&self)||Jv(typeof _D=="object"&&_D)||function(){return this}()||Function("return this")(),Dn=function(e){try{return!!e()}catch{return!0}},Ti=!Dn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),OD={}.propertyIsEnumerable,ID=Object.getOwnPropertyDescriptor,fke={f:ID&&!OD.call({1:2},1)?function(e){var t=ID(this,e);return!!t&&t.enumerable}:OD},f1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pke={}.toString,bl=function(e){return pke.call(e).slice(8,-1)},hke="".split,p1=Dn(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return bl(e)=="String"?hke.call(e,""):Object(e)}:Object,_s=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},vf=function(e){return p1(_s(e))},Lr=function(e){return typeof e=="object"?e!==null:typeof e=="function"},LP=function(e,t){if(!Lr(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!Lr(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!Lr(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!Lr(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},gke={}.hasOwnProperty,hr=function(e,t){return gke.call(e,t)},Vw=Ir.document,vke=Lr(Vw)&&Lr(Vw.createElement),QW=function(e){return vke?Vw.createElement(e):{}},JW=!Ti&&!Dn(function(){return Object.defineProperty(QW("div"),"a",{get:function(){return 7}}).a!=7}),PD=Object.getOwnPropertyDescriptor,NP={f:Ti?PD:function(e,t){if(e=vf(e),t=LP(t,!0),JW)try{return PD(e,t)}catch{}if(hr(e,t))return f1(!fke.f.call(e,t),e[t])}},$o=function(e){if(!Lr(e))throw TypeError(String(e)+" is not an object");return e},TD=Object.defineProperty,Rl={f:Ti?TD:function(e,t,n){if($o(e),t=LP(t,!0),$o(n),JW)try{return TD(e,t,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Li=Ti?function(e,t,n){return Rl.f(e,t,f1(1,n))}:function(e,t,n){return e[t]=n,e},kP=function(e,t){try{Li(Ir,e,t)}catch{Ir[e]=t}return t},zc=Ir["__core-js_shared__"]||kP("__core-js_shared__",{}),mke=Function.toString;typeof zc.inspectSource!="function"&&(zc.inspectSource=function(e){return mke.call(e)});var lb,Vp,sb,eV=zc.inspectSource,ED=Ir.WeakMap,bke=typeof ED=="function"&&/native code/.test(eV(ED)),tV=DP(function(e){(e.exports=function(t,n){return zc[t]||(zc[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),yke=0,Ske=Math.random(),BP=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++yke+Ske).toString(36)},AD=tV("keys"),FP=function(e){return AD[e]||(AD[e]=BP(e))},h1={},Cke=Ir.WeakMap;if(bke){var Nu=zc.state||(zc.state=new Cke),$ke=Nu.get,xke=Nu.has,wke=Nu.set;lb=function(e,t){return t.facade=e,wke.call(Nu,e,t),t},Vp=function(e){return $ke.call(Nu,e)||{}},sb=function(e){return xke.call(Nu,e)}}else{var Qf=FP("state");h1[Qf]=!0,lb=function(e,t){return t.facade=e,Li(e,Qf,t),t},Vp=function(e){return hr(e,Qf)?e[Qf]:{}},sb=function(e){return hr(e,Qf)}}var Os={set:lb,get:Vp,has:sb,enforce:function(e){return sb(e)?Vp(e):lb(e,{})},getterFor:function(e){return function(t){var n;if(!Lr(t)||(n=Vp(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Is=DP(function(e){var t=Os.get,n=Os.enforce,r=String(String).split("String");(e.exports=function(o,i,a,l){var s,c=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,d=!!l&&!!l.noTargetGet;typeof a=="function"&&(typeof i!="string"||hr(a,"name")||Li(a,"name",i),(s=n(a)).source||(s.source=r.join(typeof i=="string"?i:""))),o!==Ir?(c?!d&&o[i]&&(u=!0):delete o[i],u?o[i]=a:Li(o,i,a)):u?o[i]=a:kP(i,a)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||eV(this)})}),c$=Ir,MD=function(e){return typeof e=="function"?e:void 0},g1=function(e,t){return arguments.length<2?MD(c$[e])||MD(Ir[e]):c$[e]&&c$[e][t]||Ir[e]&&Ir[e][t]},_ke=Math.ceil,Oke=Math.floor,mf=function(e){return isNaN(e=+e)?0:(e>0?Oke:_ke)(e)},Ike=Math.min,pi=function(e){return e>0?Ike(mf(e),9007199254740991):0},Pke=Math.max,Tke=Math.min,cb=function(e,t){var n=mf(e);return n<0?Pke(n+t,0):Tke(n,t)},RD=function(e){return function(t,n,r){var o,i=vf(t),a=pi(i.length),l=cb(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},nV={includes:RD(!0),indexOf:RD(!1)},Eke=nV.indexOf,rV=function(e,t){var n,r=vf(e),o=0,i=[];for(n in r)!hr(h1,n)&&hr(r,n)&&i.push(n);for(;t.length>o;)hr(r,n=t[o++])&&(~Eke(i,n)||i.push(n));return i},ub=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ake=ub.concat("length","prototype"),Mke={f:Object.getOwnPropertyNames||function(e){return rV(e,Ake)}},Rke={f:Object.getOwnPropertySymbols},Dke=g1("Reflect","ownKeys")||function(e){var t=Mke.f($o(e)),n=Rke.f;return n?t.concat(n(e)):t},Lke=function(e,t){for(var n=Dke(t),r=Rl.f,o=NP.f,i=0;i1?arguments[1]:void 0)}});(function(){function e(){cu(this,e)}return uu(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var Uke=[].join,Gke=p1!=Object,Yke=HP("join",",");po({target:"Array",proto:!0,forced:Gke||!Yke},{join:function(e){return Uke.call(vf(this),e===void 0?",":e)}});var ku,db,Dl=function(e){return Object(_s(e))},Xd=Array.isArray||function(e){return bl(e)=="Array"},iV=!!Object.getOwnPropertySymbols&&!Dn(function(){return!String(Symbol())}),Xke=iV&&!Symbol.sham&&typeof Symbol.iterator=="symbol",em=tV("wks"),Kp=Ir.Symbol,qke=Xke?Kp:Kp&&Kp.withoutSetter||BP,nr=function(e){return hr(em,e)||(iV&&hr(Kp,e)?em[e]=Kp[e]:em[e]=qke("Symbol."+e)),em[e]},Zke=nr("species"),v1=function(e,t){var n;return Xd(e)&&(typeof(n=e.constructor)!="function"||n!==Array&&!Xd(n.prototype)?Lr(n)&&(n=n[Zke])===null&&(n=void 0):n=void 0),new(n===void 0?Array:n)(t===0?0:t)},qd=function(e,t,n){var r=LP(t);r in e?Rl.f(e,r,f1(0,n)):e[r]=n},d$=g1("navigator","userAgent")||"",kD=Ir.process,BD=kD&&kD.versions,FD=BD&&BD.v8;FD?db=(ku=FD.split("."))[0]+ku[1]:d$&&(!(ku=d$.match(/Edge\/(\d+)/))||ku[1]>=74)&&(ku=d$.match(/Chrome\/(\d+)/))&&(db=ku[1]);var fb=db&&+db,Qke=nr("species"),zP=function(e){return fb>=51||!Dn(function(){var t=[];return(t.constructor={})[Qke]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Jke=zP("splice"),e9e=bf("splice",{ACCESSORS:!0,0:0,1:2}),t9e=Math.max,n9e=Math.min;po({target:"Array",proto:!0,forced:!Jke||!e9e},{splice:function(e,t){var n,r,o,i,a,l,s=Dl(this),c=pi(s.length),u=cb(e,c),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=c-u):(n=d-2,r=n9e(t9e(mf(t),0),c-u)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=v1(s,r),i=0;ic-r+n;i--)delete s[i-1]}else if(n>r)for(i=c-r;i>u;i--)l=i+n-1,(a=i+r-1)in s?s[l]=s[a]:delete s[l];for(i=0;i0&&(!i.multiline||i.multiline&&e[i.lastIndex-1]!==` -`)&&(s="(?: "+s+")",u=" "+u,c++),n=new RegExp("^(?:"+s+")",l)),g$&&(n=new RegExp("^"+s+"$(?!\\s)",l)),h$&&(t=i.lastIndex),r=pb.call(a?n:i,u),a?r?(r.input=r.input.slice(c),r[0]=r[0].slice(c),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:h$&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),g$&&r&&r.length>1&&a9e.call(r[0],n,function(){for(o=1;o")!=="7"}),WD="a".replace(/./,"$0")==="$0",VD=nr("replace"),KD=!!/./[VD]&&/./[VD]("a","$0")==="",d9e=!Dn(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),fV=function(e,t,n,r){var o=nr(e),i=!Dn(function(){var d={};return d[o]=function(){return 7},""[e](d)!=7}),a=i&&!Dn(function(){var d=!1,f=/a/;return e==="split"&&((f={}).constructor={},f.constructor[c9e]=function(){return f},f.flags="",f[o]=/./[o]),f.exec=function(){return d=!0,null},f[o](""),!d});if(!i||!a||e==="replace"&&(!u9e||!WD||KD)||e==="split"&&!d9e){var l=/./[o],s=n(o,""[e],function(d,f,h,m,v){return f.exec===Rh?i&&!v?{done:!0,value:l.call(f,h,m)}:{done:!0,value:d.call(h,f,m)}:{done:!1}},{REPLACE_KEEPS_$0:WD,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:KD}),c=s[0],u=s[1];Is(String.prototype,e,c),Is(RegExp.prototype,o,t==2?function(d,f){return u.call(d,this,f)}:function(d){return u.call(d,this)})}r&&Li(RegExp.prototype[o],"sham",!0)},f9e=nr("match"),pV=function(e){var t;return Lr(e)&&((t=e[f9e])!==void 0?!!t:bl(e)=="RegExp")},WP=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},p9e=nr("species"),UD=function(e){return function(t,n){var r,o,i=String(_s(t)),a=mf(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},hV={codeAt:UD(!1),charAt:UD(!0)},h9e=hV.charAt,gV=function(e,t,n){return t+(n?h9e(e,t).length:1)},Uw=function(e,t){var n=e.exec;if(typeof n=="function"){var r=n.call(e,t);if(typeof r!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return r}if(bl(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Rh.call(e,t)},g9e=[].push,v9e=Math.min,Bu=!Dn(function(){return!RegExp(4294967295,"y")});fV("split",2,function(e,t,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=String(_s(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[a];if(!pV(o))return t.call(a,o,l);for(var s,c,u,d=[],f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,m=new RegExp(o.source,f+"g");(s=Rh.call(m,a))&&!((c=m.lastIndex)>h&&(d.push(a.slice(h,s.index)),s.length>1&&s.index=l));)m.lastIndex===s.index&&m.lastIndex++;return h===a.length?!u&&m.test("")||d.push(""):d.push(a.slice(h)),d.length>l?d.slice(0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:t.call(this,o,i)}:t,[function(o,i){var a=_s(this),l=o==null?void 0:o[e];return l!==void 0?l.call(o,a,i):r.call(String(a),o,i)},function(o,i){var a=n(r,o,this,i,r!==t);if(a.done)return a.value;var l=$o(o),s=String(this),c=function(_,w){var I,O=$o(_).constructor;return O===void 0||(I=$o(O)[p9e])==null?w:WP(I)}(l,RegExp),u=l.unicode,d=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Bu?"y":"g"),f=new c(Bu?l:"^(?:"+l.source+")",d),h=i===void 0?4294967295:i>>>0;if(h===0)return[];if(s.length===0)return Uw(f,s)===null?[s]:[];for(var m=0,v=0,y=[];v1?arguments[1]:void 0,t.length)),r=String(e);return GD?GD.call(t,r,n):t.slice(n,n+r.length)===r}});var Fu=function(e){return typeof e=="string"},Hu=function(e){return e!==null&&mV(e)==="object"},Zd=function(){function e(){cu(this,e)}return uu(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.addEventListener(n,r,o)}},{key:"removeEventListener",value:function(t,n,r){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&n&&r&&t.removeEventListener(n,r,o)}},{key:"triggerDragEvent",value:function(t,n){var r=!1,o=function(a){var l;(l=n.drag)===null||l===void 0||l.call(n,a)},i=function a(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",a),document.onselectstart=null,document.ondragstart=null,r=!1,(s=n.end)===null||s===void 0||s.call(n,l)};e.addEventListener(t,"mousedown",function(a){var l;r||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",i),r=!0,(l=n.start)===null||l===void 0||l.call(n,a))})}},{key:"getBoundingClientRect",value:function(t){return t&&Hu(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,n){return!!(t&&Hu(t)&&Fu(n)&&t.nodeType===1)&&t.classList.contains(n.trim())}},{key:"addClass",value:function(t,n){if(t&&Hu(t)&&Fu(n)&&t.nodeType===1&&(n=n.trim(),!e.hasClass(t,n))){var r=t.className;t.className=r?r+" "+n:n}}},{key:"removeClass",value:function(t,n){if(t&&Hu(t)&&Fu(n)&&t.nodeType===1&&typeof t.className=="string"){n=n.trim();for(var r=t.className.trim().split(" "),o=r.length-1;o>=0;o--)r[o]=r[o].trim(),r[o]&&r[o]!==n||r.splice(o,1);t.className=r.join(" ")}}},{key:"toggleClass",value:function(t,n,r){t&&Hu(t)&&Fu(n)&&t.nodeType===1&&t.classList.toggle(n,r)}},{key:"replaceClass",value:function(t,n,r){t&&Hu(t)&&Fu(n)&&Fu(r)&&t.nodeType===1&&(n=n.trim(),r=r.trim(),e.removeClass(t,n),e.addClass(t,r))}},{key:"getScrollTop",value:function(t){var n="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(n,0)}},{key:"setScrollTop",value:function(t,n){"scrollTop"in t?t.scrollTop=n:t.scrollTo(t.scrollX,n)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,n){if(e.isWindow(t))return 0;var r=n?e.getScrollTop(n):e.getRootScrollTop();return t.getBoundingClientRect().top+r}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var n=window.getComputedStyle(t),r=n.display==="none",o=t.offsetParent===null&&n.position!=="fixed";return r||o}},{key:"triggerEvent",value:function(t,n){if("createEvent"in document){var r=document.createEvent("HTMLEvents");r.initEvent(n,!1,!0),t.dispatchEvent(r)}}},{key:"calcAngle",value:function(t,n){var r=t.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2,a=Math.abs(o-n.clientX),l=Math.abs(i-n.clientY),s=l/Math.sqrt(Math.pow(a,2)+Math.pow(l,2)),c=Math.acos(s),u=Math.floor(180/(Math.PI/c));return n.clientX>o&&n.clientY>i&&(u=180-u),n.clientX==o&&n.clientY>i&&(u=180),n.clientX>o&&n.clientY==i&&(u=90),n.clientXi&&(u=180+u),n.clientX1?r-1:0),i=1;i]*>)/g,L9e=/\$([$&'`]|\d\d?)/g,N9e=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,s=L9e;return o!==void 0&&(o=Dl(o),s=D9e),R9e.call(i,s,function(c,u){var d;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":d=o[u.slice(1,-1)];break;default:var f=+u;if(f===0)return c;if(f>l){var h=M9e(f/10);return h===0?c:h<=l?r[h-1]===void 0?u.charAt(1):r[h-1]+u.charAt(1):c}d=r[f-1]}return d===void 0?"":d})},k9e=Math.max,B9e=Math.min;fV("replace",2,function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(l,s){var c=_s(this),u=l==null?void 0:l[e];return u!==void 0?u.call(l,c,s):t.call(String(c),l,s)},function(l,s){if(!o&&i||typeof s=="string"&&s.indexOf(a)===-1){var c=n(t,l,this,s);if(c.done)return c.value}var u=$o(l),d=String(this),f=typeof s=="function";f||(s=String(s));var h=u.global;if(h){var m=u.unicode;u.lastIndex=0}for(var v=[];;){var y=Uw(u,d);if(y===null||(v.push(y),!h))break;String(y[0])===""&&(u.lastIndex=gV(d,pi(u.lastIndex),m))}for(var b,$="",x=0,_=0;_=x&&($+=d.slice(x,I)+A,x=I+w.length)}return $+d.slice(x)}]});(function(){function e(){cu(this,e)}return uu(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(n,r){return r?r.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){cu(this,e)}return uu(e,null,[{key:"_clone",value:function(){}}]),e})();var bV=nr("isConcatSpreadable"),F9e=fb>=51||!Dn(function(){var e=[];return e[bV]=!1,e.concat()[0]!==e}),H9e=zP("concat"),z9e=function(e){if(!Lr(e))return!1;var t=e[bV];return t!==void 0?!!t:Xd(e)};po({target:"Array",proto:!0,forced:!F9e||!H9e},{concat:function(e){var t,n,r,o,i,a=Dl(this),l=v1(a,0),s=0;for(t=-1,r=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");qd(l,s++,i)}return l.length=s,l}});var b$,cg=function(e,t,n){if(WP(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,o){return e.call(t,r,o)};case 3:return function(r,o,i){return e.call(t,r,o,i)}}return function(){return e.apply(t,arguments)}},YD=[].push,Ql=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,l=e==5||i;return function(s,c,u,d){for(var f,h,m=Dl(s),v=p1(m),y=cg(c,u,3),b=pi(v.length),$=0,x=d||v1,_=t?x(s,b):n||a?x(s,0):void 0;b>$;$++)if((l||$ in v)&&(h=y(f=v[$],$,m),e))if(t)_[$]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return $;case 2:YD.call(_,f)}else switch(e){case 4:return!1;case 7:YD.call(_,f)}return i?-1:r||o?o:_}},yV={forEach:Ql(0),map:Ql(1),filter:Ql(2),some:Ql(3),every:Ql(4),find:Ql(5),findIndex:Ql(6),filterOut:Ql(7)},j9e=Ti?Object.defineProperties:function(e,t){$o(e);for(var n,r=VP(t),o=r.length,i=0;o>i;)Rl.f(e,n=r[i++],t[n]);return e},W9e=g1("document","documentElement"),SV=FP("IE_PROTO"),y$=function(){},XD=function(e){return" - - - -
    - - diff --git a/pkg/console/service/instance.go b/pkg/console/service/instance.go index ccfe2f949..ed0f822df 100644 --- a/pkg/console/service/instance.go +++ b/pkg/console/service/instance.go @@ -172,7 +172,8 @@ func GetInstanceMetrics(ctx consolectx.Context, req *model.MetricsReq) ([]*model } func UpdateInstanceTrafficStatus(ctx consolectx.Context, mesh string, appName string, instanceIP string, newDisabled bool) error { - conditionRuleRes, err := GetConditionRule(ctx, appName, mesh) + conditionRuleName := appName + constants.ConditionRuleDotSuffix + conditionRuleRes, err := GetConditionRule(ctx, conditionRuleName, mesh) if err != nil { logger.Errorf("get condition rule for %s failed, cause: %s", appName, err) return err @@ -184,6 +185,7 @@ func UpdateInstanceTrafficStatus(ctx consolectx.Context, mesh string, appName st return nil } conditionRoute := generateDefaultConditionV3(true, true, true, appName, constants.ScopeApplication) + conditionRoute.Conditions = append(conditionRoute.Conditions, disableExpression(instanceIP)) resName := appName + constants.ConditionRuleDotSuffix conditionRuleRes = meshresource.NewConditionRouteResourceWithAttributes(resName, mesh) conditionRuleRes.Spec = conditionRoute From aa0597aafb6b9a1cb580bda411f58973903293fb Mon Sep 17 00:00:00 2001 From: robocanic Date: Sun, 18 Jan 2026 09:48:14 +0800 Subject: [PATCH 4/5] fix: CI promblems --- .github/workflows/ci.yml | 13 + .gitignore | 2 +- pkg/common/util/concurrent/debouncer.go | 3 - pkg/common/util/watchdog/watchdog.go | 88 --- pkg/common/util/xds/callbacks.go | 114 ---- pkg/common/util/xds/logger.go | 49 -- pkg/common/util/xds/logging_callbacks.go | 92 ---- pkg/common/util/xds/metric_sanitizer.go | 31 -- pkg/common/util/xds/noop_callbacks.go | 54 -- pkg/common/util/xds/stats_callbacks.go | 163 ------ pkg/common/util/xds/v3/cache.go | 510 ------------------ pkg/common/util/xds/v3/callbacks.go | 240 --------- pkg/common/util/xds/v3/callbacks_chain.go | 123 ----- .../util/xds/v3/callbacks_chain_test.go | 221 -------- .../util/xds/v3/control_plane_id_callbacks.go | 56 -- pkg/common/util/xds/v3/noop_callbacks.go | 65 --- pkg/common/util/xds/v3/versioner.go | 69 --- pkg/common/util/xds/v3/watchdog_callbacks.go | 193 ------- pkg/core/logger/log.go | 6 + 19 files changed, 20 insertions(+), 2072 deletions(-) delete mode 100644 pkg/common/util/watchdog/watchdog.go delete mode 100644 pkg/common/util/xds/callbacks.go delete mode 100644 pkg/common/util/xds/logger.go delete mode 100644 pkg/common/util/xds/logging_callbacks.go delete mode 100644 pkg/common/util/xds/metric_sanitizer.go delete mode 100644 pkg/common/util/xds/noop_callbacks.go delete mode 100644 pkg/common/util/xds/stats_callbacks.go delete mode 100644 pkg/common/util/xds/v3/cache.go delete mode 100644 pkg/common/util/xds/v3/callbacks.go delete mode 100644 pkg/common/util/xds/v3/callbacks_chain.go delete mode 100644 pkg/common/util/xds/v3/callbacks_chain_test.go delete mode 100644 pkg/common/util/xds/v3/control_plane_id_callbacks.go delete mode 100644 pkg/common/util/xds/v3/noop_callbacks.go delete mode 100644 pkg/common/util/xds/v3/versioner.go delete mode 100644 pkg/common/util/xds/v3/watchdog_callbacks.go diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 467757ff5..4065f4254 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,19 @@ jobs: if: github.repository == 'apache/dubbo-admin' steps: - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'yarn' + cache-dependency-path: ui-vue3/yarn.lock + - name: Build Frontend (Vue3) + working-directory: ui-vue3 + run: | + yarn install --frozen-lockfile + yarn build + - name: Copy Dist Directory + run: cp -r ui-vue3/dist/ app/dubbo-ui/ - name: Setup Go ${{ matrix.go_version }} uses: actions/setup-go@v5 with: diff --git a/.gitignore b/.gitignore index 6bd14b1c9..b41087695 100644 --- a/.gitignore +++ b/.gitignore @@ -45,4 +45,4 @@ bin/ build/ vendor/ - +app/dubbo-ui/dist/ diff --git a/pkg/common/util/concurrent/debouncer.go b/pkg/common/util/concurrent/debouncer.go index 2250822e5..fd9c32e85 100644 --- a/pkg/common/util/concurrent/debouncer.go +++ b/pkg/common/util/concurrent/debouncer.go @@ -21,11 +21,8 @@ import ( "time" "github.com/apache/dubbo-admin/pkg/common/util/sets" - "github.com/apache/dubbo-admin/pkg/core" ) -var log = core.Log.WithName("debouncer") - type Debouncer[T comparable] struct{} func (d *Debouncer[T]) Run(ch chan T, stopCh <-chan struct{}, debounceMinInterval, debounceMaxInterval time.Duration, pushFn func(sets.Set[T])) { diff --git a/pkg/common/util/watchdog/watchdog.go b/pkg/common/util/watchdog/watchdog.go deleted file mode 100644 index a14405c5f..000000000 --- a/pkg/common/util/watchdog/watchdog.go +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package watchdog - -import ( - "context" - "time" - - "github.com/pkg/errors" -) - -type Watchdog interface { - Start(stop <-chan struct{}) -} - -type SimpleWatchdog struct { - NewTicker func() *time.Ticker - OnTick func(context.Context) error - OnError func(error) - OnStop func() -} - -func (w *SimpleWatchdog) Start(stop <-chan struct{}) { - ticker := w.NewTicker() - defer ticker.Stop() - - for { - ctx, cancel := context.WithCancel(context.Background()) - // cancel is called at the end of the loop - go func() { - select { - case <-stop: - cancel() - case <-ctx.Done(): - } - }() - select { - case <-ticker.C: - select { - case <-stop: - default: - if err := w.onTick(ctx); err != nil && !errors.Is(err, context.Canceled) { - w.OnError(err) - } - } - case <-stop: - if w.OnStop != nil { - w.OnStop() - } - // cancel will be called by the above goroutine - return - } - cancel() - } -} - -func (w *SimpleWatchdog) onTick(ctx context.Context) error { - defer func() { - if cause := recover(); cause != nil { - if w.OnError != nil { - var err error - switch typ := cause.(type) { - case error: - err = errors.WithStack(typ) - default: - err = errors.Errorf("%v", cause) - } - w.OnError(err) - } - } - }() - return w.OnTick(ctx) -} diff --git a/pkg/common/util/xds/callbacks.go b/pkg/common/util/xds/callbacks.go deleted file mode 100644 index bd586ebec..000000000 --- a/pkg/common/util/xds/callbacks.go +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package xds - -import ( - "context" - - discoveryv3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - "google.golang.org/protobuf/types/known/anypb" - "google.golang.org/protobuf/types/known/structpb" -) - -// DiscoveryRequest defines interface over real Envoy's DiscoveryRequest. -type DiscoveryRequest interface { - NodeId() string - // Node returns either a v2 or v3 Node - Node() interface{} - Metadata() *structpb.Struct - VersionInfo() string - GetTypeUrl() string - GetResponseNonce() string - GetResourceNames() []string - HasErrors() bool - ErrorMsg() string -} - -// DiscoveryResponse defines interface over real Envoy's DiscoveryResponse. -type DiscoveryResponse interface { - GetTypeUrl() string - VersionInfo() string - GetResources() []*anypb.Any - GetNonce() string -} - -type DeltaDiscoveryRequest interface { - NodeId() string - // Node returns either a v2 or v3 Node - Node() interface{} - Metadata() *structpb.Struct - GetTypeUrl() string - GetResponseNonce() string - GetResourceNamesSubscribe() []string - GetInitialResourceVersions() map[string]string - HasErrors() bool - ErrorMsg() string -} - -// DeltaDiscoveryResponse defines interface over real Envoy's DeltaDiscoveryResponse. -type DeltaDiscoveryResponse interface { - GetTypeUrl() string - GetResources() []*discoveryv3.Resource - GetRemovedResources() []string - GetNonce() string -} - -// Callbacks defines Callbacks for xDS streaming requests. The difference over real go-control-plane Callbacks is that it takes an DiscoveryRequest / DiscoveryResponse interface. -// It helps us to implement Callbacks once for many different versions of Envoy API. -type Callbacks interface { - // OnStreamOpen is called once an xDS stream is opened with a stream ID and the type URL (or "" for ADS). - // Returning an error will end processing and close the stream. OnStreamClosed will still be called. - OnStreamOpen(context.Context, int64, string) error - // OnStreamClosed is called immediately prior to closing an xDS stream with a stream ID. - OnStreamClosed(int64) - // OnStreamRequest is called once a request is received on a stream. - // Returning an error will end processing and close the stream. OnStreamClosed will still be called. - OnStreamRequest(int64, DiscoveryRequest) error - // OnStreamResponse is called immediately prior to sending a response on a stream. - OnStreamResponse(int64, DiscoveryRequest, DiscoveryResponse) -} - -type DeltaCallbacks interface { - // OnDeltaStreamOpen is called once an xDS stream is opened with a stream ID and the type URL (or "" for ADS). - // Returning an error will end processing and close the stream. OnDeltaStreamClosed will still be called. - OnDeltaStreamOpen(context.Context, int64, string) error - // OnDeltaStreamClosed is called immediately prior to closing an xDS stream with a stream ID. - OnDeltaStreamClosed(int64) - // OnStreamDeltaRequest is called once a request is received on a stream. - // Returning an error will end processing and close the stream. OnDeltaStreamClosed will still be called. - OnStreamDeltaRequest(int64, DeltaDiscoveryRequest) error - // OnStreamDeltaResponse is called immediately prior to sending a response on a stream. - OnStreamDeltaResponse(int64, DeltaDiscoveryRequest, DeltaDiscoveryResponse) -} - -// RestCallbacks defines rest.Callbacks for xDS fetch requests. The difference over real go-control-plane -// Callbacks is that it takes an DiscoveryRequest / DiscoveryResponse interface. -// It helps us to implement Callbacks once for many different versions of Envoy API. -type RestCallbacks interface { - // OnFetchRequest is called when a new rest request comes in. - // Returning an error will end processing. OnFetchResponse will not be called. - OnFetchRequest(ctx context.Context, request DiscoveryRequest) error - // OnFetchResponse is called immediately prior to sending a rest response. - OnFetchResponse(request DiscoveryRequest, response DiscoveryResponse) -} - -// MultiCallbacks implements callbacks for both rest and streaming xDS requests. -type MultiCallbacks interface { - Callbacks - RestCallbacks -} diff --git a/pkg/common/util/xds/logger.go b/pkg/common/util/xds/logger.go deleted file mode 100644 index b7cffeb1f..000000000 --- a/pkg/common/util/xds/logger.go +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package xds - -import ( - "fmt" - - envoy_log "github.com/envoyproxy/go-control-plane/pkg/log" - "github.com/go-logr/logr" -) - -func NewLogger(log logr.Logger) envoy_log.Logger { - return &logger{log: log} -} - -type logger struct { - log logr.Logger -} - -func (l logger) Debugf(format string, args ...interface{}) { - l.log.V(1).Info(fmt.Sprintf(format, args...)) -} - -func (l logger) Warnf(format string, args ...interface{}) { - l.log.V(1).Info(fmt.Sprintf(format, args...)) -} - -func (l logger) Infof(format string, args ...interface{}) { - l.log.V(1).Info(fmt.Sprintf(format, args...)) -} - -func (l logger) Errorf(format string, args ...interface{}) { - l.log.Error(fmt.Errorf(format, args...), "") -} diff --git a/pkg/common/util/xds/logging_callbacks.go b/pkg/common/util/xds/logging_callbacks.go deleted file mode 100644 index 5d0deaa98..000000000 --- a/pkg/common/util/xds/logging_callbacks.go +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package xds - -import ( - "context" - - "github.com/go-logr/logr" -) - -type LoggingCallbacks struct { - Log logr.Logger -} - -var _ Callbacks = LoggingCallbacks{} - -// OnStreamOpen is called once an xDS stream is open with a stream ID and the type URL (or "" for ADS). -// Returning an error will end processing and close the stream. OnStreamClosed will still be called. -func (cb LoggingCallbacks) OnStreamOpen(ctx context.Context, streamID int64, typ string) error { - cb.Log.V(1).Info("OnStreamOpen", "context", ctx, "streamid", streamID, "type", typ) - return nil -} - -// OnStreamClosed is called immediately prior to closing an xDS stream with a stream ID. -func (cb LoggingCallbacks) OnStreamClosed(streamID int64) { - cb.Log.V(1).Info("OnStreamClosed", "streamid", streamID) -} - -// OnStreamRequest is called once a request is received on a stream. -// Returning an error will end processing and close the stream. OnStreamClosed will still be called. -func (cb LoggingCallbacks) OnStreamRequest(streamID int64, req DiscoveryRequest) error { - cb.Log.V(1).Info("OnStreamRequest", "streamid", streamID, "req", req) - return nil -} - -// OnStreamResponse is called immediately prior to sending a response on a stream. -func (cb LoggingCallbacks) OnStreamResponse(streamID int64, req DiscoveryRequest, resp DiscoveryResponse) { - cb.Log.V(1).Info("OnStreamResponse", "streamid", streamID, "req", req, "resp", resp) -} - -// OnDeltaStreamOpen is called once an xDS stream is open with a stream ID and the type URL (or "" for ADS). -// Returning an error will end processing and close the stream. OnDeltaStreamOpen will still be called. -func (cb LoggingCallbacks) OnDeltaStreamOpen(ctx context.Context, streamID int64, typ string) error { - cb.Log.V(1).Info("OnDeltaStreamOpen", "context", ctx, "streamid", streamID, "type", typ) - return nil -} - -// OnDeltaStreamClosed is called immediately prior to closing an xDS stream with a stream ID. -func (cb LoggingCallbacks) OnDeltaStreamClosed(streamID int64) { - cb.Log.V(1).Info("OnDeltaStreamClosed", "streamid", streamID) -} - -// OnStreamDeltaRequest is called once a request is received on a stream. -// Returning an error will end processing and close the stream. OnStreamDeltaRequest will still be called. -func (cb LoggingCallbacks) OnStreamDeltaRequest(streamID int64, req DeltaDiscoveryRequest) error { - cb.Log.V(1).Info("OnStreamDeltaRequest", "streamid", streamID, "req", req) - return nil -} - -// OnStreamDeltaResponse is called immediately prior to sending a response on a stream. -func (cb LoggingCallbacks) OnStreamDeltaResponse(streamID int64, req DeltaDiscoveryRequest, resp DeltaDiscoveryResponse) { - cb.Log.V(1).Info("OnStreamDeltaResponse", "streamid", streamID, "req", req, "resp", resp) -} - -// OnFetchRequest is called for each Fetch request. Returning an error will end processing of the -// request and respond with an error. -func (cb LoggingCallbacks) OnFetchRequest(ctx context.Context, req DiscoveryRequest) error { - cb.Log.V(1).Info("OnFetchRequest", "context", ctx, "req", req) - return nil -} - -// OnFetchRequest is called for each Fetch request. Returning an error will end processing of the -// request and respond with an error. -// OnFetchResponse is called immediately prior to sending a response. -func (cb LoggingCallbacks) OnFetchResponse(req DiscoveryRequest, resp DiscoveryResponse) { - cb.Log.V(1).Info("OnFetchResponse", "req", req, "resp", resp) -} diff --git a/pkg/common/util/xds/metric_sanitizer.go b/pkg/common/util/xds/metric_sanitizer.go deleted file mode 100644 index 7cabf8e14..000000000 --- a/pkg/common/util/xds/metric_sanitizer.go +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package xds - -import ( - "regexp" -) - -var illegalChars = regexp.MustCompile(`[^a-zA-Z_\-0-9]`) - -// We need to sanitize metrics in order to not break statsd and prometheus format. -// StatsD only allow [a-zA-Z_\-0-9.] characters, everything else is removed -// Extra dots breaks many regexes that converts statsd metric to prometheus one with tags -func SanitizeMetric(metric string) string { - return illegalChars.ReplaceAllString(metric, "_") -} diff --git a/pkg/common/util/xds/noop_callbacks.go b/pkg/common/util/xds/noop_callbacks.go deleted file mode 100644 index 2ceb7d115..000000000 --- a/pkg/common/util/xds/noop_callbacks.go +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package xds - -import ( - "context" -) - -type NoopCallbacks struct{} - -func (n *NoopCallbacks) OnStreamOpen(context.Context, int64, string) error { - return nil -} - -func (n *NoopCallbacks) OnStreamClosed(int64) { -} - -func (n *NoopCallbacks) OnStreamRequest(int64, DiscoveryRequest) error { - return nil -} - -func (n *NoopCallbacks) OnStreamResponse(int64, DiscoveryRequest, DiscoveryResponse) { -} - -func (n *NoopCallbacks) OnDeltaStreamOpen(context.Context, int64, string) error { - return nil -} - -func (n *NoopCallbacks) OnDeltaStreamClosed(int64) { -} - -func (n *NoopCallbacks) OnStreamDeltaRequest(int64, DeltaDiscoveryRequest) error { - return nil -} - -func (n *NoopCallbacks) OnStreamDeltaResponse(int64, DeltaDiscoveryRequest, DeltaDiscoveryResponse) { -} - -var _ Callbacks = &NoopCallbacks{} diff --git a/pkg/common/util/xds/stats_callbacks.go b/pkg/common/util/xds/stats_callbacks.go deleted file mode 100644 index e703afd53..000000000 --- a/pkg/common/util/xds/stats_callbacks.go +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package xds - -import ( - "context" - "sync" - "time" - - "github.com/prometheus/client_golang/prometheus" - - "github.com/apache/dubbo-admin/pkg/core" -) - -var statsLogger = core.Log.WithName("stats-callbacks") - -const ConfigInFlightThreshold = 100_000 - -type StatsCallbacks interface { - // ConfigReadyForDelivery marks a configuration as a ready to be delivered. - // This means that any config (EDS/CDS/DDS policies etc.) with specified version was set to a Snapshot - // and it's scheduled to be delivered. - ConfigReadyForDelivery(configVersion string) - // DiscardConfig removes a configuration from being delivered. - // This should be called when the client of xDS/DDS server disconnects. - DiscardConfig(configVersion string) - Callbacks - DeltaCallbacks -} - -type statsCallbacks struct { - NoopCallbacks - responsesSentMetric *prometheus.CounterVec - requestsReceivedMetric *prometheus.CounterVec - deliveryMetric prometheus.Summary - deliveryMetricName string - streamsActive int - configsQueue map[string]time.Time - sync.RWMutex -} - -func (s *statsCallbacks) ConfigReadyForDelivery(configVersion string) { - s.Lock() - if len(s.configsQueue) > ConfigInFlightThreshold { - // We clean up times of ready for delivery configs when config is delivered or client is disconnected. - // However, there is always a potential case that may have missed. - // When we get to the point of ConfigInFlightThreshold elements in the map we want to wipe the map - // instead of grow it to the point that CP runs out of memory. - // The statistic is not critical for CP to work, and we will still get data points of configs that are constantly being delivered. - statsLogger.Info("cleaning up config ready for delivery times to avoid potential memory leak. This operation may cause problems with metric for a short period of time", "metric", s.deliveryMetricName) - s.configsQueue = map[string]time.Time{} - } - s.configsQueue[configVersion] = core.Now() - s.Unlock() -} - -func (s *statsCallbacks) DiscardConfig(configVersion string) { - s.Lock() - delete(s.configsQueue, configVersion) - s.Unlock() -} - -var _ StatsCallbacks = &statsCallbacks{} - -func NewStatsCallbacks(metrics prometheus.Registerer, dsType string) (StatsCallbacks, error) { - stats := &statsCallbacks{ - configsQueue: map[string]time.Time{}, - } - - return stats, nil -} - -func (s *statsCallbacks) OnStreamOpen(context.Context, int64, string) error { - s.Lock() - defer s.Unlock() - s.streamsActive++ - return nil -} - -func (s *statsCallbacks) OnStreamClosed(int64) { - s.Lock() - defer s.Unlock() - s.streamsActive-- -} - -func (s *statsCallbacks) OnStreamRequest(_ int64, request DiscoveryRequest) error { - if request.VersionInfo() == "" { - return nil // It's initial DiscoveryRequest to ask for resources. It's neither ACK nor NACK. - } - - if request.HasErrors() { - s.requestsReceivedMetric.WithLabelValues(request.GetTypeUrl(), "NACK").Inc() - } else { - s.requestsReceivedMetric.WithLabelValues(request.GetTypeUrl(), "ACK").Inc() - } - - if configTime, exists := s.takeConfigTimeFromQueue(request.VersionInfo()); exists { - s.deliveryMetric.Observe(float64(core.Now().Sub(configTime).Milliseconds())) - } - return nil -} - -func (s *statsCallbacks) takeConfigTimeFromQueue(configVersion string) (time.Time, bool) { - s.Lock() - generatedTime, ok := s.configsQueue[configVersion] - delete(s.configsQueue, configVersion) - s.Unlock() - return generatedTime, ok -} - -func (s *statsCallbacks) OnStreamResponse(_ int64, _ DiscoveryRequest, response DiscoveryResponse) { - s.responsesSentMetric.WithLabelValues(response.GetTypeUrl()).Inc() -} - -func (s *statsCallbacks) OnDeltaStreamOpen(context.Context, int64, string) error { - s.Lock() - defer s.Unlock() - s.streamsActive++ - return nil -} - -func (s *statsCallbacks) OnDeltaStreamClosed(int64) { - s.Lock() - defer s.Unlock() - s.streamsActive-- -} - -func (s *statsCallbacks) OnStreamDeltaRequest(_ int64, request DeltaDiscoveryRequest) error { - if request.GetResponseNonce() == "" { - return nil // It's initial DiscoveryRequest to ask for resources. It's neither ACK nor NACK. - } - - if request.HasErrors() { - s.requestsReceivedMetric.WithLabelValues(request.GetTypeUrl(), "NACK").Inc() - } else { - s.requestsReceivedMetric.WithLabelValues(request.GetTypeUrl(), "ACK").Inc() - } - - // Delta only has an initial version, therefore we need to change the key to nodeID and typeURL. - if configTime, exists := s.takeConfigTimeFromQueue(request.NodeId() + request.GetTypeUrl()); exists { - s.deliveryMetric.Observe(float64(core.Now().Sub(configTime).Milliseconds())) - } - return nil -} - -func (s *statsCallbacks) OnStreamDeltaResponse(_ int64, _ DeltaDiscoveryRequest, response DeltaDiscoveryResponse) { - s.responsesSentMetric.WithLabelValues(response.GetTypeUrl()).Inc() -} diff --git a/pkg/common/util/xds/v3/cache.go b/pkg/common/util/xds/v3/cache.go deleted file mode 100644 index 3ba272735..000000000 --- a/pkg/common/util/xds/v3/cache.go +++ /dev/null @@ -1,510 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// Copyright 2018 Envoyproxy Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package v3 - -import ( - "context" - "fmt" - "sync" - "sync/atomic" - "time" - - envoyconfigcorev3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - "github.com/envoyproxy/go-control-plane/pkg/cache/types" - envoycache "github.com/envoyproxy/go-control-plane/pkg/cache/v3" - "github.com/envoyproxy/go-control-plane/pkg/log" - "github.com/envoyproxy/go-control-plane/pkg/server/stream/v3" -) - -type Snapshot interface { - // GetSupportedTypes returns a list of xDS types supported by this snapshot. - GetSupportedTypes() []string - - // Consistent check verifies that the dependent resources are exactly listed in the - // snapshot: - // - all EDS resources are listed by name in CDS resources - // - all RDS resources are listed by name in LDS resources - // - // Note that clusters and listeners are requested without name references, so - // Envoy will accept the snapshot list of clusters as-is even if it does not match - // all references found in xDS. - Consistent() error - - // GetResources selects snapshot resources by type. - GetResources(typ string) map[string]types.Resource - - // GetVersion returns the version for a resource type. - GetVersion(typ string) string - - // WithVersion creates a new snapshot with a different version for a given resource type. - WithVersion(typ string, version string) Snapshot -} - -// SnapshotCache is a snapshot-based envoy_cache that maintains a single versioned -// snapshot of responses per node. SnapshotCache consistently replies with the -// latest snapshot. For the protocol to work correctly in ADS mode, EDS/RDS -// requests are responded only when all resources in the snapshot xDS response -// are named as part of the request. It is expected that the CDS response names -// all EDS clusters, and the LDS response names all RDS routes in a snapshot, -// to ensure that Envoy makes the request for all EDS clusters or RDS routes -// eventually. -// -// SnapshotCache can operate as a REST or regular xDS backend. The snapshot -// can be partial, e.g. only include RDS or EDS resources. -type SnapshotCache interface { - envoycache.Cache - - // SetSnapshot sets a response snapshot for a node. For ADS, the snapshots - // should have distinct versions and be internally consistent (e.g. all - // referenced resources must be included in the snapshot). - // - // This method will cause the server to respond to all open watches, for which - // the version differs from the snapshot version. - SetSnapshot(node string, snapshot Snapshot) error - - // GetSnapshot gets the snapshot for a node. - GetSnapshot(node string) (Snapshot, error) - - // HasSnapshot checks whether there is a snapshot present for a node. - HasSnapshot(node string) bool - - // ClearSnapshot removes all status and snapshot information associated with a node. Return the removed snapshot or nil - ClearSnapshot(node string) Snapshot - - // GetStatusInfo retrieves status information for a node ID. - GetStatusInfo(string) StatusInfo - - // GetStatusKeys retrieves node IDs for all statuses. - GetStatusKeys() []string -} - -// Generates a snapshot of xDS resources for a given node. -type SnapshotGenerator interface { - GenerateSnapshot(context.Context, *envoyconfigcorev3.Node) (Snapshot, error) -} - -type snapshotCache struct { - // watchCount is an atomic counter incremented for each watch. This needs to - // be the first field in the struct to guarantee that it is 64-bit aligned, - // which is a requirement for atomic operations on 64-bit operands to work on - // 32-bit machines. - watchCount int64 - - log log.Logger - - // ads flag to hold responses until all resources are named - ads bool - - // snapshots are cached resources indexed by node IDs - snapshots map[string]Snapshot - - // status information for all nodes indexed by node IDs - status map[string]*statusInfo - - // hash is the hashing function for Envoy nodes - hash NodeHash - - mu sync.RWMutex -} - -// NewSnapshotCache initializes a simple envoy_cache. -// -// ADS flag forces a delay in responding to streaming requests until all -// resources are explicitly named in the request. This avoids the problem of a -// partial request over a single stream for a subset of resources which would -// require generating a fresh version for acknowledgement. ADS flag requires -// snapshot consistency. For non-ADS case (and fetch), multiple partial -// requests are sent across multiple streams and re-using the snapshot version -// is OK. -// -// Logger is optional. -func NewSnapshotCache(ads bool, hash NodeHash, logger log.Logger) SnapshotCache { - return &snapshotCache{ - log: logger, - ads: ads, - snapshots: make(map[string]Snapshot), - status: make(map[string]*statusInfo), - hash: hash, - } -} - -// SetSnapshotCache updates a snapshot for a node. -func (cache *snapshotCache) SetSnapshot(node string, snapshot Snapshot) error { - cache.mu.Lock() - defer cache.mu.Unlock() - - // update the existing entry - cache.snapshots[node] = snapshot - - // trigger existing watches for which version changed - if info, ok := cache.status[node]; ok { - info.mu.Lock() - for id, watch := range info.watches { - version := snapshot.GetVersion(watch.Request.TypeUrl) - if version != watch.Request.VersionInfo { - if cache.log != nil { - cache.log.Debugf("respond open watch %d%v with new version %q", id, watch.Request.ResourceNames, version) - } - cache.respond(watch.Request, watch.Response, snapshot.GetResources(watch.Request.TypeUrl), version) - - // discard the watch - delete(info.watches, id) - } - } - info.mu.Unlock() - } - - return nil -} - -// GetSnapshots gets the snapshot for a node, and returns an error if not found. -func (cache *snapshotCache) GetSnapshot(node string) (Snapshot, error) { - cache.mu.RLock() - defer cache.mu.RUnlock() - - snap, ok := cache.snapshots[node] - if !ok { - return nil, fmt.Errorf("no snapshot found for node %s", node) - } - return snap, nil -} - -func (cache *snapshotCache) HasSnapshot(node string) bool { - cache.mu.RLock() - defer cache.mu.RUnlock() - - _, ok := cache.snapshots[node] - return ok -} - -// ClearSnapshot clears snapshot and info for a node. -func (cache *snapshotCache) ClearSnapshot(node string) Snapshot { - cache.mu.Lock() - defer cache.mu.Unlock() - - snapshot := cache.snapshots[node] - delete(cache.snapshots, node) - delete(cache.status, node) - return snapshot -} - -// nameSet creates a map from a string slice to value true. -func nameSet(names []string) map[string]bool { - set := make(map[string]bool) - for _, name := range names { - set[name] = true - } - return set -} - -// superset checks that all resources are listed in the names set. -func superset(names map[string]bool, resources map[string]types.Resource) error { - for resourceName := range resources { - if _, exists := names[resourceName]; !exists { - return fmt.Errorf("%q not listed", resourceName) - } - } - return nil -} - -func (cache *snapshotCache) CreateDeltaWatch(*envoycache.DeltaRequest, stream.StreamState, chan envoycache.DeltaResponse) func() { - return nil -} - -// CreateWatch returns a watch for an xDS request. -func (cache *snapshotCache) CreateWatch(request *envoycache.Request, _ stream.StreamState, responseChan chan envoycache.Response) func() { - nodeID := cache.hash.ID(request.Node) - - cache.mu.Lock() - defer cache.mu.Unlock() - info, ok := cache.status[nodeID] - if !ok { - info = newStatusInfo(request.Node) - cache.status[nodeID] = info - } - - // update last watch request time - info.mu.Lock() - info.lastWatchRequestTime = time.Now() - info.mu.Unlock() - - snapshot, exists := cache.snapshots[nodeID] - version := "" - if exists { - version = snapshot.GetVersion(request.TypeUrl) - } - - // if the requested version is up-to-date or missing a response, leave an open watch - if !exists || request.VersionInfo == version { - watchID := cache.nextWatchID() - if cache.log != nil { - cache.log.Debugf("open watch %d for %s%v from nodeID %q, version %q", watchID, - request.TypeUrl, request.ResourceNames, nodeID, request.VersionInfo) - } - info.mu.Lock() - info.watches[watchID] = ResponseWatch{Request: request, Response: responseChan} - info.mu.Unlock() - return cache.cancelWatch(nodeID, watchID) - } - - // otherwise, the watch may be responded immediately - cache.respond(request, responseChan, snapshot.GetResources(request.TypeUrl), version) - - return nil -} - -func (cache *snapshotCache) nextWatchID() int64 { - return atomic.AddInt64(&cache.watchCount, 1) -} - -// cancellation function for cleaning stale watches -func (cache *snapshotCache) cancelWatch(nodeID string, watchID int64) func() { - return func() { - // uses the envoy_cache mutex - cache.mu.Lock() - defer cache.mu.Unlock() - if info, ok := cache.status[nodeID]; ok { - info.mu.Lock() - delete(info.watches, watchID) - info.mu.Unlock() - } - } -} - -// Respond to a watch with the snapshot value. The value channel should have capacity not to block. -// TODO(kuat) do not respond always, see issue https://github.com/envoyproxy/go-control-plane/issues/46 -func (cache *snapshotCache) respond(request *envoycache.Request, value chan envoycache.Response, resources map[string]types.Resource, version string) { - // for ADS, the request names must match the snapshot names - // if they do not, then the watch is never responded, and it is expected that envoy makes another request - if len(request.ResourceNames) != 0 && cache.ads { - if err := superset(nameSet(request.ResourceNames), resources); err != nil { - if cache.log != nil { - cache.log.Debugf("ADS mode: not responding to request: %v", err) - } - return - } - } - if cache.log != nil { - cache.log.Debugf("respond %s%v version %q with version %q", - request.TypeUrl, request.ResourceNames, request.VersionInfo, version) - } - - value <- createResponse(request, resources, version) -} - -func createResponse(request *envoycache.Request, resources map[string]types.Resource, version string) envoycache.Response { - filtered := make([]types.ResourceWithTTL, 0, len(resources)) - - // Reply only with the requested resources. Envoy may ask each resource - // individually in a separate stream. It is ok to reply with the same version - // on separate streams since requests do not share their response versions. - if len(request.ResourceNames) != 0 { - set := nameSet(request.ResourceNames) - for name, resource := range resources { - if set[name] { - filtered = append(filtered, types.ResourceWithTTL{Resource: resource}) - } - } - } else { - for _, resource := range resources { - filtered = append(filtered, types.ResourceWithTTL{Resource: resource}) - } - } - - return &envoycache.RawResponse{ - Request: request, - Version: version, - Resources: filtered, - } -} - -// Fetch implements the envoy_cache fetch function. -// Fetch is called on multiple streams, so responding to individual names with the same version works. -// If there is a Deadline set on the context, the call will block until either the context is terminated -// or there is a new update. -func (cache *snapshotCache) Fetch(ctx context.Context, request *envoycache.Request) (envoycache.Response, error) { - if _, hasDeadline := ctx.Deadline(); hasDeadline { - return cache.blockingFetch(ctx, request) - } - - nodeID := cache.hash.ID(request.Node) - - cache.mu.RLock() - defer cache.mu.RUnlock() - - if snapshot, exists := cache.snapshots[nodeID]; exists { - // Respond only if the request version is distinct from the current snapshot state. - // It might be beneficial to hold the request since Envoy will re-attempt the refresh. - version := snapshot.GetVersion(request.TypeUrl) - if request.VersionInfo == version { - if cache.log != nil { - cache.log.Warnf("skip fetch: version up to date") - } - return nil, &types.SkipFetchError{} - } - - resources := snapshot.GetResources(request.TypeUrl) - out := createResponse(request, resources, version) - return out, nil - } - - return nil, fmt.Errorf("missing snapshot for %q", nodeID) -} - -// blockingFetch will wait until either the context is terminated or new resources become available -func (cache *snapshotCache) blockingFetch(ctx context.Context, request *envoycache.Request) (envoycache.Response, error) { - responseChan := make(chan envoycache.Response, 1) - cancelFunc := cache.CreateWatch(request, stream.StreamState{}, responseChan) - if cancelFunc != nil { - defer cancelFunc() - } - - select { - case <-ctx.Done(): - // finished without an update - return nil, &types.SkipFetchError{} - case resp := <-responseChan: - return resp, nil - } -} - -// GetStatusInfo retrieves the status info for the node. -func (cache *snapshotCache) GetStatusInfo(node string) StatusInfo { - cache.mu.RLock() - defer cache.mu.RUnlock() - - info, exists := cache.status[node] - if !exists { - if cache.log != nil { - cache.log.Warnf("node does not exist") - } - return nil - } - - return info -} - -// GetStatusKeys retrieves all node IDs in the status map. -func (cache *snapshotCache) GetStatusKeys() []string { - cache.mu.RLock() - defer cache.mu.RUnlock() - - out := make([]string, 0, len(cache.status)) - for id := range cache.status { - out = append(out, id) - } - - return out -} - -// NodeHash computes string identifiers for Envoy nodes. -type NodeHash interface { - // ID function defines a unique string identifier for the remote Envoy node. - ID(node *envoyconfigcorev3.Node) string -} - -// IDHash uses ID field as the node hash. -type IDHash struct{} - -// ID uses the node ID field -func (IDHash) ID(node *envoyconfigcorev3.Node) string { - if node == nil { - return "" - } - return node.Id -} - -var _ NodeHash = IDHash{} - -// StatusInfo tracks the server state for the remote Envoy node. -// Not all fields are used by all envoy_cache implementations. -type StatusInfo interface { - // GetNode returns the node metadata. - GetNode() *envoyconfigcorev3.Node - - // GetNumWatches returns the number of open watches. - GetNumWatches() int - - // GetLastWatchRequestTime returns the timestamp of the last discoveryengine watch request. - GetLastWatchRequestTime() time.Time -} - -type statusInfo struct { - // node is the constant Envoy node metadata. - node *envoyconfigcorev3.Node - - // watches are indexed channels for the response watches and the original requests. - watches map[int64]ResponseWatch - - // the timestamp of the last watch request - lastWatchRequestTime time.Time - - // mutex to protect the status fields. - // should not acquire mutex of the parent envoy_cache after acquiring this mutex. - mu sync.RWMutex -} - -// ResponseWatch is a watch record keeping both the request and an open channel for the response. -type ResponseWatch struct { - // Request is the original request for the watch. - Request *envoycache.Request - - // Response is the channel to push responses to. - Response chan envoycache.Response -} - -// newStatusInfo initializes a status info data structure. -func newStatusInfo(node *envoyconfigcorev3.Node) *statusInfo { - out := statusInfo{ - node: node, - watches: make(map[int64]ResponseWatch), - } - return &out -} - -func (info *statusInfo) GetNode() *envoyconfigcorev3.Node { - info.mu.RLock() - defer info.mu.RUnlock() - return info.node -} - -func (info *statusInfo) GetNumWatches() int { - info.mu.RLock() - defer info.mu.RUnlock() - return len(info.watches) -} - -func (info *statusInfo) GetLastWatchRequestTime() time.Time { - info.mu.RLock() - defer info.mu.RUnlock() - return info.lastWatchRequestTime -} diff --git a/pkg/common/util/xds/v3/callbacks.go b/pkg/common/util/xds/v3/callbacks.go deleted file mode 100644 index 9e1ad8282..000000000 --- a/pkg/common/util/xds/v3/callbacks.go +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3 - -import ( - "context" - - envoy_core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - envoy_sd "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - envoy_xds "github.com/envoyproxy/go-control-plane/pkg/server/v3" - "google.golang.org/protobuf/types/known/structpb" - - "github.com/apache/dubbo-admin/pkg/common/util/xds" -) - -// stream callbacks -type adapterCallbacks struct { - NoopCallbacks - callbacks xds.Callbacks -} - -// AdaptCallbacks translate dubbo callbacks to real go-control-plane Callbacks -func AdaptCallbacks(callbacks xds.Callbacks) envoy_xds.Callbacks { - return &adapterCallbacks{ - callbacks: callbacks, - } -} - -var _ envoy_xds.Callbacks = &adapterCallbacks{} - -func (a *adapterCallbacks) OnStreamOpen(ctx context.Context, streamID int64, typeURL string) error { - return a.callbacks.OnStreamOpen(ctx, streamID, typeURL) -} - -func (a *adapterCallbacks) OnStreamClosed(streamID int64, _ *envoy_core.Node) { - a.callbacks.OnStreamClosed(streamID) -} - -func (a *adapterCallbacks) OnStreamRequest(streamID int64, request *envoy_sd.DiscoveryRequest) error { - return a.callbacks.OnStreamRequest(streamID, &discoveryRequest{request}) -} - -func (a *adapterCallbacks) OnStreamResponse(ctx context.Context, streamID int64, request *envoy_sd.DiscoveryRequest, response *envoy_sd.DiscoveryResponse) { - a.callbacks.OnStreamResponse(streamID, &discoveryRequest{request}, &discoveryResponse{response}) -} - -// delta callbacks - -type adapterDeltaCallbacks struct { - NoopCallbacks - callbacks xds.DeltaCallbacks -} - -// AdaptDeltaCallbacks translate dubbo callbacks to real go-control-plane Callbacks -func AdaptDeltaCallbacks(callbacks xds.DeltaCallbacks) envoy_xds.Callbacks { - return &adapterDeltaCallbacks{ - callbacks: callbacks, - } -} - -var _ envoy_xds.Callbacks = &adapterDeltaCallbacks{} - -func (a *adapterDeltaCallbacks) OnDeltaStreamOpen(ctx context.Context, streamID int64, typeURL string) error { - return a.callbacks.OnDeltaStreamOpen(ctx, streamID, typeURL) -} - -func (a *adapterDeltaCallbacks) OnDeltaStreamClosed(streamID int64, _ *envoy_core.Node) { - a.callbacks.OnDeltaStreamClosed(streamID) -} - -func (a *adapterDeltaCallbacks) OnStreamDeltaRequest(streamID int64, request *envoy_sd.DeltaDiscoveryRequest) error { - return a.callbacks.OnStreamDeltaRequest(streamID, &deltaDiscoveryRequest{request}) -} - -func (a *adapterDeltaCallbacks) OnStreamDeltaResponse(streamID int64, request *envoy_sd.DeltaDiscoveryRequest, response *envoy_sd.DeltaDiscoveryResponse) { - a.callbacks.OnStreamDeltaResponse(streamID, &deltaDiscoveryRequest{request}, &deltaDiscoveryResponse{response}) -} - -// rest callbacks - -type adapterRestCallbacks struct { - NoopCallbacks - callbacks xds.RestCallbacks -} - -// AdaptRestCallbacks translate dubbo callbacks to real go-control-plane Callbacks -func AdaptRestCallbacks(callbacks xds.RestCallbacks) envoy_xds.Callbacks { - return &adapterRestCallbacks{ - callbacks: callbacks, - } -} - -func (a *adapterRestCallbacks) OnFetchRequest(ctx context.Context, request *envoy_sd.DiscoveryRequest) error { - return a.callbacks.OnFetchRequest(ctx, &discoveryRequest{request}) -} - -func (a *adapterRestCallbacks) OnFetchResponse(request *envoy_sd.DiscoveryRequest, response *envoy_sd.DiscoveryResponse) { - a.callbacks.OnFetchResponse(&discoveryRequest{request}, &discoveryResponse{response}) -} - -// Both rest and stream - -type adapterMultiCallbacks struct { - NoopCallbacks - callbacks xds.MultiCallbacks -} - -// AdaptMultiCallbacks translate dubbo callbacks to real go-control-plane Callbacks -func AdaptMultiCallbacks(callbacks xds.MultiCallbacks) envoy_xds.Callbacks { - return &adapterMultiCallbacks{ - callbacks: callbacks, - } -} - -func (a *adapterMultiCallbacks) OnFetchRequest(ctx context.Context, request *envoy_sd.DiscoveryRequest) error { - return a.callbacks.OnFetchRequest(ctx, &discoveryRequest{request}) -} - -func (a *adapterMultiCallbacks) OnFetchResponse(request *envoy_sd.DiscoveryRequest, response *envoy_sd.DiscoveryResponse) { - a.callbacks.OnFetchResponse(&discoveryRequest{request}, &discoveryResponse{response}) -} - -func (a *adapterMultiCallbacks) OnStreamOpen(ctx context.Context, streamID int64, typeURL string) error { - return a.callbacks.OnStreamOpen(ctx, streamID, typeURL) -} - -func (a *adapterMultiCallbacks) OnStreamClosed(streamID int64, _ *envoy_core.Node) { - a.callbacks.OnStreamClosed(streamID) -} - -func (a *adapterMultiCallbacks) OnStreamRequest(streamID int64, request *envoy_sd.DiscoveryRequest) error { - return a.callbacks.OnStreamRequest(streamID, &discoveryRequest{request}) -} - -func (a *adapterMultiCallbacks) OnStreamResponse(ctx context.Context, streamID int64, request *envoy_sd.DiscoveryRequest, response *envoy_sd.DiscoveryResponse) { - a.callbacks.OnStreamResponse(streamID, &discoveryRequest{request}, &discoveryResponse{response}) -} - -// DiscoveryRequest facade - -type discoveryRequest struct { - *envoy_sd.DiscoveryRequest -} - -func (d *discoveryRequest) Metadata() *structpb.Struct { - return d.GetNode().GetMetadata() -} - -func (d *discoveryRequest) VersionInfo() string { - return d.GetVersionInfo() -} - -func (d *discoveryRequest) NodeId() string { - return d.GetNode().GetId() -} - -func (d *discoveryRequest) Node() interface{} { - return d.GetNode() -} - -func (d *discoveryRequest) HasErrors() bool { - return d.ErrorDetail != nil -} - -func (d *discoveryRequest) ErrorMsg() string { - return d.GetErrorDetail().GetMessage() -} - -func (d *discoveryRequest) ResourceNames() []string { - return d.GetResourceNames() -} - -var _ xds.DiscoveryRequest = &discoveryRequest{} - -type discoveryResponse struct { - *envoy_sd.DiscoveryResponse -} - -func (d *discoveryResponse) VersionInfo() string { - return d.GetVersionInfo() -} - -type deltaDiscoveryRequest struct { - *envoy_sd.DeltaDiscoveryRequest -} - -func (d *deltaDiscoveryRequest) Metadata() *structpb.Struct { - return d.GetNode().GetMetadata() -} - -func (d *deltaDiscoveryRequest) NodeId() string { - return d.GetNode().GetId() -} - -func (d *deltaDiscoveryRequest) Node() interface{} { - return d.GetNode() -} - -func (d *deltaDiscoveryRequest) HasErrors() bool { - return d.ErrorDetail != nil -} - -func (d *deltaDiscoveryRequest) ErrorMsg() string { - return d.GetErrorDetail().GetMessage() -} - -func (d *deltaDiscoveryRequest) ResourceNames() []string { - return d.GetResourceNamesSubscribe() -} - -func (d *deltaDiscoveryRequest) GetInitialResourceVersions() map[string]string { - return d.InitialResourceVersions -} - -var _ xds.DeltaDiscoveryRequest = &deltaDiscoveryRequest{} - -type deltaDiscoveryResponse struct { - *envoy_sd.DeltaDiscoveryResponse -} - -var _ xds.DeltaDiscoveryResponse = &deltaDiscoveryResponse{} - -func (d *deltaDiscoveryResponse) GetTypeUrl() string { - return d.TypeUrl -} diff --git a/pkg/common/util/xds/v3/callbacks_chain.go b/pkg/common/util/xds/v3/callbacks_chain.go deleted file mode 100644 index e95160c35..000000000 --- a/pkg/common/util/xds/v3/callbacks_chain.go +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3 - -import ( - "context" - - envoy_core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - envoy_sd "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - envoy_xds "github.com/envoyproxy/go-control-plane/pkg/server/v3" -) - -type CallbacksChain []envoy_xds.Callbacks - -var _ envoy_xds.Callbacks = CallbacksChain{} - -// OnStreamOpen is called once an xDS stream is open with a stream ID and the type URL (or "" for ADS). -// Returning an error will end processing and close the stream. OnStreamClosed will still be called. -func (chain CallbacksChain) OnStreamOpen(ctx context.Context, streamID int64, typ string) error { - for _, cb := range chain { - if err := cb.OnStreamOpen(ctx, streamID, typ); err != nil { - return err - } - } - return nil -} - -// OnStreamClosed is called immediately prior to closing an xDS stream with a stream ID. -func (chain CallbacksChain) OnStreamClosed(streamID int64, node *envoy_core.Node) { - for i := len(chain) - 1; i >= 0; i-- { - cb := chain[i] - cb.OnStreamClosed(streamID, node) - } -} - -// OnStreamRequest is called once a request is received on a stream. -// Returning an error will end processing and close the stream. OnStreamClosed will still be called. -func (chain CallbacksChain) OnStreamRequest(streamID int64, req *envoy_sd.DiscoveryRequest) error { - for _, cb := range chain { - if err := cb.OnStreamRequest(streamID, req); err != nil { - return err - } - } - return nil -} - -// OnStreamResponse is called immediately prior to sending a response on a stream. -func (chain CallbacksChain) OnStreamResponse(ctx context.Context, streamID int64, req *envoy_sd.DiscoveryRequest, resp *envoy_sd.DiscoveryResponse) { - for i := len(chain) - 1; i >= 0; i-- { - cb := chain[i] - cb.OnStreamResponse(ctx, streamID, req, resp) - } -} - -// OnFetchRequest is called for each Fetch request. Returning an error will end processing of the -// request and respond with an error. -func (chain CallbacksChain) OnFetchRequest(ctx context.Context, req *envoy_sd.DiscoveryRequest) error { - for _, cb := range chain { - if err := cb.OnFetchRequest(ctx, req); err != nil { - return err - } - } - return nil -} - -// OnFetchRequest is called for each Fetch request. Returning an error will end processing of the -// request and respond with an error. -// OnFetchResponse is called immediately prior to sending a response. -func (chain CallbacksChain) OnFetchResponse(req *envoy_sd.DiscoveryRequest, resp *envoy_sd.DiscoveryResponse) { - for i := len(chain) - 1; i >= 0; i-- { - cb := chain[i] - cb.OnFetchResponse(req, resp) - } -} - -func (chain CallbacksChain) OnDeltaStreamOpen(ctx context.Context, streamID int64, typeURL string) error { - for _, cb := range chain { - if err := cb.OnDeltaStreamOpen(ctx, streamID, typeURL); err != nil { - return err - } - } - - return nil -} - -func (chain CallbacksChain) OnDeltaStreamClosed(streamID int64, node *envoy_core.Node) { - for i := len(chain) - 1; i >= 0; i-- { - cb := chain[i] - cb.OnDeltaStreamClosed(streamID, node) - } -} - -func (chain CallbacksChain) OnStreamDeltaRequest(streamID int64, request *envoy_sd.DeltaDiscoveryRequest) error { - for _, cb := range chain { - if err := cb.OnStreamDeltaRequest(streamID, request); err != nil { - return err - } - } - - return nil -} - -func (chain CallbacksChain) OnStreamDeltaResponse(streamID int64, request *envoy_sd.DeltaDiscoveryRequest, response *envoy_sd.DeltaDiscoveryResponse) { - for i := len(chain) - 1; i >= 0; i-- { - cb := chain[i] - cb.OnStreamDeltaResponse(streamID, request, response) - } -} diff --git a/pkg/common/util/xds/v3/callbacks_chain_test.go b/pkg/common/util/xds/v3/callbacks_chain_test.go deleted file mode 100644 index 9f1c90681..000000000 --- a/pkg/common/util/xds/v3/callbacks_chain_test.go +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3_test - -import ( - "context" - "fmt" - - util_xds_v3 "github.com/apache/dubbo-admin/pkg/common/util/xds/v3" - envoy_core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - envoy_sd "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - envoy_xds "github.com/envoyproxy/go-control-plane/pkg/server/v3" - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" -) - -var _ = Describe("CallbacksChain", func() { - var first, second CallbacksFuncs - - type methodCall struct { - obj string - method string - args []interface{} - } - var calls []methodCall - - BeforeEach(func() { - calls = make([]methodCall, 0) - first = CallbacksFuncs{ - OnStreamOpenFunc: func(ctx context.Context, streamID int64, typ string) error { - calls = append(calls, methodCall{"1st", "OnStreamOpen()", []interface{}{ctx, streamID, typ}}) - return fmt.Errorf("1st: OnStreamOpen()") - }, - OnStreamClosedFunc: func(streamID int64, n *envoy_core.Node) { - calls = append(calls, methodCall{"1st", "OnStreamClosed()", []interface{}{streamID, n}}) - }, - OnStreamRequestFunc: func(streamID int64, req *envoy_sd.DiscoveryRequest) error { - calls = append(calls, methodCall{"1st", "OnStreamRequest()", []interface{}{streamID, req}}) - return fmt.Errorf("1st: OnStreamRequest()") - }, - OnStreamResponseFunc: func(ctx context.Context, streamID int64, req *envoy_sd.DiscoveryRequest, resp *envoy_sd.DiscoveryResponse) { - calls = append(calls, methodCall{"1st", "OnStreamResponse()", []interface{}{ctx, streamID, req, resp}}) - }, - } - second = CallbacksFuncs{ - OnStreamOpenFunc: func(ctx context.Context, streamID int64, typ string) error { - calls = append(calls, methodCall{"2nd", "OnStreamOpen()", []interface{}{ctx, streamID, typ}}) - return fmt.Errorf("2nd: OnStreamOpen()") - }, - OnStreamClosedFunc: func(streamID int64, n *envoy_core.Node) { - calls = append(calls, methodCall{"2nd", "OnStreamClosed()", []interface{}{streamID, n}}) - }, - OnStreamRequestFunc: func(streamID int64, req *envoy_sd.DiscoveryRequest) error { - calls = append(calls, methodCall{"2nd", "OnStreamRequest()", []interface{}{streamID, req}}) - return fmt.Errorf("2nd: OnStreamRequest()") - }, - OnStreamResponseFunc: func(ctx context.Context, streamID int64, req *envoy_sd.DiscoveryRequest, resp *envoy_sd.DiscoveryResponse) { - calls = append(calls, methodCall{"2nd", "OnStreamResponse()", []interface{}{ctx, streamID, req, resp}}) - }, - } - }) - - Describe("OnStreamOpen", func() { - It("should be called sequentially and return after first error", func() { - // given - ctx := context.Background() - streamID := int64(1) - typ := "xDS" - // setup - chain := util_xds_v3.CallbacksChain{first, second} - - // when - err := chain.OnStreamOpen(ctx, streamID, typ) - - // then - Expect(calls).To(Equal([]methodCall{ - {"1st", "OnStreamOpen()", []interface{}{ctx, streamID, typ}}, - })) - // and - Expect(err).To(MatchError("1st: OnStreamOpen()")) - }) - }) - Describe("OnStreamClose", func() { - It("should be called in reverse order", func() { - // given - streamID := int64(1) - n := &envoy_core.Node{Id: "my-node"} - // setup - chain := util_xds_v3.CallbacksChain{first, second} - - // when - chain.OnStreamClosed(streamID, n) - - // then - Expect(calls).To(Equal([]methodCall{ - {"2nd", "OnStreamClosed()", []interface{}{streamID, n}}, - {"1st", "OnStreamClosed()", []interface{}{streamID, n}}, - })) - }) - }) - Describe("OnStreamRequest", func() { - It("should be called sequentially and return after first error", func() { - // given - streamID := int64(1) - req := &envoy_sd.DiscoveryRequest{} - - // setup - chain := util_xds_v3.CallbacksChain{first, second} - - // when - err := chain.OnStreamRequest(streamID, req) - - // then - Expect(calls).To(Equal([]methodCall{ - {"1st", "OnStreamRequest()", []interface{}{streamID, req}}, - })) - // and - Expect(err).To(MatchError("1st: OnStreamRequest()")) - }) - }) - Describe("OnStreamResponse", func() { - It("should be called in reverse order", func() { - // given - chain := util_xds_v3.CallbacksChain{first, second} - streamID := int64(1) - req := &envoy_sd.DiscoveryRequest{} - resp := &envoy_sd.DiscoveryResponse{} - ctx := context.TODO() - - // when - chain.OnStreamResponse(ctx, streamID, req, resp) - - // then - Expect(calls).To(Equal([]methodCall{ - {"2nd", "OnStreamResponse()", []interface{}{ctx, streamID, req, resp}}, - {"1st", "OnStreamResponse()", []interface{}{ctx, streamID, req, resp}}, - })) - }) - }) -}) - -var _ envoy_xds.Callbacks = CallbacksFuncs{} - -type CallbacksFuncs struct { - OnStreamOpenFunc func(context.Context, int64, string) error - OnStreamClosedFunc func(int64, *envoy_core.Node) - - OnStreamRequestFunc func(int64, *envoy_sd.DiscoveryRequest) error - OnStreamResponseFunc func(context.Context, int64, *envoy_sd.DiscoveryRequest, *envoy_sd.DiscoveryResponse) - - OnFetchRequestFunc func(context.Context, *envoy_sd.DiscoveryRequest) error - OnFetchResponseFunc func(*envoy_sd.DiscoveryRequest, *envoy_sd.DiscoveryResponse) -} - -func (f CallbacksFuncs) OnStreamOpen(ctx context.Context, streamID int64, typ string) error { - if f.OnStreamOpenFunc != nil { - return f.OnStreamOpenFunc(ctx, streamID, typ) - } - return nil -} - -func (f CallbacksFuncs) OnStreamClosed(streamID int64, n *envoy_core.Node) { - if f.OnStreamClosedFunc != nil { - f.OnStreamClosedFunc(streamID, n) - } -} - -func (f CallbacksFuncs) OnStreamRequest(streamID int64, req *envoy_sd.DiscoveryRequest) error { - if f.OnStreamRequestFunc != nil { - return f.OnStreamRequestFunc(streamID, req) - } - return nil -} - -func (f CallbacksFuncs) OnStreamResponse(ctx context.Context, streamID int64, req *envoy_sd.DiscoveryRequest, resp *envoy_sd.DiscoveryResponse) { - if f.OnStreamResponseFunc != nil { - f.OnStreamResponseFunc(ctx, streamID, req, resp) - } -} - -func (f CallbacksFuncs) OnFetchRequest(ctx context.Context, req *envoy_sd.DiscoveryRequest) error { - if f.OnFetchRequestFunc != nil { - return f.OnFetchRequestFunc(ctx, req) - } - return nil -} - -func (f CallbacksFuncs) OnFetchResponse(req *envoy_sd.DiscoveryRequest, resp *envoy_sd.DiscoveryResponse) { - if f.OnFetchResponseFunc != nil { - f.OnFetchResponseFunc(req, resp) - } -} - -func (f CallbacksFuncs) OnDeltaStreamOpen(ctx context.Context, i int64, s string) error { - return nil -} - -func (f CallbacksFuncs) OnDeltaStreamClosed(i int64, n *envoy_core.Node) { -} - -func (f CallbacksFuncs) OnStreamDeltaRequest(i int64, request *envoy_sd.DeltaDiscoveryRequest) error { - return nil -} - -func (f CallbacksFuncs) OnStreamDeltaResponse(i int64, request *envoy_sd.DeltaDiscoveryRequest, response *envoy_sd.DeltaDiscoveryResponse) { -} diff --git a/pkg/common/util/xds/v3/control_plane_id_callbacks.go b/pkg/common/util/xds/v3/control_plane_id_callbacks.go deleted file mode 100644 index a8a6e2273..000000000 --- a/pkg/common/util/xds/v3/control_plane_id_callbacks.go +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3 - -import ( - "context" - - envoy_core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - envoy_discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - envoy_xds "github.com/envoyproxy/go-control-plane/pkg/server/v3" -) - -// controlPlaneIdCallbacks adds Control Plane ID to the DiscoveryResponse -type controlPlaneIdCallbacks struct { - NoopCallbacks - id string -} - -var _ envoy_xds.Callbacks = &controlPlaneIdCallbacks{} - -func NewControlPlaneIdCallbacks(id string) envoy_xds.Callbacks { - return &controlPlaneIdCallbacks{ - id: id, - } -} - -func (c *controlPlaneIdCallbacks) OnStreamResponse(ctx context.Context, streamID int64, request *envoy_discovery.DiscoveryRequest, response *envoy_discovery.DiscoveryResponse) { - if c.id != "" { - response.ControlPlane = &envoy_core.ControlPlane{ - Identifier: c.id, - } - } -} - -func (c *controlPlaneIdCallbacks) OnStreamDeltaResponse(streamID int64, request *envoy_discovery.DeltaDiscoveryRequest, response *envoy_discovery.DeltaDiscoveryResponse) { - if c.id != "" { - response.ControlPlane = &envoy_core.ControlPlane{ - Identifier: c.id, - } - } -} diff --git a/pkg/common/util/xds/v3/noop_callbacks.go b/pkg/common/util/xds/v3/noop_callbacks.go deleted file mode 100644 index 8e8d30bf4..000000000 --- a/pkg/common/util/xds/v3/noop_callbacks.go +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3 - -import ( - "context" - - envoy_core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - envoy_sd "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - envoy_xds "github.com/envoyproxy/go-control-plane/pkg/server/v3" -) - -type NoopCallbacks struct{} - -func (c *NoopCallbacks) OnFetchRequest(context.Context, *envoy_sd.DiscoveryRequest) error { - return nil -} - -func (c *NoopCallbacks) OnFetchResponse(*envoy_sd.DiscoveryRequest, *envoy_sd.DiscoveryResponse) { -} - -func (c *NoopCallbacks) OnStreamOpen(context.Context, int64, string) error { - return nil -} - -func (c *NoopCallbacks) OnStreamClosed(int64, *envoy_core.Node) { -} - -func (c *NoopCallbacks) OnStreamRequest(int64, *envoy_sd.DiscoveryRequest) error { - return nil -} - -func (c *NoopCallbacks) OnStreamResponse(context.Context, int64, *envoy_sd.DiscoveryRequest, *envoy_sd.DiscoveryResponse) { -} - -func (c *NoopCallbacks) OnDeltaStreamOpen(ctx context.Context, i int64, s string) error { - return nil -} - -func (c *NoopCallbacks) OnDeltaStreamClosed(int64, *envoy_core.Node) { -} - -func (c *NoopCallbacks) OnStreamDeltaRequest(i int64, request *envoy_sd.DeltaDiscoveryRequest) error { - return nil -} - -func (c *NoopCallbacks) OnStreamDeltaResponse(i int64, request *envoy_sd.DeltaDiscoveryRequest, response *envoy_sd.DeltaDiscoveryResponse) { -} - -var _ envoy_xds.Callbacks = &NoopCallbacks{} diff --git a/pkg/common/util/xds/v3/versioner.go b/pkg/common/util/xds/v3/versioner.go deleted file mode 100644 index 4aa23d849..000000000 --- a/pkg/common/util/xds/v3/versioner.go +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3 - -import ( - envoy_types "github.com/envoyproxy/go-control-plane/pkg/cache/types" - - "google.golang.org/protobuf/proto" -) - -// SnapshotVersioner assigns versions to xDS resources in a new Snapshot. -type SnapshotVersioner interface { - Version(new, old Snapshot) Snapshot -} - -// SnapshotAutoVersioner assigns versions to xDS resources in a new Snapshot -// by reusing if possible a version from the old snapshot and -// generating a new version (UUID) otherwise. -type SnapshotAutoVersioner struct { - UUID func() string -} - -func (v SnapshotAutoVersioner) Version(new, old Snapshot) Snapshot { - if new == nil { - return nil - } - for _, typ := range new.GetSupportedTypes() { - version := new.GetVersion(typ) - if version != "" { - // favor a version assigned by resource generator - continue - } - if old != nil && v.equal(new.GetResources(typ), old.GetResources(typ)) { - version = old.GetVersion(typ) - } - if version == "" { - version = v.UUID() - } - new = new.WithVersion(typ, version) - } - return new -} - -func (_ SnapshotAutoVersioner) equal(new, old map[string]envoy_types.Resource) bool { - if len(new) != len(old) { - return false - } - for key, newValue := range new { - if oldValue, hasOldValue := old[key]; !hasOldValue || !proto.Equal(newValue, oldValue) { - return false - } - } - return true -} diff --git a/pkg/common/util/xds/v3/watchdog_callbacks.go b/pkg/common/util/xds/v3/watchdog_callbacks.go deleted file mode 100644 index 37c3a4655..000000000 --- a/pkg/common/util/xds/v3/watchdog_callbacks.go +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package v3 - -import ( - "context" - "sync" - - envoy_core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" - envoy_discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" - envoy_xds "github.com/envoyproxy/go-control-plane/pkg/server/v3" - - util_watchdog "github.com/apache/dubbo-admin/pkg/common/util/watchdog" -) - -type NewNodeWatchdogFunc func(ctx context.Context, node *envoy_core.Node, streamId int64) (util_watchdog.Watchdog, error) - -func NewWatchdogCallbacks(newNodeWatchdog NewNodeWatchdogFunc) envoy_xds.Callbacks { - return &watchdogCallbacks{ - newNodeWatchdog: newNodeWatchdog, - streams: make(map[int64]watchdogStreamState), - } -} - -type watchdogCallbacks struct { - NoopCallbacks - newNodeWatchdog NewNodeWatchdogFunc - - mu sync.RWMutex // protects access to the fields below - streams map[int64]watchdogStreamState -} - -type watchdogStreamState struct { - context context.Context - cancel context.CancelFunc -} - -var _ envoy_xds.Callbacks = &watchdogCallbacks{} - -// RestStreamID is used in the non-streaming REST context -const RestStreamID = int64(-1) - -func (cb *watchdogCallbacks) hasStream(streamID int64) bool { - cb.mu.RLock() // read access to the map of all ADS streams - defer cb.mu.RUnlock() - _, ok := cb.streams[streamID] - return ok -} - -func (cb *watchdogCallbacks) OnFetchRequest(ctx context.Context, req *envoy_discovery.DiscoveryRequest) error { - // Open up a new "stream" state, which all REST requests use, if one doesn't already exist - if cb.hasStream(RestStreamID) { - return nil - } - - if err := cb.OnStreamOpen(ctx, RestStreamID, req.TypeUrl); err != nil { - return err - } - // TODO: could also register a TTL on the REST stream to clean it up if there is no activity over a certain period, - // since it will currently never be closed once opened - return cb.OnStreamRequest(RestStreamID, req) -} - -// OnStreamOpen is called once an xDS stream is open with a stream ID and the type URL (or "" for ADS). -// Returning an error will end processing and close the stream. OnStreamClosed will still be called. -func (cb *watchdogCallbacks) OnStreamOpen(ctx context.Context, streamID int64, typ string) error { - cb.mu.Lock() // write access to the map of all ADS streams - defer cb.mu.Unlock() - - cb.streams[streamID] = watchdogStreamState{ - context: ctx, - } - - return nil -} - -// OnStreamClosed is called immediately prior to closing an xDS stream with a stream ID. -func (cb *watchdogCallbacks) OnStreamClosed(streamID int64, node *envoy_core.Node) { - cb.mu.Lock() // write access to the map of all ADS streams - defer cb.mu.Unlock() - - defer delete(cb.streams, streamID) - - if watchdog := cb.streams[streamID]; watchdog.cancel != nil { - watchdog.cancel() - } -} - -// OnStreamRequest is called once a request is received on a stream. -// Returning an error will end processing and close the stream. OnStreamClosed will still be called. -func (cb *watchdogCallbacks) OnStreamRequest(streamID int64, req *envoy_discovery.DiscoveryRequest) error { - cb.mu.RLock() // read access to the map of all ADS streams - watchdog := cb.streams[streamID] - cb.mu.RUnlock() - - if watchdog.cancel != nil { - return nil - } - - cb.mu.Lock() // write access to the map of all ADS streams - defer cb.mu.Unlock() - - // create a stop channel even if there won't be an actual watchdog - stopCh := make(chan struct{}) - watchdog.cancel = func() { - close(stopCh) - } - cb.streams[streamID] = watchdog - - runnable, err := cb.newNodeWatchdog(watchdog.context, req.Node, streamID) - if err != nil { - return err - } - - if runnable != nil { - // kick off watchdog for that stream - go runnable.Start(stopCh) - } - return nil -} - -// OnDeltaStreamOpen is called once an xDS stream is open with a stream ID and the type URL (or "" for ADS). -// Returning an error will end processing and close the stream. OnDeltaStreamClosed will still be called. -func (cb *watchdogCallbacks) OnDeltaStreamOpen(ctx context.Context, streamID int64, typ string) error { - cb.mu.Lock() // write access to the map of all ADS streams - defer cb.mu.Unlock() - - cb.streams[streamID] = watchdogStreamState{ - context: ctx, - } - - return nil -} - -// OnDeltaStreamClosed is called immediately prior to closing an xDS stream with a stream ID. -func (cb *watchdogCallbacks) OnDeltaStreamClosed(streamID int64, node *envoy_core.Node) { - cb.mu.Lock() // write access to the map of all ADS streams - defer cb.mu.Unlock() - - defer delete(cb.streams, streamID) - - if watchdog := cb.streams[streamID]; watchdog.cancel != nil { - watchdog.cancel() - } -} - -// OnStreamDeltaRequest is called once a request is received on a stream. -// Returning an error will end processing and close the stream. OnDeltaStreamClosed will still be called. -func (cb *watchdogCallbacks) OnStreamDeltaRequest(streamID int64, req *envoy_discovery.DeltaDiscoveryRequest) error { - cb.mu.RLock() // read access to the map of all ADS streams - watchdog := cb.streams[streamID] - cb.mu.RUnlock() - - if watchdog.cancel != nil { - return nil - } - - cb.mu.Lock() // write access to the map of all ADS streams - defer cb.mu.Unlock() - - // create a stop channel even if there won't be an actual watchdog - stopCh := make(chan struct{}) - watchdog.cancel = func() { - close(stopCh) - } - cb.streams[streamID] = watchdog - - runnable, err := cb.newNodeWatchdog(watchdog.context, req.Node, streamID) - if err != nil { - return err - } - - if runnable != nil { - // kick off watchdog for that stream - go runnable.Start(stopCh) - } - return nil -} diff --git a/pkg/core/logger/log.go b/pkg/core/logger/log.go index be74d3492..52b7b08e2 100644 --- a/pkg/core/logger/log.go +++ b/pkg/core/logger/log.go @@ -102,9 +102,15 @@ func Init(cfg *logcfg.Config) { } func Sugar() *zap.SugaredLogger { + if sugar == nil { + Init(logcfg.DefaultLogConfig()) + } return sugar } func Logger() *zap.Logger { + if logger == nil { + Init(logcfg.DefaultLogConfig()) + } return logger } From e9eb5de939bd22761fee8362f1f6286973296b4a Mon Sep 17 00:00:00 2001 From: robocanic Date: Sun, 18 Jan 2026 09:50:03 +0800 Subject: [PATCH 5/5] fix: typo --- .../dubbo-samples-shop-all.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml b/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml index 84507bbcd..0b4111adc 100644 --- a/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml +++ b/release/kubernetes/dubbo-samples-shop/dubbo-samples-shop-all.yaml @@ -92,7 +92,7 @@ spec: -Ddubbo.metadata-report.address=nacos://nacos.dubbo-system.svc:8848?username=nacos&password=nacos -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" --- @@ -137,7 +137,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "orderVersion=v1" @@ -183,7 +183,7 @@ spec: -Ddubbo.application.qos-port=22222 -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "orderVersion=v2;" @@ -227,7 +227,7 @@ spec: -Ddubbo.application.qos-port=22222 -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" --- @@ -273,7 +273,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "detailVersion=v1; region=beijing" @@ -320,7 +320,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "detailVersion=v2; region=hangzhou;" @@ -367,7 +367,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "commentVersion=v1; region=beijing" @@ -414,7 +414,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "commentVersion=v2; region=hangzhou;" @@ -457,7 +457,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" @@ -503,7 +503,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" @@ -548,7 +548,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray" @@ -593,7 +593,7 @@ spec: -Ddubbo.application.qos-accept-foreign-ip=true -Ddubbo.application.qos-anonymous-allow-commands=metrics -Ddubbo.tracing.enabled=true - -Ddubbo.traing.sampling.probability=1.0 + -Ddubbo.tracing.sampling.probability=1.0 -Ddubbo.tracing.tracing-exporter.otlp-config.endpoint=http://jaeger.monitoring.svc:4317" - name: DUBBO_LABELS value: "env=gray"