diff --git a/.github/scripts/native-sql-matrix.py b/.github/scripts/native-sql-matrix.py index 5e94e21ca706..2567729d2805 100644 --- a/.github/scripts/native-sql-matrix.py +++ b/.github/scripts/native-sql-matrix.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""Execute fresh schemas and the complete released-2.7.1 upgrade on native engines.""" +"""Execute fresh schemas and the upgrade chain from released-2.7.1 on native engines.""" import argparse import json @@ -25,6 +25,9 @@ from pathlib import Path BASELINE = "218c5634ebffb1f0ce7e8ea921b85cd5a633cde7" # v2.7.1, peeled commit +# Upgrade scripts applied in order on top of the BASELINE schema, newest last. +# Adding a released migration here keeps every ALTER/DROP gated on real engines. +MIGRATIONS_FROM_BASELINE = ("2.7.1-upgrade-2.7.2", "2.7.2-upgrade-2.7.3") PASSWORD = "SqlMatrix@2026" SENTINEL = "sql-matrix-plugin" JAR_HEX = "0001027fff" @@ -466,8 +469,9 @@ def execute_matrix(dialect, root, output): before = {table: set(engine.sql("SELECT id FROM " + engine.table(table) + ";").split()) for table in TABLES} if flow == "upgrade": engine.insert_data_permissions(duplicates=True) - migration = root / f"db/upgrade/2.7.1-upgrade-2.7.2-{dialect}.sql" - engine.sql(migration.read_text(encoding="utf-8")) + for step in MIGRATIONS_FROM_BASELINE: + migration = root / f"db/upgrade/{step}-{dialect}.sql" + engine.sql(migration.read_text(encoding="utf-8")) else: engine.insert_data_permissions() engine.check_data(listing, detail) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9d1a53cfff0..f24fc8e635aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,21 +178,6 @@ jobs: with: java-version: "17" distribution: "temurin" - - name: Install mvnd - shell: bash - run: | - MVND_VERSION=1.0.6 - curl -sfL https://downloads.apache.org/maven/mvnd/${MVND_VERSION}/maven-mvnd-${MVND_VERSION}-linux-amd64.zip -o mvnd.zip - unzip -q mvnd.zip - mkdir -p $HOME/.local - mv maven-mvnd-${MVND_VERSION}-linux-amd64 $HOME/.local/mvnd - echo "$HOME/.local/mvnd/bin" >> $GITHUB_PATH - echo "MVND_HOME=$HOME/.local/mvnd" >> $GITHUB_ENV - - - name: Verify mvnd installation - shell: bash - run: mvnd --version || echo "mvnd version check failed, will use maven wrapper as fallback" - - name: Build with Maven shell: bash run: | @@ -204,13 +189,7 @@ jobs: MODULE_ARGS="-pl ${{ needs.changes.outputs.modules }} -am" fi - if mvnd --version > /dev/null 2>&1; then - echo "Using mvnd for build" - mvnd ${MAVEN_ARGS} ${MODULE_ARGS} test ${TEST_ARGS} - else - echo "Falling back to maven wrapper" - ./mvnw ${MAVEN_ARGS} ${MODULE_ARGS} test ${TEST_ARGS} - fi + ./mvnw ${MAVEN_ARGS} ${MODULE_ARGS} test ${TEST_ARGS} build_local_repo: needs: changes diff --git a/.github/workflows/e2e-k8s.yml b/.github/workflows/e2e-k8s.yml index c0b6775f8b49..bfd0e1f3834a 100644 --- a/.github/workflows/e2e-k8s.yml +++ b/.github/workflows/e2e-k8s.yml @@ -63,6 +63,8 @@ jobs: submodules: true - name: Test conditional disk cleanup run: bash .github/scripts/free-disk-space-test.sh + - name: Test local HTTP upstream fixture and Compose wiring + run: python3 -B shenyu-e2e/shenyu-e2e-case/compose/fixtures/test_httpbin.py - uses: ./actions/paths-filter id: filter with: diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index d79cb9ef3b66..545c02c38f5c 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -32,6 +32,21 @@ `shenyu.cross.allowed-origin.origin-regex` now fails startup with `PatternSyntaxException`, rather than failing the first matching request. Validate the expression before deploying a configuration change. + +- The misspelled `loged` column of the `selector` and `rule` tables is renamed + to `logged`, together with the matching fields of the Admin REST DTOs/VOs + (`SelectorDTO`, `RuleDTO`, `SelectorVO`, `RuleVO`) and the gateway-side + `RuleData`. Existing deployments must run the `2.7.2-upgrade-2.7.3-*.sql` + script for their database dialect (MySQL, PostgreSQL, Oracle, openGauss, + OceanBase) before upgrading. Upgrade order matters: the field is part of the + admin-to-bootstrap sync contract, so upgrade all bootstrap instances before, + or together with, admin — a new admin emitting `logged` is not understood by + old bootstraps, and that direction cannot be tolerated in code. For one release the Admin REST layer keeps + accepting the old `loged` request field via a JSON alias, but responses + always use `logged`; stored rate-limiter handle JSON keeps parsing the old + `loged` key via a Gson alternate. REST API clients that read `loged` from + responses must switch to `logged`. (#7589) + - HTTP client registration now treats non-success Admin responses as failures, using the same bounded failback policy as transport errors (18 retry attempts per pending task). The text response contract does not reliably distinguish diff --git a/db/init/mysql/schema.sql b/db/init/mysql/schema.sql index f6699a41fe1a..02eb27ffc6ae 100644 --- a/db/init/mysql/schema.sql +++ b/db/init/mysql/schema.sql @@ -1742,7 +1742,7 @@ CREATE TABLE `rule` ( `match_mode` int(0) NOT NULL COMMENT 'matching mode (0 and 1 or)', `rule_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'rule name', `enabled` tinyint(0) NOT NULL COMMENT 'whether to open (0 close, 1 open) ', - `loged` tinyint(0) NOT NULL COMMENT 'whether to log or not (0 no print, 1 print) ', + `logged` tinyint(0) NOT NULL COMMENT 'whether to log or not (0 no print, 1 print) ', `match_restful` tinyint(0) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)', `namespace_id` varchar(50) NOT NULL COMMENT 'namespace id', `sort_code` int(0) NOT NULL COMMENT 'sort', @@ -1789,7 +1789,7 @@ CREATE TABLE `selector` ( `sort_code` int(0) NOT NULL COMMENT 'sort', `handle` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)', `enabled` tinyint(0) NOT NULL COMMENT 'whether to open (0 close, 1 open) ', - `loged` tinyint(0) NOT NULL COMMENT 'whether to print the log (0 no print, 1 print) ', + `logged` tinyint(0) NOT NULL COMMENT 'whether to print the log (0 no print, 1 print) ', `continued` tinyint(0) NOT NULL COMMENT 'whether to continue execution', `match_restful` tinyint(0) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)', `namespace_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'namespace id', @@ -2364,7 +2364,7 @@ CREATE TABLE IF NOT EXISTS `namespace_user_rel` ( `date_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'date_updated' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='namespace user relation '; -INSERT INTO `selector` (`id`, `plugin_id`, `selector_name`, `match_mode`, `selector_type`, `sort_code`, `handle`, `enabled`, `loged`, `continued`, `match_restful`, `namespace_id`) VALUES ('1913785244204204032', '61', 'mcpServer', 0, 0, 1, NULL, 1, 1, 1, 0, '649330b6-c2d7-4edc-be8e-8a54df9eb385'); +INSERT INTO `selector` (`id`, `plugin_id`, `selector_name`, `match_mode`, `selector_type`, `sort_code`, `handle`, `enabled`, `logged`, `continued`, `match_restful`, `namespace_id`) VALUES ('1913785244204204032', '61', 'mcpServer', 0, 0, 1, NULL, 1, 1, 1, 0, '649330b6-c2d7-4edc-be8e-8a54df9eb385'); DROP TABLE IF EXISTS `instance_info`; diff --git a/db/init/oracle/schema.sql b/db/init/oracle/schema.sql index bb6338ea2c9a..0925fe56459f 100644 --- a/db/init/oracle/schema.sql +++ b/db/init/oracle/schema.sql @@ -122,7 +122,7 @@ create table selector sort_code NUMBER(10) not null, handle VARCHAR2(1024), enabled NUMBER(3) not null, - loged NUMBER(3) not null, + logged NUMBER(3) not null, continued NUMBER(3) not null, match_restful NUMBER(3) not null, namespace_id VARCHAR2(50) not null, @@ -148,7 +148,7 @@ comment on column SELECTOR.handle is 'processing logic (here for different plugins, there will be different fields to identify different processes, all data in JSON format is stored)'; comment on column SELECTOR.enabled is 'whether to open (0 not open, 1 open)'; -comment on column SELECTOR.loged +comment on column SELECTOR.logged is 'whether to print the log (0 not print, 1 print)'; comment on column SELECTOR.continued is 'whether to continue execution'; @@ -198,7 +198,7 @@ create table rule match_mode NUMBER(10) not null, rule_name VARCHAR2(128) not null, enabled NUMBER(3) not null, - loged NUMBER(3) not null, + logged NUMBER(3) not null, match_restful NUMBER(3) not null, namespace_id VARCHAR2(50) not null, sort_code NUMBER(10) not null, @@ -217,7 +217,7 @@ comment on column RULE.rule_name is 'rule name'; comment on column RULE.enabled is 'whether to open (0 not open, 1 open)'; -comment on column RULE.loged +comment on column RULE.logged is 'whether to log or not (0 not print, 1 print)'; comment on column RULE.match_restful is 'whether to match restful(0 cache, 1 not cache)'; diff --git a/db/init/pg/create-table.sql b/db/init/pg/create-table.sql index d772c42102ff..d5d9cc00eb9b 100644 --- a/db/init/pg/create-table.sql +++ b/db/init/pg/create-table.sql @@ -1685,7 +1685,7 @@ CREATE TABLE "public"."rule" ( "match_mode" int4 NOT NULL, "rule_name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL, "enabled" int2 NOT NULL, - "loged" int2 NOT NULL, + "logged" int2 NOT NULL, "match_restful" int2 NOT NULL, "namespace_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, "sort_code" int4 NOT NULL, @@ -1699,7 +1699,7 @@ COMMENT ON COLUMN "public"."rule"."selector_id" IS 'selector id'; COMMENT ON COLUMN "public"."rule"."match_mode" IS 'matching mode (0 and 1 or)'; COMMENT ON COLUMN "public"."rule"."rule_name" IS 'rule name'; COMMENT ON COLUMN "public"."rule"."enabled" IS 'whether to open (0 close, 1 open) '; -COMMENT ON COLUMN "public"."rule"."loged" IS 'whether to log or not (0 no print, 1 print) '; +COMMENT ON COLUMN "public"."rule"."logged" IS 'whether to log or not (0 no print, 1 print) '; COMMENT ON COLUMN "public"."rule"."match_restful" IS 'whether to match restful(0 cache, 1 not cache)'; COMMENT ON COLUMN "public"."rule"."namespace_id" IS 'namespace id'; COMMENT ON COLUMN "public"."rule"."sort_code" IS 'sort'; @@ -1752,7 +1752,7 @@ CREATE TABLE "public"."selector" ( "sort_code" int4 NOT NULL, "handle" varchar(1024) COLLATE "pg_catalog"."default", "enabled" int2 NOT NULL, - "loged" int2 NOT NULL, + "logged" int2 NOT NULL, "continued" int2 NOT NULL, "match_restful" int2 NOT NULL, "namespace_id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, @@ -1768,7 +1768,7 @@ COMMENT ON COLUMN "public"."selector"."selector_type" IS 'type (0, full flow, 1 COMMENT ON COLUMN "public"."selector"."sort_code" IS 'sort'; COMMENT ON COLUMN "public"."selector"."handle" IS 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)'; COMMENT ON COLUMN "public"."selector"."enabled" IS 'whether to open (0 close, 1 open) '; -COMMENT ON COLUMN "public"."selector"."loged" IS 'whether to print the log (0 no print, 1 print) '; +COMMENT ON COLUMN "public"."selector"."logged" IS 'whether to print the log (0 no print, 1 print) '; COMMENT ON COLUMN "public"."selector"."continued" IS 'whether to continue execution'; COMMENT ON COLUMN "public"."selector"."match_restful" IS 'whether to match restful(0 cache, 1 not cache)'; COMMENT ON COLUMN "public"."selector"."namespace_id" IS 'namespace id'; diff --git a/db/upgrade/2.7.2-upgrade-2.7.3-mysql.sql b/db/upgrade/2.7.2-upgrade-2.7.3-mysql.sql new file mode 100644 index 000000000000..b0a7fdc25641 --- /dev/null +++ b/db/upgrade/2.7.2-upgrade-2.7.3-mysql.sql @@ -0,0 +1,19 @@ +-- 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. + +-- this file works for MySQL. +ALTER TABLE `selector` RENAME COLUMN `loged` TO `logged`; +ALTER TABLE `rule` RENAME COLUMN `loged` TO `logged`; diff --git a/db/upgrade/2.7.2-upgrade-2.7.3-ob.sql b/db/upgrade/2.7.2-upgrade-2.7.3-ob.sql new file mode 100644 index 000000000000..cc0d06bc94ab --- /dev/null +++ b/db/upgrade/2.7.2-upgrade-2.7.3-ob.sql @@ -0,0 +1,19 @@ +-- 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. + +-- this file works for OceanBase (MySQL mode). +ALTER TABLE `selector` RENAME COLUMN `loged` TO `logged`; +ALTER TABLE `rule` RENAME COLUMN `loged` TO `logged`; diff --git a/db/upgrade/2.7.2-upgrade-2.7.3-og.sql b/db/upgrade/2.7.2-upgrade-2.7.3-og.sql new file mode 100644 index 000000000000..2709542ccc1b --- /dev/null +++ b/db/upgrade/2.7.2-upgrade-2.7.3-og.sql @@ -0,0 +1,19 @@ +-- 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. + +-- this file works for openGauss. +ALTER TABLE "public"."selector" RENAME COLUMN "loged" TO "logged"; +ALTER TABLE "public"."rule" RENAME COLUMN "loged" TO "logged"; diff --git a/db/upgrade/2.7.2-upgrade-2.7.3-oracle.sql b/db/upgrade/2.7.2-upgrade-2.7.3-oracle.sql new file mode 100644 index 000000000000..a6cfbafda016 --- /dev/null +++ b/db/upgrade/2.7.2-upgrade-2.7.3-oracle.sql @@ -0,0 +1,19 @@ +-- 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. + +-- this file works for Oracle. +ALTER TABLE selector RENAME COLUMN loged TO logged; +ALTER TABLE rule RENAME COLUMN loged TO logged; diff --git a/db/upgrade/2.7.2-upgrade-2.7.3-pg.sql b/db/upgrade/2.7.2-upgrade-2.7.3-pg.sql new file mode 100644 index 000000000000..a63fb80b8594 --- /dev/null +++ b/db/upgrade/2.7.2-upgrade-2.7.3-pg.sql @@ -0,0 +1,19 @@ +-- 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. + +-- this file works for PostgreSQL. +ALTER TABLE "public"."selector" RENAME COLUMN "loged" TO "logged"; +ALTER TABLE "public"."rule" RENAME COLUMN "loged" TO "logged"; diff --git a/db/upgrade/upgrade-guide.md b/db/upgrade/upgrade-guide.md index c966b31633b8..68cbe57c5cd6 100644 --- a/db/upgrade/upgrade-guide.md +++ b/db/upgrade/upgrade-guide.md @@ -4,6 +4,29 @@ ## To Shenyu Users +### `loged` column renamed to `logged` in 2.7.3 + +Running the `2.7.2-upgrade-2.7.3-.sql` script is mandatory for every +existing deployment: it renames the misspelled `loged` column to `logged` on +both the `selector` and `rule` tables, and the new Admin expects `logged`. +Upgrade order matters — the field is part of the Admin-to-bootstrap sync +contract. Upgrade all bootstrap instances before, or together with, Admin: +an Admin emitting `logged` is not understood by older bootstraps. Stop Admin +instances before running the script, then restart them after it completes. +Fresh installations create the renamed columns directly. + +- 2.7.2-upgrade-2.7.3-mysql.sql + +- 2.7.2-upgrade-2.7.3-ob.sql + +- 2.7.2-upgrade-2.7.3-og.sql + +- 2.7.2-upgrade-2.7.3-oracle.sql + +- 2.7.2-upgrade-2.7.3-pg.sql + + > this file is the Shenyu upgrade sql from v2.7.2 to v2.7.3 + ### Data permission uniqueness in 2.7.2 Stop Admin instances before running the `2.7.1-upgrade-2.7.2-.sql` diff --git a/shenyu-admin/src/http/http-debug-rule-controller-api.http b/shenyu-admin/src/http/http-debug-rule-controller-api.http index f8748ab1758a..1cd4a573d6fd 100644 --- a/shenyu-admin/src/http/http-debug-rule-controller-api.http +++ b/shenyu-admin/src/http/http-debug-rule-controller-api.http @@ -70,7 +70,7 @@ X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiw "name": "test-create-rule", "matchMode": 1, "sort": 1, - "loged": true, + "logged": true, "enabled": true, "ruleConditions": [ { @@ -93,7 +93,7 @@ X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiw "name": "test-create-rule", "matchMode": 1, "sort": 1, - "loged": true, + "logged": true, "enabled": true, "ruleConditions": [ { diff --git a/shenyu-admin/src/http/http-debug-selector-controller-api.http b/shenyu-admin/src/http/http-debug-selector-controller-api.http index b3ef1efd965f..b2f33531189f 100644 --- a/shenyu-admin/src/http/http-debug-selector-controller-api.http +++ b/shenyu-admin/src/http/http-debug-selector-controller-api.http @@ -77,7 +77,7 @@ X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiw "type": 1, "sort": 1, "matchMode": 1, - "loged": true, + "logged": true, "enabled": true, "continued": true, "selectorConditions": [ @@ -101,7 +101,7 @@ X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTmFtZSI6ImFkbWluIiw "name": "test-create-selector", "type": 0, "sort": 1, - "loged": true, + "logged": true, "enabled": true, "continued": true, "selectorConditions": [ diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/RuleDTO.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/RuleDTO.java index 66747dd4f8ac..502488646f9a 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/RuleDTO.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/RuleDTO.java @@ -17,6 +17,7 @@ package org.apache.shenyu.admin.model.dto; +import com.fasterxml.jackson.annotation.JsonAlias; import org.apache.shenyu.admin.mapper.NamespaceMapper; import org.apache.shenyu.admin.mapper.RuleMapper; import org.apache.shenyu.admin.mapper.SelectorMapper; @@ -69,10 +70,11 @@ public final class RuleDTO implements Serializable { private Boolean enabled; /** - * whether loged. + * whether logged. */ @NotNull - private Boolean loged; + @JsonAlias("loged") + private Boolean logged; /** * sort type. @@ -110,7 +112,7 @@ public RuleDTO(final String id, @NotNull final Integer matchMode, @NotBlank final String name, @NotNull final Boolean enabled, - final Boolean loged, + final Boolean logged, @NotNull final Integer sort, final String handle, @Valid final List ruleConditions, @@ -121,7 +123,7 @@ public RuleDTO(final String id, this.matchMode = matchMode; this.name = name; this.enabled = enabled; - this.loged = loged; + this.logged = logged; this.sort = sort; this.handle = handle; this.ruleConditions = ruleConditions; @@ -220,21 +222,21 @@ public void setEnabled(final Boolean enabled) { } /** - * Gets the value of loged. + * Gets the value of logged. * - * @return the value of loged + * @return the value of logged */ - public Boolean getLoged() { - return loged; + public Boolean getLogged() { + return logged; } /** - * Sets the loged. + * Sets the logged. * - * @param loged loged + * @param logged logged */ - public void setLoged(final Boolean loged) { - this.loged = loged; + public void setLogged(final Boolean logged) { + this.logged = logged; } /** @@ -350,7 +352,7 @@ public boolean equals(final Object o) { && Objects.equals(matchMode, ruleDTO.matchMode) && Objects.equals(name, ruleDTO.name) && Objects.equals(enabled, ruleDTO.enabled) - && Objects.equals(loged, ruleDTO.loged) + && Objects.equals(logged, ruleDTO.logged) && Objects.equals(sort, ruleDTO.sort) && Objects.equals(handle, ruleDTO.handle) && Objects.equals(ruleConditions, ruleDTO.ruleConditions) @@ -360,7 +362,7 @@ public boolean equals(final Object o) { @Override public int hashCode() { - return Objects.hash(id, selectorId, matchMode, name, enabled, loged, sort, handle, ruleConditions, matchRestful, + return Objects.hash(id, selectorId, matchMode, name, enabled, logged, sort, handle, ruleConditions, matchRestful, namespaceId); } @@ -376,7 +378,7 @@ public static final class RuleDTOBuilder { private Boolean enabled; - private Boolean loged; + private Boolean logged; private Integer sort; @@ -447,13 +449,13 @@ public RuleDTOBuilder enabled(final Boolean enabled) { } /** - * loged. + * logged. * - * @param loged the loged. + * @param logged the logged. * @return RuleDTOBuilder. */ - public RuleDTOBuilder loged(final Boolean loged) { - this.loged = loged; + public RuleDTOBuilder logged(final Boolean logged) { + this.logged = logged; return this; } @@ -518,7 +520,7 @@ public RuleDTOBuilder namespaceId(final String namespaceId) { * @return build object. */ public RuleDTO build() { - return new RuleDTO(id, selectorId, matchMode, name, enabled, loged, sort, handle, ruleConditions, matchRestful, + return new RuleDTO(id, selectorId, matchMode, name, enabled, logged, sort, handle, ruleConditions, matchRestful, namespaceId); } } diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/SelectorDTO.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/SelectorDTO.java index 8bc7a5065515..19a50f68eeb4 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/SelectorDTO.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/SelectorDTO.java @@ -17,6 +17,7 @@ package org.apache.shenyu.admin.model.dto; +import com.fasterxml.jackson.annotation.JsonAlias; import org.apache.shenyu.admin.mapper.NamespaceMapper; import org.apache.shenyu.admin.mapper.PluginMapper; import org.apache.shenyu.admin.mapper.SelectorMapper; @@ -85,10 +86,11 @@ public final class SelectorDTO implements Serializable { private Boolean enabled; /** - * whether loged. + * whether logged. */ @NotNull - private Boolean loged; + @JsonAlias("loged") + private Boolean logged; /** * whether continued. @@ -131,7 +133,7 @@ public SelectorDTO(final String id, @NotNull final Integer type, @NotNull final Integer sort, @NotNull final Boolean enabled, - final Boolean loged, + final Boolean logged, @NotNull final Boolean continued, final String handle, @Valid final List selectorConditions, @@ -145,7 +147,7 @@ public SelectorDTO(final String id, this.type = type; this.sort = sort; this.enabled = enabled; - this.loged = loged; + this.logged = logged; this.continued = continued; this.handle = handle; this.selectorConditions = selectorConditions; @@ -281,21 +283,21 @@ public void setEnabled(final Boolean enabled) { } /** - * Gets the value of loged. + * Gets the value of logged. * - * @return the value of loged + * @return the value of logged */ - public Boolean getLoged() { - return loged; + public Boolean getLogged() { + return logged; } /** - * Sets the loged. + * Sets the logged. * - * @param loged loged + * @param logged logged */ - public void setLoged(final Boolean loged) { - this.loged = loged; + public void setLogged(final Boolean logged) { + this.logged = logged; } /** @@ -426,7 +428,7 @@ public boolean equals(final Object o) { SelectorDTO that = (SelectorDTO) o; return Objects.equals(id, that.id) && Objects.equals(pluginId, that.pluginId) && Objects.equals(name, that.name) && Objects.equals(matchMode, that.matchMode) && Objects.equals(type, that.type) && Objects.equals(sort, that.sort) - && Objects.equals(enabled, that.enabled) && Objects.equals(loged, that.loged) && Objects.equals(continued, that.continued) + && Objects.equals(enabled, that.enabled) && Objects.equals(logged, that.logged) && Objects.equals(continued, that.continued) && Objects.equals(handle, that.handle) && Objects.equals(selectorConditions, that.selectorConditions) && Objects.equals(matchRestful, that.matchRestful) && Objects.equals(selectorRules, that.selectorRules) && Objects.equals(namespaceId, that.namespaceId); @@ -434,7 +436,7 @@ public boolean equals(final Object o) { @Override public int hashCode() { - return Objects.hash(id, pluginId, name, matchMode, type, sort, enabled, loged, continued, handle, + return Objects.hash(id, pluginId, name, matchMode, type, sort, enabled, logged, continued, handle, selectorConditions, matchRestful, namespaceId); } @@ -454,7 +456,7 @@ public static final class SelectorDTOBuilder { private Boolean enabled; - private Boolean loged; + private Boolean logged; private Boolean continued; @@ -549,13 +551,13 @@ public SelectorDTOBuilder enabled(final Boolean enabled) { } /** - * loged. + * logged. * - * @param loged the loged. + * @param logged the logged. * @return SelectorDTOBuilder. */ - public SelectorDTOBuilder loged(final Boolean loged) { - this.loged = loged; + public SelectorDTOBuilder logged(final Boolean logged) { + this.logged = logged; return this; } @@ -631,7 +633,7 @@ public SelectorDTOBuilder namespaceId(final String namespaceId) { * @return build object. */ public SelectorDTO build() { - return new SelectorDTO(id, pluginId, name, matchMode, type, sort, enabled, loged, continued, handle, + return new SelectorDTO(id, pluginId, name, matchMode, type, sort, enabled, logged, continued, handle, selectorConditions, matchRestful, selectorRules, namespaceId); } } diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/RuleDO.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/RuleDO.java index 03163121803c..8812919130fc 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/RuleDO.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/RuleDO.java @@ -57,9 +57,9 @@ public final class RuleDO extends BaseDO { private Boolean enabled; /** - * whether loged. + * whether logged. */ - private Boolean loged; + private Boolean logged; /** * sort code. @@ -88,7 +88,7 @@ public RuleDO(final String selectorId, final Integer matchMode, final String ruleName, final Boolean enabled, - final Boolean loged, + final Boolean logged, final Integer sortCode, final String handle, final Boolean matchRestful, @@ -97,7 +97,7 @@ public RuleDO(final String selectorId, this.matchMode = matchMode; this.ruleName = ruleName; this.enabled = enabled; - this.loged = loged; + this.logged = logged; this.sortCode = sortCode; this.handle = handle; this.matchRestful = matchRestful; @@ -177,21 +177,21 @@ public void setEnabled(final Boolean enabled) { } /** - * Gets the value of loged. + * Gets the value of logged. * - * @return the value of loged + * @return the value of logged */ - public Boolean getLoged() { - return loged; + public Boolean getLogged() { + return logged; } /** - * Sets the loged. + * Sets the logged. * - * @param loged loged + * @param logged logged */ - public void setLoged(final Boolean loged) { - this.loged = loged; + public void setLogged(final Boolean logged) { + this.logged = logged; } /** @@ -289,7 +289,7 @@ public static RuleDO buildRuleDO(final RuleDTO ruleDTO) { .matchMode(item.getMatchMode()) .ruleName(item.getName()) .enabled(item.getEnabled()) - .loged(item.getLoged()) + .logged(item.getLogged()) .sortCode(item.getSort()) .handle(item.getHandle()) .matchRestful(item.getMatchRestful()) @@ -324,7 +324,7 @@ public static RuleData transFrom(final RuleDO ruleDO, final String pluginName, f .matchMode(ruleDO.getMatchMode()) .sort(ruleDO.getSortCode()) .enabled(ruleDO.getEnabled()) - .loged(ruleDO.getLoged()) + .logged(ruleDO.getLogged()) .handle(ruleDO.getHandle()) .matchRestful(ruleDO.getMatchRestful()) .conditionDataList(conditionDataList) @@ -362,7 +362,7 @@ public boolean equals(final Object o) { && Objects.equals(matchMode, ruleDO.matchMode) && Objects.equals(ruleName, ruleDO.ruleName) && Objects.equals(enabled, ruleDO.enabled) - && Objects.equals(loged, ruleDO.loged) + && Objects.equals(logged, ruleDO.logged) && Objects.equals(sortCode, ruleDO.sortCode) && Objects.equals(handle, ruleDO.handle) && Objects.equals(matchRestful, ruleDO.matchRestful) @@ -371,7 +371,7 @@ public boolean equals(final Object o) { @Override public int hashCode() { - return Objects.hash(super.hashCode(), selectorId, matchMode, ruleName, enabled, loged, sortCode, handle, matchRestful, + return Objects.hash(super.hashCode(), selectorId, matchMode, ruleName, enabled, logged, sortCode, handle, matchRestful, namespaceId); } @@ -391,7 +391,7 @@ public static final class RuleDOBuilder { private Boolean enabled; - private Boolean loged; + private Boolean logged; private Integer sortCode; @@ -482,13 +482,13 @@ public RuleDOBuilder enabled(final Boolean enabled) { } /** - * loged. + * logged. * - * @param loged the loged. + * @param logged the logged. * @return RuleDOBuilder. */ - public RuleDOBuilder loged(final Boolean loged) { - this.loged = loged; + public RuleDOBuilder logged(final Boolean logged) { + this.logged = logged; return this; } @@ -550,7 +550,7 @@ public RuleDO build() { ruleDO.setMatchMode(matchMode); ruleDO.setRuleName(ruleName); ruleDO.setEnabled(enabled); - ruleDO.setLoged(loged); + ruleDO.setLogged(logged); ruleDO.setSortCode(sortCode); ruleDO.setHandle(handle); ruleDO.setMatchRestful(matchRestful); diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/SelectorDO.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/SelectorDO.java index 190d10066903..d4b1956bc602 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/SelectorDO.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/SelectorDO.java @@ -69,9 +69,9 @@ public final class SelectorDO extends BaseDO { private Boolean enabled; /** - * whether loged. + * whether logged. */ - private Boolean loged; + private Boolean logged; /** * whether continued. @@ -102,7 +102,7 @@ public SelectorDO(final String pluginId, final Integer selectorType, final Integer sortCode, final Boolean enabled, - final Boolean loged, + final Boolean logged, final Boolean continued, final String handle, final Boolean matchRestful, @@ -113,7 +113,7 @@ public SelectorDO(final String pluginId, this.selectorType = selectorType; this.sortCode = sortCode; this.enabled = enabled; - this.loged = loged; + this.logged = logged; this.continued = continued; this.handle = handle; this.matchRestful = matchRestful; @@ -230,21 +230,21 @@ public void setEnabled(final Boolean enabled) { } /** - * Gets the value of loged. + * Gets the value of logged. * - * @return the value of loged + * @return the value of logged */ - public Boolean getLoged() { - return loged; + public Boolean getLogged() { + return logged; } /** - * Sets the loged. + * Sets the logged. * - * @param loged loged + * @param logged logged */ - public void setLoged(final Boolean loged) { - this.loged = loged; + public void setLogged(final Boolean logged) { + this.logged = logged; } /** @@ -346,7 +346,7 @@ public boolean equals(final Object o) { && Objects.equals(selectorType, that.selectorType) && Objects.equals(sortCode, that.sortCode) && Objects.equals(enabled, that.enabled) - && Objects.equals(loged, that.loged) + && Objects.equals(logged, that.logged) && Objects.equals(continued, that.continued) && Objects.equals(handle, that.handle) && Objects.equals(matchRestful, that.matchRestful) @@ -355,7 +355,7 @@ public boolean equals(final Object o) { @Override public int hashCode() { - return Objects.hash(super.hashCode(), pluginId, selectorName, matchMode, selectorType, sortCode, enabled, loged, continued, handle, matchRestful, namespaceId); + return Objects.hash(super.hashCode(), pluginId, selectorName, matchMode, selectorType, sortCode, enabled, logged, continued, handle, matchRestful, namespaceId); } /** @@ -371,7 +371,7 @@ public static SelectorDO buildSelectorDO(final SelectorDTO selectorDTO) { .selectorType(item.getType()) .sortCode(item.getSort()) .enabled(item.getEnabled()) - .loged(item.getLoged()) + .logged(item.getLogged()) .continued(item.getContinued()) .dateUpdated(currentTime) .handle(item.getHandle()) @@ -415,7 +415,7 @@ public static SelectorData transFrom(final SelectorDO selectorDO, final String p .type(selectorDO.getSelectorType()) .sort(selectorDO.getSortCode()) .enabled(selectorDO.getEnabled()) - .logged(selectorDO.getLoged()) + .logged(selectorDO.getLogged()) .continued(selectorDO.getContinued()) .handle(selectorDO.getHandle()) .conditionList(conditionDataList) @@ -457,7 +457,7 @@ public static final class SelectorDOBuilder { private Boolean enabled; - private Boolean loged; + private Boolean logged; private Boolean continued; @@ -570,13 +570,13 @@ public SelectorDOBuilder enabled(final Boolean enabled) { } /** - * loged. + * logged. * - * @param loged the loged. + * @param logged the logged. * @return SelectorDOBuilder. */ - public SelectorDOBuilder loged(final Boolean loged) { - this.loged = loged; + public SelectorDOBuilder logged(final Boolean logged) { + this.logged = logged; return this; } @@ -640,7 +640,7 @@ public SelectorDO build() { selectorDO.setSelectorType(selectorType); selectorDO.setSortCode(sortCode); selectorDO.setEnabled(enabled); - selectorDO.setLoged(loged); + selectorDO.setLogged(logged); selectorDO.setContinued(continued); selectorDO.setHandle(handle); selectorDO.setMatchRestful(matchRestful); diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/rule/RuleChangedEvent.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/rule/RuleChangedEvent.java index 7e1879ebb585..fda85b24325e 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/rule/RuleChangedEvent.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/rule/RuleChangedEvent.java @@ -77,8 +77,8 @@ private String contrast() { if (!Objects.equals(before.getSortCode(), after.getSortCode())) { builder.append(String.format("sort[%s => %s] ", before.getSortCode(), after.getSortCode())); } - if (!Objects.equals(before.getLoged(), after.getLoged())) { - builder.append(String.format("loged[%s => %s] ", before.getLoged(), after.getLoged())); + if (!Objects.equals(before.getLogged(), after.getLogged())) { + builder.append(String.format("logged[%s => %s] ", before.getLogged(), after.getLogged())); } return builder.toString(); } diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/selector/SelectorChangedEvent.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/selector/SelectorChangedEvent.java index 45898f425ef6..ccdd228e1576 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/selector/SelectorChangedEvent.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/event/selector/SelectorChangedEvent.java @@ -77,8 +77,8 @@ private String contrast() { if (!Objects.equals(before.getSortCode(), after.getSortCode())) { builder.append(String.format("sort[%s => %s] ", before.getSortCode(), after.getSortCode())); } - if (!Objects.equals(before.getLoged(), after.getLoged())) { - builder.append(String.format("loged[%s => %s] ", before.getLoged(), after.getLoged())); + if (!Objects.equals(before.getLogged(), after.getLogged())) { + builder.append(String.format("logged[%s => %s] ", before.getLogged(), after.getLogged())); } if (!Objects.equals(before.getNamespaceId(), after.getNamespaceId())) { builder.append(String.format("namespaceId[%s => %s] ", before.getNamespaceId(), after.getNamespaceId())); diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/RuleVO.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/RuleVO.java index 9502deb0c418..979c587b3309 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/RuleVO.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/RuleVO.java @@ -62,9 +62,9 @@ public class RuleVO implements Serializable { private Boolean enabled; /** - * whether loged. + * whether logged. */ - private Boolean loged; + private Boolean logged; /** * sort type. @@ -105,7 +105,7 @@ public RuleVO(final String id, final String matchModeName, final String name, final Boolean enabled, - final Boolean loged, + final Boolean logged, final Integer sort, final String handle, final Boolean matchRestful, @@ -118,7 +118,7 @@ public RuleVO(final String id, this.matchModeName = matchModeName; this.name = name; this.enabled = enabled; - this.loged = loged; + this.logged = logged; this.sort = sort; this.handle = handle; this.matchRestful = matchRestful; @@ -236,21 +236,21 @@ public void setEnabled(final Boolean enabled) { } /** - * Gets the value of loged. + * Gets the value of logged. * - * @return the value of loged + * @return the value of logged */ - public Boolean getLoged() { - return loged; + public Boolean getLogged() { + return logged; } /** - * Sets the loged. + * Sets the logged. * - * @param loged loged + * @param logged logged */ - public void setLoged(final Boolean loged) { - this.loged = loged; + public void setLogged(final Boolean logged) { + this.logged = logged; } /** @@ -380,7 +380,7 @@ public static RuleVO buildRuleVO(final RuleDO ruleDO) { */ public static RuleVO buildRuleVO(final RuleDO ruleDO, final List ruleConditions) { return new RuleVO(ruleDO.getId(), ruleDO.getSelectorId(), ruleDO.getMatchMode(), MatchModeEnum.getMatchModeByCode(ruleDO.getMatchMode()), - ruleDO.getRuleName(), ruleDO.getEnabled(), ruleDO.getLoged(), ruleDO.getSortCode(), ruleDO.getHandle(), + ruleDO.getRuleName(), ruleDO.getEnabled(), ruleDO.getLogged(), ruleDO.getSortCode(), ruleDO.getHandle(), ruleDO.getMatchRestful(), ruleConditions, DateUtils.localDateTimeToString(ruleDO.getDateCreated().toLocalDateTime()), DateUtils.localDateTimeToString(ruleDO.getDateUpdated().toLocalDateTime())); diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/SelectorVO.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/SelectorVO.java index 091c31c69a5b..3d5f686fd939 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/SelectorVO.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/SelectorVO.java @@ -78,9 +78,9 @@ public class SelectorVO implements Serializable { private Boolean enabled; /** - * whether loged. + * whether logged. */ - private Boolean loged; + private Boolean logged; /** * whether continued. @@ -146,7 +146,7 @@ public SelectorVO(final String id, final String typeName, final Integer sort, final Boolean enabled, - final Boolean loged, + final Boolean logged, final Boolean continued, final Boolean matchRestful, final String handle, @@ -163,7 +163,7 @@ public SelectorVO(final String id, this.typeName = typeName; this.sort = sort; this.enabled = enabled; - this.loged = loged; + this.logged = logged; this.continued = continued; this.matchRestful = matchRestful; this.handle = handle; @@ -336,21 +336,21 @@ public void setEnabled(final Boolean enabled) { } /** - * Gets the value of loged. + * Gets the value of logged. * - * @return the value of loged + * @return the value of logged */ - public Boolean getLoged() { - return loged; + public Boolean getLogged() { + return logged; } /** - * Sets the loged. + * Sets the logged. * - * @param loged loged + * @param logged logged */ - public void setLoged(final Boolean loged) { - this.loged = loged; + public void setLogged(final Boolean logged) { + this.logged = logged; } /** @@ -556,7 +556,7 @@ public static SelectorVO buildSelectorVO(final SelectorDO selectorDO, return new SelectorVO(selectorDO.getId(), selectorDO.getPluginId(), selectorDO.getSelectorName(), selectorDO.getMatchMode(), MatchModeEnum.getMatchModeByCode(selectorDO.getMatchMode()), selectorDO.getSelectorType(), SelectorTypeEnum.getSelectorTypeByCode(selectorDO.getSelectorType()), selectorDO.getSortCode(), - selectorDO.getEnabled(), selectorDO.getLoged(), selectorDO.getContinued(), + selectorDO.getEnabled(), selectorDO.getLogged(), selectorDO.getContinued(), selectorDO.getMatchRestful(), selectorDO.getHandle(), selectorConditions, DateUtils.localDateTimeToString(selectorDO.getDateCreated().toLocalDateTime()), DateUtils.localDateTimeToString(selectorDO.getDateUpdated().toLocalDateTime()), diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/AbstractShenyuClientRegisterServiceImpl.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/AbstractShenyuClientRegisterServiceImpl.java index c4b95a939bbb..c5cd31f2f4f4 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/AbstractShenyuClientRegisterServiceImpl.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/AbstractShenyuClientRegisterServiceImpl.java @@ -405,7 +405,7 @@ private RuleDTO buildRuleDTO(final String selectorId, final String ruleHandler, .name(ruleName) .matchMode(MatchModeEnum.AND.getCode()) .enabled(Boolean.TRUE) - .loged(Boolean.TRUE) + .logged(Boolean.TRUE) .matchRestful(Boolean.FALSE) .sort(1) .handle(ruleHandler) diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/ShenyuClientRegisterMcpServiceImpl.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/ShenyuClientRegisterMcpServiceImpl.java index b66b6be5e2ad..cced49d1e1e9 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/ShenyuClientRegisterMcpServiceImpl.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/register/ShenyuClientRegisterMcpServiceImpl.java @@ -109,7 +109,7 @@ private RuleDTO buildMcpRuleDTO(final String selectorId, final MetaDataRegisterD .matchMode(MatchModeEnum.AND.getCode()) .name(metaDataRegisterDTO.getRuleName()) .enabled(Boolean.TRUE) - .loged(Boolean.TRUE) + .logged(Boolean.TRUE) .matchRestful(Boolean.FALSE) .sort(1) .handle(ruleHandler) diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/SelectorUtil.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/SelectorUtil.java index 21d8890561a6..3fc6a7da29b6 100644 --- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/SelectorUtil.java +++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/SelectorUtil.java @@ -86,7 +86,7 @@ public static SelectorDTO buildDefaultSelectorDTO(final String name) { .type(SelectorTypeEnum.CUSTOM_FLOW.getCode()) .matchMode(MatchModeEnum.AND.getCode()) .enabled(Boolean.TRUE) - .loged(Boolean.TRUE) + .logged(Boolean.TRUE) .continued(Boolean.TRUE) .matchRestful(Boolean.FALSE) .sort(1) diff --git a/shenyu-admin/src/main/resources/mappers/rule-sqlmap.xml b/shenyu-admin/src/main/resources/mappers/rule-sqlmap.xml index aaf912849b87..17d8bf0f34e9 100644 --- a/shenyu-admin/src/main/resources/mappers/rule-sqlmap.xml +++ b/shenyu-admin/src/main/resources/mappers/rule-sqlmap.xml @@ -27,7 +27,7 @@ - + @@ -42,7 +42,7 @@ match_mode, sort_code, enabled, - loged, + logged, match_restful, handle, namespace_id @@ -236,7 +236,7 @@ match_mode, sort_code, enabled, - loged, + logged, match_restful, handle, namespace_id) @@ -248,7 +248,7 @@ #{matchMode, jdbcType=INTEGER}, #{sortCode, jdbcType=INTEGER}, #{enabled, jdbcType=TINYINT}, - #{loged, jdbcType=TINYINT}, + #{logged, jdbcType=TINYINT}, #{matchRestful, jdbcType=TINYINT}, #{handle, jdbcType=VARCHAR}, #{namespaceId, jdbcType=VARCHAR}) @@ -279,8 +279,8 @@ enabled, - - loged, + + logged, match_restful, @@ -315,8 +315,8 @@ #{enabled, jdbcType=TINYINT}, - - #{loged, jdbcType=TINYINT}, + + #{logged, jdbcType=TINYINT}, #{matchRestful, jdbcType=TINYINT}, @@ -339,7 +339,7 @@ match_mode = #{matchMode, jdbcType=INTEGER}, sort_code = #{sortCode, jdbcType=INTEGER}, enabled = #{enabled, jdbcType=TINYINT}, - loged = #{loged, jdbcType=TINYINT}, + logged = #{logged, jdbcType=TINYINT}, match_restful = #{matchRestful, jdbcType=TINYINT}, handle = #{handle, jdbcType=VARCHAR} WHERE id = #{id, jdbcType=VARCHAR} @@ -369,8 +369,8 @@ enabled = #{enabled, jdbcType=TINYINT}, - - loged = #{loged, jdbcType=TINYINT}, + + logged = #{logged, jdbcType=TINYINT}, match_restful = #{matchRestful, jdbcType=TINYINT}, diff --git a/shenyu-admin/src/main/resources/mappers/selector-sqlmap.xml b/shenyu-admin/src/main/resources/mappers/selector-sqlmap.xml index c4157a140a77..c8c895cc2cdd 100644 --- a/shenyu-admin/src/main/resources/mappers/selector-sqlmap.xml +++ b/shenyu-admin/src/main/resources/mappers/selector-sqlmap.xml @@ -28,7 +28,7 @@ - + @@ -45,7 +45,7 @@ selector_type, sort_code, enabled, - loged, + logged, continued, match_restful, handle, @@ -62,7 +62,7 @@ ${alis}.selector_type, ${alis}.sort_code, ${alis}.enabled, - ${alis}.loged, + ${alis}.logged, ${alis}.continued, ${alis}.match_restful, ${alis}.handle, @@ -296,7 +296,7 @@ selector_type, sort_code, enabled, - loged, + logged, continued, match_restful, handle, @@ -311,7 +311,7 @@ #{selectorType, jdbcType=INTEGER}, #{sortCode, jdbcType=INTEGER}, #{enabled, jdbcType=TINYINT}, - #{loged, jdbcType=TINYINT}, + #{logged, jdbcType=TINYINT}, #{continued, jdbcType=TINYINT}, #{matchRestful, jdbcType=TINYINT}, #{handle, jdbcType=VARCHAR}, @@ -346,8 +346,8 @@ enabled, - - loged, + + logged, continued, @@ -388,8 +388,8 @@ #{enabled, jdbcType=TINYINT}, - - #{loged, jdbcType=TINYINT}, + + #{logged, jdbcType=TINYINT}, #{continued, jdbcType=TINYINT}, @@ -417,7 +417,7 @@ selector_type = #{selectorType, jdbcType=INTEGER}, sort_code = #{sortCode, jdbcType=INTEGER}, enabled = #{enabled, jdbcType=TINYINT}, - loged = #{loged, jdbcType=TINYINT}, + logged = #{logged, jdbcType=TINYINT}, continued = #{continued, jdbcType=TINYINT}, match_restful = #{matchRestful, jdbcType=TINYINT}, handle = #{handle, jdbcType=VARCHAR} @@ -451,8 +451,8 @@ enabled = #{enabled, jdbcType=TINYINT}, - - loged = #{loged, jdbcType=TINYINT}, + + logged = #{logged, jdbcType=TINYINT}, continued = #{continued, jdbcType=TINYINT}, diff --git a/shenyu-admin/src/main/resources/sql-script/h2/schema.sql b/shenyu-admin/src/main/resources/sql-script/h2/schema.sql index 77a6941a53bc..42b4a3d14c41 100644 --- a/shenyu-admin/src/main/resources/sql-script/h2/schema.sql +++ b/shenyu-admin/src/main/resources/sql-script/h2/schema.sql @@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `selector` ( `sort_code` int(4) NOT NULL COMMENT 'sort', `handle` varchar(1024) DEFAULT NULL COMMENT 'processing logic (here for different plug-ins, there will be different fields to identify different processes, all data in JSON format is stored)', `enabled` tinyint(4) NOT NULL COMMENT 'whether to open', - `loged` tinyint(4) NOT NULL COMMENT 'whether to print the log', + `logged` tinyint(4) NOT NULL COMMENT 'whether to print the log', `continued` tinyint(4) NOT NULL COMMENT 'whether to continue execution', `match_restful` tinyint(4) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)', `namespace_id` varchar(50) NOT NULL COMMENT 'namespace id', @@ -94,7 +94,7 @@ CREATE TABLE IF NOT EXISTS `rule` ( `match_mode` int(2) NOT NULL COMMENT 'matching mode (0 and 1 or)', `rule_name` varchar(128) NOT NULL COMMENT 'rule name', `enabled` tinyint(4) NOT NULL COMMENT 'whether to open', - `loged` tinyint(4) NOT NULL COMMENT 'whether to log or not', + `logged` tinyint(4) NOT NULL COMMENT 'whether to log or not', `match_restful` tinyint(4) NOT NULL COMMENT 'whether to match restful(0 cache, 1 not cache)', `namespace_id` varchar(50) NOT NULL COMMENT 'namespace id', `sort_code` int(4) NOT NULL COMMENT 'sort', diff --git a/shenyu-admin/src/main/resources/static/index.ff04fd53.js b/shenyu-admin/src/main/resources/static/index.ff04fd53.js index 4a4f06a024bf..dae9fb8ccfb6 100644 --- a/shenyu-admin/src/main/resources/static/index.ff04fd53.js +++ b/shenyu-admin/src/main/resources/static/index.ff04fd53.js @@ -1 +1 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s="lVK7")}({"+0it":function(e,t,n){"use strict";function r(){function e(e,n,r,a){var i=n&&n.prototype instanceof t?n:t,c=Object.create(i.prototype);return o(c,"_invoke",function(e,t,n){function r(e,t){for(a=e,i=t,u=0;!f&&c&&!n&&u3?(n=h===t)&&(i=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=l):r[0]<=o&&((n=e<2&&ot||t>h)&&(r[4]=e,r[5]=t,p.n=h,a=0))}if(n||e>1)return d;throw f=!0,t}var o,a,i,c=0,s=n||[],f=!1,p={p:0,n:0,v:l,a:r,f:r.bind(l,4),d:function(e,t){return o=e,a=0,i=l,p.n=t,d}};return function(n,s,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&r(s,h),a=s,i=h;(u=a<2?l:i)||!f;){o||(a?a<3?(a>1&&(p.n=-1),r(a,i)):p.n=i:p.v=i);try{if(c=2,o){if(a||(n="next"),u=o[n]){if(!(u=u.call(o,i)))throw TypeError("iterator result is not an object");if(!u.done)return u;i=u.value,a<2&&(a=0)}else 1===a&&(u=o.return)&&u.call(o),a<2&&(i=TypeError("The iterator does not provide a '"+n+"' method"),a=1);o=l}else if((u=(f=p.n<0)?i:e.call(t,p))!==d)break}catch(e){o=l,a=1,i=e}finally{c=1}}return{value:u,done:f}}}(e,r,a),!0),c}function t(){}function n(){}function a(){}function i(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,o(e,f,"GeneratorFunction")),e.prototype=Object.create(h),e}var l,u,c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",f=c.toStringTag||"@@toStringTag",d={};u=Object.getPrototypeOf;var p=[][s]?u(u([][s]())):(o(u={},s,function(){return this}),u),h=a.prototype=t.prototype=Object.create(p);return n.prototype=a,o(h,"constructor",a),o(a,"constructor",n),n.displayName="GeneratorFunction",o(a,f,"GeneratorFunction"),o(h),o(h,f,"Generator"),o(h,s,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:e,m:i}})()}function o(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(o=function(e,t,n,r){function i(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}function a(e){return i.apply(this,arguments)}function i(){return i=(0,u.default)(r().m(function e(t){return r().w(function(e){for(;;)switch(e.n){case 0:return e.a(2,(0,c.default)("/api/".concat(t)))}},e)})),i.apply(this,arguments)}var l=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.query=a;var u=l(n("jlIA")),c=l(n("vLgD"))},"+1cx":function(e,t,n){"use strict";function r(e){return e[i]={},o(e)}function o(e){return e[i]}function a(e){delete e[i]}var i="_erd";e.exports={initState:r,getState:o,cleanState:a}},"+3wZ":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}e.exports=r},"+4V2":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e,t,n){return t=(0,S.default)(t),(0,b.default)(e,a()?Reflect.construct(t,n||[],(0,S.default)(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var i=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("sRCI");var l=i(n("vnWH"));n("7WgF");var u=i(n("jf3V"));n("crfj");var c=i(n("zwGx"));n("Qbm7");var s=i(n("aOwA"));n("HCp1");var f=i(n("GWr5"));n("rpBe");var d=i(n("hK1P"));n("baa2");var p=i(n("FC3+"));n("faxx");var h=i(n("FV1P"));n("mxhB");var v=i(n("zJZ/"));n("JYrs");var y=i(n("QoDT")),m=i(n("Q9dM")),g=i(n("wm7F")),b=i(n("F6AD")),S=i(n("fghW")),E=i(n("QwVp"));n("LHBr");var _=i(n("A+AJ"));n("qK5s");var O,C,M=i(n("N0tX")),w=r(n("GiK3")),P=n("S6G3"),T=n("KPPu"),x=n("oAV5"),N=n("lXsO"),I=M.default.TreeNode,k=_.default.Search;t.default=(O=(0,P.connect)(function(e){var t=e.dataPermission,n=e.resource,r=e.global,o=e.loading;return{dataPermission:t,resource:n,namespaces:r.namespaces,selectorPermisionLoading:o.effects["dataPermission/fetchDataPermisionSelectors"],rulePermisionLoading:o.effects["dataPermission/fetchDataPermisionRules"]}}))(C=function(e){function t(e){var n;return(0,m.default)(this,t),n=o(this,t,[e]),n.pluginRequestId=0,n.getPluginTreeData=function(){(0,n.props.dispatch)({type:"resource/fetchMenuTree"}),n.loadPlugins()},n.loadPlugins=function(){var e=n.props.dispatch,t=n.state.currentNamespaceId;n.pluginRequestId+=1;var r=n.pluginRequestId;e({type:"global/fetchPluginsByNamespace",payload:{namespaceId:t,callback:function(e){r===n.pluginRequestId&&n.setState({plugins:e})}}})},n.getPermissionSelectorList=function(e){var t=n.props,r=t.dispatch,o=t.userId,a=n.state,i=a.currentPlugin,l=a.pageSize,u=a.currentNamespaceId;r({type:"dataPermission/fetchDataPermisionSelectors",payload:{currentPage:e,pageSize:l,userId:o,pluginId:i.pluginId,namespaceId:u},callback:function(e){n.setState({selectorData:e})}})},n.getPermissionRuleList=function(e,t){var r=n.props,o=r.dispatch,a=r.userId,i=n.state,l=i.currentPlugin,u=i.ruleListMap;o({type:"dataPermission/fetchDataPermisionRules",payload:{currentPage:t,pageSize:i.pageSize,userId:a,pluginId:l.pluginId,selectorId:e},callback:function(t){t.dataList&&t.dataList.length>0&&t.dataList.forEach(function(t){t.selectorId=e}),u[e]&&u[e].currentRulePage?t.currentRulePage=u[e].currentRulePage:t.currentRulePage=1,u[e]=t,n.setState({ruleListMap:u})}})},n.onSelectPlugin=function(e,t){var r=t.node.props.dataRef;n.setState({currentPlugin:r,currentPermissionSelectorPage:1,ruleListMap:{}},function(){n.getPermissionSelectorList(1)})},n.handleCheckSelector=function(e){var t=n.props,r=t.dispatch,o=t.userId,a=n.state.currentPermissionSelectorPage;r({type:e.isChecked?"dataPermission/deletePermisionSelector":"dataPermission/addPermisionSelector",payload:{dataId:e.dataId,userId:o},callback:function(){n.getPermissionSelectorList(a),n.getPermissionRuleList(e.dataId,1)}})},n.handleCheckRule=function(e){var t=n.props,r=t.dispatch,o=t.userId,a=n.state,i=a.currentPermissionSelectorPage,l=a.ruleListMap;r({type:e.isChecked?"dataPermission/deletePermisionRule":"dataPermission/addPermisionRule",payload:{dataId:e.dataId,userId:o},callback:function(){n.getPermissionSelectorList(i);var t=l[e.selectorId].currentRulePage||1;n.getPermissionRuleList(e.selectorId,t)}})},n.handleExpandRuleTable=function(e,t){var r=n.state.selectorExpandedRowKeys;e?(r.push(t.dataId),n.setState({selectorExpandedRowKeys:r})):(r=r.filter(function(e){return e!==t.dataId}),n.setState({selectorExpandedRowKeys:r})),n.getPermissionRuleList(t.dataId,1)},n.selectorPageOnchange=function(e){n.setState({currentPermissionSelectorPage:e}),n.getPermissionSelectorList(e)},n.rulePageOnchange=function(e,t){var r=n.state.ruleListMap;r[t].currentRulePage=e,n.setState({ruleListMap:r},function(){n.getPermissionRuleList(t,e)})},n.filterPlugin=function(){var e=n.props.resource.menuTree,t=n.state,r=t.searchValue,o=t.plugins,a=e.filter(function(e){return"/plug"===e.url});if(a&&a.length>0){a=a[0].children;var i=[];a.forEach(function(e){if("string"!=typeof r||!r.length||e.name.toLocaleLowerCase().includes(r.toLocaleLowerCase())){var t=o.find(function(t){return t.name===e.name});if(t){var n=i.find(function(e){return e.title===t.role});n||(i.push({title:t.role,key:t.role,selectable:!1,icon:"unordered-list",sort:e.sort,children:[]}),n=i[i.length-1]),n.children.push({key:t.pluginId,title:(0,x.titleCase)(t.name),selectable:!0,sort:e.sort,icon:e.meta.icon,pluginId:t.pluginId})}}}),a=i}return a},n.onSearch=function(e){var t=e.target.value;n.setState({searchValue:t})},n.renderPluginTree=function(){var e=n.filterPlugin();return w.default.createElement(h.default,{gutter:[16,16]},w.default.createElement(y.default,{span:24},w.default.createElement(k,{placeholder:(0,T.getIntlContent)("SHENYU.PLUGIN.INPUTNAME"),onChange:n.onSearch})),e.length>0?w.default.createElement(y.default,{span:24},w.default.createElement(M.default,{defaultExpandAll:!0,style:{background:"white"},onSelect:n.onSelectPlugin,showIcon:!0},n.renderTreeNodes(e))):w.default.createElement(y.default,{span:24},w.default.createElement(v.default,null)))},n.renderTreeNodes=function(e){return e.map(function(e){return e.children&&e.children.length>0?w.default.createElement(I,{selectable:e.selectable,title:e.title,icon:w.default.createElement(p.default,{type:e.icon}),key:e.key,dataRef:e},n.renderTreeNodes(e.children)):w.default.createElement(I,{icon:w.default.createElement(p.default,{type:e.icon}),title:e.title,key:e.key,dataRef:e})})},n.renderSelectorRuleTable=function(){var e=n.state,t=e.currentPermissionSelectorPage,r=e.pageSize,o=n.state,a=o.selectorData,i=o.ruleListMap,l=o.selectorExpandedRowKeys,u=[{title:(0,T.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.CHECKED"),dataIndex:"isChecked",width:90,key:"isChecked",render:function(e,t){return w.default.createElement(d.default,{checked:e,onClick:n.handleCheckRule.bind(n,t)})}},{title:(0,T.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.RULENAME"),dataIndex:"dataName",key:"dataName"}],c=function(e){var t=i&&i[e.dataId],o=t&&t.currentRulePage;return w.default.createElement(f.default,{size:"small",bordered:!0,columns:u,dataSource:t&&t.dataList,pagination:{total:t&&t.total||0,current:o||1,pageSize:r,onChange:function(t){n.rulePageOnchange(t,e.dataId)}}})},s=[{title:(0,T.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.CHECKED"),dataIndex:"isChecked",width:90,key:"isChecked",render:function(e,t){return w.default.createElement(d.default,{checked:e,onClick:n.handleCheckSelector.bind(n,t)})}},{title:(0,T.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.SELECTORNAME"),dataIndex:"dataName",key:"dataName"}];return w.default.createElement(f.default,{style:{width:"350px"},size:"small",bordered:!0,columns:s,expandedRowRender:c,dataSource:a&&a.dataList,rowKey:"dataId",expandedRowKeys:l,onExpand:n.handleExpandRuleTable,pagination:{total:a&&a.total,current:t,pageSize:r,onChange:n.selectorPageOnchange}})},n.handleNamespacesValueChange=function(e){n.setState({currentNamespaceId:e.key,plugins:[],currentPlugin:null,selectorData:null,currentPermissionSelectorPage:1,selectorExpandedRowKeys:[],ruleListMap:{}},n.loadPlugins)},n.state={currentPlugin:null,plugins:[],currentPermissionSelectorPage:1,selectorData:null,pageSize:12,ruleListMap:{},searchValue:"",currentNamespaceId:N.defaultNamespaceId,selectorExpandedRowKeys:[]},n}return(0,E.default)(t,e),(0,g.default)(t,[{key:"componentDidMount",value:function(){this.getPluginTreeData()}},{key:"componentWillUnmount",value:function(){this.pluginRequestId+=1}},{key:"render",value:function(){var e,t=this.props,n=t.handleCancel,r=t.namespaces,o=this.state.currentNamespaceId;return w.default.createElement(l.default,{width:800,centered:!0,title:w.default.createElement("div",{style:{height:24,display:"flex",alignItems:"center",justifyContent:"space-between"}},w.default.createElement("div",null,(0,T.getIntlContent)("SHENYU.SYSTEM.DATA.PERMISSION.CONFIG")),w.default.createElement("div",{style:{marginRight:30}},w.default.createElement(u.default,{placement:"bottomCenter",overlay:w.default.createElement(s.default,{onClick:this.handleNamespacesValueChange},r.map(function(e){var t=o===e.namespaceId;return w.default.createElement(s.default.Item,{key:e.namespaceId,disabled:t},w.default.createElement("span",null,e.name))}))},w.default.createElement(c.default,null,w.default.createElement("a",{className:"ant-dropdown-link",style:{fontWeight:"bold"},onClick:function(e){return e.preventDefault()}},"".concat((0,T.getIntlContent)("SHENYU.SYSTEM.NAMESPACE")," / ").concat(null===(e=r.find(function(e){return o===e.namespaceId}))||void 0===e?void 0:e.name," ")),w.default.createElement(p.default,{type:"down"}))))),visible:!0,cancelText:(0,T.getIntlContent)("SHENYU.COMMON.CLOSE"),onCancel:n,footer:[w.default.createElement(c.default,{key:"back",onClick:n},(0,T.getIntlContent)("SHENYU.COMMON.CLOSE"))]},w.default.createElement(h.default,{gutter:20},w.default.createElement(y.default,{span:10,style:{minWidth:280}},this.renderPluginTree()),w.default.createElement(y.default,{span:14},this.renderSelectorRuleTable())))}}])}(w.Component))||C},"+66z":function(e,t,n){"use strict";function r(e){return a.call(e)}var o=Object.prototype,a=o.toString;e.exports=r},"+6Bu":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},"+CM9":function(e,t,n){"use strict";var r=n("Ds5P"),o=n("ot5s")(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n("NNrz")(a)),"Array",{indexOf:function(e){return i?a.apply(this,arguments)||0:o(this,e,arguments[1])}})},"+E39":function(e,t,n){"use strict";e.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+JsQ":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e,t,n){return t=(0,O.default)(t),(0,_.default)(e,a()?Reflect.construct(t,n||[],(0,O.default)(e).constructor):t.apply(e,n))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var i=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("sRCI");var l=i(n("vnWH"));n("9SSc");var u=i(n("t5Df"));n("faxx");var c=i(n("FV1P"));n("JYrs");var s=i(n("QoDT")),f=i(n("uMMT"));n("crfj");var d=i(n("zwGx"));n("LHBr");var p=i(n("A+AJ"));n("s3t2");var h=i(n("m6wg"));n("/4RJ");var v=i(n("uz+M")),y=i(n("7b0f")),m=i(n("+TWC"));n("UQ5M");var g=i(n("/qCn")),b=i(n("mAPx")),S=i(n("Q9dM")),E=i(n("wm7F")),_=i(n("F6AD")),O=i(n("fghW")),C=i(n("QwVp"));n("cwkc");var M=i(n("8/ER"));n("gZEk");var w,P,T=i(n("8rR3")),x=r(n("GiK3")),N=n("S6G3"),I=i(n("ulXC")),k=n("KPPu"),A=i(n("Jcbv")),D=i(n("VvJF")),L=i(n("k2a8")),R=i(n("FsxU")),j=n("oAV5"),U=T.default.Item,H=M.default.Option,z=(w=(0,N.connect)(function(e){return{pluginHandle:e.pluginHandle,shenyuDict:e.shenyuDict,currentNamespaceId:e.global.currentNamespaceId}}))(P=function(e){function t(e){var n;(0,S.default)(this,t),n=o(this,t,[e]),n.initRuleCondition=function(e){var t=e.ruleConditions||[{paramType:"uri",operator:"pathPattern",paramName:"/",paramValue:""}];t.forEach(function(e,r){var o=e.paramType,a="paramTypeValueEn".concat(r);"uri"===o||"host"===o||"ip"===o?(n.state[a]=!0,t[r].paramName="/"):n.state[a]=!1}),n.state.ruleConditions=t},n.initDics=function(){n.initDic("operator"),n.initDic("matchMode"),n.initDic("paramType")},n.initDic=function(e){(0,n.props.dispatch)({type:"shenyuDict/fetchByType",payload:{type:e,callBack:function(t){n.setState((0,b.default)({},"".concat(e,"Dics"),t))}}})},n.checkConditions=function(){var e=n.state.ruleConditions,t=!0;return e?e.forEach(function(e,n){var r=e.paramType,o=e.operator,a=e.paramName,i=e.paramValue;r&&o&&("isBlank"===o||i)||(g.default.destroy(),g.default.error("Line ".concat(n+1," condition is incomplete")),t=!1),"uri"===r||"host"===r||"ip"===r||a||(g.default.destroy(),g.default.error("Line ".concat(n+1," condition is incomplete")),t=!1)}):(g.default.destroy(),g.default.error("Incomplete condition"),t=!1),t},n.handleSubmit=function(e){e.preventDefault();var t=n.props,r=t.form,o=t.handleOk,a=t.multiRuleHandle,i=n.state,l=i.ruleConditions,u=i.pluginHandleList;r.validateFieldsAndScroll(function(e,t){var r=t.name,i=t.matchMode,c=t.loged,s=t.enabled,f=t.matchRestful,d=t.handleType,p=t.handleJSON;if(!e){if(n.checkConditions()){var h;switch(d){case"1":h=[],u.forEach(function(e,n){h[n]={},e.forEach(function(e){h[n][e.field]=t[e.field+n]})}),h=a?JSON.stringify(h):JSON.stringify(h[0]);break;case"2":h=p}if(n.handleComponentRef){var v,y=n.handleComponentRef.getData(t);h=JSON.stringify((0,m.default)({},JSON.parse(null!==(v=h)&&void 0!==v?v:"{}"),JSON.parse(y)))}o({name:r,matchMode:i,handle:h,loged:c,enabled:s,matchRestful:f,sort:Number(t.sort),ruleConditions:l})}}})},n.handleAdd=function(){var e=n.state.ruleConditions;e.push({paramType:"uri",operator:"pathPattern",paramName:"/",paramValue:""}),n.setState({ruleConditions:e},function(){var t=e.length||0,r="paramTypeValueEn".concat(t-1);n.setState((0,b.default)({},r,!0))})},n.handleDelete=function(e){var t=n.state.ruleConditions;t&&t.length>1?t.splice(e,1):(g.default.destroy(),g.default.error("At least one condition")),n.setState({ruleConditions:t})},n.handleAddHandle=function(){var e=n.state.pluginHandleList,t=e[0],r=t.map(function(e){return(0,m.default)({},e,{value:null})});e.push(r),n.setState({pluginHandleList:e})},n.handleDeleteHandle=function(e){var t=n.state.pluginHandleList;1===t.length?(g.default.destroy(),g.default.error((0,k.getIntlContent)("SHENYU.PLUGIN.HANDLE.TIP"))):(t.splice(e,1),n.setState({pluginHandleList:t}))},n.conditionChange=function(e,t,r){var o=n.state.ruleConditions;if(o[e][t]=r,"paramType"===t){var a="paramTypeValueEn".concat(e);"uri"===r||"host"===r||"ip"===r||"req_method"===r||"domain"===r?(n.setState((0,b.default)({},a,!0)),o[e].paramName="/"):n.setState((0,b.default)({},a,!1)),"post"===r&&(o[e].paramName="filedName"),"query"===r&&(o[e].paramName="paramName"),"header"===r&&(o[e].paramName="headerName"),"cookie"===r&&(o[e].paramName="cookieName"),o[e].operator="uri"===r?"pathPattern":"req_method"===r?"=":""}n.setState({ruleConditions:o})},n.handleCopyData=function(e){if(!e)return void n.setState({visible:!1});var t=n.props.form,r=e.ruleConditions,o=e.name,a=e.matchMode,i=e.loged,l=e.enabled,u=e.sort,c={name:o,matchMode:a.toString(),loged:i,enabled:l,sort:u};n.initRuleCondition({ruleConditions:r.map(function(e){e.id,e.selectorId,e.dateCreated,e.dateUpdated;return(0,y.default)(e,["id","selectorId","dateCreated","dateUpdated"])})}),t.setFieldsValue(c),n.setState({visible:!1})},n.renderOperatorOptions=function(e,t){if(e&&e instanceof Array){var n=e.map(function(e){return x.default.createElement(H,{key:e.dictValue,value:e.dictValue},e.dictName)});return"uri"!==t&&(n=n.filter(function(e){return"pathPattern"!==e.key?e:""})),"post"!==t&&"query"!==t&&"header"!==t&&"cookie"!==t&&(n=n.filter(function(e){return"isBlank"!==e.key?e:""})),"uri"!==t&&"host"!==t&&"ip"!==t&&"cookie"!==t&&"domain"!==t||(n=n.filter(function(e){return"TimeBefore"!==e.key&&"TimeAfter"!==e.key?e:""})),"req_method"===t&&(n=n.filter(function(e){return"="===e.key?e:""})),n}return""},n.getParamValueInput=function(e,t){if("TimeBefore"===e.operator||"TimeAfter"===e.operator){var r=new Date,o=r.getFullYear().toString().concat("-").concat(r.getMonth()+1).concat("-").concat(r.getDate());return x.default.createElement(p.default.Group,{compact:!0,style:{top:-2}},x.default.createElement(v.default,{style:{width:"51%"},onChange:function(r){var a=r?r.eraYear().toString().concat("-").concat(r.month()+1).concat("-").concat(r.date()):o;n.conditionChange(t,"paramValue","".concat((0,j.formatDateString)(a)," ").concat((0,j.formatTimeString)(e.paramValue)))},value:(0,j.formatDate)(e.paramValue)}),x.default.createElement(h.default,{style:{width:"49%"},onChange:function(r){var o=r?"".concat(" ").concat(r.hours()).concat(":").concat(r.minutes()).concat(":").concat(r.seconds()):"";n.conditionChange(t,"paramValue","".concat((0,j.formatDateString)(e.paramValue)," ").concat((0,j.formatTimeString)(o)))},value:(0,j.formatTime)(e.paramValue)}))}return x.default.createElement(p.default,{allowClear:!0,onChange:function(e){n.conditionChange(t,"paramValue",e.target.value)},value:e.paramValue})};var r=Object.keys(L.default);return n.state={customRulePage:r.includes(e.pluginName),visible:!1},n.initRuleCondition(e),n}return(0,C.default)(t,e),(0,E.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.dispatch,r=t.pluginId,o=t.handle,a=t.multiRuleHandle,i=t.form.setFieldsValue,l=t.currentNamespaceId;this.setState({pluginHandleList:[]}),this.initDics();n({type:"pluginHandle/fetchByPluginId",payload:{pluginId:r,type:2,handle:o,isHandleArray:a,namespaceId:l,callBack:function(t,n){e.setState({pluginHandleList:t},function(){n&&i({handleType:"2",handleJSON:o})})}}})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.onCancel,o=n.form,a=n.name,i=void 0===a?"":a,h=n.matchMode,v=void 0===h?"":h,y=n.loged,m=void 0===y||y,g=n.enabled,b=void 0===g||g,S=n.matchRestful,E=void 0!==S&&S,_=n.sort,O=void 0===_?"":_,C=n.multiRuleHandle,w=n.pluginName,P=n.handle,N=this.state,L=N.ruleConditions,j=N.pluginHandleList,z=N.operatorDics,Y=N.matchModeDics,V=N.paramTypeDics,F=N.customRulePage,W=N.visible;F?e=D.default:j&&(e=A.default);var G=o.getFieldDecorator,B={labelCol:{sm:{span:4}},wrapperCol:{sm:{span:20}}},K={labelCol:{sm:{span:18}},wrapperCol:{sm:{span:4}}};return x.default.createElement(l.default,{width:1e3,centered:!0,title:(0,k.getIntlContent)("SHENYU.RULE.NAME"),visible:!0,okText:(0,k.getIntlContent)("SHENYU.COMMON.SURE"),cancelText:(0,k.getIntlContent)("SHENYU.COMMON.CALCEL"),onOk:this.handleSubmit,onCancel:r},x.default.createElement(T.default,{onSubmit:this.handleSubmit,className:"login-form"},x.default.createElement(U,(0,f.default)({label:(0,k.getIntlContent)("SHENYU.PLUGIN.SELECTOR.LIST.COLUMN.NAME")},B),G("name",{rules:[{required:!0,message:(0,k.getIntlContent)("SHENYU.COMMON.INPUTNAME")}],initialValue:i})(x.default.createElement(p.default,{allowClear:!0,placeholder:(0,k.getIntlContent)("SHENYU.PLUGIN.SELECTOR.LIST.COLUMN.NAME"),addonAfter:x.default.createElement(d.default,{size:"small",type:"link",onClick:function(){t.setState({visible:!0})}},(0,k.getIntlContent)("SHENYU.PLUGIN.SEARCH.RULE.COPY"))}))),x.default.createElement(R.default,{visible:W,onOk:this.handleCopyData,onCancel:function(){t.setState({visible:!1})}}),x.default.createElement(U,(0,f.default)({label:(0,k.getIntlContent)("SHENYU.COMMON.MATCHTYPE")},B),G("matchMode",{rules:[{required:!0,message:(0,k.getIntlContent)("SHENYU.COMMON.INPUTMATCHTYPE")}],initialValue:"".concat(v)})(x.default.createElement(M.default,null,Y&&Y.map(function(e){return x.default.createElement(H,{key:e.dictValue,value:e.dictValue},e.dictName)})))),x.default.createElement("div",{className:I.default.condition},x.default.createElement(U,(0,f.default)({label:(0,k.getIntlContent)("SHENYU.COMMON.CONDITION"),required:!0},B),L.map(function(e,n){return x.default.createElement(c.default,{key:n,gutter:8},x.default.createElement(s.default,{span:5},x.default.createElement(M.default,{onChange:function(e){t.conditionChange(n,"paramType",e)},value:e.paramType},V&&V.map(function(e){return x.default.createElement(H,{key:e.dictValue,value:e.dictValue},e.dictName)}))),x.default.createElement(s.default,{span:4,style:{display:t.state["paramTypeValueEn".concat(n)]?"none":"block"}},x.default.createElement(p.default,{allowClear:!0,onChange:function(e){t.conditionChange(n,"paramName",e.target.value)},placeholder:e.paramName})),x.default.createElement(s.default,{span:4},x.default.createElement(M.default,{onChange:function(e){t.conditionChange(n,"operator",e)},value:e.operator},t.renderOperatorOptions(z,e.paramType))),x.default.createElement(s.default,{span:7,style:{display:"isBlank"===e.operator?"none":"block"}},t.getParamValueInput(e,n)),x.default.createElement(s.default,{span:4},x.default.createElement(d.default,{type:"danger",onClick:function(){t.handleDelete(n)}},(0,k.getIntlContent)("SHENYU.COMMON.DELETE.NAME"))))})),x.default.createElement(U,(0,f.default)({label:" ",colon:!1},B),x.default.createElement(d.default,{className:I.default.addButton,onClick:this.handleAdd,type:"primary"},(0,k.getIntlContent)("SHENYU.COMMON.ADD")," ",(0,k.getIntlContent)("SHENYU.COMMON.CONDITION")))),e&&x.default.createElement(e,{onRef:function(e){t.handleComponentRef=e},pluginName:w,onAddPluginHandle:this.handleAddHandle,onDeletePluginHandle:this.handleDeleteHandle,form:o,pluginHandleList:j,handle:P,multiRuleHandle:C}),x.default.createElement(U,(0,f.default)({label:(0,k.getIntlContent)("SHENYU.SELECTOR.EXEORDER")},B),G("sort",{initialValue:O,rules:[{required:!0,message:(0,k.getIntlContent)("SHENYU.SELECTOR.INPUTNUMBER")},{pattern:/^([1-9][0-9]{0,2}|1000)$/,message:(0,k.getIntlContent)("SHENYU.SELECTOR.INPUTNUMBER")}]})(x.default.createElement(p.default,{allowClear:!0,placeholder:(0,k.getIntlContent)("SHENYU.SELECTOR.INPUTORDER")}))),x.default.createElement(U,(0,f.default)({label:" ",colon:!1},B),x.default.createElement("div",{className:I.default.layout},x.default.createElement(U,(0,f.default)({style:{margin:"0 30px"}},K,{label:(0,k.getIntlContent)("SHENYU.SELECTOR.PRINTLOG")}),G("loged",{initialValue:m,valuePropName:"checked",rules:[{required:!0}]})(x.default.createElement(u.default,null))),x.default.createElement(U,(0,f.default)({},K,{label:(0,k.getIntlContent)("SHENYU.SELECTOR.WHETHEROPEN")}),G("enabled",{initialValue:b,valuePropName:"checked",rules:[{required:!0}]})(x.default.createElement(u.default,null))),x.default.createElement(U,(0,f.default)({style:{margin:"0 30px"}},K,{label:(0,k.getIntlContent)("SHENYU.SELECTOR.MATCHRESTFUL")}),G("matchRestful",{initialValue:E,valuePropName:"checked",rules:[{required:!0}]})(x.default.createElement(u.default,null)))))))}}])}(x.Component))||P;t.default=T.default.create()(z)},"+Mt+":function(e,t,n){"use strict";var r=n("Ds5P"),o=n("7gX0"),a=n("OzIq"),i=n("7O1s"),l=n("nphH");r(r.P+r.R,"Promise",{finally:function(e){var t=i(this,o.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}})},"+O3U":function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){var t=e.prefixCls,n=e.motion,o=e.openAnimation,a=e.openTransitionName;if(n)return n;if("object"===r(o)&&o)(0,i.default)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof o)return{motionName:"".concat(t,"-open-").concat(o)};return a?{motionName:a}:null}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.getMotion=o;var i=a(n("FfaA"))},"+PQg":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e){return 0===e.indexOf("my")}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n("TToO"),l=r(n("/gxq")),u=r(n("3h1/")),c=r(n("0sHC")),s=n("Q3a3"),f=a(n("Pdtn")),d=a(n("1Hui")),p=r(n("v/cD")),h=a(n("Pgdp")),v=n("dCQY"),y=n("h0jU"),m=a(n("/86O")),g=n("PelO"),b=n("1Xuh"),S=a(n("hKUo")),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(e,t,n,r){function a(a,l){var u,c=M[a],d=M[l],p=O[c],h=new f.default(p,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(p.title=r.newTitle),c&&!d){if(o(c))u={onclick:h.option.onclick,featureName:c};else{var m=(0,v.getFeature)(c);if(!m)return;u=new m}C[c]=u}else if(!(u=C[d]))return;u.uid=(0,y.getUID)("toolbox-feature"),u.model=h,u.ecModel=t,u.api=n;var g=u instanceof v.ToolboxFeature;return!c&&d?void(g&&u.dispose&&u.dispose(t,n)):!h.get("show")||g&&u.unusable?void(g&&u.remove&&u.remove(t,n)):(i(h,u,c),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?s.enterEmphasis:s.leaveEmphasis)(r[e])},void(u instanceof v.ToolboxFeature&&u.render&&u.render(h,t,n,r)))}function i(r,o,a){var i,u,f=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),p=o instanceof v.ToolboxFeature&&o.getIcons?o.getIcons():r.get("icon"),y=r.get("title")||{};l.isString(p)?(i={},i[a]=p):i=p,l.isString(y)?(u={},u[a]=y):u=y;var b=r.iconPaths={};l.each(i,function(a,i){var p=c.createIcon(a,{},{x:-E/2,y:-E/2,width:E,height:E});p.setStyle(f.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var v=new m.default({style:{text:u[i],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:(0,g.getFont)({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});p.setTextContent(v),c.setTooltipConfig({el:p,componentModel:e,itemName:i,formatterParamsExtra:{title:u[i]}}),p.__title=u[i],p.on("mouseover",function(){var t=d.getItemStyle(),r=_?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:d.get("textFill")||t.fill||t.stroke||S.default.color.neutral99,backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||r}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",i])&&n.leaveEmphasis(this),v.hide()}),("emphasis"===r.get(["iconStatus",i])?s.enterEmphasis:s.leaveEmphasis)(p),h.add(p),p.on("click",l.bind(o.onclick,o,t,n,i)),b[i]=p})}var h=this.group;if(h.removeAll(),e.get("show")){var E=+e.get("itemSize"),_="vertical"===e.get("orient"),O=e.get("feature")||{},C=this._features||(this._features={}),M=[];l.each(O,function(e,t){M.push(t)}),new d.default(this._featureNames||[],M).add(a).update(a).remove(l.curry(a,null)).execute(),this._featureNames=M;var w=(0,b.createBoxLayoutReference)(e,n).refContainer,P=e.getBoxLayoutParams(),T=e.get("padding"),x=(0,b.getLayoutRect)(P,w,T);(0,b.box)(e.get("orient"),h,e.get("itemGap"),x.width,x.height),(0,b.positionElement)(h,P,w,T),h.add(p.makeBackground(h.getBoundingRect(),e)),_||h.eachChild(function(e){var t=e.__title,r=e.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),a=e.getTextContent(),i=a&&a.ensureState("emphasis");if(i&&!l.isFunction(i)&&t){var c=i.style||(i.style={}),s=u.getBoundingRect(t,m.default.makeFont(c)),f=e.x+h.x,d=e.y+h.y+E,p=!1;d+s.height>n.getHeight()&&(o.position="top",p=!0);var v=p?-5-s.height:E+10;f+s.width/2>n.getWidth()?(o.position=["100%",v],c.align="right"):f-s.width/2<0&&(o.position=[0,v],c.align="left")}})}},t.prototype.updateView=function(e,t,n,r){l.each(this._features,function(e){e instanceof v.ToolboxFeature&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){l.each(this._features,function(n){n instanceof v.ToolboxFeature&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){l.each(this._features,function(n){n instanceof v.ToolboxFeature&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(h.default);t.default=E},"+S09":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=t.table,o=n.props,a=o.prefixCls,i=o.scroll,u=o.showHeader,d=e.columns,p=e.fixed,h=e.tableClassName,v=e.handleBodyScrollLeft,y=e.expander,m=n.saveRef,g=n.props.useFixedHeader,b={},S=s.measureScrollbar({direction:"vertical"});if(i.y){g=!0;var E=s.measureScrollbar({direction:"horizontal",prefixCls:a});E>0&&!p&&(b.marginBottom="-".concat(E,"px"),b.paddingBottom="0px",b.minWidth="".concat(S,"px"),b.overflowX="scroll",b.overflowY=0===S?"hidden":"scroll")}return g&&u?l.createElement("div",{key:"headTable",ref:p?null:m("headTable"),className:c.default("".concat(a,"-header"),r({},"".concat(a,"-hide-scrollbar"),S>0)),style:b,onScroll:v},l.createElement(f.default,{tableClassName:h,hasHead:!0,hasBody:!1,fixed:p,columns:d,expander:y})):null}var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n("GiK3")),u=a(n("KSGD")),c=i(n("HW6M")),s=n("D/j2"),f=i(n("+lkG"));t.default=o,o.contextTypes={table:u.any}},"+SmI":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e){"@babel/helpers - typeof";return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return a=Object.assign||function(e){for(var t=1;t0?{marginLeft:y[0]/-2,marginRight:y[0]/-2}:{}),y[1]>0?{marginTop:y[1]/-2,marginBottom:y[1]/-2}:{}),d),_=a({},h);return delete _.gutter,g.createElement(E.default.Provider,{value:{gutter:y}},g.createElement("div",a({},_,{className:m,style:S}),p))},e}s(t,e);var n=d(t);return c(t,[{key:"componentDidMount",value:function(){var e=this;this.token=_.default.subscribe(function(t){var n=e.props.gutter;("object"===o(n)||Array.isArray(n)&&("object"===o(n[0])||"object"===o(n[1])))&&e.setState({screens:t})})}},{key:"componentWillUnmount",value:function(){_.default.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,n=this.state.screens;return(Array.isArray(t)?t:[t,0]).forEach(function(t,r){if("object"===o(t))for(var a=0;a<_.responsiveArray.length;a++){var i=_.responsiveArray[a];if(n[i]&&void 0!==t[i]){e[r]=t[i];break}}else e[r]=t||0}),e}},{key:"render",value:function(){return g.createElement(S.ConfigConsumer,null,this.renderRow)}}]),t}(g.Component)).defaultProps={gutter:0}},"+SrI":function(e,t,n){"use strict";function r(e,t){return(0,a.default)(e)||(0,i.default)(e,t)||(0,l.default)(e,t)||(0,u.default)()}var o=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=o(n("JQJG")),i=o(n("eh1x")),l=o(n("Zl/V")),u=o(n("nv7o"))},"+TWC":function(e,t,n){"use strict";function r(e){for(var t=1;t=1)&&(e=1),e}var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var l=t(this._modBy),u=this._modDataCount||0,c=t(e&&e.modBy),s=e&&e.modDataCount||0;l===c&&u===s||(i="reset");var f;(this._dirty||"reset"===i)&&(this._dirty=!1,f=this._doReset(r)),this._modBy=c,this._modDataCount=s;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||p=n?null:e1&&a>0?t:e}};return l}()},"+Ye/":function(e,t,n){"use strict";e.exports=n("CTcx")},"+ZMJ":function(e,t,n){"use strict";var r=n("lOnJ");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"+azG":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(){return a=Object.assign||function(e){for(var t=1;t. This check has the highest priority. The realApiKey is strongly bound to the selector configuration. To change the mapping between proxyApiKey and realApiKey, just modify the selector configuration.","APIPROXY.APIKEY.USAGE.LINE1":"Proxy API Key works at selector granularity. Add header X-API-KEY: ; this check has the highest priority.","APIPROXY.APIKEY.USAGE.LINE2":"The realApiKey is strongly bound to the selector configuration. To change the mapping between proxyApiKey and realApiKey, edit the selector configuration.","APIPROXY.APIKEY.USAGE.HINT":"How to use: Add this API Key to the X-API-KEY field in your request header.","APIPROXY.APIKEY.PROXY_ENABLED_REQUIRED":'Please set proxyEnabled to "true" in this selector\'s configuration before entering Proxy API Key Management.',"SHENYU.SYSTEM.ALERT.LABELS.NAME":"Name","SHENYU.SYSTEM.ALERT.LABELS.VALUE":"Value","SHENYU.COMMON.SAVE":"Save","SHENYU.SYSTEM.DESCRIBE":"Description","SHENYU.COMMON.BACK":"Back","SHENYU.REQUEST.ERROR":"Request error","SHENYU.REQUEST.STATUS.200":"The server successfully returned the requested data.","SHENYU.REQUEST.STATUS.201":"New or modified data succeeded.","SHENYU.REQUEST.STATUS.202":"A request has entered the background queue (async task).","SHENYU.REQUEST.STATUS.204":"Data deleted successfully.","SHENYU.REQUEST.STATUS.400":"The request has an error, and the server did not create or modify data.","SHENYU.REQUEST.STATUS.401":"The user does not have permission (token, username, or password error).","SHENYU.REQUEST.STATUS.403":"The user is authorized, but access is forbidden.","SHENYU.REQUEST.STATUS.404":"The request targets a record that does not exist, and the server performed no operation.","SHENYU.REQUEST.STATUS.406":"The requested format is not available.","SHENYU.REQUEST.STATUS.410":"The requested resource has been permanently deleted and will not be available again.","SHENYU.REQUEST.STATUS.422":"A validation error occurred when creating an object.","SHENYU.REQUEST.STATUS.500":"A server error occurred, please check the server.","SHENYU.REQUEST.STATUS.502":"Gateway error.","SHENYU.REQUEST.STATUS.503":"Service unavailable, the server is temporarily overloaded or under maintenance.","SHENYU.REQUEST.STATUS.504":"Gateway timeout.","SHENYU.DOWNLOAD.FILE.FAILED":"Failed to download file","SHENYU.MCP.CONFIG.GATEWAY.TITLE":"Gateway Address Configuration:","SHENYU.MCP.CONFIG.GATEWAY.PLACEHOLDER":"Enter a custom gateway address, e.g.: http://localhost:9195 (leave empty to use the default)","SHENYU.MCP.CONFIG.GATEWAY.CURRENT":"Currently using:","SHENYU.MCP.CONFIG.SELECTOR.ENABLED":" (Enabled)","SHENYU.MCP.CONFIG.SELECTOR.DISABLED":" (Disabled)","SHENYU.MCP.CONFIG.BASE.PATH":"Base Path:","SHENYU.MCP.CONFIG.URL.EXPLAIN":"Final URL = Gateway Address + Base Path + Protocol Suffix (/sse or /streamablehttp)","SHENYU.MCP.CONFIG.NAME.SERVICE.SSE":" Service SSE","SHENYU.MCP.CONFIG.NAME.SERVICE":" Service","SHENYU.MCP.CONFIG.DESC.SERVICE.SSE":" Service SSE Test","SHENYU.MCP.CONFIG.DESC.SERVICE":" Service Test","SHENYU.MCP.CONFIG.DEFAULT.SERVICE.NAME":"Default MCP Service","SHENYU.MCP.TOOLS.PARAM.DEPTH.EXCEEDED":"Parameter nesting depth exceeds the limit","SHENYU.MCP.TOOLS.PARAM.DEPTH.MAX.PREFIX":" (max ","SHENYU.MCP.TOOLS.PARAM.DEPTH.MAX.SUFFIX":" levels)","SHENYU.MCP.TOOLS.PARAM.DEPTH.MAX.REACHED":"Maximum nesting depth limit reached","SHENYU.MCP.TOOLS.PARAM.DEPTH.MAX.CANNOT.ADD":", cannot add more sub-parameters","SHENYU.MCP.TOOLS.PARAM.ROW.PREFIX":"Row ","SHENYU.MCP.TOOLS.PARAM.ROW.SUFFIX":"","SHENYU.MCP.TOOLS.PARAM.INCOMPLETE":"parameters are incomplete; please fill in the name and type","SHENYU.EXCEPTION.403.DESC":"Sorry, you don't have access to this page","SHENYU.EXCEPTION.404.DESC":"Sorry, the page you visited does not exist","SHENYU.EXCEPTION.500.DESC":"Sorry, something went wrong with the server","SHENYU.EXCEPTION.BACK.HOME":"Back to Home","SHENYU.SYSTEM.RESOURCE.SELECT.MENU.WARN":"Please select a menu on the left first","SHENYU.SYSTEM.INSTANCE.CHART.COUNT":"Count"}},"+jMe":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TreeNode=void 0;var i=r(n("/gxq")),l=a(n("myzl")),u=a(n("/OrY")),c=a(n("hcq/")),s=n("vXqC"),f=t.TreeNode=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){i.isFunction(e)&&(n=t,t=e,e=null),e=e||{},i.isString(e)&&(e={order:e});var r,o=e.order||"preorder",a=this[e.attr||"children"];"preorder"===o&&(r=t.call(n,this));for(var l=0;!r&&lt&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t2&&void 0!==arguments[2]?arguments[2]:[],o=e.context.table,a=o.columnManager,i=o.components,l=o.props,u=l.prefixCls,c=l.childrenColumnName,s=l.rowClassName,f=l.rowRef,d=l.onRowClick,p=l.onRowDoubleClick,h=l.onRowContextMenu,v=l.onRowMouseEnter,y=l.onRowMouseLeave,m=l.onRow,g=e.props,S=g.getRowKey,E=g.fixed,_=g.expander,O=g.isAnyColumnsFixed,C=[],P=0;P15)break}}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)g=l.__endIndex;else for(var S=p.dpr,E=0;E0&&e>r[0]){for(u=0;ue);u++);l=n[r[u]]}if(r.splice(u+1,0,e),n[e]=t,!t.virtual)if(l){var c=l.dom;c.nextSibling?i.insertBefore(t.dom,c.nextSibling):i.appendChild(t.dom)}else i.firstChild?i.insertBefore(t.dom,i.firstChild):i.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r0?.01:0),this._needsManuallyCompositing),s.__builtin__||u.logError("ZLevel "+c+" has been used by unkown layer "+s.id),s!==i&&(s.__used=!0,s.__startIndex!==a&&(s.__dirty=!0),s.__startIndex=a,s.incremental?s.__drawIndex=-1:s.__drawIndex=a,t(a),i=s),r.__dirty&p.REDRAW_BIT&&!r.__inHover&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=a))}t(a),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,u.each(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?u.merge(n[e],t,!0):n[e]=t;for(var r=0;r0})}var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n("GiK3")),l=o(n("KSGD")),u=a(n("6Fr6")),c=function(e,t){var n=t.table,o=n.components,a=n.props,l=a.prefixCls,c=a.showHeader,s=a.onHeaderRow,f=e.expander,d=e.columns,p=e.fixed;if(!c)return null;var h=r({columns:d});f.renderExpandIndentCell(h,p);var v=o.header.wrapper;return i.createElement(v,{className:"".concat(l,"-thead")},h.map(function(e,t){return i.createElement(u.default,{prefixCls:l,key:t,index:t,fixed:p,columns:d,rows:h,row:e,components:o,onHeaderRow:s})}))};c.contextTypes={table:l.any},t.default=c},"+onY":function(e,t,n){"use strict";function r(){function e(e,n,r,a){var i=n&&n.prototype instanceof t?n:t,c=Object.create(i.prototype);return o(c,"_invoke",function(e,t,n){function r(e,t){for(a=e,i=t,u=0;!f&&c&&!n&&u3?(n=h===t)&&(i=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=l):r[0]<=o&&((n=e<2&&ot||t>h)&&(r[4]=e,r[5]=t,p.n=h,a=0))}if(n||e>1)return d;throw f=!0,t}var o,a,i,c=0,s=n||[],f=!1,p={p:0,n:0,v:l,a:r,f:r.bind(l,4),d:function(e,t){return o=e,a=0,i=l,p.n=t,d}};return function(n,s,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&r(s,h),a=s,i=h;(u=a<2?l:i)||!f;){o||(a?a<3?(a>1&&(p.n=-1),r(a,i)):p.n=i:p.v=i);try{if(c=2,o){if(a||(n="next"),u=o[n]){if(!(u=u.call(o,i)))throw TypeError("iterator result is not an object");if(!u.done)return u;i=u.value,a<2&&(a=0)}else 1===a&&(u=o.return)&&u.call(o),a<2&&(i=TypeError("The iterator does not provide a '"+n+"' method"),a=1);o=l}else if((u=(f=p.n<0)?i:e.call(t,p))!==d)break}catch(e){o=l,a=1,i=e}finally{c=1}}return{value:u,done:f}}}(e,r,a),!0),c}function t(){}function n(){}function a(){}function i(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,o(e,f,"GeneratorFunction")),e.prototype=Object.create(h),e}var l,u,c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",f=c.toStringTag||"@@toStringTag",d={};u=Object.getPrototypeOf;var p=[][s]?u(u([][s]())):(o(u={},s,function(){return this}),u),h=a.prototype=t.prototype=Object.create(p);return n.prototype=a,o(h,"constructor",a),o(a,"constructor",n),n.displayName="GeneratorFunction",o(a,f,"GeneratorFunction"),o(h),o(h,f,"Generator"),o(h,s,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:e,m:i}})()}function o(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(o=function(e,t,n,r){function i(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("+TWC"));n("UQ5M");var l=a(n("/qCn")),u=n("KPPu"),c=n("H/Zg");t.default={namespace:"alert",state:{alertList:[],total:0},effects:{fetch:function(e,t){var n=e.payload,o=t.call,a=t.put;return r().m(function e(){var t;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,o(c.getAlertReceivers,n);case 1:return t=e.v,e.n=2,a({type:"save",payload:t.data});case 2:return e.a(2)}},e)})()},fetchItem:function(e,t){var n=e.payload,o=e.callback,a=t.call;return r().m(function e(){var t,i;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,a(c.getAlertReceiverDetail,n);case 1:t=e.v,200===t.code&&(i=t.data,o(i));case 2:return e.a(2)}},e)})()},update:function(e,t){var n=t.call;return r().m(function t(){var o,a,i;return r().w(function(t){for(;;)switch(t.n){case 0:return o=e.payload,a=e.callback,t.n=1,n(c.updateAlertReceiver,o);case 1:i=t.v,200===i.code?(l.default.success((0,u.getIntlContent)("SHENYU.COMMON.RESPONSE.UPDATE.SUCCESS")),a()):l.default.warn(i.message);case 2:return t.a(2)}},t)})()},add:function(e,t){var n=t.call;return r().m(function t(){var o,a,i;return r().w(function(t){for(;;)switch(t.n){case 0:return o=e.payload,a=e.callback,t.n=1,n(c.addAlertReceiver,o);case 1:i=t.v,200===i.code?(l.default.success((0,u.getIntlContent)("SHENYU.COMMON.RESPONSE.ADD.SUCCESS")),a()):l.default.warn(i.message);case 2:return t.a(2)}},t)})()},delete:function(e,t){var n=t.call,o=t.put;return r().m(function t(){var a,i,s,f,d;return r().w(function(t){for(;;)switch(t.n){case 0:return a=e.payload,i=e.fetchValue,s=e.callback,f=a.list,t.n=1,n(c.deleteAlertReceivers,{list:f});case 1:if(d=t.v,200!==d.code){t.n=3;break}return l.default.success((0,u.getIntlContent)("SHENYU.COMMON.RESPONSE.DELETE.SUCCESS")),s(),t.n=2,o({type:"reload",fetchValue:i});case 2:t.n=4;break;case 3:l.default.warn(d.message);case 4:return t.a(2)}},t)})()},sendTest:function(e,t){var n=t.call;return r().m(function t(){var o,a;return r().w(function(t){for(;;)switch(t.n){case 0:return o=e.payload,t.n=1,n(c.fetchAlertReport,o);case 1:a=t.v,200===a.code?l.default.success((0,u.getIntlContent)("SHENYU.SYSTEM.ALERT.SEND_SUCCESS")):l.default.warn(a.message);case 2:return t.a(2)}},t)})()},reload:function(e,t){var n=t.put;return r().m(function t(){var o,a,i,l,u;return r().w(function(t){for(;;)switch(t.n){case 0:return o=e.fetchValue,a=o.currentPage,i=o.pageSize,l=o.namespaceId,u={currentPage:a,pageSize:i,namespaceId:l},t.n=1,n({type:"fetch",payload:u});case 1:return t.a(2)}},t)})()}},reducers:{save:function(e,t){var n=t.payload;return(0,i.default)({},e,{alertList:n.dataList,total:n.page.totalCount})}}}},"+pdh":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e){for(var t=0;t=0&&(u[a[c].depth]=new l.default(a[c],this,t));return(0,i.default)(o,r,this,!0,n).data},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,r=n[e];r.localX=t[0],r.localY=t[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var o=this.getDataParams(e,n),a=o.data,i=o.value,l=a.source+" -- "+a.target;return(0,u.createTooltipMarkup)("nameValue",{name:l,value:i,noValue:r(i)})}var c=this.getGraph().getNodeByIndex(e),s=c.getLayout().value,f=this.getDataParams(e,n).data.name;return(0,u.createTooltipMarkup)("nameValue",{name:null!=f?f+"":null,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var o=this.getGraph().getNodeByIndex(t),a=o.getLayout().value;r.value=a}return r},t.type="series.sankey",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:c.default.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:c.default.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(a.default);t.default=s},"+vXH":function(e,t,n){"use strict";n("77Ug")("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},"+wjW":function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.exports=r},"+yjc":function(e,t,n){"use strict";var r=n("UKM+");n("3i66")("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},"/+sa":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("BNYN")),a=n("wW3A"),i=n("/gxq"),l=n("N15c"),u=function(){function e(e){this._calculator=new a.ScaleCalculator,this._setting=e||{},this._extent=[1/0,-1/0];var t=(0,l.getScaleBreakHelper)();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=(0,l.getScaleBreakHelper)();t&&this._innerSetBreak(t.parseAxisBreakOption(e,(0,i.bind)(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();o.enableClassManagement(u);t.default=u},"/1q1":function(e,t,n){"use strict";function r(e,t,n,r,a){var l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,l,a),void 0!==t&&i.default.type(e,t,r,l,a)}n(l)}Object.defineProperty(t,"__esModule",{value:!0});var o=n("eCjd"),a=n("hGxU"),i=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r},"/2sp":function(e,t,n){"use strict";function r(e){e.registerChartView(a.default),e.registerSeriesModel(i.default),e.registerLayout((0,l.default)("effectScatter"))}var o=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.install=r;var a=o(n("Y3kp")),i=o(n("P7Q7")),l=o(n("1Nix"))},"/4RJ":function(e,t,n){"use strict";n("vtiu"),n("1OYt"),n("LHBr"),n("s3t2"),n("iBc0")},"/7YS":function(e,t,n){"use strict";function r(){function e(e,n,r,a){var i=n&&n.prototype instanceof t?n:t,c=Object.create(i.prototype);return o(c,"_invoke",function(e,t,n){function r(e,t){for(a=e,i=t,u=0;!f&&c&&!n&&u3?(n=h===t)&&(i=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=l):r[0]<=o&&((n=e<2&&ot||t>h)&&(r[4]=e,r[5]=t,p.n=h,a=0))}if(n||e>1)return d;throw f=!0,t}var o,a,i,c=0,s=n||[],f=!1,p={p:0,n:0,v:l,a:r,f:r.bind(l,4),d:function(e,t){return o=e,a=0,i=l,p.n=t,d}};return function(n,s,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&r(s,h),a=s,i=h;(u=a<2?l:i)||!f;){o||(a?a<3?(a>1&&(p.n=-1),r(a,i)):p.n=i:p.v=i);try{if(c=2,o){if(a||(n="next"),u=o[n]){if(!(u=u.call(o,i)))throw TypeError("iterator result is not an object");if(!u.done)return u;i=u.value,a<2&&(a=0)}else 1===a&&(u=o.return)&&u.call(o),a<2&&(i=TypeError("The iterator does not provide a '"+n+"' method"),a=1);o=l}else if((u=(f=p.n<0)?i:e.call(t,p))!==d)break}catch(e){o=l,a=1,i=e}finally{c=1}}return{value:u,done:f}}}(e,r,a),!0),c}function t(){}function n(){}function a(){}function i(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,o(e,f,"GeneratorFunction")),e.prototype=Object.create(h),e}var l,u,c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",f=c.toStringTag||"@@toStringTag",d={};u=Object.getPrototypeOf;var p=[][s]?u(u([][s]())):(o(u={},s,function(){return this}),u),h=a.prototype=t.prototype=Object.create(p);return n.prototype=a,o(h,"constructor",a),o(a,"constructor",n),n.displayName="GeneratorFunction",o(a,f,"GeneratorFunction"),o(h),o(h,f,"Generator"),o(h,s,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:e,m:i}})()}function o(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(o=function(e,t,n,r){function i(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))})(e,t,n,r)}var a=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("+TWC")),l=n("ye8Q");t.default={namespace:"user",state:{list:[],currentUser:{}},effects:{fetch:function(e,t){var n=t.call,o=t.put;return r().m(function e(){var t;return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n(l.query);case 1:return t=e.v,e.n=2,o({type:"save",payload:t});case 2:return e.a(2)}},e)})()}},reducers:{save:function(e,t){return(0,i.default)({},e,{list:t.payload})}}}},"/86O":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}function o(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?C.DEFAULT_FONT_SIZE+"px":e+"px":e}function a(e,t){for(var n=0;n0,j=0;j=0&&(A=C[k],"right"===A.align);)this._placeToken(A,e,P,g,I,"right",E),T-=A.width,I-=A.width,k--;for(N+=(u-(N-m)-(S-I)-T)/2;x<=k;)A=C[x],this._placeToken(A,e,P,g,N+A.width/2,"center",E),N+=A.width,x++;g+=P}},t.prototype._placeToken=function(e,t,n,r,o,i,l){var u=t.rich[e.styleName]||{};u.text=e.text;var d=e.verticalAlign,h=r+n/2;"top"===d?h=r+e.height/2:"bottom"===d&&(h=r+n-e.height/2),!e.isLineHolder&&p(u)&&this._renderBackground(u,t,"right"===i?o-e.width:"center"===i?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,b=e.textPadding;b&&(o=f(o,i,b),h-=e.height/2-b[0]-e.innerHeight/2);var S=this._getOrCreateChild(m.default),E=S.createStyle();S.useStyle(E);var _=this._defaultStyle,O=!1,M=0,w=!1,P=s("fill"in u?u.fill:"fill"in t?t.fill:(O=!0,_.fill)),T=c("stroke"in u?u.stroke:"stroke"in t?t.stroke:v||l||_.autoStroke&&!O?null:(M=2,w=!0,_.stroke)),x=u.textShadowBlur>0||t.textShadowBlur>0;E.text=e.text,E.x=o,E.y=h,x&&(E.shadowBlur=u.textShadowBlur||t.textShadowBlur||0,E.shadowColor=u.textShadowColor||t.textShadowColor||"transparent",E.shadowOffsetX=u.textShadowOffsetX||t.textShadowOffsetX||0,E.shadowOffsetY=u.textShadowOffsetY||t.textShadowOffsetY||0),E.textAlign=i,E.textBaseline="middle",E.font=e.font||C.DEFAULT_FONT,E.opacity=(0,g.retrieve3)(u.opacity,t.opacity,1),a(E,u),T&&(E.lineWidth=(0,g.retrieve3)(u.lineWidth,t.lineWidth,M),E.lineDash=(0,g.retrieve2)(u.lineDash,t.lineDash),E.lineDashOffset=t.lineDashOffset||0,E.stroke=T),P&&(E.fill=P),S.setBoundingRect((0,y.tSpanCreateBoundingRect2)(E,e.contentWidth,e.contentHeight,w?0:null))},t.prototype._renderBackground=function(e,t,n,r,o,a){var i,l,u=e.backgroundColor,c=e.borderWidth,s=e.borderColor,f=u&&u.image,d=u&&!f,p=e.borderRadius,h=this;if(d||e.lineHeight||c&&s){i=this._getOrCreateChild(E.default),i.useStyle(i.createStyle()),i.style.fill=null;var v=i.shape;v.x=n,v.y=r,v.width=o,v.height=a,v.r=p,i.dirtyShape()}if(d){var y=i.style;y.fill=u||null,y.fillOpacity=(0,g.retrieve2)(e.fillOpacity,1)}else if(f){l=this._getOrCreateChild(S.default),l.onload=function(){h.dirtyStyle()};var m=l.style;m.image=u.image,m.x=n,m.y=r,m.width=o,m.height=a}if(c&&s){var y=i.style;y.lineWidth=c,y.stroke=s,y.strokeOpacity=(0,g.retrieve2)(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,i.strokeContainThreshold=0,i.hasFill()&&i.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(i||l).style;b.shadowBlur=e.shadowBlur||0,b.shadowColor=e.shadowColor||"transparent",b.shadowOffsetX=e.shadowOffsetX||0,b.shadowOffsetY=e.shadowOffsetY||0,b.opacity=(0,g.retrieve3)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return i(e)&&(t=[e.fontStyle,e.fontWeight,o(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&(0,g.trim)(t)||e.textFont||e.font},t}(O.default),x={left:!0,right:1,center:1},N={top:1,bottom:1,middle:1},I=["fontStyle","fontWeight","fontSize","fontFamily"];t.default=T},"/Aqo":function(e,t,n){"use strict";function r(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?r(i,l,a):i[l]=e[l]);return i})(e,t)}var o=n("ouCL");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("TToO"),i=r(n("/gxq")),l=o(n("avYi")),u=o(n("8b51")),c=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return(0,a.__extends)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i.indexOf(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var o=this.__zr;o&&r.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i.indexOf(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0)for(var c=0;cMath.abs(s),d=r([c,s],f?0:1,t),p=(f?u:s)/d.length,h=0;ha,l=r([o,a],i?0:1,t),u=i?"width":"height",c=i?"height":"width",s=i?"x":"y",f=i?"y":"x",d=e[u]/l.length,p=0;p1?null:new S.default(y*c+e,y*s+t)}function u(e,t,n){var r=new S.default;S.default.sub(r,n,t),r.normalize();var o=new S.default;return S.default.sub(o,e,t),o.dot(r)}function c(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function s(e,t,n){for(var r=e.length,o=[],a=0;ai?(c.x=f.x=l+a/2,c.y=u,f.y=u+i):(c.y=f.y=u+i/2,c.x=l,f.x=l+a),s(t,c,f)}function d(e,t,n,r){if(1===n)r.push(t);else{var o=Math.floor(n/2),a=e(t);d(e,a[0],o,r),d(e,a[1],n-o,r)}return r}function p(e,t){for(var n=[],r=0;r-1?o([n]):n}},"/OLF":function(e,t,n){"use strict";function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function _(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}function O(e){return e[1].toUpperCase()}function C(e,t,n,r){var o=pa.hasOwnProperty(t)?pa[t]:null;(null!==o?0===o.type:!r&&(2=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:x(n)}}function G(e,t){var n=x(t.value),r=x(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function B(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function K(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function q(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?K(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function Q(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function X(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function J(e){if(ja[e])return ja[e];if(!Ra[e])return e;var t,n=Ra[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ua)return ja[e]=n[t];return e}function Z(e){var t=Ka.get(e);return void 0===t&&(t=new Map,Ka.set(e,t)),t}function $(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!=(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ee(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function te(e){if($(e)!==e)throw Error(r(188))}function ne(e){var t=e.alternate;if(!t){if(null===(t=$(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){n=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return te(a),e;if(i===o)return te(a),t;i=i.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=i;else{for(var l=!1,u=a.child;u;){if(u===n){l=!0,n=a,o=i;break}if(u===o){l=!0,o=a,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,o=a;break}if(u===o){l=!0,o=i,n=a;break}u=u.sibling}if(!l)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}function re(e){if(!(e=ne(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function oe(e,t){if(null==t)throw Error(r(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ae(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function ie(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;rQa.length&&Qa.push(e)}function fe(e,t,n,r){if(Qa.length){var o=Qa.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function de(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=qe(r)}while(n);for(n=0;n=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=He(n)}}function Ye(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ye(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ve(){for(var e=window,t=Ue();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;e=t.contentWindow,t=Ue(e.document)}return t}function Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function We(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ge(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Be(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ke(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===bi||n===_i||n===Ei){if(0===t)return e;t--}else n===Si&&t++}e=e.previousSibling}return null}function qe(e){var t=e[Ti];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ni]||n[Ti]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ke(e);null!==e;){if(n=e[Ti])return n;e=Ke(e)}return t}e=n,n=e.parentNode}return null}function Qe(e){return e=e[Ti]||e[Ni],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Xe(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function Je(e){return e[xi]||null}function Ze(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function $e(e,t){var n=e.stateNode;if(!n)return null;var o=Ko(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}function et(e,t,n){(t=$e(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=oe(n._dispatchListeners,t),n._dispatchInstances=oe(n._dispatchInstances,e))}function tt(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Ze(t);for(t=n.length;0this.eventPool.length&&this.eventPool.push(e)}function ft(e){e.eventPool=[],e.getPooled=ct,e.release=st}function dt(e,t){switch(e){case"keyup":return-1!==Ri.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function pt(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function ht(e,t){switch(e){case"compositionend":return pt(t);case"keypress":return 32!==t.which?null:(Fi=!0,Yi);case"textInput":return e=t.data,e===Yi&&Fi?null:e;default:return null}}function vt(e,t){if(Wi)return"compositionend"===e||!ji&&dt(e,t)?(e=at(),Ai=ki=Ii=null,Wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Dl||(e.current=Al[Dl],Al[Dl]=null,Dl--)}function Dt(e,t){Dl++,Al[Dl]=e.current,e.current=t}function Lt(e,t){var n=e.type.contextTypes;if(!n)return Ll;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function jt(){At(jl),At(Rl)}function Ut(e,t,n){if(Rl.current!==Ll)throw Error(r(168));Dt(Rl,t),Dt(jl,n)}function Ht(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;o=o.getChildContext();for(var a in o)if(!(a in e))throw Error(r(108,P(t)||"Unknown",a));return zo({},n,{},o)}function zt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ll,Ul=Rl.current,Dt(Rl,e),Dt(jl,jl.current),!0}function Yt(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(e=Ht(e,t,Ul),o.__reactInternalMemoizedMergedChildContext=e,At(jl),At(Rl),Dt(Rl,e)):At(jl),Dt(jl,n)}function Vt(){switch(Wl()){case Gl:return 99;case Bl:return 98;case Kl:return 97;case ql:return 96;case Ql:return 95;default:throw Error(r(332))}}function Ft(e){switch(e){case 99:return Gl;case 98:return Bl;case 97:return Kl;case 96:return ql;case 95:return Ql;default:throw Error(r(332))}}function Wt(e,t){return e=Ft(e),Hl(e,t)}function Gt(e,t,n){return e=Ft(e),zl(e,t,n)}function Bt(e){return null===$l?($l=[e],eu=zl(Gl,qt)):$l.push(e),Xl}function Kt(){if(null!==eu){var e=eu;eu=null,Yl(e)}qt()}function qt(){if(!tu&&null!==$l){tu=!0;var e=0;try{var t=$l;Wt(99,function(){for(;e=t&&(Lu=!0),e.firstContext=null)}function tn(e,t){if(lu!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(lu=e,t=1073741823),t={context:e,observedBits:t,next:null},null===iu){if(null===au)throw Error(r(308));iu=t,au.dependencies={expirationTime:0,firstContext:t,responders:null}}else iu=iu.next=t;return e._currentValue}function nn(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function rn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function on(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function an(e,t){if(null!==(e=e.updateQueue)){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ln(e,t){var n=e.alternate;null!==n&&rn(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function un(e,t,n,r){var o=e.updateQueue;uu=!1;var a=o.baseQueue,i=o.shared.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}a=i,o.shared.pending=null,l=e.alternate,null!==l&&null!==(l=l.updateQueue)&&(l.baseQueue=i)}if(null!==a){l=a.next;var u=o.baseState,c=0,s=null,f=null,d=null;if(null!==l)for(var p=l;;){if((i=p.expirationTime)c&&(c=i)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Jr(i,p.suspenseConfig);e:{var v=e,y=p;switch(i=t,h=n,y.tag){case 1:if("function"==typeof(v=y.payload)){u=v.call(h,u,i);break e}u=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(v=y.payload,null===(i="function"==typeof v?v.call(h,u,i):v)||void 0===i)break e;u=zo({},u,i);break e;case 2:uu=!0}}null!==p.callback&&(e.effectTag|=32,i=o.effects,null===i?o.effects=[p]:i.push(p))}if(null===(p=p.next)||p===l){if(null===(i=o.shared.pending))break;p=a.next=i.next,i.next=l,o.baseQueue=a=i,o.shared.pending=null}}null===d?s=u:d.next=f,o.baseState=s,o.baseQueue=d,Zr(c),e.expirationTime=c,e.memoizedState=u}}function cn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tv?(y=f,f=null):y=f.sibling;var m=p(r,f,l[v],u);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(r,f),a=i(m,a,v),null===s?c=m:s.sibling=m,s=m,f=y}if(v===l.length)return n(r,f),c;if(null===f){for(;vy?(m=v,v=null):m=v.sibling;var b=p(a,v,g.value,c);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(a,v),l=i(b,l,y),null===f?s=b:f.sibling=b,f=b,v=m}if(g.done)return n(a,v),s;if(null===v){for(;!g.done;y++,g=u.next())null!==(g=d(a,g.value,c))&&(l=i(g,l,y),null===f?s=g:f.sibling=g,f=g);return s}for(v=o(a,v);!g.done;y++,g=u.next())null!==(g=h(v,a,y,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),l=i(g,l,y),null===f?s=g:f.sibling=g,f=g);return e&&v.forEach(function(e){return t(a,e)}),s}return function(e,o,i,u){var c="object"==typeof i&&null!==i&&i.type===Ea&&null===i.key;c&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case ba:e:{for(s=i.key,c=o;null!==c;){if(c.key===s){switch(c.tag){case 7:if(i.type===Ea){n(e,c.sibling),o=a(c,i.props.children),o.return=e,e=o;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),o=a(c,i.props),o.ref=vn(e,c,i),o.return=e,e=o;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===Ea?(o=Eo(i.props.children,e.mode,u,i.key),o.return=e,e=o):(u=So(i.type,i.key,i.props,null,e.mode,u),u.ref=vn(e,o,i),u.return=e,e=u)}return l(e);case Sa:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),o=a(o,i.children||[]),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=Oo(i,e.mode,u),o.return=e,e=o}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),o=a(o,i),o.return=e,e=o):(n(e,o),o=_o(i,e.mode,u),o.return=e,e=o),l(e);if(du(i))return v(e,o,i,u);if(M(i))return y(e,o,i,u);if(s&&yn(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(r(152,e.displayName||e.name||"Component"))}return n(e,o)}}function gn(e){if(e===vu)throw Error(r(174));return e}function bn(e,t){switch(Dt(gu,t),Dt(mu,e),Dt(yu,vu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:q(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=q(t,e)}At(yu),Dt(yu,t)}function Sn(){At(yu),At(mu),At(gu)}function En(e){gn(gu.current);var t=gn(yu.current),n=q(t,e.type);t!==n&&(Dt(mu,e),Dt(yu,n))}function _n(e){mu.current===e&&(At(yu),At(mu))}function On(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===Ei||n.data===_i))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Cn(e,t){return{responder:e,props:t}}function Mn(){throw Error(r(321))}function wn(e,t){if(null===t)return!1;for(var n=0;ni))throw Error(r(301));i+=1,Mu=Cu=null,t.updateQueue=null,Su.current=Nu,e=n(o,a)}while(t.expirationTime===_u)}if(Su.current=Pu,t=null!==Cu&&null!==Cu.next,_u=0,Mu=Cu=Ou=null,wu=!1,t)throw Error(r(300));return e}function Tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Mu?Ou.memoizedState=Mu=e:Mu=Mu.next=e,Mu}function xn(){if(null===Cu){var e=Ou.alternate;e=null!==e?e.memoizedState:null}else e=Cu.next;var t=null===Mu?Ou.memoizedState:Mu.next;if(null!==t)Mu=t,Cu=e;else{if(null===e)throw Error(r(310));Cu=e,e={memoizedState:Cu.memoizedState,baseState:Cu.baseState,baseQueue:Cu.baseQueue,queue:Cu.queue,next:null},null===Mu?Ou.memoizedState=Mu=e:Mu=Mu.next=e}return Mu}function Nn(e,t){return"function"==typeof t?t(e):t}function In(e){var t=xn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=Cu,a=o.baseQueue,i=n.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,o=o.baseState;var u=l=i=null,c=a;do{var s=c.expirationTime;if(s<_u){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(l=u=f,i=o):u=u.next=f,s>Ou.expirationTime&&(Ou.expirationTime=s,Zr(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),Jr(s,c.suspenseConfig),o=c.eagerReducer===e?c.eagerState:e(o,c.action);c=c.next}while(null!==c&&c!==a);null===u?i=o:u.next=l,ul(o,t.memoizedState)||(Lu=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=u,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function kn(e){var t=xn(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);ul(i,t.memoizedState)||(Lu=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function An(e){var t=Tn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:e},e=e.dispatch=qn.bind(null,Ou,e),[t.memoizedState,e]}function Dn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ou.updateQueue,null===t?(t={lastEffect:null},Ou.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ln(){return xn().memoizedState}function Rn(e,t,n,r){var o=Tn();Ou.effectTag|=e,o.memoizedState=Dn(1|t,n,void 0,void 0===r?null:r)}function jn(e,t,n,r){var o=xn();r=void 0===r?null:r;var a=void 0;if(null!==Cu){var i=Cu.memoizedState;if(a=i.destroy,null!==r&&wn(r,i.deps))return void Dn(t,n,a,r)}Ou.effectTag|=e,o.memoizedState=Dn(1|t,n,a,r)}function Un(e,t){return Rn(516,4,e,t)}function Hn(e,t){return jn(516,4,e,t)}function zn(e,t){return jn(4,2,e,t)}function Yn(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Vn(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,jn(4,2,Yn.bind(null,t,e),n)}function Fn(){}function Wn(e,t){return Tn().memoizedState=[e,void 0===t?null:t],e}function Gn(e,t){var n=xn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wn(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bn(e,t){var n=xn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&wn(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Kn(e,t,n){var r=Vt();Wt(98>r?98:r,function(){e(!0)}),Wt(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(a,{is:o.is}):(e=l.createElement(a),"select"===a&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,a),e[Ti]=t,e[xi]=o,xl(e,t,!1,!1),t.stateNode=e,l=Le(a,o),a){case"iframe":case"object":case"embed":we("load",e),u=o;break;case"video":case"audio":for(u=0;uo.tailExpiration&&1t)&&bc.set(e,t))}}function zr(e,t){e.expirationTimee?n:e,2>=e&&t!==e?0:e}function Vr(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Bt(Wr.bind(null,e));else{var t=Yr(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=jr();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Xl&&Yl(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Bt(Wr.bind(null,e)):Gt(r,Fr.bind(null,e),{timeout:10*(1073741821-t)-ru()}),e.callbackNode=t}}}function Fr(e,t){if(_c=0,t)return t=jr(),To(e,t),Vr(e),null;var n=Yr(e);if(0!==n){if(t=e.callbackNode,($u&(Gu|Bu))!==Fu)throw Error(r(327));if(lo(),e===ec&&n===nc||qr(e,n),null!==tc){var o=$u;$u|=Gu;for(var a=Xr();;)try{eo();break}catch(t){Qr(e,t)}if(Jt(),$u=o,Yu.current=a,rc===qu)throw t=oc,qr(e,n),wo(e,n),Vr(e),t;if(null===tc)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=rc,ec=null,o){case Ku:case qu:throw Error(r(345));case Qu:To(e,2=n){e.lastPingedTime=n,qr(e,n);break}}if(0!==(i=Yr(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=Mi(oo.bind(null,e),a);break}oo(e);break;case Ju:if(wo(e,n),o=e.lastSuspendedTime,n===o&&(e.nextKnownPendingLevel=ro(a)),cc&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,qr(e,n);break}if(0!==(a=Yr(e))&&a!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==ic?o=10*(1073741821-ic)-ru():1073741823===ac?o=0:(o=10*(1073741821-ac)-5e3,a=ru(),n=10*(1073741821-n)-a,o=a-o,0>o&&(o=0),o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*zu(o/1960))-o,n=o?o=0:(a=0|l.busyDelayMs,i=ru()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)),o=i<=a?0:a+o-i),10 component higher in the tree to provide a loading indicator or placeholder to display."+T(i))}rc!==Zu&&(rc=Qu),l=gr(l,i),f=a;do{switch(f.tag){case 3:u=l,f.effectTag|=4096,f.expirationTime=t;ln(f,Lr(f,u,t));break e;case 1:u=l;var S=f.type,E=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof S.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===vc||!vc.has(E)))){f.effectTag|=4096,f.expirationTime=t;ln(f,Rr(f,u,t));break e}}f=f.return}while(null!==f)}tc=no(tc)}catch(e){t=e;continue}break}}function Xr(){var e=Yu.current;return Yu.current=Pu,null===e?Pu:e}function Jr(e,t){euc&&(uc=e)}function $r(){for(;null!==tc;)tc=to(tc)}function eo(){for(;null!==tc&&!Jl();)tc=to(tc)}function to(e){var t=ju(e.alternate,e,nc);return e.memoizedProps=e.pendingProps,null===t&&(t=no(e)),Vu.current=null,t}function no(e){tc=e;do{var t=tc.alternate;if(e=tc.return,0==(2048&tc.effectTag)){if(t=yr(t,tc,nc),1===nc||1!==tc.childExpirationTime){for(var n=0,r=tc.child;null!==r;){var o=r.expirationTime,a=r.childExpirationTime;o>n&&(n=o),a>n&&(n=a),r=r.sibling}tc.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=tc.firstEffect),null!==tc.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=tc.firstEffect),e.lastEffect=tc.lastEffect),1e?t:e}function oo(e){var t=Vt();return Wt(99,ao.bind(null,e,t)),null}function ao(e,t){do{lo()}while(null!==mc);if(($u&(Gu|Bu))!==Fu)throw Error(r(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=ro(n);if(e.firstPendingTime=a,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ec&&(tc=ec=null,nc=0),1u&&(s=u,u=l,l=s),s=ze(S,l),f=ze(S,u),s&&f&&(1!==_.rangeCount||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&(E=E.createRange(),E.setStart(s.node,s.offset),_.removeAllRanges(),l>u?(_.addRange(E),_.extend(f.node,f.offset)):(E.setEnd(f.node,f.offset),_.addRange(E)))))),E=[];for(_=S;_=_.parentNode;)1===_.nodeType&&E.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof S.focus&&S.focus(),S=0;S=t&&e<=t}function wo(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Po(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function To(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function xo(e,t,n,o){var a=t.current,i=jr(),l=cu.suspense;i=Ur(i,a,l);e:if(n){n=n._reactInternalFiber;t:{if($(n)!==n||1!==n.tag)throw Error(r(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Rt(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(r(171))}if(1===n.tag){var c=n.type;if(Rt(c)){n=Ht(n,c,u);break e}}n=u}else n=Ll;return null===t.context?t.context=n:t.pendingContext=n,t=on(i,l),t.payload={element:e},o=void 0===o?null:o,null!==o&&(t.callback=o),an(a,t),Hr(a,i),i}function No(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Io(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime